stillmade-sdk 0.1.49 → 0.1.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/AGENTS.md +6 -2
  2. package/AGENT_CONTROL.md +15 -0
  3. package/FRAME_VIEWS.md +30 -0
  4. package/INTERFACE_DESIGN.md +84 -7
  5. package/MODULES.md +2 -2
  6. package/PASTE_TO_LLM.md +26 -19
  7. package/SDK.md +180 -45
  8. package/UI_AESTHETIC.md +15 -0
  9. package/blocks/generate/package.js +1 -1
  10. package/blocks/generate/versions/1.1.0/package.js +471 -0
  11. package/blocks/generate/versions/1.2.0/package.js +555 -0
  12. package/blocks/native/sm.board-editor/versions/3.0.0/package.js +50 -17
  13. package/blocks/native/sm.board-editor/versions/3.1.0/package.js +1037 -0
  14. package/blocks/native/sm.editor/versions/3.0.0/package.js +128 -83
  15. package/blocks/native/sm.editor/versions/3.1.0/package.js +1299 -0
  16. package/blocks/native/sm.panel-strip/versions/3.0.0/package.js +45 -12
  17. package/blocks/native/sm.panel-strip/versions/3.1.0/package.js +479 -0
  18. package/blocks/native/sm.voiceover/versions/3.0.0/package.js +9 -3
  19. package/docs/build/block-builder-contract.md +6 -2
  20. package/docs/build/frame-views.md +30 -0
  21. package/docs/build/interface-design.md +84 -7
  22. package/docs/build/modules.md +2 -2
  23. package/docs/reference/authoring-guide.md +4 -4
  24. package/docs/reference/errors.md +1 -1
  25. package/docs/reference/execution.md +18 -4
  26. package/docs/reference/first-party-blocks.md +4 -4
  27. package/docs/reference/parity.md +1 -1
  28. package/docs/reference/ports.md +1 -1
  29. package/docs/reference/view-bridge.md +3 -0
  30. package/docs/tools/llm.md +26 -19
  31. package/package.json +1 -1
  32. package/packages/block-cli/dev-host/assets/host.js +161 -33
  33. package/packages/block-cli/dev-host/assets/index.css +1 -1
  34. package/packages/block-platform/block-readiness.js +16 -3
  35. package/packages/block-platform/canvas.js +4 -1
  36. package/packages/block-platform/catalog.js +32 -5
  37. package/packages/block-platform/flow-inspection.js +30 -2
  38. package/packages/block-platform/listings.js +16 -2
  39. package/packages/block-platform/steps.js +4 -1
  40. package/packages/block-sdk/admission.js +2 -2
  41. package/packages/block-sdk/agent-inputs.js +4 -2
  42. package/packages/block-sdk/appearance.js +19 -4
  43. package/packages/block-sdk/builder-contract.js +7 -4
  44. package/packages/block-sdk/first-party-identities.js +9 -1
  45. package/packages/block-sdk/first-party-packages.js +11 -1
  46. package/packages/block-sdk/generation-catalog.js +55 -5
  47. package/packages/block-sdk/generation-models.js +60 -0
  48. package/packages/block-sdk/index.d.ts +18 -4
  49. package/packages/block-sdk/index.js +2 -1
  50. package/packages/block-sdk/input-source-policy.js +2 -1
  51. package/packages/block-sdk/module-hosted.js +13 -5
  52. package/packages/block-sdk/module-worker.js +1 -1
  53. package/packages/block-sdk/port-types.js +6 -2
  54. package/packages/block-sdk/semantic-contracts.d.ts +1 -1
  55. package/packages/block-sdk/semantic-relationships.js +3 -0
  56. package/packages/block-sdk/semantic-schema.js +4 -1
  57. package/packages/block-sdk/shared-controls.js +4 -1
  58. package/packages/block-sdk/staged-releases.js +2 -1
  59. package/packages/block-sdk/testing.js +3 -0
  60. package/packages/block-sdk/view-bridge.js +3 -0
  61. package/packages/block-sdk/view-design.js +56 -12
  62. package/packages/block-sdk/view-renderer.js +19 -6
  63. package/packages/block-sdk/view.js +3 -2
  64. package/packages/design-system/block-kit.css +12 -3
@@ -47,7 +47,10 @@ export default {
47
47
  "type": "audio[]",
48
48
  "required": false,
49
49
  "semantic": "voiceover_takes",
50
- "description": "Every take made on this screen, newest first."
50
+ "description": "Every take made on this screen, newest first.",
51
+ "sources": [
52
+ "view"
53
+ ]
51
54
  },
52
55
  "words": {
53
56
  "type": "transcript",
@@ -65,7 +68,10 @@ export default {
65
68
  "type": "text",
66
69
  "required": false,
67
70
  "semantic": "voiceover_action",
68
- "description": "What a run makes: speech, timing, parse or use."
71
+ "description": "What a run makes: speech, timing, parse or use.",
72
+ "sources": [
73
+ "view"
74
+ ]
69
75
  }
70
76
  },
71
77
  "outputs": {
@@ -135,7 +141,7 @@ export default {
135
141
  "view": {
136
142
  "html": "<div id=\"root\"></div>\n",
137
143
  "css": "/* ============================================================\n StillMade AI — Foundations applied to the AI Video Workflow app.\n Two surfaces only: cream (#F7F0DB) and ink (#0A0A0A).\n Everything else is a tonal shift of one of those two.\n Dark is the default; [data-mode=\"light\"] flips the surface.\n ============================================================ */\n/* When the licensed Balgin Skinny Italic files are available, drop\n them into client/public/fonts and uncomment this block — the\n display face points at \"Balgin\" first and switches automatically. */\n/*\n@font-face {\n font-family: \"Balgin\";\n src: url(\"/fonts/Balgin-SkinnyItalic.woff2\") format(\"woff2\");\n font-weight: 100;\n font-style: italic;\n font-display: swap;\n}\n*/\n\n*, *::before, *::after {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n}\n\n/* ============================================================\n Animated Studio — fixed slate theme (ignores light/dark).\n :root[...] specificity beats [data-mode], so it wins in both modes.\n ============================================================ */\n:root[data-anim-theme=\"1\"]:not([data-mode=\"white\"]) {\n color-scheme: dark;\n --bg: #0A0D13;\n --bg-elev-1: #0F141C;\n --bg-elev-2: #1A2230;\n --bg-inset: #0F141C;\n --fg: #D8DEE8;\n --fg-muted: #8B98AC;\n --fg-subtle: #64748B;\n --fg-on-accent: #0A0D13;\n --border-tok: #232D3D;\n --border-strong: #303D50;\n --divider: #1A2230;\n --hover-wash: rgba(139, 152, 172, 0.08);\n --press-wash: rgba(139, 152, 172, 0.16);\n --selection-bg: #303D50;\n --selection-fg: #D8DEE8;\n\n --bg-primary: #0A0D13;\n --bg-secondary: #0F141C;\n --bg-tertiary: #1A2230;\n --bg-elevated: #1A2230;\n --bg-hover: #232D3D;\n --border: #232D3D;\n --border-light: #303D50;\n --accent: #8B98AC;\n --accent-hover: #B6C0CE;\n --accent-dim: rgba(139, 152, 172, 0.12);\n --accent-glow: rgba(139, 152, 172, 0.25);\n --accent-contrast: #0A0D13;\n --editor-standout-bg: #D8DEE8;\n --editor-standout-fg: #0A0D13;\n --text-primary: #D8DEE8;\n --text-secondary: #8B98AC;\n --text-muted: #64748B;\n --success: #8B98AC;\n --warning: #B6C0CE;\n --danger: #B6C0CE;\n}\n\nhtml, body {\n height: 100%;\n width: 100%;\n overflow: hidden;\n background: var(--bg);\n color: var(--fg);\n font-family: var(--font-body);\n font-size: 14px;\n line-height: 1.6;\n letter-spacing: var(--tr-body);\n -webkit-font-smoothing: antialiased;\n text-rendering: optimizeLegibility;\n}\n\n#root {\n height: 100%;\n width: 100%;\n overflow: hidden;\n}\n\n/* App shell fills the dynamically-visible viewport. 100dvh (not 100vh) so the\n mobile browser's collapsing toolbar doesn't push the inner scroll container —\n and its last row of content — below the visible area where it can't be\n reached. vh fallback first for browsers without dvh. */\n.sm-app-shell { height: 100vh; height: 100dvh; }\n\n/* Full-screen mobile nav menu enters with a composited fade+slide (rule 6). */\n@keyframes sm-navmenu-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }\n.mobile-nav-menu { animation: sm-navmenu-in 200ms cubic-bezier(0.22, 1, 0.36, 1); }\n\n::selection { background: var(--selection-bg); color: var(--selection-fg); }\n\n/* Display lockups — always italic, always thin. This is the brand. */\n.display, h1, h2 {\n font-family: var(--font-display);\n font-style: italic;\n font-weight: 200;\n line-height: var(--lh-tight);\n letter-spacing: var(--tr-display);\n margin: 0;\n}\n.display { line-height: var(--lh-display); }\nh3, h4 {\n font-family: var(--font-body);\n font-weight: 500;\n line-height: var(--lh-tight);\n letter-spacing: -0.01em;\n margin: 0;\n}\n\n.eyebrow {font-size: 11px;\n color: var(--fg-muted);\n font-weight: 500;}\n\ncode, pre, .mono {\n font-family: var(--font-mono);\n font-size: 0.92em;\n}\n/* Listing IDs are interface text, not code. */\n.listing-identity code { font-family: inherit; font-size: inherit; }\n\nbutton {\n font-family: var(--font-body);\n cursor: pointer;\n border: none;\n outline: none;\n letter-spacing: var(--tr-body);\n}\n\ntextarea, input, select {\n font-family: var(--font-body);\n outline: none;\n}\n\n/* ─── Native <select> → app theme, applied GLOBALLY to every select (now + future),\n so individual call sites never need touching. This themes the CLOSED control via the\n theme tokens while keeping the browser's NATIVE open/close + selection behavior fully\n intact (so picking an option always works). The OPEN popup is drawn by the OS —\n macOS/Safari can't be CSS-themed — and `option` colors below theme it only where the\n browser honors them (Chrome/Firefox on Win/Linux). A truly themed popup everywhere\n needs a custom dropdown component, not native <select>. ─── */\nselect {\n background-color: var(--bg-elev-1);\n color: var(--text-primary);\n border: 1px solid var(--border);\n border-radius: var(--r-2);\n}\nselect option,\nselect optgroup {\n background-color: var(--bg-elevated);\n color: var(--text-primary);\n}\nselect option:checked { font-weight: 600; }\n\n/* ─── ThemedSelect — a custom dropdown whose OPEN popup is themed too (the one thing a\n native <select> can't do on macOS). The trigger mirrors the native `select` look above,\n so a converted call site is visually identical when closed; the popup + options are ours,\n including per-option disabled state and an \"ⓘ\" info tooltip (e.g. Coming Soon). ─── */\n.tsel-trigger {\n display: inline-flex; align-items: center; justify-content: space-between; gap: 8px;\n background-color: var(--bg-elev-1); color: var(--text-primary);\n border: 1px solid var(--border); border-radius: var(--r-2);\n font-family: var(--font-body); font-size: inherit; padding: 6px 10px;\n cursor: pointer; text-align: left;\n}\n.tsel-trigger:hover { border-color: var(--border-strong); }\n.tsel-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }\n.tsel-trigger:disabled { opacity: 0.5; cursor: default; }\n.tsel-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.tsel-caret { flex: none; font-size: 10px; opacity: 0.7; }\n.tsel-pop {\n /* Above EVERY overlay that can contain a select, not just app dialogs (100000):\n the mobile BottomSheet is 100050, TemplateStudio 100090 and the PreviewGrid\n lightbox 100095. At the old 100010 the popup painted UNDERNEATH the sheet\n that opened it, so every dropdown inside a mobile sheet (motion easing,\n font, position, word-reveal swap/emphasis/trail layout) and the Whoosh\n transition's Direction slot in TemplateStudio silently did nothing. */\n z-index: 100100;\n max-height: 260px; overflow-y: auto;\n background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--r-2);\n box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28); padding: 4px;\n}\n.tsel-opt {\n display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 6px;\n color: var(--text-primary); cursor: pointer; font-size: 13px; white-space: nowrap;\n}\n.tsel-opt[data-active=\"true\"] { background: var(--bg-elev-1); }\n.tsel-opt[aria-selected=\"true\"] { font-weight: 600; }\n.tsel-opt[aria-disabled=\"true\"] { color: var(--text-muted); cursor: default; }\n.tsel-opt[aria-disabled=\"true\"][data-active=\"true\"] { background: transparent; }\n.tsel-check { flex: none; width: 12px; font-size: 11px; opacity: 0.8; }\n.tsel-opt-label { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; }\n.tsel-note {\n position: relative;\n flex: none; width: 16px; height: 16px; font-size: 11px; cursor: help;\n color: var(--text-muted); border: 1px solid var(--border); border-radius: 999px;\n display: inline-flex; align-items: center; justify-content: center;\n}\n.tsel-note:hover { color: var(--text-primary); border-color: var(--border-strong); }\n/* Info tooltip (e.g. \"Coming Soon\"). Portaled to <body> and positioned to the RIGHT of the ⓘ\n so the popup's overflow can never clip it. */\n.tsel-tip {\n z-index: 100110; /* one step above .tsel-pop — it annotates an option inside it */\n background: var(--text-primary); color: var(--bg-elevated);\n padding: 4px 8px; border-radius: 5px; font-size: 11px; font-weight: 600;\n max-width: min(260px, calc(100vw - 16px)); box-sizing: border-box;\n white-space: normal; pointer-events: none;\n box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);\n}\n@media (max-width: 767.98px), (max-height: 480px) and (pointer: coarse) {\n .tsel-opt { min-height: 44px; box-sizing: border-box; font-size: 14px; }\n .tsel-note { width: 44px; height: 44px; flex: 0 0 44px; font-size: 14px; }\n}\n\n.video-editor input,\n.video-editor select,\n.video-editor textarea {\n width: 100%;\n min-width: 0;\n background: var(--bg-inset);\n color: var(--fg);\n border: var(--bw-1) solid var(--border-strong);\n border-radius: var(--r-2);\n padding: 7px 8px;\n font-family: var(--font-body);\n font-size: 12px;\n accent-color: var(--signal);\n}\n\n.video-editor,\n.mobile-editor-root {\n user-select: none;\n -webkit-user-select: none;\n /* Kill the iOS long-press callout (Copy / Search) and the selection\n magnifier so a touch drag/trim/long-press on the timeline, labels, or\n buttons can't accidentally select UI text. Inputs re-enable both below. */\n -webkit-touch-callout: none;\n}\n\n.video-editor input,\n.video-editor select,\n.video-editor textarea,\n.video-editor [contenteditable=\"true\"],\n.mobile-editor-root input,\n.mobile-editor-root select,\n.mobile-editor-root textarea,\n.mobile-editor-root [contenteditable=\"true\"] {\n user-select: text;\n -webkit-user-select: text;\n -webkit-touch-callout: default;\n}\n\n.video-editor input[type=\"range\"] {\n padding: 0;\n border: 0;\n background: transparent;\n}\n\n.video-editor input[type=\"checkbox\"] {\n width: auto;\n min-width: auto;\n}\n\n.video-editor select:focus,\n.video-editor input:focus,\n.video-editor textarea:focus {\n border-color: var(--signal);\n box-shadow: 0 0 0 1px var(--signal-dim);\n}\n\n/* Focus — always visible, always the signal color */\n:focus-visible {\n outline: 2px solid var(--signal);\n outline-offset: 2px;\n}\n\n::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n}\n::-webkit-scrollbar-track { background: transparent; }\n::-webkit-scrollbar-thumb {\n background: var(--border-strong);\n border-radius: var(--r-pill);\n}\n::-webkit-scrollbar-thumb:hover { background: var(--fg-subtle); }\n\n/* Hide the scrollbar chrome while keeping the element scrollable (wheel /\n trackpad). Used on the editor's left panel + tab rail for a clean column. */\n.sm-hide-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }\n.sm-hide-scrollbar::-webkit-scrollbar { width: 0; height: 0; display: none; }\n\n/* ============================================================\n Buttons — primary is fg/bg inversion, not a color.\n Sharp by default; pill is a deliberate touch affordance.\n ============================================================ */\n.btn {\n display: inline-flex;\n align-items: center;\n gap: var(--s-2);\n padding: var(--s-2) var(--s-4);\n border-radius: var(--r-pill);\n font-size: 13px;\n font-weight: 500;\n letter-spacing: var(--tr-body);\n transition: transform var(--dur-fast) var(--ease-out),\n background-color var(--dur-fast) var(--ease-out),\n border-color var(--dur-fast) var(--ease-out),\n color var(--dur-fast) var(--ease-out),\n opacity var(--dur-fast) var(--ease-out);\n}\n.btn:active { transform: scale(0.98); }\n\n.btn-primary {\n background: var(--fg);\n color: var(--bg);\n}\n.btn-primary:hover { background: var(--fg); opacity: 0.86; }\n.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }\n\n.btn-secondary {\n background: transparent;\n color: var(--fg);\n border: var(--bw-1) solid var(--border-strong);\n}\n.btn-secondary:hover { background: var(--hover-wash); border-color: var(--fg); }\n\n.btn-ghost {\n background: transparent;\n color: var(--fg-muted);\n padding: 6px 10px;\n}\n.btn-ghost:hover { background: var(--hover-wash); color: var(--fg); }\n\n.btn-icon {\n background: transparent;\n color: var(--fg-muted);\n padding: 5px;\n border-radius: var(--r-2);\n display: inline-flex;\n align-items: center;\n justify-content: center;\n transition: background-color var(--dur-fast) var(--ease-out),\n color var(--dur-fast) var(--ease-out),\n transform var(--dur-fast) var(--ease-out);\n}\n.btn-icon:hover { background: var(--hover-wash); color: var(--fg); }\n.btn-icon:active { transform: scale(0.98); }\n.btn-icon:disabled { opacity: 0.4; cursor: not-allowed; }\n\n.typing-indicator {\n display: flex;\n gap: 4px;\n align-items: center;\n padding: 4px 0;\n}\n.typing-indicator span {\n width: 6px;\n height: 6px;\n border-radius: var(--r-pill);\n background: var(--fg-subtle);\n animation: bounce 1.2s infinite;\n}\n.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }\n.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }\n\n@keyframes bounce {\n 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }\n 30% { transform: translateY(-5px); opacity: 1; }\n}\n\n@keyframes fadeIn {\n from { opacity: 0; transform: translateY(6px); }\n to { opacity: 1; transform: translateY(0); }\n}\n\n@keyframes spin {\n to { transform: rotate(360deg); }\n}\n\n@keyframes pulse {\n 0%, 100% { opacity: 0.4; transform: scale(0.9); }\n 50% { opacity: 1; transform: scale(1.1); }\n}\n\n/* Toast slide-in for ToastHost (services/toast.js) */\n@keyframes toastIn {\n from { opacity: 0; transform: translateY(8px); }\n to { opacity: 1; transform: translateY(0); }\n}\n\n/* Q3 — keyboard focus rings (focus-visible only, so mouse users don't see them) */\nbutton:focus-visible,\n[role=\"button\"]:focus-visible,\na:focus-visible,\ninput:focus-visible,\nselect:focus-visible,\ntextarea:focus-visible {\n outline: 2px solid var(--accent);\n outline-offset: 2px;\n border-radius: 4px;\n}\n\n/* Typing fields never show a focus outline or ring (docs/UI_AESTHETIC.md):\n the caret marks focus. Buttons, links, switches and checkboxes keep theirs.\n !important so component focus-visible rules cannot bring the ring back. */\ninput:not([type=\"checkbox\"]):not([type=\"radio\"]):not([type=\"range\"]):not([type=\"color\"]):not([type=\"file\"]):not([type=\"button\"]):not([type=\"submit\"]):not([type=\"reset\"]):is(:focus, :focus-visible),\ntextarea:is(:focus, :focus-visible),\nselect:is(:focus, :focus-visible),\n[contenteditable]:not([contenteditable=\"false\"]):is(:focus, :focus-visible) {\n outline: none !important;\n}\n\n/* Skeleton shimmer for P2 loaders */\n@keyframes skeletonShimmer {\n 0% { background-position: -200% 0; }\n 100% { background-position: 200% 0; }\n}\n.skeleton {\n background: linear-gradient(90deg,\n rgba(255,255,255,0.03) 0%,\n rgba(255,255,255,0.10) 50%,\n rgba(255,255,255,0.03) 100%);\n background-size: 200% 100%;\n animation: skeletonShimmer 1.4s ease-in-out infinite;\n border-radius: 6px;\n}\n\n/* Node-state visuals (E1) — applied to NodeShell wrapper.\n States: empty (dashed ghost) / generating (shimmer ring) / failed (red stripe) / complete */\n/* opacity:0.78 removed — CSS opacity cascades to children and faded the\n image too. Dashed border alone is the \"pending\" signal now. */\n.node-state-empty { border-style: dashed !important; }\n/* The pulsing glow animates OPACITY on a pseudo-element (compositor-only)\n instead of keyframing box-shadow, which repainted the node's full shadow\n region on the main thread every frame for the whole generation — with\n batch generation pulsing many nodes at once. Same look: constant 2px\n accent ring + a breathing 18px glow. */\n.node-state-generating { box-shadow: 0 0 0 2px var(--accent); position: relative; }\n.node-state-generating::after {\n content: '';\n position: absolute;\n inset: -2px;\n border-radius: inherit;\n box-shadow: 0 0 18px rgba(247, 200, 50, 0.55);\n animation: nodePulse 1.6s ease-in-out infinite;\n pointer-events: none;\n will-change: opacity;\n}\n@keyframes nodePulse {\n 0%, 100% { opacity: 0.36; }\n 50% { opacity: 1; }\n}\n.node-state-warning { position: relative; border-color: var(--attention-warning) !important; }\n.node-state-warning::after {\n content: ''; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none;\n box-shadow: 0 0 0 1px var(--attention-warning), 0 0 14px color-mix(in srgb, var(--attention-warning) 40%, transparent);\n}\n.node-state-failed { border-top: 4px solid #d04848 !important; }\n.node-state-failed::before {\n content: '⚠ '; color: #d04848; font-weight: 800;\n position: absolute; top: 6px; left: 8px; font-size: 12px; z-index: 2;\n pointer-events: none;\n}\n\n/* React Flow overrides */\n.react-flow__node { cursor: default; }\n/* Promote layers only WHILE a gesture is live (xyflow toggles these classes\n automatically at drag start/end) — the dragged card and the panning\n viewport move on the compositor instead of repainting their 8-layer\n shadows every frame. No idle memory cost: the hint drops with the class. */\n.react-flow__node.dragging { will-change: transform; }\n.react-flow__pane.dragging .react-flow__viewport { will-change: transform; }\n\n/* ── 3D node extrusion (StillMade design bundle) ────────────────────\n Stacked box-shadow that follows the corner radius, plus an ambient\n cast. Compositor-only: no per-frame JS, no extra DOM. Capped at 6\n solid layers so paint cost stays bounded on large scenes (147 nodes).\n Excludes layout-only node types (scene groups, shot labels, sticky\n notes) which aren't cards. */\n.react-flow__node:not(.react-flow__node-sceneGroupNode):not(.react-flow__node-shotLabelNode):not(.react-flow__node-stickyNoteNode):not(.react-flow__node-transitionNode) {\n border-radius: 10px;\n box-shadow:\n 1px 1px 0 var(--node-side, #d8cfb3),\n 2px 2px 0 var(--node-side, #d8cfb3),\n 3px 3px 0 var(--node-side, #d8cfb3),\n 4px 4px 0 var(--node-side, #d8cfb3),\n 5px 5px 0 var(--node-side, #d8cfb3),\n 6px 6px 0 var(--node-side, #d8cfb3),\n 7px 7px 0 var(--node-edge, rgba(10,10,10,0.18)),\n 14px 16px 18px -4px rgba(10,10,10,0.18);\n /* No transition / hover-lift / drag-lift — animating transform on\n react-flow's already-transformed wrapper compounds onto its pan\n matrix and makes pans/drags feel laggy. Static shadow only. */\n}\n[data-mode=\"dark\"] .react-flow__node:not(.react-flow__node-sceneGroupNode):not(.react-flow__node-shotLabelNode):not(.react-flow__node-stickyNoteNode):not(.react-flow__node-transitionNode) {\n --node-side: #1f1d18;\n --node-edge: rgba(247, 240, 219, 0.18);\n}\n/* Zoom controls laid out as a 2×2 square (positioned above the Feedback pill\n in JS). Overrides React Flow v12's default flex-column. */\n.react-flow__controls {\n display: grid !important;\n grid-template-columns: repeat(2, 1fr) !important;\n}\n.react-flow__controls button {\n background: var(--bg-elev-2) !important;\n border-color: var(--border-tok) !important;\n color: var(--fg-muted) !important;\n fill: var(--fg-muted) !important;\n}\n.react-flow__controls button:hover {\n background: var(--ink-300) !important;\n}\n.react-flow__edge-path {\n stroke: var(--border-strong);\n}\n\n/* While actively panning a large graph, skip painting the edge layer (the main\n big-graph pan cost). Edges stay mounted — only paint is suppressed — so they\n reappear instantly with no remount when motion stops. See WorkflowCanvas\n markPanning / EDGE_PAN_HIDE_MIN. */\n.react-flow.rf-edges-panning .react-flow__edges {\n display: none;\n}\n\n.react-flow__node.node-controls-locked input,\n.react-flow__node.node-controls-locked textarea,\n.react-flow__node.node-controls-locked select,\n.react-flow__node.node-controls-locked button,\n.react-flow__node.node-controls-locked [role=\"button\"] {\n pointer-events: none !important;\n}\n\n.react-flow__node.node-controls-locked {\n cursor: grab;\n}\n\n.react-flow__node.node-controls-locked:active {\n cursor: grabbing;\n}\n\n.react-flow__node.scene-add-available-node {\n filter: drop-shadow(0 0 10px rgba(247,240,219,0.22));\n}\n\n.react-flow__node.scene-add-available-node > div {\n outline: 1px solid var(--border-strong);\n outline-offset: 4px;\n border-radius: var(--r-3);\n}\n\n.react-flow__node.scene-add-available-node::after {\n content: \"\";\n position: absolute;\n inset: -8px;\n border: 1px dashed var(--border-strong);\n border-radius: var(--r-3);\n pointer-events: none;\n}\n.react-flow__node.node-replace-available {\n filter: drop-shadow(0 0 10px rgba(247,240,219,0.22));\n}\n\n.react-flow__node.node-replace-available > div {\n outline: 1px solid var(--border-strong);\n outline-offset: 4px;\n border-radius: var(--r-3);\n}\n\n.react-flow__node.node-replace-available::after {\n content: \"\";\n position: absolute;\n inset: -8px;\n border: 1px dashed var(--border-strong);\n border-radius: var(--r-3);\n pointer-events: none;\n}\n\nselect option {\n background: var(--bg-elev-2);\n color: var(--fg);\n}\n\n.spinner {\n width: 16px;\n height: 16px;\n border: 2px solid var(--border-tok);\n border-top-color: var(--fg);\n border-radius: var(--r-pill);\n animation: spin 0.7s linear infinite;\n}\n\n.media-upload-preview:hover .media-upload-overlay {\n opacity: 1 !important;\n}\n\n/* Reduced motion — respect it everywhere */\n@media (prefers-reduced-motion: reduce) {\n *, *::before, *::after {\n animation-duration: 1ms !important;\n transition-duration: 1ms !important;\n }\n}\n\n/* All Assets grid: overlay shows on hover via CSS so the parent\n doesn't need a hoveredId state that re-renders the whole list. */\n.assets-card .assets-card-overlay { opacity: 0; transition: opacity 0.15s; }\n.assets-card:hover .assets-card-overlay { opacity: 1; }\n\n/* YouTube hub — Video performance rows: soft accent glow on hover so the rows\n feel clickable. Inset (not outer) shadow because the table clips overflow. */\n.yt-video-row { transition: background 0.12s ease, box-shadow 0.12s ease, color 0.12s ease; }\n.yt-video-row:hover {\n background: var(--hover-wash) !important;\n box-shadow: inset 2px 0 0 var(--accent), inset 0 0 14px var(--accent-glow);\n color: var(--text-primary);\n}\n\n/* Chat bubble text selection — the global ::selection token (which uses\n ink-600 in light mode) collides with the user bubble's dark accent\n background, making highlights invisible. Force the signal/amber color\n here so highlights pop on both user (dark bubble) and assistant\n (cream bubble) regardless of theme. */\n.chat-bubble *::selection { background: var(--signal); color: #0A0A0A; }\n.chat-bubble *::-moz-selection { background: var(--signal); color: #0A0A0A; }\n\n/* Chat bubble copy button — visible on hover/focus, and stays visible\n while the cursor is over the button itself (otherwise moving from\n bubble onto button would hide it before you could click). */\n.chat-bubble:hover .chat-bubble-copy,\n.chat-bubble:focus-within .chat-bubble-copy,\n.chat-bubble-copy:hover,\n.chat-bubble-copy:focus { opacity: 1 !important; }\n/* Subtle hover/active feedback so the user knows it's clickable. */\n.chat-bubble-copy:hover { background: var(--bg-elevated-2, var(--bg-elevated)); color: var(--text-primary) !important; }\n.chat-bubble-copy:active { transform: scale(0.94); }\n\n/* ── StillMade logo lockup — hover animation ──────────────────────────────\n Hovering the top-left lockup turns the isometric cube left-to-right around its\n vertical axis (a 3D rotateY) with a soft currentColor glow; it turns back on\n leave. Reduced-motion users get just a gentle scale + glow, no rotation. */\n.sm-brand .sm-brandmark {\n transform-origin: 50% 50%;\n transition: transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 280ms ease;\n}\n.sm-brand:hover .sm-brandmark {\n transform: perspective(340px) rotateY(360deg) scale(1.06);\n filter: drop-shadow(0 0 7px color-mix(in srgb, currentColor 45%, transparent));\n will-change: transform, filter;\n}\n/* Wordmark resting position + a subtle lift on hover (a small nudge — gentler\n than the design's). Resting transform lives here (not inline) so :hover can\n override it. */\n.sm-brand .sm-word {\n transform: translate(-4px, 0px);\n transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);\n}\n.sm-brand:hover .sm-word { transform: translate(-4px, -1px); will-change: transform; }\n@media (prefers-reduced-motion: reduce) {\n .sm-brand .sm-brandmark { transition: transform 240ms ease, filter 240ms ease; }\n .sm-brand:hover .sm-brandmark { transform: scale(1.06); }\n .sm-brand:hover .sm-word { transform: translate(-4px, 0px); }\n}\n\n/* ── Mobile UI ergonomics ───────────────────────────────────────────────────\n Scoped to body.sm-mobile-ui, which App.jsx adds ONLY when the user chose the\n mobile site on a small screen, including a rotated touch phone. Ordinary\n desktop windows and the continue-anyway mode are unaffected.\n\n The app is inline-styled, so these few universal touch fixes are applied here\n once instead of edited into every input across every screen:\n - 16px text fields stop iOS from zooming the page on focus (needs !important\n to beat the inline font sizes).\n - comfortable minimum tap target on buttons/selects. */\nbody.sm-mobile-ui input,\nbody.sm-mobile-ui textarea,\nbody.sm-mobile-ui select {\n font-size: 16px !important;\n}\nbody.sm-mobile-ui button,\nbody.sm-mobile-ui select,\nbody.sm-mobile-ui [role=\"button\"] {\n min-height: 44px;\n}\n/* WebKit can ignore min-height on its native one-line select. Keep the\n physical control touch-sized and let enlarged text make it taller. */\nbody.sm-mobile-ui select:not([multiple]):not([size]) {\n height: max(44px, 2.75em);\n}\n/* Icon-only / chip-sized controls opt out of the min height so dense toolbars\n (timeline, inspector) don't balloon. */\nbody.sm-mobile-ui button.btn-icon,\nbody.sm-mobile-ui button[data-compact],\nbody.sm-mobile-ui .no-min-tap {\n min-height: 0;\n}\n/* YouTube hub analytics rows are dense multi-column grids; keep their columns\n readable and let the table scroll horizontally instead of squishing on a\n phone (the table container is overflow-x:auto). */\nbody.sm-mobile-ui .yt-video-row {\n min-width: 560px;\n}\n\n/* Frame view: the page grows with the screen; StillMade sizes the frame to it. */\nhtml, body, #root { height: auto; overflow: visible; }\n",
138
- "javascript": "(function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),l=o((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.iterator;function p(e){return typeof e!=`object`||!e?null:(e=f&&e[f]||e[`@@iterator`],typeof e==`function`?e:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`setState(...): takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function v(){}v.prototype=_.prototype;function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}var b=y.prototype=new v;b.constructor=y,h(b,_.prototype),b.isPureReactComponent=!0;var x=Array.isArray,ee=Object.prototype.hasOwnProperty,S={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function te(e,n,r){var i,a={},o=null,s=null;if(n!=null)for(i in n.ref!==void 0&&(s=n.ref),n.key!==void 0&&(o=``+n.key),n)ee.call(n,i)&&!C.hasOwnProperty(i)&&(a[i]=n[i]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)a[i]===void 0&&(a[i]=c[i]);return{$$typeof:t,type:e,key:o,ref:s,props:a,_owner:S.current}}function ne(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function re(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ie(e){var t={\"=\":`=0`,\":\":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ae=/\\/+/g;function oe(e,t){return typeof e==`object`&&e&&e.key!=null?ie(``+e.key):t.toString(36)}function se(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0}}if(c)return c=e,o=o(c),e=a===``?`.`+oe(c,0):a,x(o)?(i=``,e!=null&&(i=e.replace(ae,`$&/`)+`/`),se(o,r,i,``,function(e){return e})):o!=null&&(re(o)&&(o=ne(o,i+(!o.key||c&&c.key===o.key?``:(``+o.key).replace(ae,`$&/`)+`/`)+e)),r.push(o)),1;if(c=0,a=a===``?`.`:a+`:`,x(e))for(var l=0;l<e.length;l++){s=e[l];var u=a+oe(s,l);c+=se(s,r,i,u,o)}else if(u=p(e),typeof u==`function`)for(e=u.call(e),l=0;!(s=e.next()).done;)s=s.value,u=a+oe(s,l++),c+=se(s,r,i,u,o);else if(s===`object`)throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`);return c}function ce(e,t,n){if(e==null)return e;var r=[],i=0;return se(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function le(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var w={current:null},ue={transition:null},de={ReactCurrentDispatcher:w,ReactCurrentBatchConfig:ue,ReactCurrentOwner:S};function fe(){throw Error(`act(...) is not supported in production builds of React.`)}e.Children={map:ce,forEach:function(e,t,n){ce(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ce(e,function(){t++}),t},toArray:function(e){return ce(e,function(e){return e})||[]},only:function(e){if(!re(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}},e.Component=_,e.Fragment=r,e.Profiler=a,e.PureComponent=y,e.StrictMode=i,e.Suspense=l,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=de,e.act=fe,e.cloneElement=function(e,n,r){if(e==null)throw Error(`React.cloneElement(...): The argument must be a React element, but you passed `+e+`.`);var i=h({},e.props),a=e.key,o=e.ref,s=e._owner;if(n!=null){if(n.ref!==void 0&&(o=n.ref,s=S.current),n.key!==void 0&&(a=``+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)ee.call(n,l)&&!C.hasOwnProperty(l)&&(i[l]=n[l]===void 0&&c!==void 0?c[l]:n[l])}var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}return{$$typeof:t,type:e.type,key:a,ref:o,props:i,_owner:s}},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:o,_context:e},e.Consumer=e},e.createElement=te,e.createFactory=function(e){var t=te.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=re,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:le}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=ue.transition;ue.transition={};try{e()}finally{ue.transition=t}},e.unstable_act=fe,e.useCallback=function(e,t){return w.current.useCallback(e,t)},e.useContext=function(e){return w.current.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e){return w.current.useDeferredValue(e)},e.useEffect=function(e,t){return w.current.useEffect(e,t)},e.useId=function(){return w.current.useId()},e.useImperativeHandle=function(e,t,n){return w.current.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.current.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.current.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.current.useMemo(e,t)},e.useReducer=function(e,t,n){return w.current.useReducer(e,t,n)},e.useRef=function(e){return w.current.useRef(e)},e.useState=function(e){return w.current.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.current.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.current.useTransition()},e.version=`18.3.1`})),u=o(((e,t)=>{t.exports=l()})),d=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=typeof setTimeout==`function`?setTimeout:null,_=typeof clearTimeout==`function`?clearTimeout:null,v=typeof setImmediate<`u`?setImmediate:null;typeof navigator<`u`&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function b(e){if(h=!1,y(e),!m){if(n(c)!==null)m=!0,ce(x);else{var t=n(l);t!==null&&le(b,t.startTime-e)}}}function x(t,i){m=!1,h&&(h=!1,_(C),C=-1),p=!0;var a=f;try{for(y(i),d=n(c);d!==null&&(!(d.expirationTime>i)||t&&!re());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=i);i=e.unstable_now(),typeof s==`function`?d.callback=s:d===n(c)&&r(c),y(i)}else r(c);d=n(c)}if(d!==null)var u=!0;else{var g=n(l);g!==null&&le(b,g.startTime-i),u=!1}return u}finally{d=null,f=a,p=!1}}var ee=!1,S=null,C=-1,te=5,ne=-1;function re(){return!(e.unstable_now()-ne<te)}function ie(){if(S!==null){var t=e.unstable_now();ne=t;var n=!0;try{n=S(!0,t)}finally{n?ae():(ee=!1,S=null)}}else ee=!1}var ae;if(typeof v==`function`)ae=function(){v(ie)};else if(typeof MessageChannel<`u`){var oe=new MessageChannel,se=oe.port2;oe.port1.onmessage=ie,ae=function(){se.postMessage(null)}}else ae=function(){g(ie,0)};function ce(e){S=e,ee||(ee=!0,ae())}function le(t,n){C=g(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,ce(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):te=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(_(C),C=-1):h=!0,le(b,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,ce(x))),r},e.unstable_shouldYield=re,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),f=o(((e,t)=>{t.exports=d()})),p=o((e=>{var t=u(),n=f();function r(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n]);return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var i=new Set,a={};function o(e,t){s(e,t),s(e+`Capture`,t)}function s(e,t){for(a[e]=t,e=0;e<t.length;e++)i.add(t[e])}var c=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),l=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$/,p={},m={};function h(e){return l.call(m,e)?!0:l.call(p,e)?!1:d.test(e)?m[e]=!0:(p[e]=!0,!1)}function g(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case`function`:case`symbol`:return!0;case`boolean`:return r?!1:n===null?(e=e.toLowerCase().slice(0,5),e!==`data-`&&e!==`aria-`):!n.acceptsBooleans;default:return!1}}function _(e,t,n,r){if(t==null||g(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function v(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var y={};`children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style`.split(` `).forEach(function(e){y[e]=new v(e,0,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0];y[t]=new v(t,1,!1,e[1],null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){y[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){y[e]=new v(e,2,!1,e,null,!1,!1)}),`allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope`.split(` `).forEach(function(e){y[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){y[e]=new v(e,3,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){y[e]=new v(e,4,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){y[e]=new v(e,6,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){y[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)});var b=/[\\-:]([a-z])/g;function x(e){return e[1].toUpperCase()}`accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height`.split(` `).forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,null,!1,!1)}),`xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type`.split(` `).forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)}),y.xlinkHref=new v(`xlinkHref`,1,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)});function ee(e,t,n,r){var i=y.hasOwnProperty(t)?y[t]:null;(i===null?r||!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`:i.type!==0)&&(_(t,n,i,r)&&(n=null),r||i===null?h(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,``+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type!==3&&``:n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&!0===n?``:``+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var S=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,C=Symbol.for(`react.element`),te=Symbol.for(`react.portal`),ne=Symbol.for(`react.fragment`),re=Symbol.for(`react.strict_mode`),ie=Symbol.for(`react.profiler`),ae=Symbol.for(`react.provider`),oe=Symbol.for(`react.context`),se=Symbol.for(`react.forward_ref`),ce=Symbol.for(`react.suspense`),le=Symbol.for(`react.suspense_list`),w=Symbol.for(`react.memo`),ue=Symbol.for(`react.lazy`),de=Symbol.for(`react.offscreen`),fe=Symbol.iterator;function pe(e){return typeof e!=`object`||!e?null:(e=fe&&e[fe]||e[`@@iterator`],typeof e==`function`?e:null)}var T=Object.assign,E;function me(e){if(E===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\\n( *(at )?)/);E=t&&t[1]||``}return`\n`+E+e}var he=!1;function ge(e,t){if(!e||he)return``;he=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t){if(t=function(){throw Error()},Object.defineProperty(t.prototype,\"props\",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&typeof t.stack==`string`){for(var i=t.stack.split(`\n`),a=r.stack.split(`\n`),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s]){var c=`\n`+i[o].replace(` at new `,` at `);return e.displayName&&c.includes(`<anonymous>`)&&(c=c.replace(`<anonymous>`,e.displayName)),c}while(1<=o&&0<=s);break}}}finally{he=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?me(e):``}function _e(e){switch(e.tag){case 5:return me(e.type);case 16:return me(`Lazy`);case 13:return me(`Suspense`);case 19:return me(`SuspenseList`);case 0:case 2:case 15:return e=ge(e.type,!1),e;case 11:return e=ge(e.type.render,!1),e;case 1:return e=ge(e.type,!0),e;default:return``}}function ve(e){if(e==null)return null;if(typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case ne:return`Fragment`;case te:return`Portal`;case ie:return`Profiler`;case re:return`StrictMode`;case ce:return`Suspense`;case le:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case oe:return(e.displayName||`Context`)+`.Consumer`;case ae:return(e._context.displayName||`Context`)+`.Provider`;case se:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case w:return t=e.displayName||null,t===null?ve(e.type)||`Memo`:t;case ue:t=e._payload,e=e._init;try{return ve(e(t))}catch{}}return null}function ye(e){var t=e.type;switch(e.tag){case 24:return`Cache`;case 9:return(t.displayName||`Context`)+`.Consumer`;case 10:return(t._context.displayName||`Context`)+`.Provider`;case 18:return`DehydratedFragment`;case 11:return e=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return ve(t);case 8:return t===re?`StrictMode`:`Mode`;case 22:return`Offscreen`;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t}return null}function be(e){switch(typeof e){case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function xe(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Se(e){var t=xe(e)?`checked`:`value`,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=``+e[t];if(!e.hasOwnProperty(t)&&n!==void 0&&typeof n.get==`function`&&typeof n.set==`function`){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ce(e){e._valueTracker||=Se(e)}function we(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=xe(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function Te(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Ee(e,t){var n=t.checked;return T({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function De(e,t){var n=t.defaultValue==null?``:t.defaultValue,r=t.checked==null?t.defaultChecked:t.checked;n=be(t.value==null?n:t.value),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===`checkbox`||t.type===`radio`?t.checked!=null:t.value!=null}}function Oe(e,t){t=t.checked,t!=null&&ee(e,`checked`,t,!1)}function ke(e,t){Oe(e,t);var n=be(t.value),r=t.type;if(n!=null)r===`number`?(n===0&&e.value===``||e.value!=n)&&(e.value=``+n):e.value!==``+n&&(e.value=``+n);else if(r===`submit`||r===`reset`){e.removeAttribute(`value`);return}t.hasOwnProperty(`value`)?Ae(e,t.type,n):t.hasOwnProperty(`defaultValue`)&&Ae(e,t.type,be(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function D(e,t,n){if(t.hasOwnProperty(`value`)||t.hasOwnProperty(`defaultValue`)){var r=t.type;if(!(r!==`submit`&&r!==`reset`||t.value!==void 0&&t.value!==null))return;t=``+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==``&&(e.name=``),e.defaultChecked=!!e._wrapperState.initialChecked,n!==``&&(e.name=n)}function Ae(e,t,n){(t!==`number`||Te(e.ownerDocument)!==e)&&(n==null?e.defaultValue=``+e._wrapperState.initialValue:e.defaultValue!==``+n&&(e.defaultValue=``+n))}var je=Array.isArray;function Me(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+be(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ne(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(r(91));return T({},t,{value:void 0,defaultValue:void 0,children:``+e._wrapperState.initialValue})}function Pe(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(r(92));if(je(n)){if(1<n.length)throw Error(r(93));n=n[0]}t=n}t??=``,n=t}e._wrapperState={initialValue:be(n)}}function Fe(e,t){var n=be(t.value),r=be(t.defaultValue);n!=null&&(n=``+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=``+r)}function Ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==``&&t!==null&&(e.value=t)}function Le(e){switch(e){case`svg`:return`http://www.w3.org/2000/svg`;case`math`:return`http://www.w3.org/1998/Math/MathML`;default:return`http://www.w3.org/1999/xhtml`}}function Re(e,t){return e==null||e===`http://www.w3.org/1999/xhtml`?Le(t):e===`http://www.w3.org/2000/svg`&&t===`foreignObject`?`http://www.w3.org/1999/xhtml`:e}var ze,Be=function(e){return typeof MSApp<`u`&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==`http://www.w3.org/2000/svg`||`innerHTML`in e)e.innerHTML=t;else{for(ze||=document.createElement(`div`),ze.innerHTML=`<svg>`+t.valueOf().toString()+`</svg>`,t=ze.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function O(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ve={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},He=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(Ve).forEach(function(e){He.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ve[t]=Ve[e]})});function k(e,t,n){return t==null||typeof t==`boolean`||t===``?``:n||typeof t!=`number`||t===0||Ve.hasOwnProperty(e)&&Ve[e]?(``+t).trim():t+`px`}function Ue(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=n.indexOf(`--`)===0,i=k(n,t[n],r);n===`float`&&(n=`cssFloat`),r?e.setProperty(n,i):e[n]=i}}var We=T({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ge(e,t){if(t){if(We[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(r(60));if(typeof t.dangerouslySetInnerHTML!=`object`||!(`__html`in t.dangerouslySetInnerHTML))throw Error(r(61))}if(t.style!=null&&typeof t.style!=`object`)throw Error(r(62))}}function Ke(e,t){if(e.indexOf(`-`)===-1)return typeof t.is==`string`;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var qe=null;function Je(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var A=null,j=null,Ye=null;function Xe(e){if(e=Li(e)){if(typeof A!=`function`)throw Error(r(280));var t=e.stateNode;t&&(t=zi(t),A(e.stateNode,e.type,t))}}function M(e){j?Ye?Ye.push(e):Ye=[e]:j=e}function Ze(){if(j){var e=j,t=Ye;if(Ye=j=null,Xe(e),t)for(e=0;e<t.length;e++)Xe(t[e])}}function Qe(e,t){return e(t)}function $e(){}var et=!1;function tt(e,t,n){if(et)return e(t,n);et=!0;try{return Qe(e,t,n)}finally{et=!1,(j!==null||Ye!==null)&&($e(),Ze())}}function nt(e,t){var n=e.stateNode;if(n===null)return null;var i=zi(n);if(i===null)return null;n=i[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(i=!i.disabled)||(e=e.type,i=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!i;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(r(231,t,typeof n));return n}var N=!1;if(c)try{var rt={};Object.defineProperty(rt,\"passive\",{get:function(){N=!0}}),window.addEventListener(`test`,rt,rt),window.removeEventListener(`test`,rt,rt)}catch{N=!1}function it(e,t,n,r,i,a,o,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var at=!1,ot=null,P=!1,F=null,I={onError:function(e){at=!0,ot=e}};function st(e,t,n,r,i,a,o,s,c){at=!1,ot=null,it.apply(I,arguments)}function ct(e,t,n,i,a,o,s,c,l){if(st.apply(this,arguments),at){if(at){var u=ot;at=!1,ot=null}else throw Error(r(198));P||(P=!0,F=u)}}function lt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ut(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function dt(e){if(lt(e)!==e)throw Error(r(188))}function ft(e){var t=e.alternate;if(!t){if(t=lt(e),t===null)throw Error(r(188));return t===e?e:null}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return dt(a),e;if(o===i)return dt(a),t;o=o.sibling}throw Error(r(188))}if(n.return!==i.return)n=a,i=o;else{for(var s=!1,c=a.child;c;){if(c===n){s=!0,n=a,i=o;break}if(c===i){s=!0,i=a,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,i=a;break}if(c===i){s=!0,i=o,n=a;break}c=c.sibling}if(!s)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function pt(e){return e=ft(e),e===null?null:mt(e)}function mt(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=mt(e);if(t!==null)return t;e=e.sibling}return null}var ht=n.unstable_scheduleCallback,gt=n.unstable_cancelCallback,_t=n.unstable_shouldYield,vt=n.unstable_requestPaint,L=n.unstable_now,yt=n.unstable_getCurrentPriorityLevel,R=n.unstable_ImmediatePriority,z=n.unstable_UserBlockingPriority,bt=n.unstable_NormalPriority,xt=n.unstable_LowPriority,St=n.unstable_IdlePriority,Ct=null,wt=null;function Tt(e){if(wt&&typeof wt.onCommitFiberRoot==`function`)try{wt.onCommitFiberRoot(Ct,e,void 0,(e.current.flags&128)==128)}catch{}}var Et=Math.clz32?Math.clz32:kt,Dt=Math.log,Ot=Math.LN2;function kt(e){return e>>>=0,e===0?32:31-(Dt(e)/Ot|0)|0}var At=64,jt=4194304;function Mt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function B(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s===0?(a&=o,a!==0&&(r=Mt(a))):r=Mt(s)}else o=n&~i,o===0?a!==0&&(r=Mt(a)):r=Mt(o);if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===16&&a&4194240))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Et(t),i=1<<n,r|=e[n],t&=~i;return r}function Nt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Pt(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-Et(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Nt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}}function Ft(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function It(){var e=At;return At<<=1,!(At&4194240)&&(At=64),e}function Lt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Rt(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Et(t),e[t]=n}function zt(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Et(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function Bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Et(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var V=0;function Vt(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ht,Ut,Wt,Gt,Kt,qt=!1,Jt=[],Yt=null,Xt=null,Zt=null,Qt=new Map,$t=new Map,en=[],tn=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit`.split(` `);function nn(e,t){switch(e){case`focusin`:case`focusout`:Yt=null;break;case`dragenter`:case`dragleave`:Xt=null;break;case`mouseover`:case`mouseout`:Zt=null;break;case`pointerover`:case`pointerout`:Qt.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:$t.delete(t.pointerId)}}function rn(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Li(t),t!==null&&Ut(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function an(e,t,n,r,i){switch(t){case`focusin`:return Yt=rn(Yt,e,t,n,r,i),!0;case`dragenter`:return Xt=rn(Xt,e,t,n,r,i),!0;case`mouseover`:return Zt=rn(Zt,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Qt.set(a,rn(Qt.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,$t.set(a,rn($t.get(a)||null,e,t,n,r,i)),!0}return!1}function on(e){var t=Ii(e.target);if(t!==null){var n=lt(t);if(n!==null){if(t=n.tag,t===13){if(t=ut(n),t!==null){e.blockedOn=t,Kt(e.priority,function(){Wt(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function sn(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=vn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);qe=r,n.target.dispatchEvent(r),qe=null}else return t=Li(n),t!==null&&Ut(t),e.blockedOn=n,!1;t.shift()}return!0}function cn(e,t,n){sn(e)&&n.delete(t)}function ln(){qt=!1,Yt!==null&&sn(Yt)&&(Yt=null),Xt!==null&&sn(Xt)&&(Xt=null),Zt!==null&&sn(Zt)&&(Zt=null),Qt.forEach(cn),$t.forEach(cn)}function un(e,t){e.blockedOn===t&&(e.blockedOn=null,qt||(qt=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,ln)))}function dn(e){function t(t){return un(t,e)}if(0<Jt.length){un(Jt[0],e);for(var n=1;n<Jt.length;n++){var r=Jt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Yt!==null&&un(Yt,e),Xt!==null&&un(Xt,e),Zt!==null&&un(Zt,e),Qt.forEach(t),$t.forEach(t),n=0;n<en.length;n++)r=en[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<en.length&&(n=en[0],n.blockedOn===null);)on(n),n.blockedOn===null&&en.shift()}var fn=S.ReactCurrentBatchConfig,pn=!0;function mn(e,t,n,r){var i=V,a=fn.transition;fn.transition=null;try{V=1,gn(e,t,n,r)}finally{V=i,fn.transition=a}}function hn(e,t,n,r){var i=V,a=fn.transition;fn.transition=null;try{V=4,gn(e,t,n,r)}finally{V=i,fn.transition=a}}function gn(e,t,n,r){if(pn){var i=vn(e,t,n,r);if(i===null)ci(e,t,r,_n,n),nn(e,r);else if(an(i,e,t,n,r))r.stopPropagation();else if(nn(e,r),t&4&&-1<tn.indexOf(e)){for(;i!==null;){var a=Li(i);if(a!==null&&Ht(a),a=vn(e,t,n,r),a===null&&ci(e,t,r,_n,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else ci(e,t,r,null,n)}}var _n=null;function vn(e,t,n,r){if(_n=null,e=Je(r),e=Ii(e),e!==null){if(t=lt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ut(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}return _n=e,null}function yn(e){switch(e){case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 1;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`toggle`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 4;case`message`:switch(yt()){case R:return 1;case z:return 4;case bt:case xt:return 16;case St:return 536870912;default:return 16}default:return 16}}var bn=null,H=null,xn=null;function Sn(){if(xn)return xn;var e,t=H,n=t.length,r,i=`value`in bn?bn.value:bn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return xn=i.slice(e,1<r?1-r:void 0)}function Cn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function wn(){return!0}function Tn(){return!1}function U(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?wn:Tn,this.isPropagationStopped=Tn,this}return T(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=wn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=wn)},persist:function(){},isPersistent:wn}),t}var En={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Dn=U(En),On=T({},En,{view:0,detail:0}),kn=U(On),An,jn,Mn,Nn=T({},On,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Un,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Mn&&(Mn&&e.type===`mousemove`?(An=e.screenX-Mn.screenX,jn=e.screenY-Mn.screenY):jn=An=0,Mn=e),An)},movementY:function(e){return`movementY`in e?e.movementY:jn}}),W=U(Nn),Pn=U(T({},Nn,{dataTransfer:0})),Fn=U(T({},On,{relatedTarget:0})),In=U(T({},En,{animationName:0,elapsedTime:0,pseudoElement:0})),Ln=U(T({},En,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Rn=U(T({},En,{data:0})),zn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Bn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Vn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Hn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Vn[e])?!!t[e]:!1}function Un(){return Hn}var Wn=U(T({},On,{key:function(e){if(e.key){var t=zn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Cn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Bn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Un,charCode:function(e){return e.type===`keypress`?Cn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Cn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Gn=U(T({},Nn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Kn=U(T({},On,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Un})),qn=U(T({},En,{propertyName:0,elapsedTime:0,pseudoElement:0})),Jn=U(T({},Nn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Yn=[9,13,27,32],Xn=c&&`CompositionEvent`in window,Zn=null;c&&`documentMode`in document&&(Zn=document.documentMode);var Qn=c&&`TextEvent`in window&&!Zn,$n=c&&(!Xn||Zn&&8<Zn&&11>=Zn),er=` `,tr=!1;function nr(e,t){switch(e){case`keyup`:return Yn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function rr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var ir=!1;function ar(e,t){switch(e){case`compositionend`:return rr(t);case`keypress`:return t.which===32?(tr=!0,er):null;case`textInput`:return e=t.data,e===er&&tr?null:e;default:return null}}function or(e,t){if(ir)return e===`compositionend`||!Xn&&nr(e,t)?(e=Sn(),xn=H=bn=null,ir=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return $n&&t.locale!==`ko`?null:t.data;default:return null}}var sr={color:!0,date:!0,datetime:!0,\"datetime-local\":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!sr[e.type]:t===`textarea`}function lr(e,t,n,r){M(r),t=ui(t,`onChange`),0<t.length&&(n=new Dn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var ur=null,dr=null;function fr(e){ri(e,0)}function pr(e){if(we(Ri(e)))return e}function mr(e,t){if(e===`change`)return t}var hr=!1;if(c){var gr;if(c){var _r=`oninput`in document;if(!_r){var vr=document.createElement(`div`);vr.setAttribute(`oninput`,`return;`),_r=typeof vr.oninput==`function`}gr=_r}else gr=!1;hr=gr&&(!document.documentMode||9<document.documentMode)}function yr(){ur&&(ur.detachEvent(`onpropertychange`,br),dr=ur=null)}function br(e){if(e.propertyName===`value`&&pr(dr)){var t=[];lr(t,dr,e,Je(e)),tt(fr,t)}}function xr(e,t,n){e===`focusin`?(yr(),ur=t,dr=n,ur.attachEvent(`onpropertychange`,br)):e===`focusout`&&yr()}function Sr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return pr(dr)}function Cr(e,t){if(e===`click`)return pr(t)}function wr(e,t){if(e===`input`||e===`change`)return pr(t)}function Tr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Er=typeof Object.is==`function`?Object.is:Tr;function Dr(e,t){if(Er(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!l.call(t,i)||!Er(e[i],t[i]))return!1}return!0}function Or(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function kr(e,t){var n=Or(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Or(n)}}function Ar(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ar(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jr(){for(var e=window,t=Te();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Te(e.document)}return t}function Mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}function Nr(e){var t=jr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ar(n.ownerDocument.documentElement,n)){if(r!==null&&Mr(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),`selectionStart`in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=kr(n,a);var o=kr(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus==`function`&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Pr=c&&`documentMode`in document&&11>=document.documentMode,Fr=null,Ir=null,Lr=null,Rr=!1;function zr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Rr||Fr==null||Fr!==Te(r)||(r=Fr,`selectionStart`in r&&Mr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Lr&&Dr(Lr,r)||(Lr=r,r=ui(Ir,`onSelect`),0<r.length&&(t=new Dn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Fr)))}function Br(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Vr={animationend:Br(`Animation`,`AnimationEnd`),animationiteration:Br(`Animation`,`AnimationIteration`),animationstart:Br(`Animation`,`AnimationStart`),transitionend:Br(`Transition`,`TransitionEnd`)},Hr={},Ur={};c&&(Ur=document.createElement(`div`).style,`AnimationEvent`in window||(delete Vr.animationend.animation,delete Vr.animationiteration.animation,delete Vr.animationstart.animation),`TransitionEvent`in window||delete Vr.transitionend.transition);function Wr(e){if(Hr[e])return Hr[e];if(!Vr[e])return e;var t=Vr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ur)return Hr[e]=t[n];return e}var Gr=Wr(`animationend`),Kr=Wr(`animationiteration`),qr=Wr(`animationstart`),Jr=Wr(`transitionend`),Yr=new Map,Xr=`abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);function Zr(e,t){Yr.set(e,t),o(t,[e])}for(var Qr=0;Qr<Xr.length;Qr++){var $r=Xr[Qr];Zr($r.toLowerCase(),`on`+($r[0].toUpperCase()+$r.slice(1)))}Zr(Gr,`onAnimationEnd`),Zr(Kr,`onAnimationIteration`),Zr(qr,`onAnimationStart`),Zr(`dblclick`,`onDoubleClick`),Zr(`focusin`,`onFocus`),Zr(`focusout`,`onBlur`),Zr(Jr,`onTransitionEnd`),s(`onMouseEnter`,[`mouseout`,`mouseover`]),s(`onMouseLeave`,[`mouseout`,`mouseover`]),s(`onPointerEnter`,[`pointerout`,`pointerover`]),s(`onPointerLeave`,[`pointerout`,`pointerover`]),o(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),o(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),o(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),o(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var ei=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),ti=new Set(`cancel close invalid load scroll toggle`.split(` `).concat(ei));function ni(e,t,n){var r=e.type||`unknown-event`;e.currentTarget=n,ct(r,t,void 0,e),e.currentTarget=null}function ri(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;ni(i,s,l),a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;ni(i,s,l),a=c}}}if(P)throw e=F,P=!1,F=null,e}function G(e,t){var n=t[Ni];n===void 0&&(n=t[Ni]=new Set);var r=e+`__bubble`;n.has(r)||(si(t,e,2,!1),n.add(r))}function ii(e,t,n){var r=0;t&&(r|=4),si(n,e,r,t)}var ai=`_reactListening`+Math.random().toString(36).slice(2);function oi(e){if(!e[ai]){e[ai]=!0,i.forEach(function(t){t!==`selectionchange`&&(ti.has(t)||ii(t,!1,e),ii(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ai]||(t[ai]=!0,ii(`selectionchange`,!1,t))}}function si(e,t,n,r){switch(yn(t)){case 1:var i=mn;break;case 4:i=hn;break;default:i=gn}n=i.bind(null,t,n,e),i=void 0,!N||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function ci(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;s!==null;){if(o=Ii(s),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue a}s=s.parentNode}}r=r.return}tt(function(){var r=a,i=Je(n),o=[];a:{var s=Yr.get(e);if(s!==void 0){var c=Dn,l=e;switch(e){case`keypress`:if(Cn(n)===0)break a;case`keydown`:case`keyup`:c=Wn;break;case`focusin`:l=`focus`,c=Fn;break;case`focusout`:l=`blur`,c=Fn;break;case`beforeblur`:case`afterblur`:c=Fn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=W;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=Pn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=Kn;break;case Gr:case Kr:case qr:c=In;break;case Jr:c=qn;break;case`scroll`:c=kn;break;case`wheel`:c=Jn;break;case`copy`:case`cut`:case`paste`:c=Ln;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=Gn}var u=!!(t&4),d=!u&&e===`scroll`,f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){m=p;var h=m.stateNode;if(m.tag===5&&h!==null&&(m=h,f!==null&&(h=nt(p,f),h!=null&&u.push(li(p,h,m)))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==qe&&(l=n.relatedTarget||n.fromElement)&&(Ii(l)||l[Mi]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Ii(l):null,l!==null&&(d=lt(l),l!==d||l.tag!==5&&l.tag!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=W,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=Gn,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:Ri(c),m=l==null?s:Ri(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Ii(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=c,f=l,p=0,m=u;m;m=di(m))p++;for(m=0,h=f;h;h=di(h))m++;for(;0<p-m;)u=di(u),p--;for(;0<m-p;)f=di(f),m--;for(;p--;){if(u===f||f!==null&&u===f.alternate)break b;u=di(u),f=di(f)}u=null}else u=null;c!==null&&fi(o,s,c,u,!1),l!==null&&d!==null&&fi(o,d,l,u,!0)}}a:{if(s=r?Ri(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=mr;else if(cr(s)){if(hr)g=wr;else{g=Sr;var _=xr}}else(c=s.nodeName)&&c.toLowerCase()===`input`&&(s.type===`checkbox`||s.type===`radio`)&&(g=Cr);if(g&&=g(e,r)){lr(o,g,n,i);break a}_&&_(e,s,r),e===`focusout`&&(_=s._wrapperState)&&_.controlled&&s.type===`number`&&Ae(s,`number`,s.value)}switch(_=r?Ri(r):window,e){case`focusin`:(cr(_)||_.contentEditable===`true`)&&(Fr=_,Ir=r,Lr=null);break;case`focusout`:Lr=Ir=Fr=null;break;case`mousedown`:Rr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Rr=!1,zr(o,n,i);break;case`selectionchange`:if(Pr)break;case`keydown`:case`keyup`:zr(o,n,i)}var v;if(Xn)b:{switch(e){case`compositionstart`:var y=`onCompositionStart`;break b;case`compositionend`:y=`onCompositionEnd`;break b;case`compositionupdate`:y=`onCompositionUpdate`;break b}y=void 0}else ir?nr(e,n)&&(y=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(y=`onCompositionStart`);y&&($n&&n.locale!==`ko`&&(ir||y!==`onCompositionStart`?y===`onCompositionEnd`&&ir&&(v=Sn()):(bn=i,H=`value`in bn?bn.value:bn.textContent,ir=!0)),_=ui(r,y),0<_.length&&(y=new Rn(y,e,null,n,i),o.push({event:y,listeners:_}),v?y.data=v:(v=rr(n),v!==null&&(y.data=v)))),(v=Qn?ar(e,n):or(e,n))&&(r=ui(r,`onBeforeInput`),0<r.length&&(i=new Rn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:i,listeners:r}),i.data=v))}ri(o,t)})}function li(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ui(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=nt(e,n),a!=null&&r.unshift(li(e,a,i)),a=nt(e,t),a!=null&&r.push(li(e,a,i))),e=e.return}return r}function di(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function fi(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&l!==null&&(s=l,i?(c=nt(n,a),c!=null&&o.unshift(li(n,c,s))):i||(c=nt(n,a),c!=null&&o.push(li(n,c,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var pi=/\\r\\n?/g,mi=/\\u0000|\\uFFFD/g;function hi(e){return(typeof e==`string`?e:``+e).replace(pi,`\n`).replace(mi,``)}function gi(e,t,n){if(t=hi(t),hi(e)!==t&&n)throw Error(r(425))}function _i(){}var vi=null,yi=null;function bi(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var xi=typeof setTimeout==`function`?setTimeout:void 0,Si=typeof clearTimeout==`function`?clearTimeout:void 0,Ci=typeof Promise==`function`?Promise:void 0,wi=typeof queueMicrotask==`function`?queueMicrotask:Ci===void 0?xi:function(e){return Ci.resolve(null).then(e).catch(Ti)};function Ti(e){setTimeout(function(){throw e})}function Ei(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`){if(r===0){e.removeChild(i),dn(t);return}r--}else n!==`$`&&n!==`$?`&&n!==`$!`||r++}n=i}while(n);dn(t)}function Di(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`)break;if(t===`/$`)return null}}return e}function Oi(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`){if(t===0)return e;t--}else n===`/$`&&t++}e=e.previousSibling}return null}var ki=Math.random().toString(36).slice(2),Ai=`__reactFiber$`+ki,ji=`__reactProps$`+ki,Mi=`__reactContainer$`+ki,Ni=`__reactEvents$`+ki,Pi=`__reactListeners$`+ki,Fi=`__reactHandles$`+ki;function Ii(e){var t=e[Ai];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Mi]||n[Ai]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Oi(e);e!==null;){if(n=e[Ai])return n;e=Oi(e)}return t}e=n,n=e.parentNode}return null}function Li(e){return e=e[Ai]||e[Mi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ri(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function zi(e){return e[ji]||null}var Bi=[],Vi=-1;function Hi(e){return{current:e}}function K(e){0>Vi||(e.current=Bi[Vi],Bi[Vi]=null,Vi--)}function q(e,t){Vi++,Bi[Vi]=e.current,e.current=t}var Ui={},Wi=Hi(Ui),Gi=Hi(!1),Ki=Ui;function qi(e,t){var n=e.type.contextTypes;if(!n)return Ui;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ji(e){return e=e.childContextTypes,e!=null}function Yi(){K(Gi),K(Wi)}function Xi(e,t,n){if(Wi.current!==Ui)throw Error(r(168));q(Wi,t),q(Gi,n)}function Zi(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!=`function`)return n;for(var a in i=i.getChildContext(),i)if(!(a in t))throw Error(r(108,ye(e)||`Unknown`,a));return T({},n,i)}function Qi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ui,Ki=Wi.current,q(Wi,e),q(Gi,Gi.current),!0}function $i(e,t,n){var i=e.stateNode;if(!i)throw Error(r(169));n?(e=Zi(e,t,Ki),i.__reactInternalMemoizedMergedChildContext=e,K(Gi),K(Wi),q(Wi,e)):K(Gi),q(Gi,n)}var ea=null,ta=!1,na=!1;function ra(e){ea===null?ea=[e]:ea.push(e)}function ia(e){ta=!0,ra(e)}function aa(){if(!na&&ea!==null){na=!0;var e=0,t=V;try{var n=ea;for(V=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ea=null,ta=!1}catch(t){throw ea!==null&&(ea=ea.slice(e+1)),ht(R,aa),t}finally{V=t,na=!1}}return null}var oa=[],sa=0,ca=null,la=0,ua=[],da=0,fa=null,pa=1,ma=``;function ha(e,t){oa[sa++]=la,oa[sa++]=ca,ca=e,la=t}function ga(e,t,n){ua[da++]=pa,ua[da++]=ma,ua[da++]=fa,fa=e;var r=pa;e=ma;var i=32-Et(r)-1;r&=~(1<<i),n+=1;var a=32-Et(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,pa=1<<32-Et(t)+i|n<<i|r,ma=a+e}else pa=1<<a|n<<i|r,ma=e}function _a(e){e.return!==null&&(ha(e,1),ga(e,1,0))}function va(e){for(;e===ca;)ca=oa[--sa],oa[sa]=null,la=oa[--sa],oa[sa]=null;for(;e===fa;)fa=ua[--da],ua[da]=null,ma=ua[--da],ua[da]=null,pa=ua[--da],ua[da]=null}var ya=null,ba=null,J=!1,xa=null;function Sa(e,t){var n=Kl(5,null,null,0);n.elementType=`DELETED`,n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Ca(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null&&(e.stateNode=t,ya=e,ba=Di(t.firstChild),!0);case 6:return t=e.pendingProps===``||t.nodeType!==3?null:t,t!==null&&(e.stateNode=t,ya=e,ba=null,!0);case 13:return t=t.nodeType===8?t:null,t!==null&&(n=fa===null?null:{id:pa,overflow:ma},e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Kl(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ya=e,ba=null,!0);default:return!1}}function wa(e){return!!(e.mode&1)&&!(e.flags&128)}function Ta(e){if(J){var t=ba;if(t){var n=t;if(!Ca(e,t)){if(wa(e))throw Error(r(418));t=Di(n.nextSibling);var i=ya;t&&Ca(e,t)?Sa(i,n):(e.flags=e.flags&-4097|2,J=!1,ya=e)}}else{if(wa(e))throw Error(r(418));e.flags=e.flags&-4097|2,J=!1,ya=e}}}function Ea(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ya=e}function Da(e){if(e!==ya)return!1;if(!J)return Ea(e),J=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!==`head`&&t!==`body`&&!bi(e.type,e.memoizedProps)),t&&=ba){if(wa(e))throw Oa(),Error(r(418));for(;t;)Sa(e,t),t=Di(t.nextSibling)}if(Ea(e),e.tag===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(317));a:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`){if(t===0){ba=Di(e.nextSibling);break a}t--}else n!==`$`&&n!==`$!`&&n!==`$?`||t++}e=e.nextSibling}ba=null}}else ba=ya?Di(e.stateNode.nextSibling):null;return!0}function Oa(){for(var e=ba;e;)e=Di(e.nextSibling)}function ka(){ba=ya=null,J=!1}function Aa(e){xa===null?xa=[e]:xa.push(e)}var ja=S.ReactCurrentBatchConfig;function Ma(e,t,n){if(e=n.ref,e!==null&&typeof e!=`function`&&typeof e!=`object`){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(r(309));var i=n.stateNode}if(!i)throw Error(r(147,e));var a=i,o=``+e;return t!==null&&t.ref!==null&&typeof t.ref==`function`&&t.ref._stringRef===o?t.ref:(t=function(e){var t=a.refs;e===null?delete t[o]:t[o]=e},t._stringRef=o,t)}if(typeof e!=`string`)throw Error(r(284));if(!n._owner)throw Error(r(290,e))}return e}function Na(e,t){throw e=Object.prototype.toString.call(t),Error(r(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e))}function Pa(e){var t=e._init;return t(e._payload)}function Fa(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function i(e,t){for(e=new Map;t!==null;)t.key===null?e.set(t.index,t):e.set(t.key,t),t=t.sibling;return e}function a(e,t){return e=Yl(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=2,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=2),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=$l(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===ne?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===ue&&Pa(i)===t.type)?(r=a(t,n.props),r.ref=Ma(e,t,n),r.return=e,r):(r=Xl(n.type,n.key,n.props,null,e.mode,r),r.ref=Ma(e,t,n),r.return=e,r)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=eu(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=Zl(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`)return t=$l(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case C:return n=Xl(t.type,t.key,t.props,null,e.mode,n),n.ref=Ma(e,null,t),n.return=e,n;case te:return t=eu(t,e.mode,n),t.return=e,t;case ue:var r=t._init;return f(e,r(t._payload),n)}if(je(t)||pe(t))return t=Zl(t,e.mode,n,null),t.return=e,t;Na(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case C:return n.key===i?l(e,t,n,r):null;case te:return n.key===i?u(e,t,n,r):null;case ue:return i=n._init,p(e,t,i(n._payload),r)}if(je(n)||pe(n))return i===null?d(e,t,n,r,null):null;Na(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case C:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case te:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case ue:var a=r._init;return m(e,t,n,a(r._payload),i)}if(je(r)||pe(r))return e=e.get(n)||null,d(t,e,r,i,null);Na(t,r)}return null}function h(r,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(r,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(r,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(r,d),J&&ha(r,h),l;if(d===null){for(;h<s.length;h++)d=f(r,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return J&&ha(r,h),l}for(d=i(r,d);h<s.length;h++)g=m(d,r,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(r,e)}),J&&ha(r,h),l}function g(a,s,c,l){var u=pe(c);if(typeof u!=`function`)throw Error(r(150));if(c=u.call(c),c==null)throw Error(r(151));for(var d=u=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),J&&ha(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return J&&ha(a,g),u}for(h=i(a,h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),J&&ha(a,g),u}function _(e,r,i,o){if(typeof i==`object`&&i&&i.type===ne&&i.key===null&&(i=i.props.children),typeof i==`object`&&i){switch(i.$$typeof){case C:a:{for(var c=i.key,l=r;l!==null;){if(l.key===c){if(c=i.type,c===ne){if(l.tag===7){n(e,l.sibling),r=a(l,i.props.children),r.return=e,e=r;break a}}else if(l.elementType===c||typeof c==`object`&&c&&c.$$typeof===ue&&Pa(c)===l.type){n(e,l.sibling),r=a(l,i.props),r.ref=Ma(e,l,i),r.return=e,e=r;break a}n(e,l);break}t(e,l),l=l.sibling}i.type===ne?(r=Zl(i.props.children,e.mode,o,i.key),r.return=e,e=r):(o=Xl(i.type,i.key,i.props,null,e.mode,o),o.ref=Ma(e,r,i),o.return=e,e=o)}return s(e);case te:a:{for(l=i.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),r=a(r,i.children||[]),r.return=e,e=r;break a}n(e,r);break}t(e,r),r=r.sibling}r=eu(i,e.mode,o),r.return=e,e=r}return s(e);case ue:return l=i._init,_(e,r,l(i._payload),o)}if(je(i))return h(e,r,i,o);if(pe(i))return g(e,r,i,o);Na(e,i)}return typeof i==`string`&&i!==``||typeof i==`number`?(i=``+i,r!==null&&r.tag===6?(n(e,r.sibling),r=a(r,i),r.return=e,e=r):(n(e,r),r=$l(i,e.mode,o),r.return=e,e=r),s(e)):n(e,r)}return _}var Ia=Fa(!0),La=Fa(!1),Ra=Hi(null),za=null,Ba=null,Va=null;function Ha(){Va=Ba=za=null}function Ua(e){var t=Ra.current;K(Ra),e._currentValue=t}function Wa(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Ga(e,t){za=e,Va=Ba=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ns=!0),e.firstContext=null)}function Ka(e){var t=e._currentValue;if(Va!==e){if(e={context:e,memoizedValue:t,next:null},Ba===null){if(za===null)throw Error(r(308));Ba=e,za.dependencies={lanes:0,firstContext:e}}else Ba=Ba.next=e}return t}var qa=null;function Ja(e){qa===null?qa=[e]:qa.push(e)}function Ya(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Ja(t)):(n.next=i.next,i.next=n),t.interleaved=n,Xa(e,r)}function Xa(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Za=!1;function Qa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $a(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function eo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function to(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Q&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Xa(e,n)}return i=r.interleaved,i===null?(t.next=t,Ja(r)):(t.next=i.next,i.next=t),r.interleaved=t,Xa(e,n)}function no(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194240)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Bt(e,n)}}function ro(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function io(e,t,n,r){var i=e.updateQueue;Za=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});a:{var m=e,h=s;switch(f=t,p=n,h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(p,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(p,d,f):m,f==null)break a;d=T({},d,f);break a;case 2:Za=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(1);if(u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Yc|=o,e.lanes=o,e.memoizedState=d}}function ao(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],a=i.callback;if(a!==null){if(i.callback=null,i=n,typeof a!=`function`)throw Error(r(191,a));a.call(i)}}}var oo={},so=Hi(oo),co=Hi(oo),lo=Hi(oo);function uo(e){if(e===oo)throw Error(r(174));return e}function fo(e,t){switch(q(lo,t),q(co,e),q(so,oo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Re(null,``);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Re(t,e)}K(so),q(so,t)}function po(){K(so),K(co),K(lo)}function mo(e){uo(lo.current);var t=uo(so.current),n=Re(t,e.type);t!==n&&(q(co,e),q(so,n))}function ho(e){co.current===e&&(K(so),K(co))}var Y=Hi(0);function go(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===`$?`||n.data===`$!`))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var _o=[];function vo(){for(var e=0;e<_o.length;e++)_o[e]._workInProgressVersionPrimary=null;_o.length=0}var yo=S.ReactCurrentDispatcher,bo=S.ReactCurrentBatchConfig,xo=0,X=null,So=null,Co=null,wo=!1,To=!1,Eo=0,Do=0;function Oo(){throw Error(r(321))}function ko(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Er(e[n],t[n]))return!1;return!0}function Ao(e,t,n,i,a,o){if(xo=o,X=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,yo.current=e===null||e.memoizedState===null?ps:ms,e=n(i,a),To){o=0;do{if(To=!1,Eo=0,25<=o)throw Error(r(301));o+=1,Co=So=null,t.updateQueue=null,yo.current=hs,e=n(i,a)}while(To)}if(yo.current=fs,t=So!==null&&So.next!==null,xo=0,Co=So=X=null,wo=!1,t)throw Error(r(300));return e}function jo(){var e=Eo!==0;return Eo=0,e}function Mo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Co===null?X.memoizedState=Co=e:Co=Co.next=e,Co}function No(){if(So===null){var e=X.alternate;e=e===null?null:e.memoizedState}else e=So.next;var t=Co===null?X.memoizedState:Co.next;if(t!==null)Co=t,So=e;else{if(e===null)throw Error(r(310));So=e,e={memoizedState:So.memoizedState,baseState:So.baseState,baseQueue:So.baseQueue,queue:So.queue,next:null},Co===null?X.memoizedState=Co=e:Co=Co.next=e}return Co}function Po(e,t){return typeof t==`function`?t(e):t}function Fo(e){var t=No(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=So,a=i.baseQueue,o=n.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}i.baseQueue=a=o,n.pending=null}if(a!==null){o=a.next,i=i.baseState;var c=s=null,l=null,u=o;do{var d=u.lane;if((xo&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(c=l=f,s=i):l=l.next=f,X.lanes|=d,Yc|=d}u=u.next}while(u!==null&&u!==o);l===null?s=i:l.next=c,Er(i,t.memoizedState)||(Ns=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=l,n.lastRenderedState=i}if(e=n.interleaved,e!==null){a=e;do o=a.lane,X.lanes|=o,Yc|=o,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Io(e){var t=No(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Er(o,t.memoizedState)||(Ns=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Lo(){}function Ro(e,t){var n=X,i=No(),a=t(),o=!Er(i.memoizedState,a);if(o&&(i.memoizedState=a,Ns=!0),i=i.queue,Xo(Vo.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||Co!==null&&Co.memoizedState.tag&1){if(n.flags|=2048,Go(9,Bo.bind(null,n,i,a,t),void 0,null),Hc===null)throw Error(r(349));xo&30||zo(n,t,a)}return a}function zo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=X.updateQueue,t===null?(t={lastEffect:null,stores:null},X.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Bo(e,t,n,r){t.value=n,t.getSnapshot=r,Ho(t)&&Uo(e)}function Vo(e,t,n){return n(function(){Ho(t)&&Uo(e)})}function Ho(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Er(e,n)}catch{return!0}}function Uo(e){var t=Xa(e,1);t!==null&&hl(t,e,1,-1)}function Wo(e){var t=Mo();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:e},t.queue=e,e=e.dispatch=cs.bind(null,X,e),[t.memoizedState,e]}function Go(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=X.updateQueue,t===null?(t={lastEffect:null,stores:null},X.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Ko(){return No().memoizedState}function qo(e,t,n,r){var i=Mo();X.flags|=e,i.memoizedState=Go(1|t,n,void 0,r===void 0?null:r)}function Jo(e,t,n,r){var i=No();r=r===void 0?null:r;var a=void 0;if(So!==null){var o=So.memoizedState;if(a=o.destroy,r!==null&&ko(r,o.deps)){i.memoizedState=Go(t,n,a,r);return}}X.flags|=e,i.memoizedState=Go(1|t,n,a,r)}function Yo(e,t){return qo(8390656,8,e,t)}function Xo(e,t){return Jo(2048,8,e,t)}function Zo(e,t){return Jo(4,2,e,t)}function Qo(e,t){return Jo(4,4,e,t)}function $o(e,t){if(typeof t==`function`)return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function es(e,t,n){return n=n==null?null:n.concat([e]),Jo(4,4,$o.bind(null,t,e),n)}function ts(){}function ns(e,t){var n=No();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ko(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function rs(e,t){var n=No();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ko(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function is(e,t,n){return xo&21?(Er(n,t)||(n=It(),X.lanes|=n,Yc|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ns=!0),e.memoizedState=n)}function as(e,t){var n=V;V=n!==0&&4>n?n:4,e(!0);var r=bo.transition;bo.transition={};try{e(!1),t()}finally{V=n,bo.transition=r}}function os(){return No().memoizedState}function ss(e,t,n){var r=ml(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ls(e))us(t,n);else if(n=Ya(e,t,n,r),n!==null){var i=pl();hl(n,e,r,i),ds(n,t,r)}}function cs(e,t,n){var r=ml(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ls(e))us(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Er(s,o)){var c=t.interleaved;c===null?(i.next=i,Ja(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}n=Ya(e,t,i,r),n!==null&&(i=pl(),hl(n,e,r,i),ds(n,t,r))}}function ls(e){var t=e.alternate;return e===X||t!==null&&t===X}function us(e,t){To=wo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ds(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Bt(e,n)}}var fs={readContext:Ka,useCallback:Oo,useContext:Oo,useEffect:Oo,useImperativeHandle:Oo,useInsertionEffect:Oo,useLayoutEffect:Oo,useMemo:Oo,useReducer:Oo,useRef:Oo,useState:Oo,useDebugValue:Oo,useDeferredValue:Oo,useTransition:Oo,useMutableSource:Oo,useSyncExternalStore:Oo,useId:Oo,unstable_isNewReconciler:!1},ps={readContext:Ka,useCallback:function(e,t){return Mo().memoizedState=[e,t===void 0?null:t],e},useContext:Ka,useEffect:Yo,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),qo(4194308,4,$o.bind(null,t,e),n)},useLayoutEffect:function(e,t){return qo(4194308,4,e,t)},useInsertionEffect:function(e,t){return qo(4,2,e,t)},useMemo:function(e,t){var n=Mo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Mo();return t=n===void 0?t:n(t),r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ss.bind(null,X,e),[r.memoizedState,e]},useRef:function(e){var t=Mo();return e={current:e},t.memoizedState=e},useState:Wo,useDebugValue:ts,useDeferredValue:function(e){return Mo().memoizedState=e},useTransition:function(){var e=Wo(!1),t=e[0];return e=as.bind(null,e[1]),Mo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=X,a=Mo();if(J){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Hc===null)throw Error(r(349));xo&30||zo(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Yo(Vo.bind(null,i,o,e),[e]),i.flags|=2048,Go(9,Bo.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=Mo(),t=Hc.identifierPrefix;if(J){var n=ma,r=pa;n=(r&~(1<<32-Et(r)-1)).toString(32)+n,t=`:`+t+`R`+n,n=Eo++,0<n&&(t+=`H`+n.toString(32)),t+=`:`}else n=Do++,t=`:`+t+`r`+n.toString(32)+`:`;return e.memoizedState=t},unstable_isNewReconciler:!1},ms={readContext:Ka,useCallback:ns,useContext:Ka,useEffect:Xo,useImperativeHandle:es,useInsertionEffect:Zo,useLayoutEffect:Qo,useMemo:rs,useReducer:Fo,useRef:Ko,useState:function(){return Fo(Po)},useDebugValue:ts,useDeferredValue:function(e){return is(No(),So.memoizedState,e)},useTransition:function(){return[Fo(Po)[0],No().memoizedState]},useMutableSource:Lo,useSyncExternalStore:Ro,useId:os,unstable_isNewReconciler:!1},hs={readContext:Ka,useCallback:ns,useContext:Ka,useEffect:Xo,useImperativeHandle:es,useInsertionEffect:Zo,useLayoutEffect:Qo,useMemo:rs,useReducer:Io,useRef:Ko,useState:function(){return Io(Po)},useDebugValue:ts,useDeferredValue:function(e){var t=No();return So===null?t.memoizedState=e:is(t,So.memoizedState,e)},useTransition:function(){return[Io(Po)[0],No().memoizedState]},useMutableSource:Lo,useSyncExternalStore:Ro,useId:os,unstable_isNewReconciler:!1};function gs(e,t){if(e&&e.defaultProps){for(var n in t=T({},t),e=e.defaultProps,e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function _s(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:T({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var vs={isMounted:function(e){return(e=e._reactInternals)?lt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=pl(),i=ml(e),a=eo(r,i);a.payload=t,n!=null&&(a.callback=n),t=to(e,a,i),t!==null&&(hl(t,e,i,r),no(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=pl(),i=ml(e),a=eo(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=to(e,a,i),t!==null&&(hl(t,e,i,r),no(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pl(),r=ml(e),i=eo(n,r);i.tag=2,t!=null&&(i.callback=t),t=to(e,i,r),t!==null&&(hl(t,e,r,n),no(t,e,r))}};function ys(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Dr(n,r)||!Dr(i,a):!0}function bs(e,t,n){var r=!1,i=Ui,a=t.contextType;return typeof a==`object`&&a?a=Ka(a):(i=Ji(t)?Ki:Wi.current,r=t.contextTypes,a=(r=r!=null)?qi(e,i):Ui),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=vs,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function xs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&vs.enqueueReplaceState(t,t.state,null)}function Ss(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Qa(e);var a=t.contextType;typeof a==`object`&&a?i.context=Ka(a):(a=Ji(t)?Ki:Wi.current,i.context=qi(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(_s(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==`function`||typeof i.getSnapshotBeforeUpdate==`function`||typeof i.UNSAFE_componentWillMount!=`function`&&typeof i.componentWillMount!=`function`||(t=i.state,typeof i.componentWillMount==`function`&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount==`function`&&i.UNSAFE_componentWillMount(),t!==i.state&&vs.enqueueReplaceState(i,i.state,null),io(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4194308)}function Cs(e,t){try{var n=``,r=t;do n+=_e(r),r=r.return;while(r);var i=n}catch(e){i=`\nError generating stack: `+e.message+`\n`+e.stack}return{value:e,source:t,stack:i,digest:null}}function ws(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ts(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var Es=typeof WeakMap==`function`?WeakMap:Map;function Ds(e,t,n){n=eo(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){rl||(rl=!0,il=r),Ts(e,t)},n}function Os(e,t,n){n=eo(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==`function`){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Ts(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){Ts(e,t),typeof r!=`function`&&(al===null?al=new Set([this]):al.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}function ks(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Es;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=zl.bind(null,e,t,n),t.then(e,e))}function As(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t===null||t.dehydrated!==null),t)return e;e=e.return}while(e!==null);return null}function js(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=eo(-1,1),t.tag=2,to(n,t,1))),n.lanes|=1),e)}var Ms=S.ReactCurrentOwner,Ns=!1;function Ps(e,t,n,r){t.child=e===null?La(t,null,n,r):Ia(t,e.child,n,r)}function Fs(e,t,n,r,i){n=n.render;var a=t.ref;return Ga(t,i),r=Ao(e,t,n,r,a,i),n=jo(),e!==null&&!Ns?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,tc(e,t,i)):(J&&n&&_a(t),t.flags|=1,Ps(e,t,r,i),t.child)}function Is(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ql(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Ls(e,t,a,r,i)):(e=Xl(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&i)===0){var o=a.memoizedProps;if(n=n.compare,n=n===null?Dr:n,n(o,r)&&e.ref===t.ref)return tc(e,t,i)}return t.flags|=1,e=Yl(a,r),e.ref=t.ref,e.return=t,t.child=e}function Ls(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Dr(a,r)&&e.ref===t.ref){if(Ns=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Ns=!0);else return t.lanes=e.lanes,tc(e,t,i)}}return Bs(e,t,n,r,i)}function Rs(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`){if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},q(Kc,Gc),Gc|=n;else{if(!(n&1073741824))return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,q(Kc,Gc),Gc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a===null?n:a.baseLanes,q(Kc,Gc),Gc|=r}}else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),q(Kc,Gc),Gc|=r;return Ps(e,t,i,n),t.child}function zs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Bs(e,t,n,r,i){var a=Ji(n)?Ki:Wi.current;return a=qi(t,a),Ga(t,i),n=Ao(e,t,n,r,a,i),r=jo(),e!==null&&!Ns?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,tc(e,t,i)):(J&&r&&_a(t),t.flags|=1,Ps(e,t,n,i),t.child)}function Vs(e,t,n,r,i){if(Ji(n)){var a=!0;Qi(t)}else a=!1;if(Ga(t,i),t.stateNode===null)ec(e,t),bs(t,n,r),Ss(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=Ka(l):(l=Ji(n)?Ki:Wi.current,l=qi(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&xs(t,o,r,l),Za=!1;var f=t.memoizedState;o.state=f,io(t,r,o,i),c=t.memoizedState,s!==r||f!==c||Gi.current||Za?(typeof u==`function`&&(_s(t,n,u,r),c=t.memoizedState),(s=Za||ys(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4194308)):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,$a(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:gs(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=Ka(c):(c=Ji(n)?Ki:Wi.current,c=qi(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&xs(t,o,r,c),Za=!1,f=t.memoizedState,o.state=f,io(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||Gi.current||Za?(typeof p==`function`&&(_s(t,n,p,r),m=t.memoizedState),(l=Za||ys(t,n,l,r,f,m,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Hs(e,t,n,r,a,i)}function Hs(e,t,n,r,i,a){zs(e,t);var o=!!(t.flags&128);if(!r&&!o)return i&&$i(t,n,!1),tc(e,t,a);r=t.stateNode,Ms.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Ia(t,e.child,null,a),t.child=Ia(t,null,s,a)):Ps(e,t,s,a),t.memoizedState=r.state,i&&$i(t,n,!0),t.child}function Us(e){var t=e.stateNode;t.pendingContext?Xi(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Xi(e,t.context,!1),fo(e,t.containerInfo)}function Ws(e,t,n,r,i){return ka(),Aa(i),t.flags|=256,Ps(e,t,n,r),t.child}var Gs={dehydrated:null,treeContext:null,retryLane:0};function Ks(e){return{baseLanes:e,cachePool:null,transitions:null}}function qs(e,t,n){var r=t.pendingProps,i=Y.current,a=!1,o=!!(t.flags&128),s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:!!(i&2)),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),q(Y,i&1),e===null)return Ta(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.lanes=t.mode&1?e.data===`$!`?8:1073741824:1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:`hidden`,children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=Ql(o,r,0,null),e=Zl(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Ks(n),t.memoizedState=Gs,e):Js(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return Xs(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var c={mode:`hidden`,children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Yl(i,c),r.subtreeFlags=i.subtreeFlags&14680064),s===null?(a=Zl(a,o,n,null),a.flags|=2):a=Yl(s,a),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?Ks(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=Gs,r}return a=e.child,e=a.sibling,r=Yl(a,{mode:`visible`,children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Js(e,t){return t=Ql({mode:`visible`,children:t},e.mode,0,null),t.return=e,e.child=t}function Ys(e,t,n,r){return r!==null&&Aa(r),Ia(t,e.child,null,n),e=Js(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xs(e,t,n,i,a,o,s){if(n)return t.flags&256?(t.flags&=-257,i=ws(Error(r(422))),Ys(e,t,s,i)):t.memoizedState===null?(o=i.fallback,a=t.mode,i=Ql({mode:`visible`,children:i.children},a,0,null),o=Zl(o,a,s,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&1&&Ia(t,e.child,null,s),t.child.memoizedState=Ks(s),t.memoizedState=Gs,o):(t.child=e.child,t.flags|=128,null);if(!(t.mode&1))return Ys(e,t,s,null);if(a.data===`$!`){if(i=a.nextSibling&&a.nextSibling.dataset,i)var c=i.dgst;return i=c,o=Error(r(419)),i=ws(o,i,void 0),Ys(e,t,s,i)}if(c=(s&e.childLanes)!==0,Ns||c){if(i=Hc,i!==null){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(i.suspendedLanes|s))===0?a:0,a!==0&&a!==o.retryLane&&(o.retryLane=a,Xa(e,a),hl(i,e,a,-1))}return kl(),i=ws(Error(r(421))),Ys(e,t,s,i)}return a.data===`$?`?(t.flags|=128,t.child=e.child,t=Vl.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,ba=Di(a.nextSibling),ya=t,J=!0,xa=null,e!==null&&(ua[da++]=pa,ua[da++]=ma,ua[da++]=fa,pa=e.id,ma=e.overflow,fa=t),t=Js(t,i.children),t.flags|=4096,t)}function Zs(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Wa(e.return,t,n)}function Qs(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function $s(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Ps(e,t,r.children,n),r=Y.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Zs(e,n,t);else if(e.tag===19)Zs(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(q(Y,r),!(t.mode&1))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&go(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Qs(t,!1,i,n,a);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&go(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Qs(t,!0,n,null,a);break;case`together`:Qs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ec(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function tc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Yc|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=Yl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Yl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function nc(e,t,n){switch(t.tag){case 3:Us(t),ka();break;case 5:mo(t);break;case 1:Ji(t.type)&&Qi(t);break;case 4:fo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;q(Ra,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(q(Y,Y.current&1),e=tc(e,t,n),e===null?null:e.sibling):qs(e,t,n):(q(Y,Y.current&1),t.flags|=128,null);q(Y,Y.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return $s(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),q(Y,Y.current),r)break;return null;case 22:case 23:return t.lanes=0,Rs(e,t,n)}return tc(e,t,n)}var rc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},ic=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,uo(so.current);var o=null;switch(n){case`input`:i=Ee(e,i),r=Ee(e,r),o=[];break;case`select`:i=T({},i,{value:void 0}),r=T({},r,{value:void 0}),o=[];break;case`textarea`:i=Ne(e,i),r=Ne(e,r),o=[];break;default:typeof i.onClick!=`function`&&typeof r.onClick==`function`&&(e.onclick=_i)}Ge(n,r);var s;for(u in n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null){if(u===`style`){var c=i[u];for(s in c)c.hasOwnProperty(s)&&(n||={},n[s]=``)}else u!==`dangerouslySetInnerHTML`&&u!==`children`&&u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&u!==`autoFocus`&&(a.hasOwnProperty(u)?o||=[]:(o||=[]).push(u,null))}for(u in r){var l=r[u];if(c=i?.[u],r.hasOwnProperty(u)&&l!==c&&(l!=null||c!=null)){if(u===`style`){if(c){for(s in c)!c.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||={},n[s]=``);for(s in l)l.hasOwnProperty(s)&&c[s]!==l[s]&&(n||={},n[s]=l[s])}else n||(o||=[],o.push(u,n)),n=l}else u===`dangerouslySetInnerHTML`?(l=l?l.__html:void 0,c=c?c.__html:void 0,l!=null&&c!==l&&(o||=[]).push(u,l)):u===`children`?typeof l!=`string`&&typeof l!=`number`||(o||=[]).push(u,``+l):u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&(a.hasOwnProperty(u)?(l!=null&&u===`onScroll`&&G(`scroll`,e),o||c===l||(o=[])):(o||=[]).push(u,l))}}n&&(o||=[]).push(`style`,n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},ac=function(e,t,n,r){n!==r&&(t.flags|=4)};function oc(e,t){if(!J)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function sc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function cc(e,t,n){var i=t.pendingProps;switch(va(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return sc(t),null;case 1:return Ji(t.type)&&Yi(),sc(t),null;case 3:return i=t.stateNode,po(),K(Gi),K(Wi),vo(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Da(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,xa!==null&&(yl(xa),xa=null))),sc(t),null;case 5:ho(t);var o=uo(lo.current);if(n=t.type,e!==null&&t.stateNode!=null)ic(e,t,n,i,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(r(166));return sc(t),null}if(e=uo(so.current),Da(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[Ai]=t,i[ji]=s,e=!!(t.mode&1),n){case`dialog`:G(`cancel`,i),G(`close`,i);break;case`iframe`:case`object`:case`embed`:G(`load`,i);break;case`video`:case`audio`:for(o=0;o<ei.length;o++)G(ei[o],i);break;case`source`:G(`error`,i);break;case`img`:case`image`:case`link`:G(`error`,i),G(`load`,i);break;case`details`:G(`toggle`,i);break;case`input`:De(i,s),G(`invalid`,i);break;case`select`:i._wrapperState={wasMultiple:!!s.multiple},G(`invalid`,i);break;case`textarea`:Pe(i,s),G(`invalid`,i)}for(var c in Ge(n,s),o=null,s)if(s.hasOwnProperty(c)){var l=s[c];c===`children`?typeof l==`string`?i.textContent!==l&&(!0!==s.suppressHydrationWarning&&gi(i.textContent,l,e),o=[`children`,l]):typeof l==`number`&&i.textContent!==``+l&&(!0!==s.suppressHydrationWarning&&gi(i.textContent,l,e),o=[`children`,``+l]):a.hasOwnProperty(c)&&l!=null&&c===`onScroll`&&G(`scroll`,i)}switch(n){case`input`:Ce(i),D(i,s,!0);break;case`textarea`:Ce(i),Ie(i);break;case`select`:case`option`:break;default:typeof s.onClick==`function`&&(i.onclick=_i)}i=o,t.updateQueue=i,i!==null&&(t.flags|=4)}else{c=o.nodeType===9?o:o.ownerDocument,e===`http://www.w3.org/1999/xhtml`&&(e=Le(n)),e===`http://www.w3.org/1999/xhtml`?n===`script`?(e=c.createElement(`div`),e.innerHTML=`<script><\\/script>`,e=e.removeChild(e.firstChild)):typeof i.is==`string`?e=c.createElement(n,{is:i.is}):(e=c.createElement(n),n===`select`&&(c=e,i.multiple?c.multiple=!0:i.size&&(c.size=i.size))):e=c.createElementNS(e,n),e[Ai]=t,e[ji]=i,rc(e,t,!1,!1),t.stateNode=e;a:{switch(c=Ke(n,i),n){case`dialog`:G(`cancel`,e),G(`close`,e),o=i;break;case`iframe`:case`object`:case`embed`:G(`load`,e),o=i;break;case`video`:case`audio`:for(o=0;o<ei.length;o++)G(ei[o],e);o=i;break;case`source`:G(`error`,e),o=i;break;case`img`:case`image`:case`link`:G(`error`,e),G(`load`,e),o=i;break;case`details`:G(`toggle`,e),o=i;break;case`input`:De(e,i),o=Ee(e,i),G(`invalid`,e);break;case`option`:o=i;break;case`select`:e._wrapperState={wasMultiple:!!i.multiple},o=T({},i,{value:void 0}),G(`invalid`,e);break;case`textarea`:Pe(e,i),o=Ne(e,i),G(`invalid`,e);break;default:o=i}for(s in Ge(n,o),l=o,l)if(l.hasOwnProperty(s)){var u=l[s];s===`style`?Ue(e,u):s===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,u!=null&&Be(e,u)):s===`children`?typeof u==`string`?(n!==`textarea`||u!==``)&&O(e,u):typeof u==`number`&&O(e,``+u):s!==`suppressContentEditableWarning`&&s!==`suppressHydrationWarning`&&s!==`autoFocus`&&(a.hasOwnProperty(s)?u!=null&&s===`onScroll`&&G(`scroll`,e):u!=null&&ee(e,s,u,c))}switch(n){case`input`:Ce(e),D(e,i,!1);break;case`textarea`:Ce(e),Ie(e);break;case`option`:i.value!=null&&e.setAttribute(`value`,``+be(i.value));break;case`select`:e.multiple=!!i.multiple,s=i.value,s==null?i.defaultValue!=null&&Me(e,!!i.multiple,i.defaultValue,!0):Me(e,!!i.multiple,s,!1);break;default:typeof o.onClick==`function`&&(e.onclick=_i)}switch(n){case`button`:case`input`:case`select`:case`textarea`:i=!!i.autoFocus;break a;case`img`:i=!0;break a;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return sc(t),null;case 6:if(e&&t.stateNode!=null)ac(e,t,e.memoizedProps,i);else{if(typeof i!=`string`&&t.stateNode===null)throw Error(r(166));if(n=uo(lo.current),uo(so.current),Da(t)){if(i=t.stateNode,n=t.memoizedProps,i[Ai]=t,(s=i.nodeValue!==n)&&(e=ya,e!==null))switch(e.tag){case 3:gi(i.nodeValue,n,!!(e.mode&1));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&gi(i.nodeValue,n,!!(e.mode&1))}s&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[Ai]=t,t.stateNode=i}return sc(t),null;case 13:if(K(Y),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(J&&ba!==null&&t.mode&1&&!(t.flags&128))Oa(),ka(),t.flags|=98560,s=!1;else if(s=Da(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s===null?null:s.dehydrated,!s)throw Error(r(317));s[Ai]=t}else ka(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;sc(t),s=!1}else xa!==null&&(yl(xa),xa=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||Y.current&1?qc===0&&(qc=3):kl())),t.updateQueue!==null&&(t.flags|=4),sc(t),null);case 4:return po(),e===null&&oi(t.stateNode.containerInfo),sc(t),null;case 10:return Ua(t.type._context),sc(t),null;case 17:return Ji(t.type)&&Yi(),sc(t),null;case 19:if(K(Y),s=t.memoizedState,s===null)return sc(t),null;if(i=!!(t.flags&128),c=s.rendering,c===null){if(i)oc(s,!1);else{if(qc!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=go(e),c!==null){for(t.flags|=128,oc(s,!1),i=c.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)s=n,e=i,s.flags&=14680066,c=s.alternate,c===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return q(Y,Y.current&1|2),t.child}e=e.sibling}s.tail!==null&&L()>tl&&(t.flags|=128,i=!0,oc(s,!1),t.lanes=4194304)}}else{if(!i){if(e=go(c),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),oc(s,!0),s.tail===null&&s.tailMode===`hidden`&&!c.alternate&&!J)return sc(t),null}else 2*L()-s.renderingStartTime>tl&&n!==1073741824&&(t.flags|=128,i=!0,oc(s,!1),t.lanes=4194304)}s.isBackwards?(c.sibling=t.child,t.child=c):(n=s.last,n===null?t.child=c:n.sibling=c,s.last=c)}return s.tail===null?(sc(t),null):(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=L(),t.sibling=null,n=Y.current,q(Y,i?n&1|2:n&1),t);case 22:case 23:return Tl(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?Gc&1073741824&&(sc(t),t.subtreeFlags&6&&(t.flags|=8192)):sc(t),null;case 24:return null;case 25:return null}throw Error(r(156,t.tag))}function lc(e,t){switch(va(t),t.tag){case 1:return Ji(t.type)&&Yi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return po(),K(Gi),K(Wi),vo(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ho(t),null;case 13:if(K(Y),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));ka()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return K(Y),null;case 4:return po(),null;case 10:return Ua(t.type._context),null;case 22:case 23:return Tl(),null;case 24:return null;default:return null}}var uc=!1,dc=!1,fc=typeof WeakSet==`function`?WeakSet:Set,Z=null;function pc(e,t){var n=e.ref;if(n!==null){if(typeof n==`function`)try{n(null)}catch(n){$(e,t,n)}else n.current=null}}function mc(e,t,n){try{n()}catch(n){$(e,t,n)}}var hc=!1;function gc(e,t){if(vi=pn,e=jr(),Mr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(yi={focusedElem:e,selectionRange:n},pn=!1,Z=t;Z!==null;)if(t=Z,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Z=e;else for(;Z!==null;){t=Z;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,_=h.memoizedState,v=t.stateNode;v.__reactInternalSnapshotBeforeUpdate=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:gs(t.type,g),_)}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent=``:y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(e){$(t,t.return,e)}if(e=t.sibling,e!==null){e.return=t.return,Z=e;break}Z=t.return}return h=hc,hc=!1,h}function _c(e,t,n){var r=t.updateQueue;if(r=r===null?null:r.lastEffect,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&mc(t,n,a)}i=i.next}while(i!==r)}}function vc(e,t){if(t=t.updateQueue,t=t===null?null:t.lastEffect,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function yc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t==`function`?t(e):t.current=e}}function bc(e){var t=e.alternate;t!==null&&(e.alternate=null,bc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ai],delete t[ji],delete t[Ni],delete t[Pi],delete t[Fi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function xc(e){return e.tag===5||e.tag===3||e.tag===4}function Sc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||xc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Cc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=_i));else if(r!==4&&(e=e.child,e!==null))for(Cc(e,t,n),e=e.sibling;e!==null;)Cc(e,t,n),e=e.sibling}function wc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(wc(e,t,n),e=e.sibling;e!==null;)wc(e,t,n),e=e.sibling}var Tc=null,Ec=!1;function Dc(e,t,n){for(n=n.child;n!==null;)Oc(e,t,n),n=n.sibling}function Oc(e,t,n){if(wt&&typeof wt.onCommitFiberUnmount==`function`)try{wt.onCommitFiberUnmount(Ct,n)}catch{}switch(n.tag){case 5:dc||pc(n,t);case 6:var r=Tc,i=Ec;Tc=null,Dc(e,t,n),Tc=r,Ec=i,Tc!==null&&(Ec?(e=Tc,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Tc.removeChild(n.stateNode));break;case 18:Tc!==null&&(Ec?(e=Tc,n=n.stateNode,e.nodeType===8?Ei(e.parentNode,n):e.nodeType===1&&Ei(e,n),dn(e)):Ei(Tc,n.stateNode));break;case 4:r=Tc,i=Ec,Tc=n.stateNode.containerInfo,Ec=!0,Dc(e,t,n),Tc=r,Ec=i;break;case 0:case 11:case 14:case 15:if(!dc&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&mc(n,t,o),i=i.next}while(i!==r)}Dc(e,t,n);break;case 1:if(!dc&&(pc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){$(n,t,e)}Dc(e,t,n);break;case 21:Dc(e,t,n);break;case 22:n.mode&1?(dc=(r=dc)||n.memoizedState!==null,Dc(e,t,n),dc=r):Dc(e,t,n);break;default:Dc(e,t,n)}}function kc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new fc),t.forEach(function(t){var r=Hl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Ac(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];try{var o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 5:Tc=c.stateNode,Ec=!1;break a;case 3:Tc=c.stateNode.containerInfo,Ec=!0;break a;case 4:Tc=c.stateNode.containerInfo,Ec=!0;break a}c=c.return}if(Tc===null)throw Error(r(160));Oc(o,s,a),Tc=null,Ec=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(e){$(a,t,e)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)jc(t,e),t=t.sibling}function jc(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ac(t,e),Mc(e),i&4){try{_c(3,e,e.return),vc(3,e)}catch(t){$(e,e.return,t)}try{_c(5,e,e.return)}catch(t){$(e,e.return,t)}}break;case 1:Ac(t,e),Mc(e),i&512&&n!==null&&pc(n,n.return);break;case 5:if(Ac(t,e),Mc(e),i&512&&n!==null&&pc(n,n.return),e.flags&32){var a=e.stateNode;try{O(a,``)}catch(t){$(e,e.return,t)}}if(i&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,s=n===null?o:n.memoizedProps,c=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{c===`input`&&o.type===`radio`&&o.name!=null&&Oe(a,o),Ke(c,s);var u=Ke(c,o);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];d===`style`?Ue(a,f):d===`dangerouslySetInnerHTML`?Be(a,f):d===`children`?O(a,f):ee(a,d,f,u)}switch(c){case`input`:ke(a,o);break;case`textarea`:Fe(a,o);break;case`select`:var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m==null?p!==!!o.multiple&&(o.defaultValue==null?Me(a,!!o.multiple,o.multiple?[]:``,!1):Me(a,!!o.multiple,o.defaultValue,!0)):Me(a,!!o.multiple,m,!1)}a[ji]=o}catch(t){$(e,e.return,t)}}break;case 6:if(Ac(t,e),Mc(e),i&4){if(e.stateNode===null)throw Error(r(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(t){$(e,e.return,t)}}break;case 3:if(Ac(t,e),Mc(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{dn(t.containerInfo)}catch(t){$(e,e.return,t)}break;case 4:Ac(t,e),Mc(e);break;case 13:Ac(t,e),Mc(e),a=e.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||(el=L())),i&4&&kc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(dc=(u=dc)||d,Ac(t,e),dc=u):Ac(t,e),Mc(e),i&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(Z=e,d=e.child;d!==null;){for(f=Z=d;Z!==null;){switch(p=Z,m=p.child,p.tag){case 0:case 11:case 14:case 15:_c(4,p,p.return);break;case 1:pc(p,p.return);var h=p.stateNode;if(typeof h.componentWillUnmount==`function`){i=p,n=p.return;try{t=i,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){$(i,n,e)}}break;case 5:pc(p,p.return);break;case 22:if(p.memoizedState!==null){Ic(f);continue}}m===null?Ic(f):(m.return=p,Z=m)}d=d.sibling}a:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{a=f.stateNode,u?(o=a.style,typeof o.setProperty==`function`?o.setProperty(`display`,`none`,`important`):o.display=`none`):(c=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty(`display`)?l.display:null,c.style.display=k(`display`,s))}catch(t){$(e,e.return,t)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?``:f.memoizedProps}catch(t){$(e,e.return,t)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break a;for(;f.sibling===null;){if(f.return===null||f.return===e)break a;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Ac(t,e),Mc(e),i&4&&kc(e);break;case 21:break;default:Ac(t,e),Mc(e)}}function Mc(e){var t=e.flags;if(t&2){try{a:{for(var n=e.return;n!==null;){if(xc(n)){var i=n;break a}n=n.return}throw Error(r(160))}switch(i.tag){case 5:var a=i.stateNode;i.flags&32&&(O(a,``),i.flags&=-33),wc(e,Sc(e),a);break;case 3:case 4:var o=i.stateNode.containerInfo;Cc(e,Sc(e),o);break;default:throw Error(r(161))}}catch(t){$(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Nc(e,t,n){Z=e,Pc(e,t,n)}function Pc(e,t,n){for(var r=!!(e.mode&1);Z!==null;){var i=Z,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||uc;if(!o){var s=i.alternate,c=s!==null&&s.memoizedState!==null||dc;s=uc;var l=dc;if(uc=o,(dc=c)&&!l)for(Z=i;Z!==null;)o=Z,c=o.child,o.tag===22&&o.memoizedState!==null||c===null?Lc(i):(c.return=o,Z=c);for(;a!==null;)Z=a,Pc(a,t,n),a=a.sibling;Z=i,uc=s,dc=l}Fc(e,t,n)}else i.subtreeFlags&8772&&a!==null?(a.return=i,Z=a):Fc(e,t,n)}}function Fc(e){for(;Z!==null;){var t=Z;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:dc||vc(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!dc){if(n===null)i.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:gs(t.type,n.memoizedProps);i.componentDidUpdate(a,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}}var o=t.updateQueue;o!==null&&ao(t,o,i);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ao(t,s,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;var l=t.memoizedProps;switch(t.type){case`button`:case`input`:case`select`:case`textarea`:l.autoFocus&&n.focus();break;case`img`:l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&dn(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}dc||t.flags&512&&yc(t)}catch(e){$(t,t.return,e)}}if(t===e){Z=null;break}if(n=t.sibling,n!==null){n.return=t.return,Z=n;break}Z=t.return}}function Ic(e){for(;Z!==null;){var t=Z;if(t===e){Z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Z=n;break}Z=t.return}}function Lc(e){for(;Z!==null;){var t=Z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{vc(4,t)}catch(e){$(t,n,e)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==`function`){var i=t.return;try{r.componentDidMount()}catch(e){$(t,i,e)}}var a=t.return;try{yc(t)}catch(e){$(t,a,e)}break;case 5:var o=t.return;try{yc(t)}catch(e){$(t,o,e)}}}catch(e){$(t,t.return,e)}if(t===e){Z=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Z=s;break}Z=t.return}}var Rc=Math.ceil,zc=S.ReactCurrentDispatcher,Bc=S.ReactCurrentOwner,Vc=S.ReactCurrentBatchConfig,Q=0,Hc=null,Uc=null,Wc=0,Gc=0,Kc=Hi(0),qc=0,Jc=null,Yc=0,Xc=0,Zc=0,Qc=null,$c=null,el=0,tl=1/0,nl=null,rl=!1,il=null,al=null,ol=!1,sl=null,cl=0,ll=0,ul=null,dl=-1,fl=0;function pl(){return Q&6?L():dl===-1?dl=L():dl}function ml(e){return e.mode&1?Q&2&&Wc!==0?Wc&-Wc:ja.transition===null?(e=V,e===0?(e=window.event,e=e===void 0?16:yn(e.type),e):e):(fl===0&&(fl=It()),fl):1}function hl(e,t,n,i){if(50<ll)throw ll=0,ul=null,Error(r(185));Rt(e,n,i),(!(Q&2)||e!==Hc)&&(e===Hc&&(!(Q&2)&&(Xc|=n),qc===4&&xl(e,Wc)),gl(e,i),n===1&&Q===0&&!(t.mode&1)&&(tl=L()+500,ta&&aa()))}function gl(e,t){var n=e.callbackNode;Pt(e,t);var r=B(e,e===Hc?Wc:0);if(r===0)n!==null&&gt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&gt(n),t===1)e.tag===0?ia(Sl.bind(null,e)):ra(Sl.bind(null,e)),wi(function(){!(Q&6)&&aa()}),n=null;else{switch(Vt(r)){case 1:n=R;break;case 4:n=z;break;case 16:n=bt;break;case 536870912:n=St;break;default:n=bt}n=Wl(n,_l.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function _l(e,t){if(dl=-1,fl=0,Q&6)throw Error(r(327));var n=e.callbackNode;if(Ll()&&e.callbackNode!==n)return null;var i=B(e,e===Hc?Wc:0);if(i===0)return null;if(i&30||(i&e.expiredLanes)!==0||t)t=Al(e,i);else{t=i;var a=Q;Q|=2;var o=Ol();(Hc!==e||Wc!==t)&&(nl=null,tl=L()+500,El(e,t));do try{Ml();break}catch(t){Dl(e,t)}while(1);Ha(),zc.current=o,Q=a,Uc===null?(Hc=null,Wc=0,t=qc):t=0}if(t!==0){if(t===2&&(a=Ft(e),a!==0&&(i=a,t=vl(e,a))),t===1)throw n=Jc,El(e,0),xl(e,i),gl(e,L()),n;if(t===6)xl(e,i);else{if(a=e.current.alternate,!(i&30)&&!bl(a)&&(t=Al(e,i),t===2&&(o=Ft(e),o!==0&&(i=o,t=vl(e,o))),t===1))throw n=Jc,El(e,0),xl(e,i),gl(e,L()),n;switch(e.finishedWork=a,e.finishedLanes=i,t){case 0:case 1:throw Error(r(345));case 2:Fl(e,$c,nl);break;case 3:if(xl(e,i),(i&130023424)===i&&(t=el+500-L(),10<t)){if(B(e,0)!==0)break;if(a=e.suspendedLanes,(a&i)!==i){pl(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=xi(Fl.bind(null,e,$c,nl),t);break}Fl(e,$c,nl);break;case 4:if(xl(e,i),(i&4194240)===i)break;for(t=e.eventTimes,a=-1;0<i;){var s=31-Et(i);o=1<<s,s=t[s],s>a&&(a=s),i&=~o}if(i=a,i=L()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Rc(i/1960))-i,10<i){e.timeoutHandle=xi(Fl.bind(null,e,$c,nl),i);break}Fl(e,$c,nl);break;case 5:Fl(e,$c,nl);break;default:throw Error(r(329))}}}return gl(e,L()),e.callbackNode===n?_l.bind(null,e):null}function vl(e,t){var n=Qc;return e.current.memoizedState.isDehydrated&&(El(e,t).flags|=256),e=Al(e,t),e!==2&&(t=$c,$c=n,t!==null&&yl(t)),e}function yl(e){$c===null?$c=e:$c.push.apply($c,e)}function bl(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Er(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function xl(e,t){for(t&=~Zc,t&=~Xc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Et(t),r=1<<n;e[n]=-1,t&=~r}}function Sl(e){if(Q&6)throw Error(r(327));Ll();var t=B(e,0);if(!(t&1))return gl(e,L()),null;var n=Al(e,t);if(e.tag!==0&&n===2){var i=Ft(e);i!==0&&(t=i,n=vl(e,i))}if(n===1)throw n=Jc,El(e,0),xl(e,t),gl(e,L()),n;if(n===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Fl(e,$c,nl),gl(e,L()),null}function Cl(e,t){var n=Q;Q|=1;try{return e(t)}finally{Q=n,Q===0&&(tl=L()+500,ta&&aa())}}function wl(e){sl!==null&&sl.tag===0&&!(Q&6)&&Ll();var t=Q;Q|=1;var n=Vc.transition,r=V;try{if(Vc.transition=null,V=1,e)return e()}finally{V=r,Vc.transition=n,Q=t,!(Q&6)&&aa()}}function Tl(){Gc=Kc.current,K(Kc)}function El(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Si(n)),Uc!==null)for(n=Uc.return;n!==null;){var r=n;switch(va(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Yi();break;case 3:po(),K(Gi),K(Wi),vo();break;case 5:ho(r);break;case 4:po();break;case 13:K(Y);break;case 19:K(Y);break;case 10:Ua(r.type._context);break;case 22:case 23:Tl()}n=n.return}if(Hc=e,Uc=e=Yl(e.current,null),Wc=Gc=t,qc=0,Jc=null,Zc=Xc=Yc=0,$c=Qc=null,qa!==null){for(t=0;t<qa.length;t++)if(n=qa[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}qa=null}return e}function Dl(e,t){do{var n=Uc;try{if(Ha(),yo.current=fs,wo){for(var i=X.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}wo=!1}if(xo=0,Co=So=X=null,To=!1,Eo=0,Bc.current=null,n===null||n.return===null){qc=1,Jc=t,Uc=null;break}a:{var o=e,s=n.return,c=n,l=t;if(t=Wc,c.flags|=32768,typeof l==`object`&&l&&typeof l.then==`function`){var u=l,d=c,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=As(s);if(m!==null){m.flags&=-257,js(m,s,c,o,t),m.mode&1&&ks(o,u,t),t=m,l=u;var h=t.updateQueue;if(h===null){var g=new Set;g.add(l),t.updateQueue=g}else h.add(l);break a}if(!(t&1)){ks(o,u,t),kl();break a}l=Error(r(426))}else if(J&&c.mode&1){var _=As(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),js(_,s,c,o,t),Aa(Cs(l,c));break a}}o=l=Cs(l,c),qc!==4&&(qc=2),Qc===null?Qc=[o]:Qc.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=Ds(o,l,t);ro(o,v);break a;case 1:c=l;var y=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError==`function`||b!==null&&typeof b.componentDidCatch==`function`&&(al===null||!al.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=Os(o,c,t);ro(o,x);break a}}o=o.return}while(o!==null)}Pl(n)}catch(e){t=e,Uc===n&&n!==null&&(Uc=n=n.return);continue}break}while(1)}function Ol(){var e=zc.current;return zc.current=fs,e===null?fs:e}function kl(){(qc===0||qc===3||qc===2)&&(qc=4),Hc===null||!(Yc&268435455)&&!(Xc&268435455)||xl(Hc,Wc)}function Al(e,t){var n=Q;Q|=2;var i=Ol();(Hc!==e||Wc!==t)&&(nl=null,El(e,t));do try{jl();break}catch(t){Dl(e,t)}while(1);if(Ha(),Q=n,zc.current=i,Uc!==null)throw Error(r(261));return Hc=null,Wc=0,qc}function jl(){for(;Uc!==null;)Nl(Uc)}function Ml(){for(;Uc!==null&&!_t();)Nl(Uc)}function Nl(e){var t=Ul(e.alternate,e,Gc);e.memoizedProps=e.pendingProps,t===null?Pl(e):Uc=t,Bc.current=null}function Pl(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=lc(n,t),n!==null){n.flags&=32767,Uc=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{qc=6,Uc=null;return}}else if(n=cc(n,t,Gc),n!==null){Uc=n;return}if(t=t.sibling,t!==null){Uc=t;return}Uc=t=e}while(t!==null);qc===0&&(qc=5)}function Fl(e,t,n){var r=V,i=Vc.transition;try{Vc.transition=null,V=1,Il(e,t,n,r)}finally{Vc.transition=i,V=r}return null}function Il(e,t,n,i){do Ll();while(sl!==null);if(Q&6)throw Error(r(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(zt(e,o),e===Hc&&(Uc=Hc=null,Wc=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ol||(ol=!0,Wl(bt,function(){return Ll(),null})),o=!!(n.flags&15990),n.subtreeFlags&15990||o){o=Vc.transition,Vc.transition=null;var s=V;V=1;var c=Q;Q|=4,Bc.current=null,gc(e,n),jc(n,e),Nr(yi),pn=!!vi,yi=vi=null,e.current=n,Nc(n,e,a),vt(),Q=c,V=s,Vc.transition=o}else e.current=n;if(ol&&(ol=!1,sl=e,cl=a),o=e.pendingLanes,o===0&&(al=null),Tt(n.stateNode,i),gl(e,L()),t!==null)for(i=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],i(a.value,{componentStack:a.stack,digest:a.digest});if(rl)throw rl=!1,e=il,il=null,e;return cl&1&&e.tag!==0&&Ll(),o=e.pendingLanes,o&1?e===ul?ll++:(ll=0,ul=e):ll=0,aa(),null}function Ll(){if(sl!==null){var e=Vt(cl),t=Vc.transition,n=V;try{if(Vc.transition=null,V=16>e?16:e,sl===null)var i=!1;else{if(e=sl,sl=null,cl=0,Q&6)throw Error(r(331));var a=Q;for(Q|=4,Z=e.current;Z!==null;){var o=Z,s=o.child;if(Z.flags&16){var c=o.deletions;if(c!==null){for(var l=0;l<c.length;l++){var u=c[l];for(Z=u;Z!==null;){var d=Z;switch(d.tag){case 0:case 11:case 15:_c(8,d,o)}var f=d.child;if(f!==null)f.return=d,Z=f;else for(;Z!==null;){d=Z;var p=d.sibling,m=d.return;if(bc(d),d===u){Z=null;break}if(p!==null){p.return=m,Z=p;break}Z=m}}}var h=o.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var _=g.sibling;g.sibling=null,g=_}while(g!==null)}}Z=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,Z=s;else b:for(;Z!==null;){if(o=Z,o.flags&2048)switch(o.tag){case 0:case 11:case 15:_c(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,Z=v;break b}Z=o.return}}var y=e.current;for(Z=y;Z!==null;){s=Z;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,Z=b;else b:for(s=y;Z!==null;){if(c=Z,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:vc(9,c)}}catch(e){$(c,c.return,e)}if(c===s){Z=null;break b}var x=c.sibling;if(x!==null){x.return=c.return,Z=x;break b}Z=c.return}}if(Q=a,aa(),wt&&typeof wt.onPostCommitFiberRoot==`function`)try{wt.onPostCommitFiberRoot(Ct,e)}catch{}i=!0}return i}finally{V=n,Vc.transition=t}}return!1}function Rl(e,t,n){t=Cs(n,t),t=Ds(e,t,1),e=to(e,t,1),t=pl(),e!==null&&(Rt(e,1,t),gl(e,t))}function $(e,t,n){if(e.tag===3)Rl(e,e,n);else for(;t!==null;){if(t.tag===3){Rl(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(al===null||!al.has(r))){e=Cs(n,e),e=Os(t,e,1),t=to(t,e,1),e=pl(),t!==null&&(Rt(t,1,e),gl(t,e));break}}t=t.return}}function zl(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=pl(),e.pingedLanes|=e.suspendedLanes&n,Hc===e&&(Wc&n)===n&&(qc===4||qc===3&&(Wc&130023424)===Wc&&500>L()-el?El(e,0):Zc|=n),gl(e,t)}function Bl(e,t){t===0&&(e.mode&1?(t=jt,jt<<=1,!(jt&130023424)&&(jt=4194304)):t=1);var n=pl();e=Xa(e,t),e!==null&&(Rt(e,t,n),gl(e,n))}function Vl(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bl(e,n)}function Hl(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(r(314))}i!==null&&i.delete(t),Bl(e,n)}var Ul=function(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps||Gi.current)Ns=!0;else{if((e.lanes&n)===0&&!(t.flags&128))return Ns=!1,nc(e,t,n);Ns=!!(e.flags&131072)}}else Ns=!1,J&&t.flags&1048576&&ga(t,la,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;ec(e,t),e=t.pendingProps;var a=qi(t,Wi.current);Ga(t,n),a=Ao(null,t,i,e,a,n);var o=jo();return t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ji(i)?(o=!0,Qi(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Qa(t),a.updater=vs,t.stateNode=a,a._reactInternals=t,Ss(t,i,e,n),t=Hs(null,t,i,!0,o,n)):(t.tag=0,J&&o&&_a(t),Ps(null,t,a,n),t=t.child),t;case 16:i=t.elementType;a:{switch(ec(e,t),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=Jl(i),e=gs(i,e),a){case 0:t=Bs(null,t,i,e,n);break a;case 1:t=Vs(null,t,i,e,n);break a;case 11:t=Fs(null,t,i,e,n);break a;case 14:t=Is(null,t,i,gs(i.type,e),n);break a}throw Error(r(306,i,``))}return t;case 0:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:gs(i,a),Bs(e,t,i,a,n);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:gs(i,a),Vs(e,t,i,a,n);case 3:a:{if(Us(t),e===null)throw Error(r(387));i=t.pendingProps,o=t.memoizedState,a=o.element,$a(e,t),io(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated){if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Cs(Error(r(423)),t),t=Ws(e,t,i,n,a);break a}if(i!==a){a=Cs(Error(r(424)),t),t=Ws(e,t,i,n,a);break a}for(ba=Di(t.stateNode.containerInfo.firstChild),ya=t,J=!0,xa=null,n=La(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ka(),i===a){t=tc(e,t,n);break a}Ps(e,t,i,n)}t=t.child}return t;case 5:return mo(t),e===null&&Ta(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,bi(i,a)?s=null:o!==null&&bi(i,o)&&(t.flags|=32),zs(e,t),Ps(e,t,s,n),t.child;case 6:return e===null&&Ta(t),null;case 13:return qs(e,t,n);case 4:return fo(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ia(t,null,i,n):Ps(e,t,i,n),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:gs(i,a),Fs(e,t,i,a,n);case 7:return Ps(e,t,t.pendingProps,n),t.child;case 8:return Ps(e,t,t.pendingProps.children,n),t.child;case 12:return Ps(e,t,t.pendingProps.children,n),t.child;case 10:a:{if(i=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,q(Ra,i._currentValue),i._currentValue=s,o!==null){if(Er(o.value,s)){if(o.children===a.children&&!Gi.current){t=tc(e,t,n);break a}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){s=o.child;for(var l=c.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=eo(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Wa(o.return,n,t),c.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(r(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),Wa(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}}Ps(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,Ga(t,n),a=Ka(a),i=i(a),t.flags|=1,Ps(e,t,i,n),t.child;case 14:return i=t.type,a=gs(i,t.pendingProps),a=gs(i.type,a),Is(e,t,i,a,n);case 15:return Ls(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:gs(i,a),ec(e,t),t.tag=1,Ji(i)?(e=!0,Qi(t)):e=!1,Ga(t,n),bs(t,i,a),Ss(t,i,a,n),Hs(null,t,i,!0,e,n);case 19:return $s(e,t,n);case 22:return Rs(e,t,n)}throw Error(r(156,t.tag))};function Wl(e,t){return ht(e,t)}function Gl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Kl(e,t,n,r){return new Gl(e,t,n,r)}function ql(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jl(e){if(typeof e==`function`)return+!!ql(e);if(e!=null){if(e=e.$$typeof,e===se)return 11;if(e===w)return 14}return 2}function Yl(e,t){var n=e.alternate;return n===null?(n=Kl(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xl(e,t,n,i,a,o){var s=2;if(i=e,typeof e==`function`)ql(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case ne:return Zl(n.children,a,o,t);case re:s=8,a|=8;break;case ie:return e=Kl(12,n,t,a|2),e.elementType=ie,e.lanes=o,e;case ce:return e=Kl(13,n,t,a),e.elementType=ce,e.lanes=o,e;case le:return e=Kl(19,n,t,a),e.elementType=le,e.lanes=o,e;case de:return Ql(n,a,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case ae:s=10;break a;case oe:s=9;break a;case se:s=11;break a;case w:s=14;break a;case ue:s=16,i=null;break a}throw Error(r(130,e==null?e:typeof e,``))}return t=Kl(s,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function Zl(e,t,n,r){return e=Kl(7,e,r,t),e.lanes=n,e}function Ql(e,t,n,r){return e=Kl(22,e,r,t),e.elementType=de,e.lanes=n,e.stateNode={isHidden:!1},e}function $l(e,t,n){return e=Kl(6,e,null,t),e.lanes=n,e}function eu(e,t,n){return t=Kl(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Lt(0),this.expirationTimes=Lt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function nu(e,t,n,r,i,a,o,s,c){return e=new tu(e,t,n,s,c),t===1?(t=1,!0===a&&(t|=8)):t=0,a=Kl(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Qa(a),e}function ru(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:te,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function iu(e){if(!e)return Ui;e=e._reactInternals;a:{if(lt(e)!==e||e.tag!==1)throw Error(r(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break a;case 1:if(Ji(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break a}}t=t.return}while(t!==null);throw Error(r(171))}if(e.tag===1){var n=e.type;if(Ji(n))return Zi(e,n,t)}return t}function au(e,t,n,r,i,a,o,s,c){return e=nu(n,r,!0,e,i,a,o,s,c),e.context=iu(null),n=e.current,r=pl(),i=ml(n),a=eo(r,i),a.callback=t??null,to(n,a,i),e.current.lanes=i,Rt(e,i,r),gl(e,r),e}function ou(e,t,n,r){var i=t.current,a=pl(),o=ml(i);return n=iu(n),t.context===null?t.context=n:t.pendingContext=n,t=eo(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=to(i,t,o),e!==null&&(hl(e,i,o,a),no(e,i,o)),o}function su(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function cu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function lu(e,t){cu(e,t),(e=e.alternate)&&cu(e,t)}function uu(){return null}var du=typeof reportError==`function`?reportError:function(e){console.error(e)};function fu(e){this._internalRoot=e}pu.prototype.render=fu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));ou(e,t,null,null)},pu.prototype.unmount=fu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;wl(function(){ou(null,e,null,null)}),t[Mi]=null}};function pu(e){this._internalRoot=e}pu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Gt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<en.length&&t!==0&&t<en[n].priority;n++);en.splice(n,0,e),n===0&&on(e)}};function mu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function hu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function gu(){}function _u(e,t,n,r,i){if(i){if(typeof r==`function`){var a=r;r=function(){var e=su(o);a.call(e)}}var o=au(t,r,e,0,null,!1,!1,``,gu);return e._reactRootContainer=o,e[Mi]=o.current,oi(e.nodeType===8?e.parentNode:e),wl(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r==`function`){var s=r;r=function(){var e=su(c);s.call(e)}}var c=nu(e,0,!1,null,null,!1,!1,``,gu);return e._reactRootContainer=c,e[Mi]=c.current,oi(e.nodeType===8?e.parentNode:e),wl(function(){ou(t,c,n,r)}),c}function vu(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i==`function`){var s=i;i=function(){var e=su(o);s.call(e)}}ou(t,o,e,i)}else o=_u(n,t,e,i,r);return su(o)}Ht=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Mt(t.pendingLanes);n!==0&&(Bt(t,n|1),gl(t,L()),!(Q&6)&&(tl=L()+500,aa()))}break;case 13:wl(function(){var t=Xa(e,1);t!==null&&hl(t,e,1,pl())}),lu(e,1)}},Ut=function(e){if(e.tag===13){var t=Xa(e,134217728);t!==null&&hl(t,e,134217728,pl()),lu(e,134217728)}},Wt=function(e){if(e.tag===13){var t=ml(e),n=Xa(e,t);n!==null&&hl(n,e,t,pl()),lu(e,t)}},Gt=function(){return V},Kt=function(e,t){var n=V;try{return V=e,t()}finally{V=n}},A=function(e,t,n){switch(t){case`input`:if(ke(e,n),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name=`+JSON.stringify(``+t)+`][type=\"radio\"]`),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=zi(i);if(!a)throw Error(r(90));we(i),ke(i,a)}}}break;case`textarea`:Fe(e,n);break;case`select`:t=n.value,t!=null&&Me(e,!!n.multiple,t,!1)}},Qe=Cl,$e=wl;var yu={usingClientEntryPoint:!1,Events:[Li,Ri,zi,M,Ze,Cl]},bu={findFiberByHostInstance:Ii,bundleType:0,version:`18.3.1`,rendererPackageName:`react-dom`},xu={bundleType:bu.bundleType,version:bu.version,rendererPackageName:bu.rendererPackageName,rendererConfig:bu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:S.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=pt(e),e===null?null:e.stateNode},findFiberByHostInstance:bu.findFiberByHostInstance||uu,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:`18.3.1-next-f1338f8080-20240426`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Su.isDisabled&&Su.supportsFiber)try{Ct=Su.inject(xu),wt=Su}catch{}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yu,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!mu(t))throw Error(r(200));return ru(e,t,null,n)},e.createRoot=function(e,t){if(!mu(e))throw Error(r(299));var n=!1,i=``,a=du;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=nu(e,1,!1,null,null,n,!1,i,a),e[Mi]=t.current,oi(e.nodeType===8?e.parentNode:e),new fu(t)},e.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(r(188)):(e=Object.keys(e).join(`,`),Error(r(268,e)));return e=pt(t),e=e===null?null:e.stateNode,e},e.flushSync=function(e){return wl(e)},e.hydrate=function(e,t,n){if(!hu(t))throw Error(r(200));return vu(null,e,t,!0,n)},e.hydrateRoot=function(e,t,n){if(!mu(e))throw Error(r(405));var i=n!=null&&n.hydratedSources||null,a=!1,o=``,s=du;if(n!=null&&(!0===n.unstable_strictMode&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=au(t,null,e,1,n??null,a,!1,o,s),e[Mi]=t.current,oi(e),i)for(e=0;e<i.length;e++)n=i[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new pu(t)},e.render=function(e,t,n){if(!hu(t))throw Error(r(200));return vu(null,e,t,!1,n)},e.unmountComponentAtNode=function(e){if(!hu(e))throw Error(r(40));return e._reactRootContainer?(wl(function(){vu(null,null,e,!1,function(){e._reactRootContainer=null,e[Mi]=null})}),!0):!1},e.unstable_batchedUpdates=Cl,e.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!hu(n))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return vu(e,t,n,!1,i)},e.version=`18.3.1-next-f1338f8080-20240426`})),m=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=p()})),h=o((e=>{var t=m();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot}))(),g=c(u(),1);let _=(0,g.createContext)(null);function v({actions:e,dependencies:t=[],handoff:n,summary:r}){let i=(0,g.useContext)(_),a=(0,g.useRef)(null),o=(0,g.useRef)([]),s=(0,g.useRef)(0);(t.some((e,t)=>e!==o.current[t])||t.length!==o.current.length)&&(s.current++,o.current=t);let c=t;a.current={revision:String(s.current),actions:e,...typeof r==`function`?{summary:r}:{},handoff:typeof n==`function`?n:()=>({kind:`native-control-signals`,signals:c.map((e,t)=>({index:t,value:e}))})},(0,g.useLayoutEffect)(()=>i?.register(()=>a.current),[i])}let y=[`M3 8V5a2 2 0 0 1 2-2h3M16 3h3a2 2 0 0 1 2 2v3M21 16v3a2 2 0 0 1-2 2h-3M8 21H5a2 2 0 0 1-2-2v-3`,`M6.5 12s2.2-3.8 5.5-3.8 5.5 3.8 5.5 3.8-2.2 3.8-5.5 3.8S6.5 12 6.5 12Z`],b={cx:12,cy:12,r:1.8},x=[`M10.3 17.5H4.5a2 2 0 0 1-2-2v-10a2 2 0 0 1 2-2h13a2 2 0 0 1 2 2v7.7`,`M2.5 7h17M6 5.25h10`,`M6 9.5h4a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1Z`,`M5.3 14.2l2.2-2.4 1.6 1.5 1.1-1M13.5 10h3.5M13.5 12.3h2`,`M12 18s2-3.2 5.5-3.2S23 18 23 18s-2 3.2-5.5 3.2S12 18 12 18Z`],ee={cx:17.5,cy:18,r:1.3};var S=o((e=>{var t=u(),n=Symbol.for(`react.element`),r=Symbol.for(`react.fragment`),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)i.call(t,s)&&!o.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:a.current}}e.Fragment=r,e.jsx=s,e.jsxs=s})),C=o(((e,t)=>{t.exports=S()}))();function te(e){switch(e){case`minus`:return(0,C.jsx)(`path`,{d:`M5 12h14`});case`messageCircle`:return(0,C.jsx)(`path`,{d:`M21 11.5a8.4 8.4 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.4 8.4 0 0 1-3.8-.9L3 21l1.9-5.7a8.4 8.4 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.4 8.4 0 0 1 3.8-.9h.5a8.5 8.5 0 0 1 8 8z`});case`arrowLeft`:return(0,C.jsx)(`path`,{d:`M20 12H4M11 5l-7 7 7 7`});case`link`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M10 13a5 5 0 0 0 7 .5l3-3a5 5 0 0 0-7-7l-2 2`}),(0,C.jsx)(`path`,{d:`M14 11a5 5 0 0 0-7-.5l-3 3a5 5 0 0 0 7 7l2-2`})]});case`unlink`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`m18.8 12.3 1.7-1.7a5 5 0 0 0-7.1-7.1l-1.7 1.7`}),(0,C.jsx)(`path`,{d:`m5.2 11.7-1.7 1.7a5 5 0 0 0 7.1 7.1l1.7-1.7`}),(0,C.jsx)(`path`,{d:`M8 2v3M2 8h3M16 19v3M19 16h3`})]});case`copy`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`rect`,{x:`9`,y:`9`,width:`12`,height:`12`,rx:`2`}),(0,C.jsx)(`path`,{d:`M15 9V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h4`})]});case`arrowUp`:return(0,C.jsx)(`path`,{d:`M12 20V4M5 11l7-7 7 7`});case`star`:return(0,C.jsx)(`path`,{d:`M12 3.5l2.6 5.3 5.9.9-4.25 4.15 1 5.85L12 16.95 6.75 19.7l1-5.85L3.5 9.7l5.9-.9z`});case`arrowUpRight`:return(0,C.jsx)(`path`,{d:`M7 17 17 7M8 7h9v9`});case`arrowDown`:return(0,C.jsx)(`path`,{d:`M12 4v16M5 13l7 7 7-7`});case`thumbsUp`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M7 10v11H3V10Z`}),(0,C.jsx)(`path`,{d:`M7 18c2 0 3 3 7 3h2.5a2 2 0 0 0 1.9-1.4l2.4-7A2 2 0 0 0 18.9 10H14l.7-3.5A3 3 0 0 0 11.8 3L7 10Z`})]});case`thumbsDown`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M7 14V3H3v11Z`}),(0,C.jsx)(`path`,{d:`M7 6c2 0 3-3 7-3h2.5a2 2 0 0 1 1.9 1.4l2.4 7a2 2 0 0 1-1.9 2.6H14l.7 3.5a3 3 0 0 1-2.9 3.5L7 14Z`})]});case`undo`:return(0,C.jsx)(`path`,{d:`M3 10h11a7 7 0 0 1 0 14M3 10l5-5M3 10l5 5`,transform:`translate(0 -3)`});case`redo`:return(0,C.jsx)(`path`,{d:`M21 7H10a7 7 0 0 0 0 14M21 7l-5-5M21 7l-5 5`});case`remix`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M5 5h5a5 5 0 0 1 5 5v9`}),(0,C.jsx)(`path`,{d:`m11 15 4 4 4-4`}),(0,C.jsx)(`path`,{d:`M5 19h2`}),(0,C.jsx)(`circle`,{cx:`5`,cy:`5`,r:`2`}),(0,C.jsx)(`circle`,{cx:`5`,cy:`19`,r:`2`})]});case`more`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`circle`,{cx:`5`,cy:`12`,r:`1`}),(0,C.jsx)(`circle`,{cx:`12`,cy:`12`,r:`1`}),(0,C.jsx)(`circle`,{cx:`19`,cy:`12`,r:`1`})]});case`palette`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`circle`,{cx:`13.5`,cy:`6.5`,r:`.6`,fill:`currentColor`,stroke:`none`}),(0,C.jsx)(`circle`,{cx:`17`,cy:`11`,r:`.6`,fill:`currentColor`,stroke:`none`}),(0,C.jsx)(`circle`,{cx:`8.5`,cy:`7.5`,r:`.6`,fill:`currentColor`,stroke:`none`}),(0,C.jsx)(`circle`,{cx:`6.5`,cy:`12.5`,r:`.6`,fill:`currentColor`,stroke:`none`}),(0,C.jsx)(`path`,{d:`M12 3a9 9 0 0 0 0 18c1 0 1.6-.8 1.6-1.6 0-.5-.2-.8-.4-1.1-.3-.3-.4-.6-.4-1.1A1.6 1.6 0 0 1 14.3 15h1.9A4.8 4.8 0 0 0 21 10.2C21 6 16.9 3 12 3Z`})]});case`lock`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`rect`,{x:`5`,y:`11`,width:`14`,height:`10`,rx:`2`}),(0,C.jsx)(`path`,{d:`M8 11V7a4 4 0 0 1 8 0v4`})]});case`unlock`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`rect`,{x:`5`,y:`11`,width:`14`,height:`10`,rx:`2`}),(0,C.jsx)(`path`,{d:`M8 11V7a4 4 0 0 1 7.9-1`})]});case`pushpin`:return(0,C.jsxs)(`g`,{transform:`rotate(35 12 12)`,children:[(0,C.jsx)(`path`,{d:`M8 3h8l-1 6 3 3v2H6v-2l3-3Z`}),(0,C.jsx)(`path`,{d:`M12 14v7`})]});case`pushpinFilled`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M8 3h8l-1 6 3 3v2H6v-2l3-3Z`,fill:`currentColor`}),(0,C.jsx)(`path`,{d:`M12 14v7`})]});case`pin`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M12 21s7-5.7 7-11a7 7 0 0 0-14 0c0 5.3 7 11 7 11Z`}),(0,C.jsx)(`circle`,{cx:`12`,cy:`10`,r:`2.5`})]});case`user`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`circle`,{cx:`12`,cy:`8`,r:`4`}),(0,C.jsx)(`path`,{d:`M5 21a7 7 0 0 1 14 0`})]});case`image`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`}),(0,C.jsx)(`circle`,{cx:`8.5`,cy:`8.5`,r:`1.5`}),(0,C.jsx)(`path`,{d:`m21 15-5-5L5 21`})]});case`imageOff`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M2 2l20 20`}),(0,C.jsx)(`path`,{d:`M10.41 10.41a2 2 0 1 1-2.83-2.83`}),(0,C.jsx)(`path`,{d:`M13.5 13.5 6 21`}),(0,C.jsx)(`path`,{d:`m18 12 3 3`}),(0,C.jsx)(`path`,{d:`M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59`}),(0,C.jsx)(`path`,{d:`M21 15V5a2 2 0 0 0-2-2H9`})]});case`film`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`}),(0,C.jsx)(`path`,{d:`M7 3v18M17 3v18M3 8h4M3 16h4M17 8h4M17 16h4`})]});case`folder`:return(0,C.jsx)(`path`,{d:`M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z`});case`list`:return(0,C.jsx)(`path`,{d:`M9 6h12M9 12h12M9 18h12M4 6h.01M4 12h.01M4 18h.01`});case`grid`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`rect`,{x:`3`,y:`3`,width:`7`,height:`7`,rx:`1.5`}),(0,C.jsx)(`rect`,{x:`14`,y:`3`,width:`7`,height:`7`,rx:`1.5`}),(0,C.jsx)(`rect`,{x:`3`,y:`14`,width:`7`,height:`7`,rx:`1.5`}),(0,C.jsx)(`rect`,{x:`14`,y:`14`,width:`7`,height:`7`,rx:`1.5`})]});case`zap`:return(0,C.jsx)(`path`,{d:`M13 2 4 14h7l-1 8 9-12h-7Z`});case`plug`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M12 22v-5M9 8V2M15 8V2`}),(0,C.jsx)(`path`,{d:`M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z`})]});case`book`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M4 19.5A2.5 2.5 0 0 1 6.5 17H20`}),(0,C.jsx)(`path`,{d:`M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z`})]});case`bookOpen`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M12 7v14`}),(0,C.jsx)(`path`,{d:`M3 5v14h6a3 3 0 0 1 3 3 3 3 0 0 1 3-3h6V5h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3Z`})]});case`input`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`}),(0,C.jsx)(`path`,{d:`m10 17 5-5-5-5`}),(0,C.jsx)(`path`,{d:`M15 12H3`})]});case`upload`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M12 16V4M7 9l5-5 5 5`}),(0,C.jsx)(`path`,{d:`M5 20h14`})]});case`download`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M12 4v12M7 11l5 5 5-5`}),(0,C.jsx)(`path`,{d:`M5 20h14`})]});case`save`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M5 3h11l3 3v15H5Z`}),(0,C.jsx)(`path`,{d:`M8 3v5h7M8 21v-7h8v7`})]});case`search`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`circle`,{cx:`11`,cy:`11`,r:`7`}),(0,C.jsx)(`path`,{d:`m20 20-3.5-3.5`})]});case`magnet`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M6 4h4v8a2 2 0 0 0 4 0V4h4v8a6 6 0 0 1-12 0Z`}),(0,C.jsx)(`path`,{d:`M6 8h4M14 8h4`})]});case`bot`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`rect`,{x:`4`,y:`8`,width:`16`,height:`11`,rx:`2`}),(0,C.jsx)(`path`,{d:`M12 8V4M9 13h.01M15 13h.01M9 16h6`})]});case`note`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`rect`,{x:`4`,y:`3`,width:`16`,height:`18`,rx:`2`}),(0,C.jsx)(`path`,{d:`M8 8h8M8 12h8M8 16h5`})]});case`clock`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`}),(0,C.jsx)(`path`,{d:`M12 7v5l3 2`})]});case`calendar`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`rect`,{x:`3`,y:`5`,width:`18`,height:`16`,rx:`2`}),(0,C.jsx)(`path`,{d:`M16 3v4M8 3v4M3 10h18`})]});case`hourglass`:return(0,C.jsx)(`path`,{d:`M6 3h12M6 21h12M7 3c0 5 5 6 5 9s-5 4-5 9M17 3c0 5-5 6-5 9s5 4 5 9`});case`edit`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M12 20h9`}),(0,C.jsx)(`path`,{d:`M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z`})]});case`music`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M9 18V5l12-2v13`}),(0,C.jsx)(`circle`,{cx:`6`,cy:`18`,r:`3`}),(0,C.jsx)(`circle`,{cx:`18`,cy:`16`,r:`3`})]});case`mic`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`rect`,{x:`9`,y:`2`,width:`6`,height:`13`,rx:`3`}),(0,C.jsx)(`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`}),(0,C.jsx)(`path`,{d:`M12 19v3`})]});case`target`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`}),(0,C.jsx)(`circle`,{cx:`12`,cy:`12`,r:`5`}),(0,C.jsx)(`circle`,{cx:`12`,cy:`12`,r:`1`,fill:`currentColor`,stroke:`none`})]});case`pointer`:return(0,C.jsx)(`path`,{d:`M4.5 3.5 20 10.4l-6.5 1.9a1.9 1.9 0 0 0-1.3 1.3L10.3 20z`,strokeLinejoin:`round`});case`sprout`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M12 21V9`}),(0,C.jsx)(`path`,{d:`M12 9C9 9 6 7 6 4c3 0 6 2 6 5ZM12 12c3 0 6-2 6-5-3 0-6 2-6 5Z`})]});case`hand`:return(0,C.jsx)(`path`,{d:`M8 13V5a1.5 1.5 0 0 1 3 0v6M11 11V4a1.5 1.5 0 0 1 3 0v7M14 11V6a1.5 1.5 0 0 1 3 0v8a6 6 0 0 1-6 6h-1a6 6 0 0 1-5.2-3l-2-3.5a1.5 1.5 0 0 1 2.6-1.5L8 14`});case`scissors`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`circle`,{cx:`6`,cy:`6`,r:`2.5`}),(0,C.jsx)(`circle`,{cx:`6`,cy:`18`,r:`2.5`}),(0,C.jsx)(`path`,{d:`M8 8l12 8M8 16 20 8`})]});case`maximize`:return(0,C.jsx)(`path`,{d:`M8 3H5a2 2 0 0 0-2 2v3M16 3h3a2 2 0 0 1 2 2v3M21 16v3a2 2 0 0 1-2 2h-3M3 16v3a2 2 0 0 0 2 2h3`});case`settings`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`circle`,{cx:`12`,cy:`12`,r:`3`}),(0,C.jsx)(`path`,{d:`M19.4 15a1.6 1.6 0 0 0 .3 1.8 2 2 0 1 1-2.8 2.8 1.6 1.6 0 0 0-1.8-.3 1.6 1.6 0 0 0-1 1.5 2 2 0 1 1-4 0 1.6 1.6 0 0 0-1-1.5 1.6 1.6 0 0 0-1.8.3 2 2 0 1 1-2.8-2.8 1.6 1.6 0 0 0 .3-1.8 1.6 1.6 0 0 0-1.5-1 2 2 0 1 1 0-4 1.6 1.6 0 0 0 1.5-1 1.6 1.6 0 0 0-.3-1.8 2 2 0 1 1 2.8-2.8 1.6 1.6 0 0 0 1.8.3H9a1.6 1.6 0 0 0 1-1.5 2 2 0 1 1 4 0 1.6 1.6 0 0 0 1 1.5 1.6 1.6 0 0 0 1.8-.3 2 2 0 1 1 2.8 2.8 1.6 1.6 0 0 0-.3 1.8V9a1.6 1.6 0 0 0 1.5 1 2 2 0 1 1 0 4 1.6 1.6 0 0 0-1.5 1Z`})]});case`scale`:return(0,C.jsx)(`path`,{d:`M12 3v18M7 21h10M6 7h12M6 7 3 14h6ZM18 7l-3 7h6ZM3 14a3 3 0 0 0 6 0M15 14a3 3 0 0 0 6 0`});case`checkbox`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`}),(0,C.jsx)(`path`,{d:`m8 12 3 3 5-6`})]});case`warning`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M10.3 4 2.6 17a2 2 0 0 0 1.7 3h15.4a2 2 0 0 0 1.7-3L13.7 4a2 2 0 0 0-3.4 0Z`}),(0,C.jsx)(`path`,{d:`M12 9v4M12 17h.01`})]});case`sparkle`:return(0,C.jsx)(`path`,{d:`M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8Z`});case`check`:return(0,C.jsx)(`path`,{d:`m5 12 5 5 9-10`});case`x`:return(0,C.jsx)(`path`,{d:`M6 6 18 18M18 6 6 18`});case`plus`:return(0,C.jsx)(`path`,{d:`M12 5v14M5 12h14`});case`refresh`:return(0,C.jsx)(`path`,{d:`M3 12a9 9 0 0 1 15-6.7L21 8M21 3v5h-5M21 12a9 9 0 0 1-15 6.7L3 16M3 21v-5h5`});case`play`:return(0,C.jsx)(`path`,{d:`M7 4v16l13-8Z`});case`preview`:return(0,C.jsxs)(C.Fragment,{children:[y.map(e=>(0,C.jsx)(`path`,{d:e},e)),(0,C.jsx)(`circle`,{...b})]});case`listingPreview`:return(0,C.jsxs)(C.Fragment,{children:[x.map(e=>(0,C.jsx)(`path`,{d:e},e)),(0,C.jsx)(`circle`,{...ee})]});case`pause`:return(0,C.jsx)(`path`,{d:`M9 5v14M15 5v14`});case`playFilled`:return(0,C.jsx)(`path`,{d:`M7 4.6v14.8c0 .8.9 1.2 1.5.8l11.4-7.4a1 1 0 0 0 0-1.6L8.5 3.8C7.9 3.4 7 3.8 7 4.6Z`,fill:`currentColor`,stroke:`none`});case`pauseFilled`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`rect`,{x:`6`,y:`4.5`,width:`4`,height:`15`,rx:`1`,fill:`currentColor`,stroke:`none`}),(0,C.jsx)(`rect`,{x:`14`,y:`4.5`,width:`4`,height:`15`,rx:`1`,fill:`currentColor`,stroke:`none`})]});case`volume2`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M11 5 6 9H2v6h4l5 4V5Z`,fill:`currentColor`}),(0,C.jsx)(`path`,{d:`M15.5 8.5a5 5 0 0 1 0 7M19 5a10 10 0 0 1 0 14`})]});case`volumeX`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M11 5 6 9H2v6h4l5 4V5Z`,fill:`currentColor`}),(0,C.jsx)(`path`,{d:`m22 9-6 6M16 9l6 6`})]});case`minimize`:return(0,C.jsx)(`path`,{d:`M8 3v3a2 2 0 0 1-2 2H3M21 8h-3a2 2 0 0 1-2-2V3M3 16h3a2 2 0 0 1 2 2v3M16 21v-3a2 2 0 0 1 2-2h3`});case`stop`:return(0,C.jsx)(`rect`,{x:`6`,y:`6`,width:`12`,height:`12`,rx:`2`});case`chevronRight`:return(0,C.jsx)(`path`,{d:`m9 6 6 6-6 6`});case`chevronLeft`:return(0,C.jsx)(`path`,{d:`m15 6-6 6 6 6`});case`chevronDown`:return(0,C.jsx)(`path`,{d:`m6 9 6 6 6-6`});case`trash`:return(0,C.jsx)(`path`,{d:`M4 7h16M9 7V5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2M6 7l1 13a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-13`});case`layers`:return(0,C.jsx)(`path`,{d:`m12 3 9 5-9 5-9-5Zm9 9-9 5-9-5m18 4-9 5-9-5`});case`type`:return(0,C.jsx)(`path`,{d:`M4 6V4h16v2M12 4v16M9 20h6`});case`home`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M3 10.5 12 3l9 7.5`}),(0,C.jsx)(`path`,{d:`M5 9.5V20a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9.5`}),(0,C.jsx)(`path`,{d:`M9 21v-6h6v6`})]});case`menu`:return(0,C.jsx)(`path`,{d:`M4 6h16M4 12h16M4 18h16`});case`logout`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`}),(0,C.jsx)(`path`,{d:`M16 17l5-5-5-5`}),(0,C.jsx)(`path`,{d:`M21 12H9`})]});case`help`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`}),(0,C.jsx)(`path`,{d:`M9.1 9a3 3 0 0 1 5.8 1c0 2-3 3-3 3`}),(0,C.jsx)(`path`,{d:`M12 17h.01`})]});case`bug`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`m8 2 1.9 1.9M14.1 3.9 16 2`}),(0,C.jsx)(`path`,{d:`M9 7.1v-1a3 3 0 1 1 6 0v1`}),(0,C.jsx)(`path`,{d:`M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6`}),(0,C.jsx)(`path`,{d:`M12 20v-9`}),(0,C.jsx)(`path`,{d:`M6.5 9C4.6 8.8 3 7.1 3 5M6 13H2M3 21c0-2.1 1.7-3.9 3.8-4M21 5c0 2.1-1.6 3.8-3.5 4M22 13h-4M17.2 17c2.1.1 3.8 1.9 3.8 4`})]});default:return null}}function ne({name:e,size:t=`1em`,style:n,className:r,strokeWidth:i=1.5}){let a=te(e);return a?(0,C.jsx)(`svg`,{viewBox:`0 0 24 24`,width:t,height:t,fill:`none`,stroke:`currentColor`,strokeWidth:i,strokeLinecap:`round`,strokeLinejoin:`round`,className:r,style:{display:`inline-block`,verticalAlign:`-0.14em`,flexShrink:0,...n||{}},\"aria-hidden\":`true`,children:a}):null}Object.freeze([`list`,`accounts`,`grants`,`create`,`bind`,`read`,`update`,`creatives`,`contribute`,`grant`,`revoke`,`unlink`]),Object.freeze({files:256,textBytes:3e6,pathLength:180});var re=class extends Error{constructor(e,t,n=[]){super(t),this.name=`BlockError`,this.code=e,this.details=n}};function ie(e,t,n){if(!e)throw new re(t,n)}function ae(e){return!!e&&typeof e==`object`&&!Array.isArray(e)&&[Object.prototype,null].includes(Object.getPrototypeOf(e))}function oe(){let e=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&[Object.prototype,null].includes(Object.getPrototypeOf(e)),t=/^(string|text|number|integer|boolean|object|json)(\\[\\])?\\??$/,n=new Set([`__proto__`,`prototype`,`constructor`]);function r(i,a=0){return a>40?!1:typeof i==`string`?t.test(i):Array.isArray(i)?i.length===1&&r(i[0],a+1):e(i)&&Object.entries(i).every(([e,t])=>!n.has(e)&&r(t,a+1))}function i(t,r,o=0){return o>40?!1:r==null?!0:Array.isArray(r)?r.length===1&&Array.isArray(t)&&t.every(e=>i(e,r[0],o+1)):typeof r==`string`?r.endsWith(`?`)?t===void 0||i(t,r.slice(0,-1),o+1):r.endsWith(`[]`)?Array.isArray(t)&&t.every(e=>i(e,r.slice(0,-2),o+1)):r===`string`||r===`text`?typeof t==`string`:r===`object`?e(t):r===`json`?a(t,o+1):r===`integer`?Number.isSafeInteger(t):r===`number`?typeof t==`number`&&Number.isFinite(t):r===`boolean`&&typeof t==`boolean`:e(r)&&e(t)&&Object.entries(r).every(([e,r])=>!n.has(e)&&i(Object.hasOwn(t,e)?t[e]:void 0,r,o+1))}function a(t,r){return r>40?!1:t===null||typeof t==`string`||typeof t==`boolean`?!0:typeof t==`number`?Number.isFinite(t):(e(t)||Array.isArray(t))&&Object.entries(t).every(([e,t])=>!n.has(e)&&a(t,r+1))}return{semanticSchemaValid:r,schemaMatches:i,validate:(e,t)=>{try{return r(t)&&a(e,0)&&i(e,t)}catch{return!1}}}}let{semanticSchemaValid:se,schemaMatches:ce}=oe();Object.freeze([`upstream`,`project`,`adapter`,`chat`,`default`,`user`,`external`]);let le=Object.freeze([`key`,`semantic`,`accepts`,`schema`,`sources`,`sensitivity`,`freshnessPolicy`,`cardinality`,`batchable`]),w=Object.freeze([Object.freeze({name:`narration_script`,parents:Object.freeze([`script`])}),Object.freeze({name:`sales_script`,parents:Object.freeze([`script`])}),Object.freeze({name:`timed_transcript`,parents:Object.freeze([`transcript`])}),Object.freeze({name:`product_image`,parents:Object.freeze([`image`])}),Object.freeze({name:`reference_image`,parents:Object.freeze([`image`])}),Object.freeze({name:`generated_image`,parents:Object.freeze([`image`,`source_image`])}),Object.freeze({name:`processed_image`,parents:Object.freeze([`image`,`source_image`])}),Object.freeze({name:`visual_description`,parents:Object.freeze([`plain_text`])}),Object.freeze({name:`transcript_text`,parents:Object.freeze([`plain_text`])}),Object.freeze({name:`editor_timeline`,parents:Object.freeze([`timeline`])}),Object.freeze({name:`legacy.timeline.updatededitor`,parents:Object.freeze([`timeline`])}),Object.freeze({name:`narration_audio`,parents:Object.freeze([`source_audio`])}),Object.freeze({name:`generated_video`,parents:Object.freeze([`source_video`])}),Object.freeze({name:`edited_video`,parents:Object.freeze([`source_video`])}),Object.freeze({name:`rendered_video`,parents:Object.freeze([`source_video`])}),Object.freeze({name:`rendered_audio`,parents:Object.freeze([`source_audio`])})]);new Map(w.map(e=>[e.name,e.parents])),Object.freeze(new Set(`sm.ai-decide@1.0.0,sm.ai-write@1.0.0,sm.board-editor.hosted@3.0.0,sm.board-editor@2.0.0,sm.board-editor@2.1.0,sm.board-editor@2.2.0,sm.board-editor@2.2.1,sm.board-editor@2.2.10,sm.board-editor@2.2.11,sm.board-editor@2.2.2,sm.board-editor@2.2.3,sm.board-editor@2.2.4,sm.board-editor@2.2.5,sm.board-editor@2.2.6,sm.board-editor@2.2.7,sm.board-editor@2.2.8,sm.board-editor@2.2.9,sm.board-editor@3.0.0,sm.captions@2.0.0,sm.character@2.0.0,sm.character@2.0.1,sm.compare@2.0.0,sm.compare@2.0.1,sm.compare@2.0.2,sm.connect-app@1.0.0,sm.contact-fields@1.0.0,sm.edit-assistant@2.0.0,sm.edit-assistant@2.0.1,sm.edit-assistant@2.0.2,sm.editor.hosted@3.0.0,sm.editor@2.0.0,sm.editor@2.1.0,sm.editor@2.2.0,sm.editor@2.2.1,sm.editor@2.2.10,sm.editor@2.2.11,sm.editor@2.2.12,sm.editor@2.2.2,sm.editor@2.2.3,sm.editor@2.2.4,sm.editor@2.2.5,sm.editor@2.2.6,sm.editor@2.2.7,sm.editor@2.2.8,sm.editor@2.2.9,sm.editor@3.0.0,sm.export-audio@2.0.0,sm.export-timeline@2.0.0,sm.export-video@2.0.0,sm.export-video@2.1.0,sm.final-edit@2.0.0,sm.final-edit@2.0.1,sm.final-edit@2.0.2,sm.generate-image@2.0.0,sm.generate-image@2.1.0,sm.generate-video@2.0.0,sm.generate-video@2.0.1,sm.grade@2.0.0,sm.grade@2.0.1,sm.grade@2.0.2,sm.import-media@2.0.0,sm.import-media@2.0.1,sm.import-media@2.0.2,sm.location@2.0.0,sm.location@2.0.1,sm.meta-creative@1.0.0,sm.motion-graphics@2.0.0,sm.panel-strip.hosted@3.0.0,sm.panel-strip@2.0.0,sm.panel-strip@2.1.0,sm.panel-strip@2.2.0,sm.panel-strip@2.3.0,sm.panel-strip@2.3.1,sm.panel-strip@2.3.2,sm.panel-strip@2.3.3,sm.panel-strip@2.3.4,sm.panel-strip@2.3.5,sm.panel-strip@2.3.6,sm.panel-strip@2.3.7,sm.panel-strip@2.4.0,sm.panel-strip@2.4.1,sm.panel-strip@2.4.2,sm.panel-strip@3.0.0,sm.photo-editor@1.0.0,sm.photo-notes@1.0.0,sm.photo-notes@1.1.0,sm.pipeline@2.0.0,sm.pipeline@2.1.0,sm.pipeline@2.2.0,sm.pipeline@2.2.1,sm.pipeline@2.2.2,sm.pipeline@2.2.3,sm.pipeline@2.2.4,sm.pipeline@2.2.5,sm.pipeline@2.2.6,sm.rough-cut@2.0.0,sm.rough-cut@2.0.1,sm.rough-cut@2.0.2,sm.score@2.0.0,sm.style@2.0.0,sm.style@2.0.1,sm.transition@2.0.0,sm.transition@2.0.1,sm.transition@2.0.2,sm.video-assets@2.0.0,sm.video-assets@2.1.0,sm.video-assets@2.1.1,sm.video-assets@2.1.2,sm.video-assets@2.1.3,sm.video-assets@2.1.4,sm.voiceover.hosted@3.0.0,sm.voiceover@2.0.0,sm.voiceover@2.1.0,sm.voiceover@2.1.1,sm.voiceover@2.1.2,sm.voiceover@2.1.3,sm.voiceover@2.1.4,sm.voiceover@2.1.5,sm.voiceover@2.1.6,sm.voiceover@3.0.0,sm.when@1.0.0,sm.when@1.1.0,sm.write-summary@1.0.0,stillmade.generate@1.0.0`.split(`,`))),Object.freeze({routes:16,operations:64,keyLength:80,declarationBytes:65536});let ue=`(0|[1-9][0-9]{0,5})\\\\.(0|[1-9][0-9]{0,5})\\\\.(0|[1-9][0-9]{0,5})`;RegExp(`^`+ue+`$`),RegExp(`^(>=|<=|>|<|=)?`+ue+`$`),Object.freeze([`blueprint`,`shotPlan`,`panels`,`board`,`canvas`,`animation`,`editor`]),Object.freeze([{type:`Cut`,sounds:[]},{type:`Fade`,sounds:[]},{type:`Cross dissolve`,sounds:[]},{type:`Shape wipe`,sounds:[`shape_sweep`,`shape_pop`]},{type:`Iris`,sounds:[`shape_sweep`,`shape_pop`]},{type:`Ink splat`,sounds:[`shape_sweep`,`shape_pop`]},{type:`Swirl`,sounds:[`whoosh`,`swirl_wind`]},{type:`Whip left`,sounds:[`whip_crack`,`whip_zip`]},{type:`Whip right`,sounds:[`whip_crack`,`whip_zip`]},{type:`Whip up`,sounds:[`whip_crack`,`whip_zip`]},{type:`Whip down`,sounds:[`whip_crack`,`whip_zip`]},{type:`Whip pan`,sounds:[`whip_crack`,`whip_zip`]},{type:`Slash`,sounds:[`shape_sweep`,`shape_pop`]},{type:`Shred`,sounds:[`shape_sweep`,`shape_pop`]},{type:`Morph`,sounds:[`morph_warp`,`morph_bloom`]},{type:`Dip to black`,sounds:[]},{type:`Dip to white`,sounds:[]},{type:`Push left`,sounds:[`push_slide`,`push_thump`]},{type:`Push right`,sounds:[`push_slide`,`push_thump`]},{type:`Push up`,sounds:[`push_slide`,`push_thump`]},{type:`Push down`,sounds:[`push_slide`,`push_thump`]},{type:`Zoom left`,sounds:[]},{type:`Zoom right`,sounds:[]},{type:`Zoom up`,sounds:[]},{type:`Zoom down`,sounds:[]}].map(e=>Object.freeze({...e,sounds:Object.freeze(e.sounds)}))),Object.freeze([`screen.capture`,`cursor.track`,`camera.capture`,`microphone.capture`,`clipboard.read`,`clipboard.write`,`media.pick`,`notifications.show`,`power.keep-awake`,`native.tools`,`folder.read`,`folder.write`]),Object.freeze({\"org.stillmade.PythonAdapter\":Object.freeze({id:`org.stillmade.PythonAdapter`,adapterVersion:1,label:`Python connection`,actions:Object.freeze([`adapter.import`,`adapter.inspect`,`adapter.execute`,`adapter.describe`,`adapter.call`]),projectExtensions:Object.freeze([`py`])}),\"org.natron.Natron\":Object.freeze({id:`org.natron.Natron`,adapterVersion:1,label:`Natron`,actions:Object.freeze([`launch`,`project.import`,`project.open`,`project.render`]),projectExtensions:Object.freeze([`ntp`])})}),Object.freeze({fileName:255,documentText:1e6,documentTitle:300,tableColumns:500,tableRows:1e5,tableCells:5e5,columnName:160,cellText:1e5,url:8192});let de=Object.freeze({pdf:`application/pdf`,txt:`text/plain`,csv:`text/csv`,md:`text/markdown`,json:`application/json`,zip:`application/zip`});Object.freeze([...new Set(Object.values(de))]),Object.freeze([`markdown`,`plain`]),Object.freeze({origins:8,requestBytes:4194304,responseBytes:8388608,timeoutMs:3e4,redirects:3,headers:32,headerBytes:16384,urlLength:8192,requestsPerMinute:120,originRequestsPerMinute:3e3,keyLength:4096}),Object.freeze([`GET`,`HEAD`,`POST`,`PUT`,`PATCH`,`DELETE`]),Object.freeze([`bearer`,`header`,`query`,`oauth2`]),Object.freeze({sockets:4,messageBytes:1048576,runBytes:268435456,protocols:8}),Object.freeze([`media.saved`,`schedule`,`webhook`,`project.completed`,`provider`]),Object.freeze({triggers:4,labelLength:120,minEverySeconds:60,maxEverySeconds:31536e3}),Object.freeze([`recipe`,`javascript`,`capability`]),Object.freeze({features:24,id:48,label:40,does:160,asks:8,ask:80});let fe=ie,pe=ae;Object.freeze([`type`,`required`,`default`,`min`,`max`,`description`,`role`,`primary`,`context`,`imageMode`,...le]),Object.freeze(`text.number.integer.boolean.json.object.image.video.audio.asset.script.transcript.brief.bible.shot-plan.panel-document.board-document.scene-document.timeline.timeline-edit.file-bundle.workspace-edit.timeline-range.research.character.location.style.pipeline.approval.scene.shot.mask.depth.pose.metadata.project-context.file.document.table.url.date.color`.split(`.`)),Object.freeze([`final.render`,`stock.search`,`stock.select`,`stock.auto`,`gif.search`,`gif.save`,`presenter.generate`,`quality.analyze`,`image.generate`,`image.generate.batch`,`media.generate`,`youtube.upload`]),Object.freeze([`text`,`number`,`slider`,`checkbox`,`asset`,`select`,`multiselect`,`file`,`date`,`color`,`url`,`richtext`,`list`,`grid`]),Object.freeze([`gallery`,`before-after`,`table`,`document`,`chart`,`code`,`player`,`download`]),Object.freeze({file:[`file`,`file[]`],date:[`date`],color:[`color`],url:[`url`],richtext:[`document`,`text`],list:[`text[]`,`number[]`,`integer[]`,`url[]`,`date[]`,`color[]`],grid:[`table`]}),Object.freeze({gallery:[`image[]`],\"before-after\":[`image`],table:[`table`],document:[`document`,`text`],chart:[`table`,`number[]`,`integer[]`],code:[`text`,`json`,`object`],player:[`audio`,`video`,`audio[]`,`video[]`],download:[`file`,`file[]`,`file-bundle`]});let T=Object.freeze({script:`script`,transcript:`transcript`,shots:`shot[]`,shotPlan:`shot-plan`,scenes:`scene[]`,characters:`character[]`,locations:`location[]`,styles:`style[]`,assets:`asset[]`,files:`file[]`,generations:`metadata[]`,versions:`metadata[]`,timeline:`timeline`,editor:`timeline`,canvas:`pipeline`,blueprint:`bible`,panels:`panel-document`,board:`board-document`,animation:`scene-document`,metadata:`metadata`}),E=(e,t,n,r)=>Object.freeze({executor:e,mode:t,byok:n,summary:r}),me=Object.freeze({\"text.generate\":E(`capability-run`,`sync`,!0,`Exact model, account BYOK or credits, and explicit run review`),\"audio.speech\":E(`capability-run`,`sync`,!0,`One short text/script input to measured audio in any StillMade catalog voice (Deepgram, ElevenLabs, OpenAI, Kokoro) with credits, or OpenAI with your key; playback review; accepted project recordings can be explicitly added to Editor audio`),\"audio.transcribe\":E(`capability-run`,`sync`,!0,`One owner-scoped stored audio asset to reviewed text and ordered word timings with StillMade transcription on credits, or OpenAI Whisper with your key`),\"audio.music\":E(`capability-run`,`sync`,!1,`One prompt to generated music (5–240 seconds) with StillMade credits and playback review`),\"audio.sfx\":E(`capability-run`,`sync`,!1,`One prompt to a generated sound effect (0.5–22 seconds) with StillMade credits and playback review`),\"image.generate\":E(`capability-run`,`sync`,!0,`One prompt and optional reference images to a stored PNG with any catalog image model and its settings; StillMade credits or account key, and actual image review`),\"video.generate\":E(`capability-run`,`async`,!0,`One prompt and optional first/last frames to a measured stored video clip with any catalog video model and its settings; StillMade credits and actual video review`),\"image.describe\":E(`capability-run`,`sync`,!0,`One to four owned images to bounded production notes; host-selected model/payment and actual description review`),\"media.analyze\":E(`capability-run`,`sync`,!1,`One owned video (optionally one time range), image or up to four images to structured visual evidence: summary, timeline, observations, on-screen text and issues, with StillMade credits; detail \"check\" gives one to four photos a short answer each at one price per call`),\"web.fetch\":E(`capability-run`,`sync`,!1,`One public web page read by the host and answered against the Block's instruction, with StillMade credits; no cookies, keys or private addresses`),\"web.research\":E(`capability-run`,`sync`,!1,`One topic searched on the web and summarized with cited sources, with StillMade credits`),\"timeline.propose\":E(`capability-run`,`sync`,!0,`Bounded typed context to strict timeline-edit JSON; host-selected model/payment, stale-before checks, preview and Apply`),\"workspace.propose\":E(`capability-run`,`sync`,!0,`Bounded typed context to a strict workspace-edit proposal for one permitted workspace; preview and explicit Apply`),\"connection.execute\":E(`connection`,`sync`,!1,`One reviewed action on a connected third-party app account through the host connection service; the Block never receives account credentials`)}),he=e=>Object.freeze(Object.entries(me).filter(([,t])=>e(t)).map(([e])=>e));he(()=>!0),he(e=>e.executor===`capability-run`),he(e=>e.executor===`capability-run`&&e.mode===`sync`),he(e=>e.byok),[...Object.keys(T).map(e=>`context.${e}.read`)];let ge=new Set([`__proto__`,`prototype`,`constructor`]);function _e(e,t=0,n={nodes:0}){if(fe(t<=40&&++n.nodes<=5e5,`LIMIT`,`Document exceeds complexity limit`),!(e===null||[`string`,`boolean`].includes(typeof e))){if(typeof e==`number`){fe(Number.isFinite(e),`SCHEMA`,`Numbers must be finite`);return}fe(Array.isArray(e)||pe(e),`SCHEMA`,`Only JSON data is accepted`);for(let[r,i]of Object.entries(e))fe(!ge.has(r),`SCHEMA`,`Forbidden field: ${r}`),_e(i,t+1,n)}}function ve(e){_e(e);let t=e=>Array.isArray(e)?e.map(t):pe(e)?Object.fromEntries(Object.keys(e).sort().map(n=>[n,t(e[n])])):e;return JSON.stringify(t(e))}let ye=e=>typeof e==`function`||!!e&&typeof e==`object`&&typeof e.$$typeof==`symbol`;function be(e){return fe(e?.version===1&&[`useSharedScript`,`useLiveEditor`,`useIsMobileUI`,`findVoice`,`estimateCreditsFromText`,`normalizeVoiceId`,`groupVoiceCards`,`cardIndexOfVoice`,`isCardLocked`,`isVoiceLocked`,`sortCardsLockedLast`,`fmtCostLabel`,`parseTranscriptCost`,`elevenLabsUrl`].every(t=>typeof e[t]==`function`)&&[`LiveEditorBadge`,`TranscriptionEditor`,`ThemedSelect`].every(t=>ye(e[t]))&&Array.isArray(e.VOICES)&&typeof e.DEFAULT_VOICE_ID==`string`&&e.CREDIT_COSTS&&typeof e.CREDIT_COSTS==`object`&&[`alert`,`confirm`].every(t=>typeof e.ui?.[t]==`function`)&&typeof e.ELEVENLABS_CONFIGURED==`boolean`&&typeof e.PRESENTER_HOST_BETA==`boolean`,`HOST_SERVICES`,`Voiceover requires version 1 of its workspace host dependencies.`),e}let xe=Object.freeze([`generateVoiceover`,`generateVoicePreview`,`transcribeAudio`,`uploadReferenceImage`,`parseTranscript`,`gifToneCheck`,`editVoScript`,`getElevenLabsVoiceInfo`,`getElVoiceSettings`,`setElVoiceSettings`,`getCustomVoices`,`addCustomVoice`,`removeCustomVoice`,`isElevenLabsVoiceId`]);function Se(e){let t=e?.voiceSettingsDefaults;return fe(e?.version===1&&xe.every(t=>typeof e[t]==`function`)&&t&&[`stability`,`similarity`,`style`].every(e=>Number.isFinite(t[e])&&t[e]>=0&&t[e]<=1)&&typeof t.speakerBoost==`boolean`,`HOST_SERVICES`,`Voiceover requires version 1 of its declared host services.`),e}function Ce(e={}){return e??={},{activeTake:[{audioUrl:e.audioUrl||null,duration:Number(e.duration)||0,source:e.source||`kokoro`,words:e.words||[],transcriptText:e.transcriptText||``,voiceId:e.voiceId||``,speed:Number(e.speed)||1}],versions:e.versions||[]}}function we(e){return{...e.activeTake[0],versions:e.versions}}let Te=[{id:`speed`,label:`Speed it up`,tip:`Set voiceover to ~1.15×. Faster retains better — default drags.`},{id:`tight`,label:`Don't pad the script`,tip:`Only say what the video needs — a shorter, tighter voiceover beats a stretched one. Retention over length.`},{id:`sfx`,label:`Use sound effects`,tip:`Add auto sound effects in the editor (Audio Score). SFX make visual changes land.`}];function Ee(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(r.result),r.onerror=()=>n(Error(`Failed to read file`)),r.readAsDataURL(e)})}function De(e){let t=Math.max(0,Number(e)||0),n=Math.floor(t/60),r=Math.floor(t%60);return`${n}:${String(r).padStart(2,`0`)}`}function Oe(e,t,n){let r=`${e||``} ${t||``} ${n||``}`.toLowerCase(),i=/explainer|casual|comed|funny|listicle|react|relatable|meme|banter/.test(r),a=/story|serious|educational|emotional|documentary|somber|sincere|tragic|history|science|tutorial/.test(r),o=i&&!a;return{on:o,aggressiveness:o?`sparse`:`off`}}function ke({hostServices:e,workspaceHost:t,voiceover:n,projectId:r,initialScript:i=``,scriptHandoff:a=null,scriptHandoffError:o=``,defaultEnabled:s=!1,onChange:c,onContinue:l,onSkip:u,standalone:d=!1,continuing:f=!1,viewOnly:p=!1,requireVoiceover:m=!1,nextStepLabel:h=`Shot Map`,requiredHint:_=`Animated Studio cuts every scene to your narration timing`,allowReactionGifs:y=!1,genre:b=``,lean:x=``,tone:ee=``}){let{useSharedScript:S,useLiveEditor:te,useIsMobileUI:re,findVoice:ie,estimateCreditsFromText:ae,normalizeVoiceId:oe,groupVoiceCards:se,cardIndexOfVoice:ce,isCardLocked:le,isVoiceLocked:w,sortCardsLockedLast:ue,fmtCostLabel:de,parseTranscriptCost:fe,elevenLabsUrl:pe,LiveEditorBadge:T,VOICES:E,DEFAULT_VOICE_ID:me,CREDIT_COSTS:he,ui:ge,ELEVENLABS_CONFIGURED:_e,TranscriptionEditor:ye,ThemedSelect:xe,PRESENTER_HOST_BETA:ke}=be(t),{AudioPlayer:Ae=null,pickAudioFile:je=null,voiceSample:Me=null,fitContent:Ne=!1}=t,Pe=Ne?{height:`auto`,overflow:`visible`}:null,{generateVoiceover:Fe,generateVoicePreview:Ie,transcribeAudio:Le,uploadReferenceImage:Re,parseTranscript:ze,gifToneCheck:Be,editVoScript:O,getElevenLabsVoiceInfo:Ve,getElVoiceSettings:He,setElVoiceSettings:k,getCustomVoices:Ue,addCustomVoice:We,removeCustomVoice:Ge,isElevenLabsVoiceId:Ke,voiceSettingsDefaults:qe}=Se(e),Je=re(),A=n||{},[j,Ye]=(0,g.useState)(A.script||i||``),Xe=S(r,j,Ye,e=>{z.current.script=e,bn.current=!0,c?.({script:e,dirty:!0})}),[M,Ze]=(0,g.useState)(oe(A.voiceId)||me),[Qe,$e]=(0,g.useState)(()=>Ue()),et=e=>ie(e)||Qe.find(t=>t.id===e)||(Ke(e)?{id:e,apiId:e,label:`ElevenLabs voice`,vibe:`Your ElevenLabs voice`,accent:``,provider:`elevenlabs`,model:`eleven_flash_v2_5`,gender:`custom`,custom:!0}:null),[tt,nt]=(0,g.useState)(()=>ce(ue(se(E)),oe(A.voiceId))>=6),[N,rt]=(0,g.useState)(`all`),it=N===`all`?E:N===`elevenlabs`?E.filter(e=>e.provider===`elevenlabs`):E.filter(e=>e.gender===N),at=(0,g.useMemo)(()=>ue(se(it)),[it]),ot=tt?at:at.slice(0,6),[P,F]=(0,g.useState)(Number(A.speed)||1),[I,st]=(0,g.useState)(A.audioUrl||null),[ct,lt]=(0,g.useState)(Number(A.duration)||0),[ut,dt]=(0,g.useState)(A.source||`kokoro`),[ft,pt]=(0,g.useState)(Array.isArray(A.words)?A.words:[]),[mt,ht]=(0,g.useState)(A.transcriptText||``),[gt,_t]=(0,g.useState)(()=>Array.isArray(A.versions)&&A.versions.length?A.versions:A.audioUrl?[{id:`v-initial`,url:A.audioUrl,duration:Number(A.duration)||0,voiceId:A.voiceId||me,speed:Number(A.speed)||1,script:A.script||``,source:A.source||`kokoro`,words:Array.isArray(A.words)?A.words:[],transcriptText:A.transcriptText||``,createdAt:0}]:[]),vt=(0,g.useMemo)(()=>Ce({audioUrl:I,duration:ct,source:ut,words:ft,transcriptText:mt,voiceId:M,speed:P,versions:gt}),[I,ct,ut,ft,mt,M,P,gt]),L=(0,g.useRef)(null);L.current=e=>{if(e===vt)return;z.current.audioDocument=e;let t=we(e);st(t.audioUrl),lt(t.duration),dt(t.source),pt(t.words),ht(t.transcriptText),Ze(t.voiceId),F(t.speed),_t(t.versions),bn.current=!0,c?.({...t,dirty:!0})};let yt=te(r,vt,(0,g.useCallback)(e=>L.current(e),[]),`voiceover`),R=p||Xe.canEdit===!1||yt.canEdit===!1,z=(0,g.useRef)({alive:!0});z.current={...z.current,script:j,viewOnly:R,projectId:r,audioDocument:vt,scriptHandoff:a,liveScript:Xe,liveAudio:yt},(0,g.useEffect)(()=>(z.current.alive=!0,()=>{z.current.alive=!1}),[]);let bt=()=>{let e=z.current;if(!e.alive||e.viewOnly||e.script!==j||e.projectId!==r||e.audioDocument!==vt)throw Error(`The shared script or edit access changed, or another audio take or timing edit arrived during this request. Review the current voiceover before trying again.`)},xt=y||h===`Image Panels`,St=(0,g.useMemo)(()=>Oe(b,x,ee),[b,x,ee]),[Ct,wt]=(0,g.useState)(()=>A.reactionGifs?.enabled??St.on),[Tt,Et]=(0,g.useState)(()=>A.reactionGifs?.tone||St.aggressiveness),[Dt,Ot]=(0,g.useState)(!1),[kt,At]=(0,g.useState)({open:!1,loading:!1,result:null,error:``}),[jt,Mt]=(0,g.useState)({open:!1,loading:!1,oldScript:``,newScript:``,error:``}),[B,Nt]=(0,g.useState)({id:null,status:`idle`,error:``}),Pt=(0,g.useRef)(0),Ft=(0,g.useRef)(null),It=(0,g.useRef)(new Set),Lt=a&&typeof a.id==`string`&&typeof a.sourceLabel==`string`&&typeof a.text==`string`&&a.text.trim()&&a.text.length<=2e5&&typeof a.validate==`function`?JSON.stringify([r,a.id,a.text]):null,Rt=(0,g.useRef)(null);Rt.current={key:Lt,proposal:a},(0,g.useEffect)(()=>(Nt(e=>e.status===`applied`?e.projectId===r&&e.actorId===Xe.actorId?e:{id:null,status:`idle`,error:``}:e.id===Lt?e:{id:null,status:`idle`,error:``}),()=>{++Pt.current,Ft.current?.()}),[r,Lt,Xe.actorId]);let[zt,Bt]=(0,g.useState)(()=>A.collageCanvases?.enabled??!1),[V,Vt]=(0,g.useState)(!1),[Ht,Ut]=(0,g.useState)(()=>A.collageCanvases?.host?.enabled??!1),[Wt,Gt]=(0,g.useState)(!1),[Kt,qt]=(0,g.useState)(`idle`),[Jt,Yt]=(0,g.useState)(``),[Xt,Zt]=(0,g.useState)(`idle`),[Qt,$t]=(0,g.useState)(``),[en,tn]=(0,g.useState)(``),[nn,rn]=(0,g.useState)(`idle`),[an,on]=(0,g.useState)(``),[sn,cn]=(0,g.useState)(!1),[ln,un]=(0,g.useState)(!1),[dn,fn]=(0,g.useState)(!1),[pn,mn]=(0,g.useState)(null),[hn,gn]=(0,g.useState)(null),_n=(0,g.useRef)(null),vn=(0,g.useRef)({}),yn=(0,g.useRef)(null),bn=(0,g.useRef)(!1),H=(0,g.useCallback)(e=>{z.current.alive&&!z.current.viewOnly&&c?.(e)},[c]),xn=et(M),Sn=w(xn),[Cn,wn]=xn?.provider===`deepgram`?[.7,1.5]:xn?.provider===`elevenlabs`?[.7,1.2]:[.5,2],Tn=e=>{if(R)return;let t=Math.round(Math.max(Cn,Math.min(wn,P+e))*100)/100;F(t),H({speed:t})};(0,g.useEffect)(()=>{if(R)return;let e=et(M),[t,n]=e?.provider===`deepgram`?[.7,1.5]:e?.provider===`elevenlabs`?[.7,1.2]:[.5,2];if(P<t||P>n){let e=Math.max(t,Math.min(n,P));F(e),H({speed:e})}},[M,R]);let[U,En]=(0,g.useState)(He),[Dn,On]=(0,g.useState)(null),kn=e=>En(t=>k({...t,...e})),An=Object.keys(qe).some(e=>U[e]!==qe[e]),jn=(0,g.useMemo)(()=>ae(j,P,M),[j,P,M]),Mn=ut===`upload`?he[`transcribe:upload`]:he[`transcribe:timestamp`],Nn=(0,g.useMemo)(()=>fe(en.length),[en]),W=Kt===`generating`||Xt===`analyzing`||ln||nn===`parsing`||B.status===`checking`;(0,g.useEffect)(()=>{if(B.status!==`applied`||B.synced||j!==B.text)return;let e=!Xe.enabled||Xe.getSharedBase?.()?.script===B.text,t=yt.getSharedBase?.(),n=!yt.enabled||t&&ve(t)===B.audioSignature;e&&n&&Nt(e=>e===B?{...e,synced:!0}:e)},[B,j,Xe,yt]),(0,g.useEffect)(()=>()=>{try{_n.current?.pause()}catch{}},[]);let Pn=async e=>{try{_n.current?.pause()}catch{}if(pn===e.id){_n.current=null,mn(null);return}if(hn)return;let t=Me?``:e.sampleUrl||vn.current[e.id];if(Me){gn(e.id);try{t=await Me(e.id)}catch{}if(gn(null),!t)return}if(!t&&!Me)try{t=localStorage.getItem(`sm-vo-preview:${e.id}`)||``}catch{}if(!t){gn(e.id);try{let n=await Ie(e.id);if(t=n?.url||``,t&&!n?.stub){vn.current[e.id]=t;try{localStorage.setItem(`sm-vo-preview:${e.id}`,t)}catch{}}}catch{}gn(null)}if(!t)return;let n=new Audio(t);n.onended=()=>{mn(null),_n.current=null},n.onerror=()=>{mn(null),_n.current=null},_n.current=n,mn(e.id),n.play().catch(()=>{mn(null),_n.current=null})},Fn=async()=>{if(R)return{ok:!1,error:`This Step is view only.`};if(Sn)return qt(`failed`),Yt(`This voice is unavailable on the current plan — pick another voice above.`),{ok:!1,error:`This voice is unavailable on the current plan. Pick another voice.`};let e=String(j||``).trim();if(!e)return qt(`failed`),Yt(`Script is empty`),{ok:!1,error:`The narration script is empty.`};qt(`generating`),Yt(``);try{let t=await Fe({text:e,voiceId:M,speed:P,projectId:r,...xn?.provider===`elevenlabs`?{voiceSettings:U}:{}});if(bt(),!t?.url)throw Error(t?.error||`No audio URL returned`);st(t.url),lt(Number(t.duration)||0),dt(`kokoro`),pt([]),ht(``);let n=[{id:`v-${crypto.randomUUID()}`,url:t.url,duration:Number(t.duration)||0,voiceId:M,speed:P,script:e,source:`kokoro`,createdAt:Date.now()},...gt];return _t(n),bn.current=!0,t.stub?(qt(`failed`),Yt(`This environment has no voiceover keys — a silent placeholder take was placed, not real narration.`)):qt(`idle`),H({audioUrl:t.url,duration:Number(t.duration)||0,source:`kokoro`,voiceId:M,speed:P,script:e,words:[],transcriptText:``,versions:n,dirty:!0}),t.stub?{ok:!1,error:`This environment has no voiceover keys; a silent placeholder take was placed, not real narration.`}:{ok:!0,url:t.url,duration:Number(t.duration)||0}}catch(e){return qt(`failed`),Yt(e.message||String(e)),{ok:!1,error:e.message||String(e)}}},In=async e=>{if(!R&&e){un(!0);try{let t=await Ee(e),n=await Re(t);Ln(n,0)}catch(e){await ge.alert(`Upload failed: ${e.message||e}`,{title:`Upload failed`})}finally{un(!1),yn.current&&(yn.current.value=``)}}},Ln=(e,t=0)=>{bt(),st(e),dt(`upload`),lt(t),pt([]),ht(``);let n=[{id:`v-${crypto.randomUUID()}`,url:e,duration:t,voiceId:M,speed:P,script:j,source:`upload`,createdAt:Date.now()},...gt];_t(n),bn.current=!0,H({audioUrl:e,source:`upload`,duration:t,words:[],transcriptText:``,versions:n,dirty:!0})},Rn=async()=>{if(!(R||W)){un(!0);try{let e=await je();e?.url&&Ln(e.url,Number(e.duration)||0)}catch(e){await ge.alert(`Upload failed: ${e.message||e}`,{title:`Upload failed`})}finally{un(!1)}}},zn=e=>{if(e.preventDefault(),fn(!1),R||W||je)return;let t=e.dataTransfer?.files?.[0];if(t){if(t.type&&!t.type.startsWith(`audio/`)){ge.alert(`Please drop an audio file (mp3, wav, m4a, …).`,{title:`Not an audio file`});return}In(t)}},Bn=async()=>{if(!R&&I){Zt(`analyzing`),$t(``);try{let e=await Le(I,null,ut===`upload`?`upload`:`timestamp`,r);bt();let t=Array.isArray(e?.words)?e.words:[],n=e?.text||``;pt(t),ht(n),bn.current=!0,Zt(`idle`);let i=gt.map(e=>e.url===I?{...e,words:t,transcriptText:n,analyzedAt:Date.now()}:e);_t(i),H({words:t,transcriptText:n,analyzedAt:Date.now(),versions:i,dirty:!0})}catch(e){Zt(`failed`),$t(e.message||String(e))}}},Vn=e=>{if(R||W)return;let t=e.map(e=>e.text).join(` `),n=gt.map(n=>n.url===I?{...n,words:e,transcriptText:t}:n);pt(e),ht(t),_t(n),bn.current=!0,H({words:e,transcriptText:t,versions:n,dirty:!0})},Hn=async()=>{if(R)return;let e=String(en||``).trim();if(e){rn(`parsing`),on(``);try{let t=await ze(e,r);if(bt(),!t.length)throw Error(`Couldn’t find any words in that transcript.`);let n=t.map(e=>e.text).join(` `);pt(t),ht(n),bn.current=!0,rn(`idle`);let i=gt.map(e=>e.url===I?{...e,words:t,transcriptText:n,analyzedAt:Date.now()}:e);_t(i),H({words:t,transcriptText:n,analyzedAt:Date.now(),versions:i,dirty:!0})}catch(e){rn(`failed`),on(e.message||String(e))}}},Un=e=>{if(R||!e||e.url===I)return;st(e.url),lt(Number(e.duration)||0),dt(e.source||`kokoro`),Ze(e.voiceId||M),F(Number(e.speed)||1),typeof e.script==`string`&&Ye(e.script);let t=Array.isArray(e.words)?e.words:[];pt(t),ht(e.transcriptText||``),bn.current=!0,H({audioUrl:e.url,duration:Number(e.duration)||0,source:e.source||`kokoro`,voiceId:e.voiceId||M,speed:Number(e.speed)||1,script:typeof e.script==`string`?e.script:j,words:t,transcriptText:e.transcriptText||``,dirty:!0})},Wn=e=>H({reactionGifs:{...A.reactionGifs||{},enabled:Ct,tone:Tt,...e}}),Gn=()=>{if(R||W)return;let e=!Ct;wt(e),Wn({enabled:e}),e&&Kn()},Kn=async()=>{At({open:!0,loading:!0,result:null,error:``});try{let e=await Be({genre:b,lean:x,tone:Tt,script:j,modelTier:`standard`});At({open:!0,loading:!1,result:e,error:``})}catch(e){At({open:!0,loading:!1,result:null,error:e.message||String(e)})}},qn=e=>{if(!e){At(e=>({...e,open:!1}));return}if(e.id===`skip`){wt(!1),Wn({enabled:!1}),At(e=>({...e,open:!1}));return}if(e.id===`edit`){At(e=>({...e,open:!1})),Yn();return}let t=e.aggressiveness||Tt||`sparse`;Et(t),wt(!0),Wn({enabled:!0,tone:t}),At(e=>({...e,open:!1}))},Jn=ut!==`upload`&&!!String(j).trim(),Yn=async()=>{if(!R&&Jn){Mt({open:!0,loading:!0,oldScript:j,newScript:``,error:``});try{let e=await O({currentValue:j,modelTier:`standard`,projectId:r});Mt({open:!0,loading:!1,oldScript:j,newScript:e||``,error:e?``:`No edit was returned.`})}catch(e){Mt({open:!0,loading:!1,oldScript:j,newScript:``,error:e.message||String(e)})}}},Xn=(e,{baseline:t=jt.oldScript,shared:n=!1}={})=>{if(z.current.viewOnly||z.current.script!==t){if(n)throw Error(`The narration changed. Review the current script before applying this proposal.`);ge.alert(`The script changed. Review a new edit before applying it.`,{title:`Script changed`});return}let r;return n&&(r={...z.current.audioDocument,activeTake:z.current.audioDocument.activeTake.map(e=>({...e,words:[],transcriptText:``}))},z.current.script=e,z.current.audioDocument=r,Xe.adoptDocument({script:e}),yt.adoptDocument(r)),Ye(e),bn.current=!0,pt([]),ht(``),n||wt(!0),H({script:e,words:[],transcriptText:``,...n?{}:{reactionGifs:{...A.reactionGifs||{},enabled:!0,tone:Tt}},dirty:!0}),Mt({open:!1,loading:!1,oldScript:``,newScript:``,error:``}),r};v({dependencies:[j,W,R,vt,Cn,wn,Sn,jn,M,P,gt],handoff:()=>({kind:`voiceover-controls`,script:j,speed:P,voiceId:M,source:ut,selectedTakeIds:(vt?.activeTake||[]).map(e=>e.id).filter(Boolean)}),actions:[{id:`replace_narration_script`,label:`Replace narration script`,effect:`edit`,available:()=>!W&&!R,parameters:{type:`object`,additionalProperties:!1,required:[`text`],properties:{text:{type:`string`,minLength:1,maxLength:12e3}}},parse:e=>{if(W||z.current.viewOnly||!e||Object.keys(e).length!==1||typeof e.text!=`string`||!e.text.trim()||e.text.length>12e3)throw Error(`Provide narration text in an editable, idle workspace.`);return e},run:({text:e})=>(Xn(e,{baseline:j,shared:!0}),{status:`completed`,message:`Updated the narration script. Its old word timings were cleared; generate and analyze narration before continuing.`})},{id:`select_narration_take`,label:`Select narration take`,effect:`edit`,available:()=>!W&&!R&&gt.length>0,parameters:{type:`object`,additionalProperties:!1,required:[`takeId`],properties:{takeId:{type:`string`,enum:gt.slice(0,50).map(e=>e.id)}}},parse:e=>{if(W||R||!e||Object.keys(e).length!==1||!gt.slice(0,50).some(t=>t.id===e.takeId))throw Error(`Choose an available narration take.`);return e},run:({takeId:e})=>(Un(gt.find(t=>t.id===e)),{status:`completed`,message:`Selected the narration take with its saved timings.`})},{id:`set_narration_speed`,label:`Change narration speed`,effect:`edit`,available:()=>!W&&!R,parameters:{type:`object`,additionalProperties:!1,required:[`speed`],properties:{speed:{type:`number`,minimum:Cn,maximum:wn}}},parse:e=>{if(W||R||!e||Object.keys(e).length!==1||!Number.isFinite(e.speed)||e.speed<Cn||e.speed>wn)throw Error(`Choose a supported narration speed.`);return e},run:({speed:e})=>(F(e),H({speed:e}),{status:`completed`,message:`Updated the speed for the next narration generation.`})},{id:`generate_narration`,label:`Generate voiceover`,effect:`run`,available:()=>!W&&!R&&!Sn&&!!String(j||``).trim(),parameters:{type:`object`,additionalProperties:!1,properties:{}},parse:e=>{if(W||R||Sn||!String(j||``).trim()||!e||Object.keys(e).length)throw Error(`Write the narration script first, in an editable, idle workspace with an available voice.`);return{}},review:()=>({description:`Make the voiceover from this Step’s narration script with the chosen voice and speed.`,notes:[`${de(jn,{approx:!0})} for this voiceover`]}),run:async()=>{let e=await Fn();if(!e?.ok)throw Error(e?.error||`The voiceover was not made.`);return{status:`completed`,message:`Generated a voiceover take${e.duration?` (${Math.round(e.duration)} seconds)`:``} from the narration script. It is saved on this Step as the selected take.`,.../^\\/api\\/media\\/[A-Za-z0-9_-]{1,64}\\/[A-Za-z0-9._-]{1,128}$/.test(e.url||``)?{resultAudio:{url:e.url,...e.duration>0&&e.duration<=3600?{seconds:e.duration}:{}}}:{}}}}]});let Zn=async()=>{if(!Lt||W||R||a.text===j||It.current.has(Lt))return;let e=Lt,t=a,n=j,i=vt,o=Xe.actorId,s=yt.actorId,c=++Pt.current,l=()=>z.current.alive&&c===Pt.current&&Rt.current.key===e&&z.current.projectId===r,u=()=>{if(!l())throw Error(`This script proposal changed. Review the current Block output.`);let e=z.current;if(e.viewOnly||e.liveScript.actorId!==o||e.liveAudio.actorId!==s||[`checking`,`setup`,`conflict`].includes(e.liveScript.status)||[`checking`,`setup`,`conflict`].includes(e.liveAudio.status))throw Error(`Wait for narration and voiceover editing to be ready, then review this script again.`);if(e.script!==n||e.audioDocument!==i)throw Error(`The narration or selected take changed while this proposal was checked. Your current work was kept.`)},d,f,p=()=>{f?.(),f=null,d?.(),d=null};Ft.current=p,Nt({id:e,status:`checking`,error:``});try{if(u(),d=await Xe.pauseWorkflow(),u(),f=await yt.pauseWorkflow(),u(),await t.validate()!==!0)throw Error(`The connected Block output changed. Review its latest script before applying it.`);u();let i=Xn(t.text,{baseline:n,shared:!0});Nt({id:e,projectId:r,actorId:o,status:`applied`,text:t.text,audioSignature:ve(i),synced:!1,error:``})}catch(t){l()&&Nt({id:e,status:`error`,error:t.message||`The script could not be applied. Your narration was kept.`})}finally{p(),Ft.current===p&&(Ft.current=null),!l()&&z.current.alive&&Nt(t=>t.id===e&&t.status===`checking`?{id:null,status:`idle`,error:``}:t)}},Qn=()=>{Lt&&(++Pt.current,Ft.current?.(),It.current.add(Lt),Nt({id:Lt,status:`kept`,error:``}))},$n=()=>{R||l?.({enabled:!0,words:ft,transcriptText:mt,audioUrl:I,voiceId:M,speed:P,source:ut,script:j,duration:ct,dirty:bn.current,reactionGifs:xt?{enabled:Ct,tone:Tt}:void 0,collageCanvases:xt?{enabled:zt,host:Ht?{enabled:!0}:void 0}:void 0})},er=()=>{R||(u||l)?.({enabled:!1,dirty:bn.current})},tr=d?`Save voiceover`:`Continue → ${h}`;return(0,C.jsxs)(`div`,{style:{...D.container,...Pe,...Je?{border:`none`,borderRadius:0}:null},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,flexWrap:`wrap`,gap:8},children:[(0,C.jsx)(T,{live:Xe,inline:!0,label:`Script`}),(0,C.jsx)(T,{live:yt,inline:!0,label:`Voiceover takes`})]}),(0,C.jsxs)(`div`,{style:D.header,children:[(0,C.jsxs)(`div`,{style:D.headerLeft,children:[(0,C.jsx)(`div`,{style:D.logoMark}),(0,C.jsx)(`span`,{style:D.headerTitle,children:`Voiceover`})]}),(0,C.jsxs)(`div`,{style:D.headerActions,children:[R&&(0,C.jsx)(`div`,{style:D.viewOnlyBadge,children:`View only`}),!d&&!R&&!m&&(0,C.jsxs)(`button`,{className:`btn`,onClick:er,disabled:W||f,style:D.skipBtn,children:[`Skip → `,h]}),m&&!R&&(0,C.jsx)(`div`,{style:D.headerBadge,title:_,children:`Required`}),(0,C.jsx)(`button`,{className:`btn btn-primary`,onClick:$n,disabled:W||f||m&&!(I&&ft.length),title:m&&!(I&&ft.length)?I?`Run the timing analysis first — everything is cut to the word timings`:`Generate or upload the narration first`:void 0,style:D.confirmBtn,children:f?`Building ${h.toLowerCase()}…`:tr})]})]}),(0,C.jsxs)(`div`,{style:Pe?{...D.body,overflowY:`visible`,flex:`none`}:D.body,children:[o&&(0,C.jsxs)(`p`,{role:`status`,style:D.cardSub,children:[`Connected script is not ready. `,o]}),Lt&&!It.current.has(Lt)&&(B.id!==Lt||B.status!==`applied`)&&(0,C.jsxs)(`div`,{style:D.card,children:[(0,C.jsxs)(`h2`,{style:D.handoffTitle,children:[`Use script from `,a.sourceLabel]}),(0,C.jsx)(`p`,{style:D.cardSub,children:a.text===j?`This script is already your current narration. Your audio and timings are unchanged.`:`Review this Block’s script before replacing your narration. Audio takes and their history stay available; current word timings will need to be analyzed again.`}),(0,C.jsx)(`div`,{style:D.handoffPreview,children:a.text}),B.id===Lt&&B.error&&(0,C.jsx)(`p`,{role:`alert`,style:D.cardSub,children:B.error}),(0,C.jsxs)(`div`,{style:D.handoffActions,children:[(0,C.jsx)(`button`,{className:`btn btn-primary`,disabled:W||R||a.text===j||[`checking`,`setup`,`conflict`].includes(Xe.status)||[`checking`,`setup`,`conflict`].includes(yt.status),onClick:Zn,children:B.id===Lt&&B.status===`checking`?`Checking current narration…`:`Apply script`}),(0,C.jsx)(`button`,{className:`btn btn-secondary`,onClick:Qn,children:`Keep current`})]})]}),B.status===`applied`&&B.projectId===r&&B.actorId===Xe.actorId&&(0,C.jsx)(`div`,{role:`status`,style:D.cardSub,children:j===B.text?Xe.status===`conflict`||yt.status===`conflict`?`Script applied locally. Resolve the shared narration changes before continuing.`:B.synced?`Script applied to narration. Generate and analyze a new take when you are ready.`:`Script applied. Waiting for shared narration to sync…`:`The narration has changed since this script was applied.`}),(0,C.jsxs)(`div`,{style:{...D.card,position:`relative`},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:8},children:[(0,C.jsx)(`div`,{style:D.cardTitle,children:`Narration script`}),xt&&(0,C.jsxs)(`span`,{role:`button`,tabIndex:0,\"aria-expanded\":Wt,onMouseEnter:()=>Gt(!0),onMouseLeave:()=>Gt(!1),onClick:()=>Gt(e=>!e),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),Gt(e=>!e))},style:{display:`inline-flex`,alignItems:`center`,gap:5,cursor:`pointer`,color:Wt?`var(--accent)`:`var(--text-muted)`,fontSize:11.5,fontWeight:600,userSelect:`none`},children:[(0,C.jsxs)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 16 16`,\"aria-hidden\":`true`,style:{display:`block`},children:[(0,C.jsx)(`path`,{d:`M8 0.8 L9.7 6.3 L15.2 8 L9.7 9.7 L8 15.2 L6.3 9.7 L0.8 8 L6.3 6.3 Z`,fill:`var(--accent)`}),(0,C.jsx)(`path`,{d:`M12.9 1.4 L13.5 3.1 L15.2 3.7 L13.5 4.3 L12.9 6 L12.3 4.3 L10.6 3.7 L12.3 3.1 Z`,fill:`var(--accent)`,opacity:`0.65`})]}),`Quick tips`,Wt&&(0,C.jsx)(`span`,{onClick:e=>e.stopPropagation(),style:{position:`absolute`,top:34,right:10,zIndex:30,width:`min(340px, calc(100% - 20px))`,background:`var(--bg-elevated)`,border:`1px solid var(--border)`,borderRadius:8,boxShadow:`0 10px 30px rgba(0,0,0,0.35)`,padding:`10px 12px`,display:`flex`,flexDirection:`column`,gap:8,cursor:`default`,textAlign:`left`},children:Te.map(e=>(0,C.jsxs)(`span`,{style:{fontSize:12,fontWeight:400,color:`var(--text-secondary)`,lineHeight:1.5},children:[(0,C.jsxs)(`strong`,{style:{color:`var(--text-primary)`},children:[e.label,`.`]}),` `,e.tip]},e.id))})]})]}),(0,C.jsx)(`textarea`,{maxLength:2e5,style:D.textarea,value:j,onChange:e=>{Ye(e.target.value),H({script:e.target.value})},placeholder:`Write or paste the narration here…`,rows:5,disabled:W||R}),(0,C.jsxs)(`div`,{style:D.charCount,children:[String(j).length.toLocaleString(),` chars · ~`,jn,` cr to generate`]})]}),xt&&(0,C.jsxs)(`div`,{style:D.card,children:[(0,C.jsxs)(`div`,{style:D.toggleRow,children:[(0,C.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:3,minWidth:0},children:[(0,C.jsxs)(`div`,{style:D.gifTitleRow,children:[(0,C.jsx)(`span`,{style:D.cardTitle,children:`Reaction GIFs`}),(0,C.jsx)(`button`,{type:`button`,style:D.infoGlyph,onClick:()=>Ot(e=>!e),\"aria-expanded\":Dt,\"aria-label\":`About reaction GIFs`,title:`About reaction GIFs`,children:`i`})]}),(0,C.jsx)(`div`,{style:D.cardSub,children:Ct?`Planned around your narration${Tt&&Tt!==`off`?` · ${Tt}`:``} · ${de(he[`gif:plan`])} to plan`:`Drop quick reaction GIFs in on the beat — a free retention layer.`})]}),(0,C.jsx)(`button`,{type:`button`,role:`switch`,\"aria-checked\":Ct,style:D.switch,onClick:Gn,disabled:R||W,\"aria-label\":`Include reaction GIFs`,children:(0,C.jsx)(`span`,{style:{...D.switchTrack,...Ct?D.switchTrackOn:{}},children:(0,C.jsx)(`span`,{style:{...D.switchKnob,...Ct?D.switchKnobOn:{}}})})})]}),Dt&&(0,C.jsx)(`div`,{style:D.infoBox,children:`Reaction GIFs are an Image-Panel-only layer. They are planned around your narration. Recommended for casual, comedic, reaction, and relatable content.`})]}),xt&&(0,C.jsxs)(`div`,{style:D.card,children:[(0,C.jsxs)(`div`,{style:D.toggleRow,children:[(0,C.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:3,minWidth:0},children:[(0,C.jsxs)(`div`,{style:D.gifTitleRow,children:[(0,C.jsx)(`span`,{style:D.cardTitle,children:`White Board Motion`}),(0,C.jsx)(`button`,{type:`button`,style:D.infoGlyph,onClick:()=>Vt(e=>!e),\"aria-expanded\":V,\"aria-label\":`About White Board Motion`,title:`About White Board Motion`,children:`i`})]}),(0,C.jsx)(`div`,{style:D.cardSub,children:zt?`Auto-placed where the narration lists real things · ${de(he[`canvas:plan`])} to plan`:`Photo-collage beats: real images pop in as the narration names them.`})]}),(0,C.jsx)(`button`,{type:`button`,role:`switch`,\"aria-checked\":zt,style:D.switch,onClick:()=>{if(R||W)return;let e=!zt;Bt(e),H({collageCanvases:{...A.collageCanvases||{},enabled:e}})},disabled:R||W,\"aria-label\":`Include White Board Motion beats`,children:(0,C.jsx)(`span`,{style:{...D.switchTrack,...zt?D.switchTrackOn:{}},children:(0,C.jsx)(`span`,{style:{...D.switchKnob,...zt?D.switchKnobOn:{}}})})})]}),V&&(0,C.jsx)(`div`,{style:D.infoBox,children:`A White Board Motion beat is one long beat on a solid background where stock photos pop in exactly when the narration names them, each with its own sound, plus text on emphasized words. Best for explainer stretches that list or compare real things. Once in a while, for a single punchy line, it types the narration out on the plain background with a typing sound instead of photos. You can always insert one by hand on the Strip step, with this off. Stock photos are metered by the stock library on build.`}),zt&&ke&&(0,C.jsxs)(`div`,{style:{...D.toggleRow,marginTop:10,paddingTop:10,borderTop:`1px solid var(--border)`},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:3,minWidth:0},children:[(0,C.jsxs)(`div`,{style:D.gifTitleRow,children:[(0,C.jsx)(`span`,{style:D.cardTitle,children:`Auto presenter / host`}),(0,C.jsx)(`span`,{style:{fontSize:9,fontWeight:800,letterSpacing:`0.06em`,padding:`1px 6px`,borderRadius:999,background:`var(--accent)`,color:`var(--accent-contrast, #0A0A0A)`},children:`BETA`})]}),(0,C.jsx)(`div`,{style:D.cardSub,children:`An AI presenter points, presents and reacts on the White Board Motion beats — set it up on the Image Panels step.`})]}),(0,C.jsx)(`button`,{type:`button`,role:`switch`,\"aria-checked\":Ht,style:D.switch,onClick:()=>{if(R||W)return;let e=!Ht;Ut(e),H({collageCanvases:{...A.collageCanvases||{},enabled:zt,host:{...A.collageCanvases?.host||{},enabled:e}}})},disabled:R||W,\"aria-label\":`Enable auto presenter/host`,children:(0,C.jsx)(`span`,{style:{...D.switchTrack,...Ht?D.switchTrackOn:{}},children:(0,C.jsx)(`span`,{style:{...D.switchKnob,...Ht?D.switchKnobOn:{}}})})})]})]}),(0,C.jsxs)(`div`,{style:D.card,children:[(0,C.jsxs)(`div`,{style:D.voiceHead,children:[(0,C.jsx)(`div`,{style:D.cardTitle,children:`Voice`}),(0,C.jsx)(`div`,{style:D.voiceFilterRow,children:[[`all`,`All`],[`female`,`Female`],[`male`,`Male`],[`elevenlabs`,`ElevenLabs`]].map(([e,t])=>(0,C.jsx)(`button`,{type:`button`,style:{...D.voiceFilterBtn,...N===e?D.voiceFilterBtnOn:{}},onClick:()=>rt(e),children:t},e))})]}),(0,C.jsx)(`div`,{style:D.voiceGrid,children:ot.map(e=>{if(e.kind===`group`){let t=e.versions.some(e=>e.id===M)?M:e.defaultId,n=e.versions.find(e=>e.id===t)||e.versions[0],r=e.versions.some(e=>e.id===M),i=pn===n.id,a=le(e);return(0,C.jsxs)(`div`,{style:{...D.voiceCard,...r?D.voiceCardActive:{},...a?D.voiceCardLocked:{}},onClick:()=>{R||a||(Ze(t),H({voiceId:t}))},role:`button`,tabIndex:0,\"aria-disabled\":a||void 0,title:a?`This ElevenLabs Voice Library voice needs a paid ElevenLabs plan`:void 0,onKeyDown:e=>{R||a||(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),Ze(t),H({voiceId:t}))},children:[(0,C.jsx)(`span`,{role:`button`,tabIndex:0,style:D.voicePlay,onClick:e=>{e.stopPropagation(),Pn(n)},onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.stopPropagation(),e.preventDefault(),Pn(n))},\"aria-label\":`Preview ${n.label}`,children:hn===n.id?`⋯`:i?`❚❚`:`▶`}),(0,C.jsxs)(`div`,{style:D.voiceMeta,children:[(0,C.jsx)(`div`,{style:D.voiceName,children:e.group}),(0,C.jsx)(`span`,{onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),children:(0,C.jsx)(xe,{style:D.voiceSelect,value:t,disabled:R||a,onChange:e=>{R||a||(Ze(e.target.value),H({voiceId:e.target.value}))},children:e.versions.map(e=>(0,C.jsx)(`option`,{value:e.id,disabled:w(e),children:e.groupLabel},e.id))})})]}),a?(0,C.jsx)(`span`,{style:D.voiceLockBadge,title:`Needs a paid ElevenLabs plan`,children:`Unavailable`}):n.provider===`elevenlabs`&&(0,C.jsx)(`span`,{style:D.voiceBadge,children:`ElevenLabs`}),r&&(0,C.jsx)(`span`,{style:D.voiceCheck,children:`✓`})]},`group:${e.group}`)}let t=e.voice,n=t.id===M,r=pn===t.id,i=le(e);return(0,C.jsxs)(`div`,{style:{...D.voiceCard,...n?D.voiceCardActive:{},...i?D.voiceCardLocked:{}},onClick:()=>{R||i||(Ze(t.id),H({voiceId:t.id}))},role:`button`,tabIndex:0,\"aria-disabled\":i||void 0,title:i?`This ElevenLabs Voice Library voice needs a paid ElevenLabs plan`:void 0,onKeyDown:e=>{R||i||(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),Ze(t.id),H({voiceId:t.id}))},children:[(0,C.jsx)(`span`,{role:`button`,tabIndex:0,style:D.voicePlay,onClick:e=>{e.stopPropagation(),Pn(t)},onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.stopPropagation(),e.preventDefault(),Pn(t))},\"aria-label\":`Preview ${t.label}`,children:hn===t.id?`⋯`:r?`❚❚`:`▶`}),(0,C.jsxs)(`div`,{style:D.voiceMeta,children:[(0,C.jsx)(`div`,{style:D.voiceName,children:t.label}),(0,C.jsx)(`div`,{style:D.voiceVibe,children:t.vibe})]}),i?(0,C.jsx)(`span`,{style:D.voiceLockBadge,title:`Needs a paid ElevenLabs plan`,children:`Unavailable`}):t.provider===`elevenlabs`&&(0,C.jsx)(`span`,{style:D.voiceBadge,children:`ElevenLabs`}),n&&(0,C.jsx)(`span`,{style:D.voiceCheck,children:`✓`})]},t.id)})}),at.length>6&&(0,C.jsx)(`button`,{type:`button`,style:D.showAllVoicesBtn,onClick:()=>nt(e=>!e),children:tt?`Show fewer`:`Show all ${at.length} voices`}),at.length===0&&(0,C.jsx)(`div`,{style:D.emptySmall,children:`No voices match.`}),!1,(0,C.jsxs)(`div`,{style:D.speedRow,children:[(0,C.jsx)(`span`,{style:D.speedLabel,children:`Speed`}),(0,C.jsx)(`button`,{type:`button`,style:D.speedReset,title:`−0.05`,disabled:W||R||P<=Cn,onClick:()=>Tn(-.05),children:`−`}),(0,C.jsx)(`input`,{type:`range`,min:Cn,max:wn,step:`0.05`,value:P,onChange:e=>{let t=Number(e.target.value);F(t),H({speed:t})},disabled:W||R,style:D.speedSlider}),(0,C.jsx)(`button`,{type:`button`,style:D.speedReset,title:`+0.05`,disabled:W||R||P>=wn,onClick:()=>Tn(.05),children:`+`}),(0,C.jsxs)(`span`,{style:D.speedVal,children:[P.toFixed(2),`×`]}),P!==1&&(0,C.jsx)(`button`,{type:`button`,style:D.speedReset,title:`Reset to 1.00×`,disabled:W||R,onClick:()=>{F(1),H({speed:1})},children:`↺`})]}),xn?.provider===`elevenlabs`&&(0,C.jsxs)(`div`,{style:D.elSettings,children:[(0,C.jsxs)(`div`,{style:D.elSettingsHead,children:[(0,C.jsx)(`span`,{style:D.speedLabel,children:`Voice settings`}),An&&(0,C.jsx)(`button`,{type:`button`,style:D.speedReset,title:`Reset to voice defaults`,onClick:()=>En(k({...qe})),children:`↺`})]}),[[`stability`,`Stability`,`How steady the delivery is. Lower = more emotional and varied between takes; higher = calmer and more consistent (can sound flat). Default: 0.50.`],[`similarity`,`Similarity`,`How closely the voice sticks to the original speaker’s sound. Higher = closest match but can carry over recording artifacts; lower = smoother, less distinctive. Default: 0.75.`],[`style`,`Style`,`Exaggerates the speaker’s delivery style and energy. High values can sound unstable and add latency. Default: 0.00.`]].map(([e,t,n])=>(0,C.jsxs)(g.Fragment,{children:[(0,C.jsxs)(`div`,{style:D.speedRow,children:[(0,C.jsx)(`span`,{style:D.elSliderLabel,children:t}),(0,C.jsx)(`button`,{type:`button`,style:D.infoGlyph,\"aria-expanded\":Dn===e,\"aria-label\":`About ${t}`,title:`About ${t}`,onClick:()=>On(t=>t===e?null:e),children:`i`}),(0,C.jsx)(`input`,{type:`range`,min:0,max:1,step:`0.05`,value:U[e],onChange:t=>kn({[e]:Number(t.target.value)}),disabled:W||R,style:D.speedSlider}),(0,C.jsx)(`span`,{style:D.speedVal,children:U[e].toFixed(2)})]}),Dn===e&&(0,C.jsx)(`div`,{style:D.infoBox,children:n})]},e)),(0,C.jsxs)(`div`,{style:D.speedRow,children:[(0,C.jsx)(`span`,{style:D.elSliderLabel,children:`Speaker boost`}),(0,C.jsx)(`button`,{type:`button`,style:D.infoGlyph,\"aria-expanded\":Dn===`speakerBoost`,\"aria-label\":`About Speaker boost`,title:`About Speaker boost`,onClick:()=>On(e=>e===`speakerBoost`?null:`speakerBoost`),children:`i`}),(0,C.jsx)(`button`,{type:`button`,style:{...D.elBoostBtn,...U.speakerBoost?D.elBoostBtnOn:null},disabled:W||R,onClick:()=>kn({speakerBoost:!U.speakerBoost}),children:U.speakerBoost?`On`:`Off`})]}),Dn===`speakerBoost`&&(0,C.jsx)(`div`,{style:D.infoBox,children:`Slightly boosts similarity to the original speaker. The effect is subtle on most voices. Default: On.`})]})]}),(0,C.jsxs)(`div`,{style:D.card,children:[(0,C.jsx)(`div`,{style:D.cardTitle,children:`Audio`}),(0,C.jsxs)(`div`,{style:D.audioBtnRow,children:[(0,C.jsx)(`button`,{className:`btn btn-primary`,style:D.genBtn,onClick:Fn,disabled:W||R||Sn||!String(j).trim(),title:Sn?`This voice needs a paid ElevenLabs plan — pick another voice above`:void 0,children:Kt===`generating`?`Generating…`:Sn?`Voice unavailable`:`${I&&ut!==`upload`?`Re-generate`:`Generate`} ${de(jn,{approx:!0})}`}),(0,C.jsx)(`span`,{style:D.orSep,children:`or`}),(0,C.jsx)(`button`,{className:`btn`,style:{...D.uploadBtn,...dn?D.uploadBtnDrag:null},onClick:je?Rn:()=>yn.current?.click(),disabled:W||R,onDragEnter:e=>{e.preventDefault(),!R&&!W&&!je&&fn(!0)},onDragOver:e=>{R||W||je||(e.preventDefault(),e.dataTransfer.dropEffect=`copy`,dn||fn(!0))},onDragLeave:e=>{e.preventDefault(),fn(!1)},onDrop:zn,title:je?`Choose an audio file`:`Click to choose, or drag an audio file here`,children:ln?`Uploading…`:dn?`⤓ Drop to upload`:`⤓ Upload audio file`}),!je&&(0,C.jsx)(`input`,{ref:yn,type:`file`,accept:`audio/*`,style:{display:`none`},onChange:e=>In(e.target.files?.[0])}),_e&&(0,C.jsx)(`a`,{href:pe(`voiceover_step`),target:`_blank`,rel:`noopener noreferrer`,style:D.elevenLink,children:`Want a specific or cloned voice? Generate it on ElevenLabs (3,000+ voices) and upload it here`})]}),Kt===`failed`&&Jt&&(0,C.jsxs)(`div`,{style:D.errorBox,children:[`⚠ `,Jt]}),I&&(0,C.jsxs)(`div`,{style:D.playerWrap,children:[Ae?(0,C.jsx)(Ae,{src:I,style:D.audioEl}):(0,C.jsx)(`audio`,{controls:!0,src:I,style:D.audioEl}),(0,C.jsxs)(`div`,{style:D.playerMeta,children:[ut===`upload`?`Uploaded audio`:`${xn?.label||M} · ${P.toFixed(2)}×`,ct>0&&` · ${De(ct)}`]})]}),gt.length>1&&(0,C.jsxs)(`div`,{style:D.versionsWrap,children:[(0,C.jsxs)(`div`,{style:D.versionsHead,children:[`Versions (`,gt.length,`)`]}),(0,C.jsx)(`div`,{style:D.versionsList,children:gt.map(e=>{let t=e.url===I;return(0,C.jsxs)(`button`,{type:`button`,style:{...D.versionRow,...t?D.versionRowActive:{}},onClick:()=>Un(e),disabled:W||R,title:t?`Active take`:`Use this take`,children:[(0,C.jsxs)(`span`,{style:D.versionMain,children:[t?`▸ `:``,e.source===`upload`?`Uploaded audio`:ie(e.voiceId)?.label||e.voiceId,e.source===`upload`?``:` · ${Number(e.speed||1).toFixed(2)}×`]}),(0,C.jsxs)(`span`,{style:D.versionMeta,children:[e.duration>0?De(e.duration):`—`,t?` · Active`:``]})]},e.id)})})]})]}),(0,C.jsxs)(`div`,{style:D.card,children:[(0,C.jsxs)(`div`,{style:D.cardTitleRow,children:[(0,C.jsx)(`div`,{style:D.cardTitle,children:`Timing analysis`}),(0,C.jsx)(`button`,{className:`btn`,style:{...D.analyzeBtn,...I&&!W&&!R?D.analyzeBtnReady:{}},onClick:Bn,disabled:W||R||!I,title:I?`Transcribe the audio with word-level timestamps`:`Generate or upload audio first`,children:Xt===`analyzing`?`Analyzing…`:`Analyze audio ${de(Mn)}`})]}),(0,C.jsx)(`div`,{style:D.cardSub,children:`Analyze your generated or uploaded audio for exact timing — your shot map is built from it.`}),Xt===`failed`&&Qt&&(0,C.jsxs)(`div`,{style:D.errorBox,children:[`⚠ `,Qt]}),(0,C.jsxs)(`button`,{type:`button`,style:D.disclosure,onClick:()=>cn(e=>!e),\"aria-expanded\":sn,children:[(0,C.jsx)(`span`,{style:D.disclosureChevron,children:sn?`▾`:`▸`}),`Have your own transcript or captions?`]}),sn&&(0,C.jsxs)(`div`,{style:D.disclosureBody,children:[(0,C.jsx)(`div`,{style:D.cardSub,children:`Paste it in any format — SRT, VTT, a YouTube transcript, or plain text — and AI turns it into timed words. Skip this if you don’t already have one; just analyze the audio above.`}),(0,C.jsx)(`textarea`,{style:D.textarea,value:en,onChange:e=>tn(e.target.value),placeholder:`Paste a transcript here — captions, an SRT/VTT, a YouTube transcript, or just plain text.`,rows:4,disabled:W||R}),(0,C.jsxs)(`div`,{style:D.audioBtnRow,children:[(0,C.jsx)(`button`,{className:`btn`,style:D.analyzeBtn,onClick:Hn,disabled:W||R||!en.trim(),children:nn===`parsing`?`Reading transcript…`:`✦ Parse transcript with AI ${de(Nn)}`}),en.trim()&&(0,C.jsxs)(`span`,{style:D.orSep,children:[en.trim().split(/\\s+/).length.toLocaleString(),` words pasted`]})]}),nn===`failed`&&an&&(0,C.jsxs)(`div`,{style:D.errorBox,children:[`⚠ `,an]})]}),(0,C.jsx)(`div`,{style:{marginTop:10},children:(0,C.jsx)(ye,{words:ft,onChange:Vn,readOnly:R||W},I||`no-audio`)})]}),!d&&(0,C.jsx)(`div`,{style:D.hintRow,children:ft.length===0?`Tip: analyze the audio for exact timing. You can also continue now and the shot map will use estimated timing.`:m?`${ft.length} timed words ready — every word individually time-stamped; your beats cut on exact word boundaries.`:`${ft.length} timed words ready — your shot map will match this audio exactly.`})]}),kt.open&&(0,C.jsx)(`div`,{style:D.modalOverlay,onMouseDown:()=>At(e=>({...e,open:!1})),children:(0,C.jsxs)(`div`,{style:D.modalCard,onMouseDown:e=>e.stopPropagation(),children:[(0,C.jsx)(`div`,{style:D.modalTitle,children:`Reaction GIFs for this video?`}),kt.loading?(0,C.jsx)(`div`,{style:D.modalBody,children:`Checking whether reaction GIFs fit the tone…`}):kt.error?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`div`,{style:D.modalBody,children:`Couldn’t check the tone right now. You can keep reaction GIFs on and plan them at the strip, or turn them off.`}),(0,C.jsxs)(`div`,{style:D.modalActions,children:[(0,C.jsx)(`button`,{className:`btn`,style:D.modalBtn,onClick:()=>qn({id:`skip`}),children:`Don’t turn on`}),(0,C.jsx)(`button`,{className:`btn btn-primary`,style:D.modalBtn,onClick:()=>qn({id:`proceed`,aggressiveness:Tt}),children:`Keep on`})]})]}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`div`,{style:D.modalBody,children:kt.result?.reason||(kt.result?.fit?`This tone suits quick reaction GIFs.`:`This tone is usually better without reaction GIFs.`)}),(0,C.jsx)(`div`,{style:D.modalActions,children:(kt.result?.options||[]).map(e=>{if(e.id===`edit`&&!Jn)return null;let t=e.id===`proceed`;return(0,C.jsx)(`button`,{className:`btn${t?` btn-primary`:``}`,style:D.modalBtn,onClick:()=>qn(e),title:e.hint||``,children:e.label},e.id)})})]})]})}),jt.open&&(0,C.jsx)(`div`,{style:D.modalOverlay,onMouseDown:()=>Mt(e=>({...e,open:!1})),children:(0,C.jsxs)(`div`,{style:{...D.modalCard,maxWidth:720,width:`92%`},onMouseDown:e=>e.stopPropagation(),children:[(0,C.jsx)(`div`,{style:D.modalTitle,children:`Make it GIF-viable`}),jt.loading?(0,C.jsx)(`div`,{style:D.modalBody,children:`Proposing small, style-preserving edits to open up a few reaction beats…`}):jt.error?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(`div`,{style:D.modalBody,children:[`⚠ `,jt.error]}),(0,C.jsx)(`div`,{style:D.modalActions,children:(0,C.jsx)(`button`,{className:`btn`,style:D.modalBtn,onClick:()=>Mt(e=>({...e,open:!1})),\"data-icon-action\":`true`,\"aria-label\":`Close`,title:`Close`,children:(0,C.jsx)(ne,{name:`x`,size:18})})})]}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`div`,{style:D.modalBody,children:`Additions and light rephrasing only — your style, voice, and meaning stay the same. Applying this clears the current timing analysis, so re-generate and re-analyze afterward.`}),(0,C.jsxs)(`div`,{style:D.diffCols,children:[(0,C.jsxs)(`div`,{style:D.diffCol,children:[(0,C.jsx)(`div`,{style:D.diffColHead,children:`Current`}),(0,C.jsx)(`div`,{style:D.diffText,children:jt.oldScript})]}),(0,C.jsxs)(`div`,{style:D.diffCol,children:[(0,C.jsx)(`div`,{style:D.diffColHead,children:`Proposed`}),(0,C.jsx)(`div`,{style:{...D.diffText,...D.diffTextNew},children:jt.newScript})]})]}),(0,C.jsxs)(`div`,{style:D.modalActions,children:[(0,C.jsx)(`button`,{className:`btn`,style:D.modalBtn,onClick:()=>Mt(e=>({...e,open:!1})),children:`Reject`}),(0,C.jsx)(`button`,{className:`btn btn-primary`,style:D.modalBtn,onClick:()=>Xn(jt.newScript),disabled:!String(jt.newScript).trim(),children:`Apply edits`})]})]})]})})]})}let D={container:{display:`flex`,flexDirection:`column`,height:`100%`,background:`var(--bg-secondary)`,borderRadius:`var(--radius-lg)`,overflow:`hidden`,border:`1px solid var(--border)`},header:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:`14px 20px`,borderBottom:`1px solid var(--border)`,background:`var(--bg-tertiary)`,flexShrink:0,gap:12,flexWrap:`wrap`},headerLeft:{display:`flex`,alignItems:`center`,gap:10},logoMark:{width:8,height:8,borderRadius:`50%`,background:`var(--accent)`,boxShadow:`0 0 8px var(--accent-glow)`},headerTitle:{fontWeight:600,fontSize:13,color:`var(--text-primary)`,letterSpacing:`0.01em`},headerBadge:{fontSize:11,fontWeight:600,color:`var(--accent)`,background:`var(--accent-dim)`,padding:`2px 8px`,borderRadius:20,letterSpacing:`0.05em`},headerActions:{display:`flex`,alignItems:`center`,gap:8},viewOnlyBadge:{fontSize:11,fontWeight:600,color:`var(--text-muted)`,background:`var(--bg-elevated)`,border:`1px solid var(--border)`,padding:`2px 8px`,borderRadius:20,letterSpacing:`0.05em`},confirmBtn:{fontSize:12,padding:`6px 16px`},skipBtn:{fontSize:12,padding:`6px 14px`,background:`var(--bg-elevated)`,color:`var(--text-secondary)`,border:`1px solid var(--border)`},body:{flex:1,overflowY:`auto`,padding:`16px max(20px, calc((100% - 720px) / 2))`,display:`flex`,flexDirection:`column`,gap:12,width:`100%`,boxSizing:`border-box`},card:{background:`var(--bg-tertiary)`,border:`1px solid var(--border)`,borderRadius:`var(--radius)`,padding:`14px 16px`,display:`flex`,flexDirection:`column`,gap:8},cardTitle:{fontSize:13,fontWeight:600,color:`var(--text-primary)`},cardTitleRow:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:10,flexWrap:`wrap`},cardSub:{fontSize:12,color:`var(--text-muted)`,lineHeight:1.5},handoffTitle:{margin:0,font:`200 italic 24px/1.2 var(--font-display)`,color:`var(--fg)`},handoffPreview:{whiteSpace:`pre-wrap`,overflowWrap:`anywhere`,font:`16px/1.6 var(--font-body)`,color:`var(--fg)`,background:`var(--bg-elev-1)`,border:`1px solid var(--border-tok)`,borderRadius:`var(--r-3)`,padding:14,maxHeight:240,overflowY:`auto`},handoffActions:{display:`flex`,flexWrap:`wrap`,gap:8},toggleRow:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:16},switch:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,width:46,flexShrink:0,border:`none`,background:`transparent`,cursor:`pointer`,padding:0},switchTrack:{position:`relative`,display:`block`,width:46,height:26,borderRadius:999,border:`1px solid var(--border)`,background:`var(--bg-elevated)`,transition:`background 0.15s`},switchTrackOn:{background:`var(--accent)`,borderColor:`var(--accent)`},switchKnob:{position:`absolute`,top:2,left:2,width:20,height:20,borderRadius:`50%`,background:`var(--text-primary)`,transition:`transform 0.15s`},switchKnobOn:{transform:`translateX(20px)`,background:`var(--accent-contrast, #0A0A0A)`},textarea:{width:`100%`,boxSizing:`border-box`,padding:`8px 10px`,fontSize:13,lineHeight:1.5,fontFamily:`inherit`,color:`var(--text-primary)`,background:`var(--bg-elevated)`,border:`1px solid var(--border)`,borderRadius:6,resize:`vertical`,minHeight:90,outline:`none`},charCount:{fontSize:11,color:`var(--text-muted)`,textAlign:`right`},voiceGrid:{display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(200px, 1fr))`,gap:8},voiceCard:{position:`relative`,display:`flex`,alignItems:`center`,gap:10,padding:`8px 10px`,background:`var(--bg-elevated)`,border:`1px solid var(--border)`,borderRadius:8,cursor:`pointer`},voiceBadge:{position:`absolute`,top:5,right:6,fontSize:8.5,fontWeight:800,letterSpacing:`0.02em`,padding:`1.5px 6px`,borderRadius:999,background:`var(--text-primary)`,color:`var(--bg-elevated)`,lineHeight:1.4,pointerEvents:`none`,whiteSpace:`nowrap`},voiceCardActive:{borderColor:`var(--accent)`,background:`color-mix(in oklab, var(--accent) 14%, transparent)`},voiceCardLocked:{opacity:.5,cursor:`default`},voiceLockBadge:{position:`absolute`,top:5,right:6,fontSize:8.5,fontWeight:800,letterSpacing:`0.02em`,padding:`1.5px 6px`,borderRadius:999,background:`var(--text-muted)`,color:`var(--bg-elevated)`,lineHeight:1.4,pointerEvents:`none`,whiteSpace:`nowrap`},voicePlay:{width:28,height:28,flexShrink:0,borderRadius:`50%`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,background:`var(--accent)`,color:`var(--accent-contrast, #0A0A0A)`,cursor:`pointer`,fontSize:11,fontWeight:700},voiceMeta:{flex:1,minWidth:0},voiceName:{fontSize:13,fontWeight:600,color:`var(--text-primary)`},voiceVibe:{fontSize:11,color:`var(--text-muted)`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},voiceSelect:{marginTop:2,maxWidth:`100%`,fontSize:11,color:`var(--text-secondary)`,background:`var(--bg-secondary)`,border:`1px solid var(--border)`,borderRadius:4,padding:`2px 4px`,fontFamily:`var(--font)`,cursor:`pointer`},showAllVoicesBtn:{alignSelf:`flex-start`,marginTop:8,background:`none`,border:`none`,color:`var(--accent)`,fontSize:12,fontWeight:600,cursor:`pointer`,padding:0,fontFamily:`var(--font)`,textDecoration:`underline`},voiceHead:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:8,marginBottom:8,flexWrap:`wrap`},voiceFilterRow:{display:`inline-flex`,flexWrap:`wrap`,gap:2,padding:2,background:`var(--bg-elevated)`,borderRadius:8,border:`1px solid var(--border)`},voiceFilterBtn:{background:`none`,border:`none`,color:`var(--text-muted)`,fontSize:11,fontWeight:600,padding:`4px 10px`,borderRadius:6,cursor:`pointer`,fontFamily:`var(--font)`},voiceFilterBtnOn:{background:`var(--accent)`,color:`var(--accent-contrast, #0A0A0A)`},voiceCheck:{alignSelf:`flex-end`,color:`var(--accent)`,fontWeight:700,flexShrink:0,lineHeight:1},customVoicesBlock:{marginTop:14,paddingTop:12,borderTop:`1px dashed var(--border)`,display:`flex`,flexDirection:`column`,gap:8},customVoicesHead:{fontSize:12,fontWeight:700,color:`var(--text-secondary)`},customVoiceRemove:{position:`absolute`,top:4,right:4,width:18,height:18,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`var(--bg-tertiary)`,border:`1px solid var(--border)`,color:`var(--text-muted)`,fontSize:13,lineHeight:1,borderRadius:`50%`,padding:0,cursor:`pointer`,fontFamily:`var(--font)`},speedRow:{display:`flex`,alignItems:`center`,gap:10,marginTop:4},speedLabel:{fontSize:11,color:`var(--text-muted)`,textTransform:`uppercase`,letterSpacing:`0.05em`,flexShrink:0},speedSlider:{flex:1,minWidth:0,accentColor:`var(--accent)`},speedVal:{fontSize:12,color:`var(--text-primary)`,fontVariantNumeric:`tabular-nums`,width:48,textAlign:`right`},speedReset:{width:24,height:24,padding:0,border:`1px solid var(--border)`,background:`transparent`,color:`var(--text-muted)`,borderRadius:4,cursor:`pointer`,fontSize:12},elSettings:{marginTop:10,paddingTop:10,borderTop:`1px solid var(--border)`,display:`flex`,flexDirection:`column`,gap:6},elSettingsHead:{display:`flex`,alignItems:`center`,justifyContent:`space-between`},elSliderLabel:{fontSize:11,color:`var(--text-muted)`,width:92,flexShrink:0},elBoostBtn:{padding:`3px 12px`,border:`1px solid var(--border)`,background:`transparent`,color:`var(--text-muted)`,borderRadius:999,cursor:`pointer`,fontSize:11},elBoostBtnOn:{borderColor:`var(--accent)`,color:`var(--accent)`},audioBtnRow:{display:`flex`,alignItems:`center`,gap:10,flexWrap:`wrap`},genBtn:{fontSize:12,padding:`8px 14px`},uploadBtn:{fontSize:12,padding:`8px 14px`,background:`var(--bg-elevated)`,color:`var(--text-secondary)`,border:`1px dashed var(--border)`},uploadBtnDrag:{border:`1px dashed var(--accent)`,color:`var(--accent)`,background:`var(--accent-dim)`},orSep:{fontSize:11,color:`var(--text-muted)`},elevenLink:{marginLeft:`auto`,maxWidth:280,fontSize:11,color:`var(--text-muted)`,textDecoration:`underline`,textDecorationStyle:`dotted`,lineHeight:1.4},playerWrap:{display:`flex`,flexDirection:`column`,gap:6,marginTop:4},audioEl:{width:`100%`,height:36},playerMeta:{fontSize:11,color:`var(--text-muted)`},analyzeBtn:{fontSize:12,padding:`6px 14px`,background:`var(--bg-elevated)`,color:`var(--text-secondary)`,border:`1px solid var(--border)`},analyzeBtnReady:{background:`linear-gradient(180deg, rgba(255,255,255,0.10), rgba(0,0,0,0.12)), var(--fg)`,color:`var(--bg)`,border:`1px solid var(--fg)`,boxShadow:`0 1px 6px rgba(0,0,0,0.25)`,cursor:`pointer`},disclosure:{display:`flex`,alignItems:`center`,gap:6,alignSelf:`flex-start`,background:`none`,border:`none`,color:`var(--text-secondary)`,fontSize:12,fontWeight:600,cursor:`pointer`,padding:`4px 0`,fontFamily:`var(--font)`},disclosureChevron:{fontSize:10,color:`var(--text-muted)`,width:10,display:`inline-block`,textAlign:`center`},disclosureBody:{display:`flex`,flexDirection:`column`,gap:8,paddingLeft:10,borderLeft:`2px solid var(--border)`,marginLeft:2},versionsWrap:{display:`flex`,flexDirection:`column`,gap:6,marginTop:8},versionsHead:{fontSize:11,fontWeight:600,color:`var(--text-muted)`,textTransform:`uppercase`,letterSpacing:`0.05em`},versionsList:{display:`flex`,flexDirection:`column`,gap:4,maxHeight:156,overflowY:`auto`,paddingRight:2},versionRow:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:10,padding:`7px 10px`,background:`var(--bg-elevated)`,border:`1px solid var(--border)`,borderRadius:6,cursor:`pointer`,fontFamily:`var(--font)`,textAlign:`left`,width:`100%`},versionRowActive:{borderColor:`var(--accent)`,background:`color-mix(in oklab, var(--accent) 12%, transparent)`},versionMain:{fontSize:12,fontWeight:600,color:`var(--text-primary)`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},versionMeta:{fontSize:11,color:`var(--text-muted)`,flexShrink:0,fontVariantNumeric:`tabular-nums`},errorBox:{padding:`6px 10px`,background:`rgba(247, 100, 100, 0.08)`,border:`1px solid rgba(247, 100, 100, 0.3)`,borderRadius:4,fontSize:12,color:`#e88`},hintRow:{fontSize:12,color:`var(--text-muted)`,textAlign:`center`,padding:`4px 0 8px`},gifTitleRow:{display:`flex`,alignItems:`center`,gap:6},infoGlyph:{width:16,height:16,flexShrink:0,borderRadius:`50%`,border:`1px solid var(--border)`,background:`var(--bg-elevated)`,color:`var(--text-muted)`,fontSize:10,fontStyle:`italic`,fontWeight:700,fontFamily:`Georgia, serif`,lineHeight:`14px`,textAlign:`center`,cursor:`pointer`,padding:0},infoBox:{fontSize:12,color:`var(--text-secondary)`,lineHeight:1.5,background:`var(--bg-elevated)`,border:`1px solid var(--border)`,borderRadius:6,padding:`8px 10px`,marginTop:2},modalOverlay:{position:`fixed`,inset:0,zIndex:99e3,background:`rgba(0,0,0,0.55)`,display:`flex`,alignItems:`center`,justifyContent:`center`,padding:20},modalCard:{background:`var(--bg-secondary)`,border:`1px solid var(--border)`,borderRadius:`var(--radius-lg)`,padding:`18px 20px`,maxWidth:460,width:`90%`,display:`flex`,flexDirection:`column`,gap:12,boxShadow:`0 12px 40px rgba(0,0,0,0.4)`},modalTitle:{fontSize:15,fontWeight:600,color:`var(--text-primary)`},modalBody:{fontSize:13,color:`var(--text-secondary)`,lineHeight:1.5},modalActions:{display:`flex`,gap:8,flexWrap:`wrap`,justifyContent:`flex-end`,marginTop:4},modalBtn:{fontSize:12,padding:`7px 14px`},diffCols:{display:`flex`,gap:10,flexWrap:`wrap`},diffCol:{flex:1,minWidth:220,display:`flex`,flexDirection:`column`,gap:4},diffColHead:{fontSize:11,fontWeight:600,color:`var(--text-muted)`,textTransform:`uppercase`,letterSpacing:`0.05em`},diffText:{fontSize:12,lineHeight:1.5,whiteSpace:`pre-wrap`,color:`var(--text-secondary)`,background:`var(--bg-elevated)`,border:`1px solid var(--border)`,borderRadius:6,padding:`8px 10px`,maxHeight:260,overflowY:`auto`},diffTextNew:{color:`var(--text-primary)`,borderColor:`var(--accent)`,background:`color-mix(in oklab, var(--accent) 8%, transparent)`}},Ae={ready:`saved`,dirty:`saving`,pending:`saving`,closed:`offline`},je=e=>e.sourceConflict||e.error?`conflict`:Ae[e.phase]||(e.pending||e.dirty?`saving`:`saved`);function Me(e,{shared:t=e=>e,merge:n=(e,t)=>t,debounceMs:r=0,maxWaitMs:i=1500}={}){let a=new Map,o=(e,n)=>{clearTimeout(e.timer),e.timer=null,e.first=0;let r=t(e.screen,n),i=JSON.stringify(r);e.text===null&&(e.text=JSON.stringify(e.document)),i!==e.text&&(e.document=r,e.text=i,e.binding.changed())},s=(e,t)=>{if(!(r>0))return o(e,t);let n=Date.now();e.first||=n,clearTimeout(e.timer),e.timer=setTimeout(()=>o(e,t),Math.max(0,Math.min(r,e.first+i-n)))};function c(r,i,c,l=`document`){let u=(0,g.useRef)({document:i,receive:c});u.current.receive=c;let[d,f]=(0,g.useState)(()=>({canEdit:e.getShared?.().canEdit!==!1,phase:`ready`}));return(0,g.useEffect)(()=>{let r=a.get(l);if(!r){let n={binding:null,listeners:new Set,screen:u.current.document,document:t(u.current.document,l),text:null,timer:null,first:0};r=n,a.set(l,n),n.binding=e.connectDocument({key:l,source:n.document,read:()=>n.document,replace:e=>{n.document=e,n.text=null;for(let t of n.listeners)t(e)}})}let i=e=>{let t=n(u.current.document,e,l);u.current.document=t,r.screen=t,u.current.receive?.(t)};r.listeners.add(i);let s=r.binding.onStatus(e=>f({...e,canEdit:e.canEdit!==!1}));return JSON.stringify(r.document)!==JSON.stringify(t(u.current.document,l))&&i(r.document),()=>{r.listeners.delete(i),s?.(),r.timer&&o(r,l)}},[l]),(0,g.useEffect)(()=>{let e=a.get(l);u.current.document=i,e&&e.screen!==i&&(e.screen=i,s(e,l))},[i,l]),(0,g.useMemo)(()=>({enabled:!1,canEdit:d.canEdit,status:je(d),actorId:`frame`,adoptDocument(e){let t=a.get(l);t&&(t.screen=e,u.current.document=e,o(t,l))},async persistDocument(e){let t=a.get(l);return t?(t.screen=e,u.current.document=e,o(t,l),await t.binding.flush(),{saved:!0}):{saved:!1}},getSharedBase:()=>null,pauseWorkflow:async()=>()=>{}}),[d,l])}return c.change=(e,t)=>{let n=a.get(e);if(!n||!n.listeners.size)return!1;let r=t(n.screen);if(!r||r===n.screen)return!1;for(let e of n.listeners)e(r);return n.screen=r,o(n,e),!0},c}function Ne(e){return function(t,n,r,i){let a=(0,g.useRef)({script:n,setScript:r,onRemote:i});a.current={script:n,setScript:r,onRemote:i};let o=e(t,(0,g.useMemo)(()=>({script:n}),[n]),e=>{typeof e?.script==`string`&&e.script!==a.current.script&&(a.current.script=e.script,a.current.setScript(e.script),a.current.onRemote?.(e.script))},`script`);return(0,g.useMemo)(()=>({...o,persistScript:e=>o.persistDocument({script:e})}),[o])}}let Pe=/~?\\s*(\\d{1,4}(?:,\\d{3})*)\\s*(?:cr|credits?)\\b/gi;function Fe(e){let t=0;for(let n of String(e||``).matchAll(Pe))t=Math.max(t,Number(n[1].replace(/,/g,``)));return t}function Ie({bridge:e=null}={}){let t=[],n=null,r=e=>new Promise(r=>{t.push({...e,resolve:r}),n?.()}),i=e=>typeof e==`string`?e:String(e?.message||e||``),a=(t,n)=>e.allowSpending({credits:t,label:n.replace(/\\s+/g,` `).trim().slice(0,120)}),o=[],s=0,c=e=>t=>{let r=i(t).trim();if(!r)return;let a=++s;o.push({id:a,tone:e,text:r}),o.length>3&&o.shift(),n?.(),e!==`error`&&setTimeout(()=>l(a),6e3)},l=e=>{let t=o.findIndex(t=>t.id===e);t>=0&&(o.splice(t,1),n?.())},u=Object.freeze({success:c(`success`),error:c(`error`),info:c(`info`),warn:c(`warn`)}),d=Object.freeze({alert:(e,t={})=>r({kind:`alert`,message:i(e),title:t.title||``,confirmLabel:t.confirmLabel||`OK`}).then(()=>void 0),async confirm(t,n={}){let o=i(t),s=typeof e?.allowSpending==`function`?Fe(o):0;if(s>0)try{return(await a(s,o)).allowed}catch{}return r({kind:`confirm`,message:o,title:n.title||``,confirmLabel:n.confirmLabel||`Continue`,cancelLabel:n.cancelLabel||`Cancel`,credits:s})}});function f(){let[,e]=(0,g.useState)(0);(0,g.useEffect)(()=>(n=()=>e(e=>e+1),()=>{n=null}),[]);let r=t[0];(0,g.useEffect)(()=>{if(!r)return;let e=e=>{e.key===`Escape`&&(e.stopPropagation(),s(r.kind===`alert`))};return addEventListener(`keydown`,e,!0),()=>removeEventListener(`keydown`,e,!0)});let i=o.length>0&&(0,C.jsx)(`div`,{role:`status`,\"aria-live\":`polite`,style:Le.notices,children:o.map(e=>(0,C.jsxs)(`div`,{style:{...Le.notice,...e.tone===`error`?Le.noticeError:{}},children:[e.text,e.tone===`error`&&(0,C.jsx)(`button`,{type:`button`,\"aria-label\":`Close`,style:Le.noticeClose,onClick:()=>l(e.id),children:`×`})]},e.id))});if(!r)return i||null;let s=n=>{t.shift(),e(e=>e+1),n===!0&&r.credits>0?a(r.credits,r.message).then(e=>r.resolve(e.allowed),()=>r.resolve(!0)):r.resolve(n)};return(0,C.jsxs)(C.Fragment,{children:[i,(0,C.jsx)(`div`,{role:`presentation`,style:Le.backdrop,onClick:e=>{e.target===e.currentTarget&&s(r.kind===`alert`)},children:(0,C.jsxs)(`div`,{role:`dialog`,\"aria-modal\":`true`,\"aria-label\":r.title||`Message`,style:Le.box,children:[r.title&&(0,C.jsx)(`strong`,{style:Le.title,children:r.title}),(0,C.jsx)(`p`,{style:Le.message,children:r.message}),(0,C.jsxs)(`div`,{style:Le.actions,children:[r.kind===`confirm`&&(0,C.jsx)(`button`,{type:`button`,className:`btn btn-secondary`,onClick:()=>s(!1),children:r.cancelLabel}),(0,C.jsx)(`button`,{type:`button`,className:`btn btn-primary`,autoFocus:!0,onClick:()=>s(!0),children:r.confirmLabel})]})]})})]})}return{ui:d,toast:u,DialogHost:f}}let Le={backdrop:{position:`fixed`,inset:0,background:`var(--scrim)`,display:`grid`,placeItems:`center`,padding:16,zIndex:1e3},box:{background:`var(--bg-elev-1)`,color:`var(--fg)`,border:`1px solid var(--border-tok)`,borderRadius:`var(--r-3)`,padding:20,maxWidth:420,width:`100%`,display:`grid`,gap:12},title:{fontSize:16},message:{margin:0,lineHeight:1.5,whiteSpace:`pre-wrap`},actions:{display:`flex`,gap:8,justifyContent:`flex-end`,flexWrap:`wrap`},notices:{position:`fixed`,left:16,right:16,bottom:16,display:`grid`,justifyItems:`center`,gap:8,zIndex:1001,pointerEvents:`none`},notice:{background:`var(--fg)`,color:`var(--bg)`,borderRadius:`var(--r-3)`,padding:`10px 14px`,maxWidth:480,lineHeight:1.4,display:`flex`,gap:10,alignItems:`flex-start`,pointerEvents:`auto`},noticeClose:{background:`none`,border:0,color:`inherit`,font:`inherit`,cursor:`pointer`,padding:0,lineHeight:1},noticeError:{background:`var(--danger)`,color:`var(--bg)`}},Re=Object.freeze({video:3,build:3,media:4.5,other:3,chat:2}),ze=(e,t)=>Math.max(0,Number(e)||0)*Re[t]/.02180909090909091,Be=(e,t)=>Math.max(1,Math.ceil(ze(e,t)-1e-9)),O=`2026-11-05`,Ve=`carried`;Object.freeze({\"veo-3.1-lite\":{usd:.05,resolution:{\"720p\":1,\"1080p\":1.6},provider:`Atlas`,checked:O,source:`Atlas catalog list price $0.05/s; 1080p at $0.08/s, Google's Veo 3.1 Lite step`},\"vidu-q3-turbo\":{usd:.04,provider:`Atlas`,checked:O,source:`Atlas catalog list price (we pay $0.034)`},\"wan-2.6-flash\":{usd:.025,provider:`Atlas`,checked:O,source:`Atlas catalog list price (we pay $0.018)`},\"wan-2.7\":{usd:.17,provider:`Higgsfield, then Atlas`,checked:Ve,source:`Atlas $0.10/s at 720p (checked); the 1.7x step to the 1080p we generate is carried from the old table`},\"kling-v3-turbo\":{usd:.112,provider:`Higgsfield, then Atlas`,checked:O,source:`Atlas catalog list price (we pay $0.095); Higgsfield $0.056/s on promotion`},\"seedance-2.0\":{usd:.2,resolution:{\"480p\":1,\"720p\":1.3,\"1080p\":3.2,\"4k\":7.5},provider:`BytePlus Ark`,checked:Ve,source:`Ark is priced per token and its price page does not load without an account; carried from the old table (verify against an Ark invoice)`},\"seedance-2.0-fast\":{usd:.09,resolution:{\"480p\":1,\"720p\":1.3},provider:`BytePlus Ark`,checked:Ve,source:`carried from the old table (Atlas lists $0.09/s)`},\"seedance-2.0-mini\":{usd:.09,resolution:{\"480p\":1,\"720p\":1.3},provider:`BytePlus Ark`,checked:Ve,source:`priced as Fast, carried from the old table (Atlas lists $0.056/s)`}}),Object.freeze({\"seedance-2\":`seedance-2.0`,\"kling-3\":`kling-v3-turbo`,\"kling-v3-pro\":`kling-v3-turbo`,\"kling-v3-std\":`kling-v3-turbo`,\"kling-o3-std\":`kling-v3-turbo`}),Object.freeze({\"gpt-image-2\":{quality:{low:{\"1K\":.006,\"2K\":.007,\"4K\":.012},medium:{\"1K\":.053,\"2K\":.056,\"4K\":.101},high:{\"1K\":.211,\"2K\":.222,\"4K\":.401}},referenceUsd:.02,provider:`OpenAI for square, fal then Atlas for other shapes`,checked:O,source:`fal gpt-image-2 price table (dearest size in each class); OpenAI direct is $30 per million output tokens`},\"gpt-image-2.5-flare\":{quality:{low:{\"1K\":.00588,\"2K\":.00615,\"4K\":.01113},medium:{\"1K\":.01317,\"2K\":.01434,\"4K\":.02595},high:{\"1K\":.05268,\"2K\":.05529,\"4K\":.10008}},referenceUsd:.02,provider:`OpenAI for square, fal for other shapes`,checked:`2026-11-06`,source:`fal openai/gpt-image-2.5/flare price table; OpenAI rate card $30 per million output tokens`},\"gpt-image-2.5-sunburst\":{quality:{low:{\"1K\":.00588,\"2K\":.00615,\"4K\":.01113},medium:{\"1K\":.01317,\"2K\":.01434,\"4K\":.02595},high:{\"1K\":.05268,\"2K\":.05529,\"4K\":.10008}},referenceUsd:.02,provider:`OpenAI for square, fal for other shapes`,checked:`2026-11-06`,source:`fal openai/gpt-image-2.5/sunburst price table; OpenAI rate card $30 per million output tokens`},\"gpt-image-2.6-flare\":{quality:{low:{\"1K\":.00588,\"2K\":.00615,\"4K\":.01113},medium:{\"1K\":.01317,\"2K\":.01434,\"4K\":.02595},high:{\"1K\":.05268,\"2K\":.05529,\"4K\":.10008}},referenceUsd:.02,provider:`OpenAI for square, fal for other shapes`,checked:`2026-11-07`,source:`OpenAI and fal gpt-image-2.6 token rates ($30 per million output tokens); per-image price taken from 2.5 until published`},\"gpt-image-2.6-sunburst\":{quality:{low:{\"1K\":.00588,\"2K\":.00615,\"4K\":.01113},medium:{\"1K\":.01317,\"2K\":.01434,\"4K\":.02595},high:{\"1K\":.05268,\"2K\":.05529,\"4K\":.10008}},referenceUsd:.02,provider:`OpenAI for square, fal for other shapes`,checked:`2026-11-07`,source:`OpenAI and fal gpt-image-2.6 token rates ($30 per million output tokens); per-image price taken from 2.5 until published`},\"gpt-image-1.5\":{quality:{low:{\"1K\":.013},medium:{\"1K\":.051},high:{\"1K\":.2}},provider:`fal`,checked:O,source:`fal price for a non-square image`},\"nano-banana-2\":{usd:.08,resolution:{\"1K\":1,\"2K\":1.5,\"4K\":2},provider:`fal`,checked:O,source:`fal: $0.08 at 1K, 1.5x at 2K, 2x at 4K`},\"nano-banana-2-lite\":{usd:.048,provider:`fal`,checked:O,source:`fal: $37.50 per million output tokens, one 1K image (about 1,290 tokens)`},\"nano-banana-pro\":{usd:.15,resolution:{\"1K\":1,\"2K\":1,\"4K\":2},provider:`fal`,checked:O,source:`fal: $0.15, 4K at double`},\"kling-image-v3\":{usd:.028,provider:`fal`,checked:O,source:`fal: $0.028 per image`},\"seedream-v4.5\":{usd:.04,provider:`fal`,checked:O,source:`fal: $0.04 per image`},\"flux-step\":{usd:.02,provider:`fal`,checked:Ve,source:`carried from the old table`},flux:{usd:.04,provider:`fal`,checked:Ve,source:`carried from the old table`},ideogram:{usd:.08,provider:`fal`,checked:Ve,source:`carried from the old table`},gemini:{usd:.08,resolution:{\"1K\":1,\"2K\":1.5,\"4K\":2},provider:`fal`,checked:O,source:`served as Nano Banana 2`}});let He=Object.freeze({deepgram:{usdPer1kChars:.03,checked:O,source:`Deepgram Aura-2 pay as you go`},openai:{usdPer1kChars:.015,checked:O,source:`OpenAI tts-1, $15 per million characters`},elevenlabs:{usdPer1kChars:.04,checked:O,source:`ElevenLabs API, Flash / Turbo`},kokoro:{usdPer1kChars:.02,checked:O,source:`fal Kokoro`}});Object.freeze({usdPerSecond:2e-4,checked:O,source:`fal ACE-Step, per second of audio`}),Object.freeze({usdPerSecond:.002,checked:O,source:`fal ElevenLabs sound effects v2, per second`}),Object.freeze({\"openai/gpt-5-mini\":{input:.25,output:2},\"google/gemini-2.5-flash\":{input:.3,output:2.5},\"anthropic/claude-haiku-5.5\":{input:.1,output:.5},\"anthropic/claude-sonnet-4\":{input:3,output:15},\"anthropic/claude-sonnet-4.5\":{input:3,output:15},\"anthropic/claude-sonnet-5.5\":{input:2,output:10},\"openai/gpt-5.4\":{input:2.5,output:15},\"google/gemini-2.5-pro\":{input:1.25,output:10},\"x-ai/grok-4.5\":{input:2,output:6},\"x-ai/grok-4.20\":{input:1.25,output:2.5},\"anthropic/claude-opus-4.1\":{input:15,output:75},\"anthropic/claude-opus-4.5\":{input:5,output:25},\"anthropic/claude-opus-4.8\":{input:5,output:25},\"openai/gpt-5.5\":{input:5,output:30}}),Object.freeze({input:2e3,output:1e3}),Object.freeze({input:1e4,output:4096});let k=(e,t,n,r,i={})=>Object.freeze({usd:e,tier:t,unit:n,source:r,checked:i.checked||Ve,...i}),Ue=Object.freeze({\"media:analyze\":k(.02,`media`,`call`,`the vision provider caps a call at $0.02 (VISION_MAX_INITIAL_COST)`,{checked:O}),\"media:check\":k(.005,`media`,`call`,`four photos at most, $0.00125 each (MEDIA_CHECK_IMAGE_USD)`,{checked:O}),\"research:search\":k(.008,`media`,`search`,`Tavily basic search`,{checked:O}),\"research:summarize\":k(.01,`media`,`call`,`one Gemini Flash read of fetched pages`,{estimate:!0}),\"transcribe:timestamp\":k(.01,`media`,`run`,`fal Whisper word timing`,{estimate:!0}),\"transcribe:upload\":k(.01,`media`,`run`,`fal Whisper word timing`,{estimate:!0}),\"transcribe:captions\":k(.01,`media`,`run`,`fal Whisper word timing`,{estimate:!0}),\"connection:action\":k(.012,`other`,`action`,`a premium Composio tool call at the overage rate`,{checked:O}),\"automation:app-event\":k(.003,`other`,`event`,`Composio, per trigger event`,{checked:O}),\"automation:app-check\":k(3e-4,`other`,`check`,`Composio, per tool call`,{checked:O}),llm:k(.01,`other`,`call`,`a Standard model call`,{estimate:!0}),vision:k(.01,`other`,`image`,`one vision read`,{estimate:!0}),\"narrative:compile\":k(.06,`other`,`script`,`about ten Gemini Flash calls`,{estimate:!0}),\"narrative:compile-research\":k(.1,`other`,`script`,`the compile plus three Tavily searches and a dossier`,{estimate:!0}),\"narrative:learn-voice\":k(.01,`other`,`call`,`one extraction call`,{estimate:!0}),\"roughcut:base\":k(.05,`other`,`run`,`segmentation and matching`,{estimate:!0}),\"roughcut:per-min\":k(.015,`other`,`footage minute`,`Gemini Flash frame reads`,{estimate:!0}),\"finaledit:base\":k(.06,`other`,`run`,`polish decisions`,{estimate:!0}),\"finaledit:per-min\":k(.02,`other`,`video minute`,`Gemini Flash scan`,{estimate:!0}),\"aomotion:base\":k(.06,`other`,`run`,`motion graphics pass`,{estimate:!0}),\"aomotion:per-min\":k(.02,`other`,`video minute`,`motion graphics pass`,{estimate:!0}),\"aomotion:base:opus\":k(.12,`other`,`run`,`motion graphics pass on Opus`,{estimate:!0}),\"aomotion:per-min:opus\":k(.04,`other`,`video minute`,`motion graphics pass on Opus`,{estimate:!0}),motiongraphic:k(.015,`other`,`graphic`,`one small call`,{estimate:!0}),\"transcript:parse\":k(.005,`other`,`1,000 characters`,`Gemini Flash word timing`,{estimate:!0}),\"vibe-edit\":k(.02,`other`,`turn`,`Flash region scan and decision`,{estimate:!0}),\"canvas:context-connect\":k(.01,`other`,`run`,`one canvas read`,{estimate:!0}),\"anim2:plan\":k(.03,`other`,`video`,`shot planning`,{estimate:!0}),\"anim2:vibe\":k(.03,`other`,`turn`,`scene vibe turn`,{estimate:!0}),\"anim2:qa\":k(.03,`other`,`frame`,`vision QA`,{estimate:!0}),\"anim2:trigger\":k(.01,`other`,`scene`,`one Haiku call`,{estimate:!0}),\"gif:plan\":k(.03,`other`,`pass`,`GIF planning`,{estimate:!0}),\"canvas:plan\":k(.03,`other`,`pass`,`collage planning`,{estimate:!0}),\"canvasChat:build\":k(.03,`other`,`build`,`canvas chat orchestration`,{estimate:!0}),\"strip:plan\":k(.05,`other`,`pass`,`strip planning`,{estimate:!0}),\"panel:qa\":k(.03,`other`,`pass`,`style-consistency vision pass`,{estimate:!0})});Object.freeze({standard:.4,balanced:.85,reasoning:.5,premium:1.4}),Object.freeze({build:.1,chat:.005,other:.05});function We({chars:e,seconds:t,provider:n=`deepgram`}={}){return(He[n]||He.elevenlabs).usdPer1kChars*(Number(e)>0?Number(e):Math.max(1,Number(t)||30)*12.5)/1e3}let Ge=[{id:`asteria`,label:`Asteria`,vibe:`Clear, confident female`,accent:`American`,gender:`female`,provider:`deepgram`,apiId:`aura-2-asteria-en`,sampleUrl:`https://v3b.fal.media/files/b/0a9d0758/3HH_BFTlx9Lj5ZyETT3cM_1780631929430.mpeg`},{id:`adam`,label:`Adam`,vibe:`Dominant, firm male`,accent:`American`,gender:`male`,provider:`elevenlabs`,apiId:`pNInz6obpgDQGcFmaJgB`,model:`eleven_flash_v2_5`,sampleUrl:`https://storage.googleapis.com/eleven-public-prod/premade/voices/pNInz6obpgDQGcFmaJgB/d6905d7a-dd26-4187-bfff-1bd3a5ea7cac.mp3`},{id:`liam-social`,label:`Liam · Social`,vibe:`Energetic — reels & shorts`,accent:`American`,gender:`male`,provider:`elevenlabs`,apiId:`TX3LPaxmHKxFdv7VOQHJ`,model:`eleven_flash_v2_5`,sampleUrl:`https://storage.googleapis.com/eleven-public-prod/premade/voices/TX3LPaxmHKxFdv7VOQHJ/63148076-6363-42db-aea8-31424308b92c.mp3`},{id:`jake`,label:`Jake`,vibe:`Deep, smooth, dramatic`,accent:`American`,gender:`male`,provider:`elevenlabs`,apiId:`ev2kMR9ZJZZsemuogS5u`,model:`eleven_flash_v2_5`,libraryVoice:!0,sampleUrl:`https://storage.googleapis.com/eleven-public-prod/database/workspace/8b0d34c23a9a42acb0215569d54bf145/voices/ev2kMR9ZJZZsemuogS5u/PxQGC0wpl8AJ49BX0uSd.mp3`},{id:`liam-viral`,label:`Liam · Viral`,vibe:`Hyped short-form storyteller`,accent:`American`,gender:`male`,provider:`elevenlabs`,apiId:`VCgLBmBjldJmfphyB8sZ`,model:`eleven_flash_v2_5`,libraryVoice:!0,sampleUrl:`https://api.us.elevenlabs.io/v1/voices/VCgLBmBjldJmfphyB8sZ/previews/audio?payload=eyJ2b2ljZV9zb3VyY2UiOiJjdXN0b20iLCJ3b3Jrc3BhY2VfaWQiOiIyMGQyY2YwM2Y2MzM0MjIyODVlYWE4MjlhZTcwMTIyMCIsImZpbGVuYW1lIjoiTUdOek1CSFpJM0JJREFFOGN6MzgubXAzIiwidGltZXN0YW1wIjoxNzg0NTY2ODAwMDAwMDAwfQ%3D%3D`},{id:`brian`,label:`Brian`,vibe:`Deep, resonant, comforting`,accent:`American`,gender:`male`,provider:`elevenlabs`,apiId:`Gubgw9l4dtIoQA9YZHgx`,model:`eleven_flash_v2_5`,libraryVoice:!0,sampleUrl:`https://storage.googleapis.com/eleven-public-prod/database/workspace/bb3de32d375e4462a5d1aebc77eb7b0a/voices/Gubgw9l4dtIoQA9YZHgx/0tEqW9hX1QsyouhvnTSQ.mp3`},{id:`mark-natural`,label:`Mark · Natural`,vibe:`Natural conversations`,group:`Mark`,groupLabel:`Natural conversations`,groupDefault:!0,accent:`American`,gender:`male`,provider:`elevenlabs`,apiId:`UgBBYS2sOqTuMpoF3BR0`,model:`eleven_flash_v2_5`,libraryVoice:!0,sampleUrl:`https://storage.googleapis.com/eleven-public-prod/database/workspace/f94e260200764678babc807b935bfb0b/voices/UgBBYS2sOqTuMpoF3BR0/0Oc7jiXwWN9kRTXfQsmw.mp3`},{id:`mark-casual`,label:`Mark · Casual`,vibe:`Casual, relaxed & light`,group:`Mark`,groupLabel:`Casual, relaxed & light`,accent:`American`,gender:`male`,provider:`elevenlabs`,apiId:`1SM7GgM6IMuvQlz2BwM3`,model:`eleven_flash_v2_5`,libraryVoice:!0,sampleUrl:`https://api.us.elevenlabs.io/v1/voices/1SM7GgM6IMuvQlz2BwM3/previews/audio?payload=eyJ2b2ljZV9zb3VyY2UiOiJjdXN0b20iLCJ3b3Jrc3BhY2VfaWQiOiJmOTRlMjYwMjAwNzY0Njc4YmFiYzgwN2I5MzViZmIwYiIsImZpbGVuYW1lIjoieTk0RzFyR2l4YXFMMkZ2UDNUdGUubXAzIiwidGltZXN0YW1wIjoxNzg0NTY2ODAwMDAwMDAwfQ%3D%3D`},{id:`mark-plain`,label:`Mark · Wise`,vibe:`Wise, social`,group:`Mark`,groupLabel:`Wise, social`,accent:`American`,gender:`male`,provider:`elevenlabs`,apiId:`WTUK291rZZ9CLPCiFTfh`,model:`eleven_flash_v2_5`,libraryVoice:!0,sampleUrl:`https://storage.googleapis.com/eleven-public-prod/database/workspace/f94e260200764678babc807b935bfb0b/voices/WTUK291rZZ9CLPCiFTfh/bnnCGcGCSiY3m9CS9dGc.mp3`},{id:`onyx`,label:`Onyx`,vibe:`Deep, steady male narrator`,accent:`American`,gender:`male`,provider:`openai`,apiId:`onyx`,sampleUrl:null},{id:`nova`,label:`Nova`,vibe:`Bright, clear female narrator`,accent:`American`,gender:`female`,provider:`openai`,apiId:`nova`,sampleUrl:null},{id:`luna`,label:`Luna`,vibe:`Friendly, youthful female`,accent:`American`,gender:`female`,provider:`deepgram`,apiId:`aura-2-luna-en`,sampleUrl:`https://v3b.fal.media/files/b/0a9d0759/9_5Fefw5yUv4sjGK-igBK_1780631932143.mpeg`},{id:`odysseus`,label:`Odysseus`,vibe:`Calm, smooth, professional male`,accent:`American`,gender:`male`,provider:`deepgram`,apiId:`aura-2-odysseus-en`,sampleUrl:`https://v3b.fal.media/files/b/0a9d0759/yPWfpKDmdT-VMvrXWs_ng_1780631934630.mpeg`},{id:`aurora`,label:`Aurora`,vibe:`Cheerful, expressive female`,accent:`American`,gender:`female`,provider:`deepgram`,apiId:`aura-2-aurora-en`,sampleUrl:`https://v3b.fal.media/files/b/0a9d0759/A9EzRcZ3vygk9G4OKKO2m_1780631936861.mpeg`},{id:`apollo`,label:`Apollo`,vibe:`Confident, comfortable male`,accent:`American`,gender:`male`,provider:`deepgram`,apiId:`aura-2-apollo-en`,sampleUrl:`https://v3b.fal.media/files/b/0a9d0759/_Nh9G3zPiE6-y-QUQ9HDQ_1780631939579.mpeg`},{id:`thalia`,label:`Thalia`,vibe:`Confident, energetic female`,accent:`American`,gender:`female`,provider:`deepgram`,apiId:`aura-2-thalia-en`,sampleUrl:`https://v3b.fal.media/files/b/0a9d075a/DyK_ByXlX3jPh1k_YEtRv_1780631941792.mpeg`},{id:`atlas`,label:`Atlas`,vibe:`Enthusiastic, confident male`,accent:`American`,gender:`male`,provider:`deepgram`,apiId:`aura-2-atlas-en`,sampleUrl:`https://v3b.fal.media/files/b/0a9d075e/JhBmHpZbkTv_YXycAY61j_1780631944143.mpeg`},{id:`hera`,label:`Hera`,vibe:`Warm, professional female`,accent:`American`,gender:`female`,provider:`deepgram`,apiId:`aura-2-hera-en`,sampleUrl:`https://v3b.fal.media/files/b/0a9d075a/lZYwGtSbUzeKyuONn7MjS_1780631946601.mpeg`},{id:`arcas`,label:`Arcas`,vibe:`Natural, smooth male`,accent:`American`,gender:`male`,provider:`deepgram`,apiId:`aura-2-arcas-en`,sampleUrl:`https://v3b.fal.media/files/b/0a9d075f/7dZg4RASSJLWSmiUmozjN_1780631949000.mpeg`},{id:`cora`,label:`Cora`,vibe:`Smooth, melodic female`,accent:`American`,gender:`female`,provider:`deepgram`,apiId:`aura-2-cora-en`,sampleUrl:`https://v3b.fal.media/files/b/0a9d075b/WBYfx_LAlhQxZ1vI5uZ8q_1780631951822.mpeg`},{id:`zeus`,label:`Zeus`,vibe:`Deep, trustworthy male`,accent:`American`,gender:`male`,provider:`deepgram`,apiId:`aura-2-zeus-en`,sampleUrl:`https://v3b.fal.media/files/b/0a9d075b/44QNHx44Ot4UBsYpm0lMK_1780631954245.mpeg`},{id:`orion`,label:`Orion`,vibe:`Approachable, calm male`,accent:`American`,gender:`male`,provider:`deepgram`,apiId:`aura-2-orion-en`,sampleUrl:`https://v3b.fal.media/files/b/0a9d075b/NNybdHumjI9O4xittIQIJ_1780631957264.mpeg`}],Ke=`asteria`;function qe(e){let t=String(e||``);return Ge.some(e=>e.id===t)?t:t===`am_adam`?`adam`:/^[ab]m[_-]/i.test(t)?`odysseus`:/^[ab]f[_-]/i.test(t)?`asteria`:/^[A-Za-z0-9]{20}$/.test(t)?t:Ke}function Je(e){return Ge.find(t=>t.id===qe(e))}function A(e){return!!e?.libraryVoice}function j(e){return e?e.kind===`group`?(e.versions||[]).length>0&&e.versions.every(A):A(e.voice):!1}function Ye(e){return[...e||[]].sort((e,t)=>+!!j(e)-!!j(t))}function Xe(e){let t=[],n=new Map;for(let r of e||[])if(r.group){let e=n.get(r.group);if(e==null)n.set(r.group,t.length),t.push({kind:`group`,group:r.group,versions:[r],defaultId:r.groupDefault?r.id:null});else{let n=t[e];n.versions.push(r),r.groupDefault&&(n.defaultId=r.id)}}else t.push({kind:`single`,voice:r});for(let e of t)e.kind===`group`&&!e.defaultId&&(e.defaultId=e.versions[0].id);return t}function M(e,t){return e.findIndex(e=>e.kind===`group`?e.versions.some(e=>e.id===t):e.voice.id===t)}function Ze(e,t=1,n){let r=String(e||``).trim().length;if(!r)return 0;let i=Je(n)?.provider||(/^[A-Za-z0-9]{20}$/.test(String(n||``))?`elevenlabs`:`deepgram`);return Be(We({chars:r,provider:i}),`media`)}function Qe({words:e=[],onChange:t,readOnly:n=!1}){let[r,i]=(0,g.useState)(!1),[a,o]=(0,g.useState)(null),[s,c]=(0,g.useState)(!1),[l,u]=(0,g.useState)(`lines`),d=Array.isArray(e)?e:[],f=tt(d);return(0,C.jsxs)(`div`,{style:N.wrap,children:[(0,C.jsxs)(`div`,{style:N.head,children:[(0,C.jsx)(`span`,{style:N.headTitle,children:`Transcript`}),f.length>0&&(0,C.jsx)(`span`,{style:N.headDur,children:l===`words`?`${d.length} timed words`:`${f.length} line${f.length===1?``:`s`}`}),(0,C.jsx)(`span`,{style:{flex:1}}),t&&d.length>0&&(0,C.jsx)(`button`,{type:`button`,style:N.copy,disabled:n,onClick:()=>{i(e=>!e),o(null),u(`words`)},\"aria-pressed\":r,children:r?`Done editing`:`Edit words`}),f.length>0&&(0,C.jsx)(`div`,{style:N.viewToggle,title:`Lines groups words into readable phrases; Words shows every word's own timestamp — the timing your beats cut on`,children:[`lines`,`words`].map(e=>(0,C.jsx)(`button`,{type:`button`,onClick:()=>u(e),style:{...N.viewBtn,...l===e?N.viewBtnOn:{}},children:e===`lines`?`Lines`:`Words`},e))}),f.length>0&&(0,C.jsx)(`button`,{type:`button`,style:N.copy,onClick:async()=>{let e=l===`words`?d.map(e=>`${nt(e.start)} ${String(e.text??``).trim()}`).join(`\n`):f.map(e=>`${nt(e.start)} ${e.text}`).join(`\n`);if(e)try{await navigator.clipboard.writeText(e),c(!0),setTimeout(()=>c(!1),1500)}catch{}},title:`Copy the full transcript with timestamps`,children:s?`✓ Copied`:`Copy`})]}),(0,C.jsxs)(`div`,{style:l===`words`?N.wordList:N.list,children:[f.length===0&&(0,C.jsx)(`div`,{style:N.empty,children:`No transcript yet — analyze the audio.`}),l===`words`?d.map((e,i)=>r&&t&&a===i?(0,C.jsx)(et,{word:e,index:i,readOnly:n,onCommit:e=>t(d.map((t,n)=>n===i?e:t))},i):r&&t?(0,C.jsxs)(`button`,{type:`button`,disabled:n,style:N.wordChip,\"aria-label\":`Edit word ${i+1}: ${e.text}`,onClick:()=>o(i),children:[(0,C.jsx)(`span`,{style:N.wordStamp,children:nt(e.start)}),(0,C.jsx)(`span`,{style:N.wordText,children:String(e.text??``).trim()})]},i):(0,C.jsxs)(`span`,{style:N.wordChip,children:[(0,C.jsx)(`span`,{style:N.wordStamp,children:nt(e.start)}),(0,C.jsx)(`span`,{style:N.wordText,children:String(e.text??``).trim()})]},i)):f.map((e,t)=>(0,C.jsxs)(`div`,{style:N.row,children:[(0,C.jsx)(`span`,{style:N.time,children:nt(e.start)}),(0,C.jsx)(`span`,{style:N.text,children:e.text})]},t))]})]})}let $e={display:`block`,padding:`6px 8px`,border:`1px solid var(--border)`,borderRadius:5,background:`var(--bg-primary)`,color:`var(--text-primary)`,font:`inherit`};function et({word:e,index:t,readOnly:n,onCommit:r}){let[i,a]=(0,g.useState)(e),[o,s]=(0,g.useState)(e.text),[c,l]=(0,g.useState)(String(e.start)),[u,d]=(0,g.useState)(String(e.end)),[f,p]=(0,g.useState)(``),m=e.text!==i.text||e.start!==i.start||e.end!==i.end,h=()=>{a(e),s(e.text),l(String(e.start)),d(String(e.end)),p(``)};return(0,C.jsxs)(`form`,{onSubmit:t=>{if(t.preventDefault(),n||m)return;let i=Number(c),l=Number(u);if(!o.trim()||o.length>2e3||!c.trim()||!u.trim()||!Number.isFinite(i)||!Number.isFinite(l)||i<0||l<i||l>172800){p(`Enter text and valid times: end must be at or after start.`);return}let d={...e,text:o.trim(),start:i,end:l};a(d),s(d.text),p(``),r(d)},style:{display:`flex`,flexWrap:`wrap`,gap:6,padding:8,border:`1px solid var(--border)`,borderRadius:6,width:`100%`,boxSizing:`border-box`},children:[(0,C.jsxs)(`label`,{style:{flex:`1 1 120px`},children:[`Word `,t+1,(0,C.jsx)(`input`,{\"aria-label\":`Word ${t+1}`,value:o,disabled:n||m,onChange:e=>s(e.target.value),style:{...$e,width:`100%`,boxSizing:`border-box`}})]}),(0,C.jsxs)(`label`,{children:[`Start (s)`,(0,C.jsx)(`input`,{\"aria-label\":`Start for word ${t+1}`,inputMode:`decimal`,value:c,disabled:n||m,onChange:e=>l(e.target.value),style:{...$e,width:70}})]}),(0,C.jsxs)(`label`,{children:[`End (s)`,(0,C.jsx)(`input`,{\"aria-label\":`End for word ${t+1}`,inputMode:`decimal`,value:u,disabled:n||m,onChange:e=>d(e.target.value),style:{...$e,width:70}})]}),(0,C.jsx)(`button`,{type:`submit`,className:`btn btn-primary`,style:{alignSelf:`end`},disabled:n||m,children:`Save word`}),m&&(0,C.jsxs)(`div`,{role:`status`,children:[`This word changed while you were editing. `,(0,C.jsx)(`button`,{type:`button`,onClick:h,children:`Load current word`})]}),f&&(0,C.jsx)(`div`,{role:`alert`,children:f})]})}function tt(e){let t=[],n=null;for(let r=0;r<e.length;r++){let i=e[r],a=String(i.text??``).trim();if(!a)continue;let o=Number(i.start)||0,s=Number.isFinite(Number(i.end))?Number(i.end):o;n?(n.text+=(/^[.,!?;:]/.test(a)?``:` `)+a,n.end=s):n={start:o,end:s,text:a};let c=/[,.!?;:][\"')\\]]?$/.test(a),l=e[r+1],u=l&&(Number(l.start)||0)-s>=.4;(c||u||!l)&&(t.push(n),n=null)}return t}function nt(e){let t=Math.max(0,Number(e)||0),n=Math.floor(t/60);return`${n}:${(t-n*60).toFixed(1).padStart(4,`0`)}`}let N={wrap:{border:`1px solid var(--border)`,borderRadius:`var(--radius)`,background:`var(--bg-tertiary)`,overflow:`hidden`},head:{display:`flex`,flexWrap:`wrap`,alignItems:`baseline`,gap:10,padding:`8px 12px`,borderBottom:`1px solid var(--border)`},headTitle:{fontSize:12,fontWeight:600,color:`var(--text-primary)`},headDur:{whiteSpace:`nowrap`,fontSize:11,color:`var(--text-muted)`,fontVariantNumeric:`tabular-nums`},copy:{padding:`3px 10px`,border:`1px solid var(--border)`,background:`var(--bg-elevated)`,color:`var(--text-primary)`,borderRadius:6,cursor:`pointer`,fontSize:11,fontFamily:`inherit`,fontWeight:600,alignSelf:`center`},list:{maxHeight:300,overflowY:`auto`,padding:8,display:`flex`,flexDirection:`column`,gap:5},viewToggle:{display:`flex`,flexShrink:0,gap:0,border:`1px solid var(--border)`,borderRadius:6,overflow:`hidden`,alignSelf:`center`},viewBtn:{padding:`3px 10px`,border:`none`,background:`transparent`,color:`var(--text-muted)`,cursor:`pointer`,fontSize:11,fontFamily:`inherit`,fontWeight:600},viewBtnOn:{background:`var(--bg-elevated)`,color:`var(--text-primary)`},wordList:{maxHeight:300,overflowY:`auto`,padding:8,display:`flex`,flexWrap:`wrap`,gap:6,alignContent:`flex-start`},wordChip:{display:`inline-flex`,flexDirection:`column`,alignItems:`center`,gap:1,padding:`3px 7px`,border:`1px solid var(--border)`,borderRadius:6,background:`var(--bg-elevated)`},wordStamp:{fontSize:9,color:`var(--text-muted)`,fontVariantNumeric:`tabular-nums`,lineHeight:1},wordText:{fontSize:12.5,color:`var(--text-primary)`,lineHeight:1.2},empty:{fontSize:12,color:`var(--text-muted)`,textAlign:`center`,padding:`16px 0`},row:{display:`flex`,alignItems:`baseline`,gap:10},time:{width:52,flexShrink:0,fontSize:10,color:`var(--text-muted)`,textAlign:`right`,fontVariantNumeric:`tabular-nums`,paddingTop:1},text:{flex:1,minWidth:0,fontSize:13,lineHeight:1.45,color:`var(--text-primary)`}};var rt=m();function it(e){let t=e.props.children;return typeof t==`string`||typeof t==`number`?String(t):g.Children.toArray(t).filter(e=>typeof e==`string`||typeof e==`number`).join(``)}function at(e){let t=[];return g.Children.forEach(e,e=>{e&&typeof e==`object`&&(e.type===`optgroup`?g.Children.forEach(e.props.children,n=>{n&&n.type===`option`&&t.push({value:n.props.value??it(n),label:it(n),disabled:!!n.props.disabled,group:e.props.label})}):e.type===`option`&&t.push({value:e.props.value??it(e),label:it(e),disabled:!!e.props.disabled}))}),t}function ot(e,t,n){let r=t;for(let t=0;t<e.length;t++)if(r+=n,r<0&&(r=e.length-1),r>=e.length&&(r=0),!e[r]?.disabled)return r;return t}function P({value:e,defaultValue:t,onChange:n,disabled:r=!1,style:i,className:a=``,title:o,children:s,options:c,\"aria-label\":l,...u}){let d=(0,g.useMemo)(()=>c||at(s),[c,s]),f=e!==void 0,[p,m]=(0,g.useState)(t??d[0]?.value),h=f?e:p,_=d.findIndex(e=>String(e.value)===String(h)),v=d[_],[y,b]=(0,g.useState)(!1),[x,ee]=(0,g.useState)(-1),[S,te]=(0,g.useState)(null),[ne,re]=(0,g.useState)(null),ie=(0,g.useRef)(null),ae=(0,g.useRef)(null),oe=(0,g.useRef)({str:``,t:0}),se=(0,g.useCallback)(e=>{f||m(e),n?.({target:{value:e}}),b(!1),ie.current?.focus()},[f,n]),ce=(0,g.useCallback)(()=>{if(r)return;let e=ie.current?.getBoundingClientRect();e&&te({left:e.left,top:e.bottom,width:e.width,topY:e.top,bottomSpace:window.innerHeight-e.bottom}),ee(_>=0?_:ot(d,-1,1)),b(!0)},[r,_,d]);(0,g.useEffect)(()=>{if(!y)return;let e=e=>{!ae.current?.contains(e.target)&&!ie.current?.contains(e.target)&&b(!1)};document.addEventListener(`mousedown`,e,!0);let t,n=null,r=()=>{let e=ie.current?.getBoundingClientRect();if(!e){b(!1);return}if(e.bottom<0||e.top>window.innerHeight||e.right<0||e.left>window.innerWidth){b(!1);return}(!n||n.left!==e.left||n.top!==e.bottom||n.width!==e.width||n.topY!==e.top)&&(n={left:e.left,top:e.bottom,width:e.width,topY:e.top,bottomSpace:window.innerHeight-e.bottom},te(n)),t=requestAnimationFrame(r)};return t=requestAnimationFrame(r),()=>{document.removeEventListener(`mousedown`,e,!0),cancelAnimationFrame(t)}},[y]),(0,g.useEffect)(()=>{y&&ae.current&&ae.current.querySelector(`[data-i=\"${x}\"]`)?.scrollIntoView({block:`nearest`})},[y,x]),(0,g.useEffect)(()=>{y||re(null)},[y]);let le=(0,g.useCallback)(e=>{if(!r){if(!y){[`ArrowDown`,`ArrowUp`,`Enter`,` `].includes(e.key)&&(e.preventDefault(),ce());return}if(e.key===`Escape`)e.preventDefault(),b(!1),ie.current?.focus();else if(e.key===`ArrowDown`)e.preventDefault(),ee(e=>ot(d,e,1));else if(e.key===`ArrowUp`)e.preventDefault(),ee(e=>ot(d,e,-1));else if(e.key===`Home`)e.preventDefault(),ee(ot(d,-1,1));else if(e.key===`End`)e.preventDefault(),ee(ot(d,d.length,-1));else if(e.key===`Enter`||e.key===` `)e.preventDefault(),d[x]&&!d[x].disabled&&se(d[x].value);else if(e.key===`Tab`)b(!1);else if(e.key.length===1){let t=Date.now(),n=t-oe.current.t<700?oe.current.str+e.key:e.key;oe.current={str:n,t};let r=d.findIndex(e=>e.label.toLowerCase().startsWith(n.toLowerCase()));r>=0&&ee(r)}}},[y,r,d,x,se,ce]),w=S&&S.bottomSpace<260&&S.topY>S.bottomSpace;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(`button`,{ref:ie,type:`button`,disabled:r,title:o,\"aria-label\":l,\"aria-haspopup\":`listbox`,\"aria-expanded\":y,className:`tsel-trigger ${a}`,style:i,onClick:()=>y?b(!1):ce(),onKeyDown:le,...u,children:[(0,C.jsx)(`span`,{className:`tsel-label`,children:v?v.label:``}),(0,C.jsx)(`span`,{className:`tsel-caret`,\"aria-hidden\":!0,children:`▾`})]}),y&&S&&(0,rt.createPortal)((0,C.jsx)(`div`,{ref:ae,role:`listbox`,className:`tsel-pop`,style:{position:`fixed`,left:S.left,minWidth:S.width,maxWidth:Math.max(S.width,320),...w?{bottom:window.innerHeight-S.topY+4}:{top:S.top+4}},children:d.map((e,t)=>(0,C.jsxs)(`div`,{role:`option`,\"data-i\":t,\"aria-selected\":t===_,\"aria-disabled\":e.disabled||void 0,\"data-active\":t===x,className:`tsel-opt`,onMouseEnter:()=>ee(t),onMouseDown:t=>{t.preventDefault(),e.disabled||se(e.value)},children:[(0,C.jsx)(`span`,{className:`tsel-check`,\"aria-hidden\":!0,children:t===_?`✓`:``}),(0,C.jsx)(`span`,{className:`tsel-opt-label`,children:e.label}),e.note&&(0,C.jsx)(`span`,{className:`tsel-note`,tabIndex:-1,title:e.note,\"aria-label\":e.note,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onMouseEnter:t=>{let n=t.currentTarget.getBoundingClientRect();re({text:e.note,x:n.right+8,y:n.top+n.height/2})},onMouseLeave:()=>re(null),children:`ⓘ`})]},t))}),document.body),ne&&(0,rt.createPortal)((0,C.jsx)(`div`,{className:`tsel-tip`,style:{position:`fixed`,left:ne.x,top:ne.y,transform:`translateY(-50%)`},children:ne.text}),document.body)]})}let F=globalThis.StillMade,I=new Proxy({},{get:(e,t)=>typeof t==`string`&&Ue[t]?Be(Ue[t].usd,Ue[t].tier):void 0}),st=(e,{approx:t=!1,suffix:n=``}={})=>`(${t?`~`:``}${Math.max(0,Math.round(e||0))} cr${n?` + ${n}`:``})`,ct=e=>Math.max(1,Math.ceil((e||0)/1e3)*I[`transcript:parse`]),lt=Me(F),ut=Ne(lt),{ui:dt,DialogHost:ft}=Ie({bridge:F}),pt={input:{},shared:{canEdit:!1,outputs:{},state:{}}},mt=new Set,ht=()=>{for(let e of mt)e()};F.onInput(e=>{pt.input=e,ht()}),F.onShared(e=>{pt.shared=e,ht()});function gt(){let[,e]=(0,g.useState)(0);return(0,g.useEffect)(()=>{let t=()=>e(e=>e+1);return mt.add(t),()=>mt.delete(t)},[]),pt}let _t=e=>!!e&&e.kind===`audio`&&typeof e.url==`string`,vt=new Map,L=e=>{for(let t of[e?.output,...Array.isArray(e?.takes)?e.takes:[],e?.take])_t(t)&&vt.set(t.url,t);return e};function yt(e){let t=pt.shared.outputs||{},n=pt.input||{};return[t.output,...Array.isArray(t.takes)?t.takes:[],n.take,...Array.isArray(n.takes)?n.takes:[]].find(t=>_t(t)&&t.url===e)||vt.get(e)||null}let R=async e=>L(await F.run(e)),z=()=>{let e=pt.shared.outputs?.takes;return Array.isArray(e)?e.filter(_t):[]},bt=e=>Number.isFinite(Number(e))&&Number(e)>=.25&&Number(e)<=4?Number(e):void 0,xt={voiceover:null};async function St(e){let t=yt(e?.audioUrl),n=Array.isArray(e?.words)&&e.words.length?{schemaVersion:1,text:e.transcriptText||e.words.map(e=>e.text).join(` `),words:e.words}:void 0;return R({make:`use`,script:e?.script||``,takes:z(),...t?{take:t}:{},...n?{words:n}:{}})}let Ct=Object.freeze({version:1,voiceSettingsDefaults:{stability:.5,similarity:.75,style:0,speakerBoost:!0},async generateVoiceover({text:e,voiceId:t,speed:n}={}){let r=await R({make:`speech`,script:e,voice:t||`asteria`,...bt(n)?{speed:bt(n)}:{},takes:z()});if(!_t(r?.output))throw Error(`No audio came back. Try again.`);return{url:r.output.url,duration:Number(r.output.duration)||0}},async generateVoicePreview(e){return{url:(await F.previewVoice(e)).url}},async transcribeAudio(e){let t=yt(e);if(!t)throw Error(`Save this audio again before analyzing it.`);let n=await R({make:`timing`,take:t,script:xt.voiceover?.script||``,takes:z()});return{words:n?.timing?.words||[],text:n?.timing?.text||``}},async parseTranscript(e){let t=yt(xt.voiceover?.audioUrl);return(await R({make:`parse`,transcript:e,script:xt.voiceover?.script||``,takes:z(),...t?{take:t}:{}}))?.timing?.words||[]},async uploadReferenceImage(){throw Error(`Use Upload audio file.`)},async gifToneCheck(){return{fit:!0,options:[]}},async editVoScript(){throw Error(`Script edits are not part of this Block.`)},async getElevenLabsVoiceInfo(){return{ok:!1}},getElVoiceSettings:()=>({stability:.5,similarity:.75,style:0,speakerBoost:!0}),setElVoiceSettings:()=>{},getCustomVoices:()=>[],addCustomVoice:()=>null,removeCustomVoice:()=>{},isElevenLabsVoiceId:()=>!1});function wt({src:e,style:t}){gt();let[n,r]=(0,g.useState)(``),[i,a]=(0,g.useState)(``),o=yt(e),s=o?`${o.assetId}:${o.versionId}`:``;return(0,g.useEffect)(()=>{let e=!0,t=``;if(r(``),a(``),!o){a(`Save this audio to play it here.`);return}return F.previewMedia(o).then(n=>{t=n.url,e?r(n.url):F.releaseMedia(n.url)},t=>{e&&a(t.message||`This audio could not be played here.`)}),()=>{e=!1,t&&F.releaseMedia(t)}},[e,s]),i?(0,C.jsx)(`p`,{role:`status`,style:{margin:0,fontSize:13,color:`var(--fg-muted)`},children:i}):(0,C.jsx)(`audio`,{controls:!0,src:n||void 0,style:t})}let Tt=null;F.onInput(e=>{if(Tt&&_t(e.take)&&e.take.url!==Tt.before){let t=Tt;Tt=null,t.resolve(e.take)}});async function Et(){let e=pt.input.take?.url||null,t=new Promise(t=>{Tt={before:e,resolve:t}}),{added:n}=await F.addFiles(`take`);if(!n)return Tt=null,null;let r=await Promise.race([t,new Promise(e=>setTimeout(()=>e(null),2e4))]);if(!r)throw Error(`The audio file did not arrive. Try again.`);return{url:r.url,duration:Number(r.duration)||0}}let Dt=Object.freeze({version:1,useSharedScript:ut,useLiveEditor:lt,useIsMobileUI:()=>globalThis.innerWidth<768,findVoice:Je,estimateCreditsFromText:Ze,normalizeVoiceId:qe,groupVoiceCards:Xe,cardIndexOfVoice:M,isCardLocked:j,isVoiceLocked:A,sortCardsLockedLast:Ye,fmtCostLabel:st,parseTranscriptCost:ct,elevenLabsUrl:()=>``,LiveEditorBadge:()=>null,VOICES:Ge,DEFAULT_VOICE_ID:Ke,CREDIT_COSTS:I,ui:dt,ELEVENLABS_CONFIGURED:!1,TranscriptionEditor:Qe,ThemedSelect:P,PRESENTER_HOST_BETA:!1,AudioPlayer:wt,pickAudioFile:Et,fitContent:!0,voiceSample:async e=>(await F.previewVoice(e)).url});function Ot(){let{input:e,shared:t}=gt(),[n,r]=(0,g.useState)({});xt.voiceover=n;let i=typeof e.input?.text==`string`&&e.input.text.trim()?e.input.text:``,a=(0,g.useMemo)(()=>i?{id:`connected:${i.length}:${i.slice(0,64)}`,sourceLabel:`the Step before`,text:i,validate:()=>!0}:null,[i]),[o,s]=(0,g.useState)(!1);return(0,g.useEffect)(()=>{!o&&Object.keys(pt.input).length+Object.keys(pt.shared).length&&s(!0)},[e,t,o]),o?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(ke,{projectId:`block`,voiceover:n,initialScript:i,scriptHandoff:a,hostServices:Ct,workspaceHost:Dt,standalone:!0,viewOnly:t.canEdit===!1,onChange:e=>r(t=>({...t,...e})),onContinue:async e=>{try{await St({...n,...e})}catch(e){await dt.alert(e.message||`The voiceover could not be saved.`,{title:`Not saved`})}}}),(0,C.jsx)(ft,{})]}):null}(0,h.createRoot)(document.getElementById(`root`)).render((0,C.jsx)(Ot,{}))})();",
144
+ "javascript": "(function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),l=o((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.iterator;function p(e){return typeof e!=`object`||!e?null:(e=f&&e[f]||e[`@@iterator`],typeof e==`function`?e:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`setState(...): takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function v(){}v.prototype=_.prototype;function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}var b=y.prototype=new v;b.constructor=y,h(b,_.prototype),b.isPureReactComponent=!0;var x=Array.isArray,ee=Object.prototype.hasOwnProperty,S={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function te(e,n,r){var i,a={},o=null,s=null;if(n!=null)for(i in n.ref!==void 0&&(s=n.ref),n.key!==void 0&&(o=``+n.key),n)ee.call(n,i)&&!C.hasOwnProperty(i)&&(a[i]=n[i]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)a[i]===void 0&&(a[i]=c[i]);return{$$typeof:t,type:e,key:o,ref:s,props:a,_owner:S.current}}function ne(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function re(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ie(e){var t={\"=\":`=0`,\":\":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ae=/\\/+/g;function oe(e,t){return typeof e==`object`&&e&&e.key!=null?ie(``+e.key):t.toString(36)}function se(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0}}if(c)return c=e,o=o(c),e=a===``?`.`+oe(c,0):a,x(o)?(i=``,e!=null&&(i=e.replace(ae,`$&/`)+`/`),se(o,r,i,``,function(e){return e})):o!=null&&(re(o)&&(o=ne(o,i+(!o.key||c&&c.key===o.key?``:(``+o.key).replace(ae,`$&/`)+`/`)+e)),r.push(o)),1;if(c=0,a=a===``?`.`:a+`:`,x(e))for(var l=0;l<e.length;l++){s=e[l];var u=a+oe(s,l);c+=se(s,r,i,u,o)}else if(u=p(e),typeof u==`function`)for(e=u.call(e),l=0;!(s=e.next()).done;)s=s.value,u=a+oe(s,l++),c+=se(s,r,i,u,o);else if(s===`object`)throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`);return c}function ce(e,t,n){if(e==null)return e;var r=[],i=0;return se(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function le(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var w={current:null},ue={transition:null},de={ReactCurrentDispatcher:w,ReactCurrentBatchConfig:ue,ReactCurrentOwner:S};function fe(){throw Error(`act(...) is not supported in production builds of React.`)}e.Children={map:ce,forEach:function(e,t,n){ce(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ce(e,function(){t++}),t},toArray:function(e){return ce(e,function(e){return e})||[]},only:function(e){if(!re(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}},e.Component=_,e.Fragment=r,e.Profiler=a,e.PureComponent=y,e.StrictMode=i,e.Suspense=l,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=de,e.act=fe,e.cloneElement=function(e,n,r){if(e==null)throw Error(`React.cloneElement(...): The argument must be a React element, but you passed `+e+`.`);var i=h({},e.props),a=e.key,o=e.ref,s=e._owner;if(n!=null){if(n.ref!==void 0&&(o=n.ref,s=S.current),n.key!==void 0&&(a=``+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)ee.call(n,l)&&!C.hasOwnProperty(l)&&(i[l]=n[l]===void 0&&c!==void 0?c[l]:n[l])}var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}return{$$typeof:t,type:e.type,key:a,ref:o,props:i,_owner:s}},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:o,_context:e},e.Consumer=e},e.createElement=te,e.createFactory=function(e){var t=te.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=re,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:le}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=ue.transition;ue.transition={};try{e()}finally{ue.transition=t}},e.unstable_act=fe,e.useCallback=function(e,t){return w.current.useCallback(e,t)},e.useContext=function(e){return w.current.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e){return w.current.useDeferredValue(e)},e.useEffect=function(e,t){return w.current.useEffect(e,t)},e.useId=function(){return w.current.useId()},e.useImperativeHandle=function(e,t,n){return w.current.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.current.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.current.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.current.useMemo(e,t)},e.useReducer=function(e,t,n){return w.current.useReducer(e,t,n)},e.useRef=function(e){return w.current.useRef(e)},e.useState=function(e){return w.current.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.current.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.current.useTransition()},e.version=`18.3.1`})),u=o(((e,t)=>{t.exports=l()})),d=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=typeof setTimeout==`function`?setTimeout:null,_=typeof clearTimeout==`function`?clearTimeout:null,v=typeof setImmediate<`u`?setImmediate:null;typeof navigator<`u`&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function b(e){if(h=!1,y(e),!m){if(n(c)!==null)m=!0,ce(x);else{var t=n(l);t!==null&&le(b,t.startTime-e)}}}function x(t,i){m=!1,h&&(h=!1,_(C),C=-1),p=!0;var a=f;try{for(y(i),d=n(c);d!==null&&(!(d.expirationTime>i)||t&&!re());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=i);i=e.unstable_now(),typeof s==`function`?d.callback=s:d===n(c)&&r(c),y(i)}else r(c);d=n(c)}if(d!==null)var u=!0;else{var g=n(l);g!==null&&le(b,g.startTime-i),u=!1}return u}finally{d=null,f=a,p=!1}}var ee=!1,S=null,C=-1,te=5,ne=-1;function re(){return!(e.unstable_now()-ne<te)}function ie(){if(S!==null){var t=e.unstable_now();ne=t;var n=!0;try{n=S(!0,t)}finally{n?ae():(ee=!1,S=null)}}else ee=!1}var ae;if(typeof v==`function`)ae=function(){v(ie)};else if(typeof MessageChannel<`u`){var oe=new MessageChannel,se=oe.port2;oe.port1.onmessage=ie,ae=function(){se.postMessage(null)}}else ae=function(){g(ie,0)};function ce(e){S=e,ee||(ee=!0,ae())}function le(t,n){C=g(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,ce(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):te=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(_(C),C=-1):h=!0,le(b,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,ce(x))),r},e.unstable_shouldYield=re,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),f=o(((e,t)=>{t.exports=d()})),p=o((e=>{var t=u(),n=f();function r(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n]);return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var i=new Set,a={};function o(e,t){s(e,t),s(e+`Capture`,t)}function s(e,t){for(a[e]=t,e=0;e<t.length;e++)i.add(t[e])}var c=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),l=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$/,p={},m={};function h(e){return l.call(m,e)?!0:l.call(p,e)?!1:d.test(e)?m[e]=!0:(p[e]=!0,!1)}function g(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case`function`:case`symbol`:return!0;case`boolean`:return r?!1:n===null?(e=e.toLowerCase().slice(0,5),e!==`data-`&&e!==`aria-`):!n.acceptsBooleans;default:return!1}}function _(e,t,n,r){if(t==null||g(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function v(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var y={};`children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style`.split(` `).forEach(function(e){y[e]=new v(e,0,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0];y[t]=new v(t,1,!1,e[1],null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){y[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){y[e]=new v(e,2,!1,e,null,!1,!1)}),`allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope`.split(` `).forEach(function(e){y[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){y[e]=new v(e,3,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){y[e]=new v(e,4,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){y[e]=new v(e,6,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){y[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)});var b=/[\\-:]([a-z])/g;function x(e){return e[1].toUpperCase()}`accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height`.split(` `).forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,null,!1,!1)}),`xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type`.split(` `).forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)}),y.xlinkHref=new v(`xlinkHref`,1,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)});function ee(e,t,n,r){var i=y.hasOwnProperty(t)?y[t]:null;(i===null?r||!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`:i.type!==0)&&(_(t,n,i,r)&&(n=null),r||i===null?h(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,``+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type!==3&&``:n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&!0===n?``:``+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var S=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,C=Symbol.for(`react.element`),te=Symbol.for(`react.portal`),ne=Symbol.for(`react.fragment`),re=Symbol.for(`react.strict_mode`),ie=Symbol.for(`react.profiler`),ae=Symbol.for(`react.provider`),oe=Symbol.for(`react.context`),se=Symbol.for(`react.forward_ref`),ce=Symbol.for(`react.suspense`),le=Symbol.for(`react.suspense_list`),w=Symbol.for(`react.memo`),ue=Symbol.for(`react.lazy`),de=Symbol.for(`react.offscreen`),fe=Symbol.iterator;function pe(e){return typeof e!=`object`||!e?null:(e=fe&&e[fe]||e[`@@iterator`],typeof e==`function`?e:null)}var T=Object.assign,E;function me(e){if(E===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\\n( *(at )?)/);E=t&&t[1]||``}return`\n`+E+e}var he=!1;function ge(e,t){if(!e||he)return``;he=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t){if(t=function(){throw Error()},Object.defineProperty(t.prototype,\"props\",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&typeof t.stack==`string`){for(var i=t.stack.split(`\n`),a=r.stack.split(`\n`),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s]){var c=`\n`+i[o].replace(` at new `,` at `);return e.displayName&&c.includes(`<anonymous>`)&&(c=c.replace(`<anonymous>`,e.displayName)),c}while(1<=o&&0<=s);break}}}finally{he=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?me(e):``}function _e(e){switch(e.tag){case 5:return me(e.type);case 16:return me(`Lazy`);case 13:return me(`Suspense`);case 19:return me(`SuspenseList`);case 0:case 2:case 15:return e=ge(e.type,!1),e;case 11:return e=ge(e.type.render,!1),e;case 1:return e=ge(e.type,!0),e;default:return``}}function ve(e){if(e==null)return null;if(typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case ne:return`Fragment`;case te:return`Portal`;case ie:return`Profiler`;case re:return`StrictMode`;case ce:return`Suspense`;case le:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case oe:return(e.displayName||`Context`)+`.Consumer`;case ae:return(e._context.displayName||`Context`)+`.Provider`;case se:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case w:return t=e.displayName||null,t===null?ve(e.type)||`Memo`:t;case ue:t=e._payload,e=e._init;try{return ve(e(t))}catch{}}return null}function ye(e){var t=e.type;switch(e.tag){case 24:return`Cache`;case 9:return(t.displayName||`Context`)+`.Consumer`;case 10:return(t._context.displayName||`Context`)+`.Provider`;case 18:return`DehydratedFragment`;case 11:return e=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return ve(t);case 8:return t===re?`StrictMode`:`Mode`;case 22:return`Offscreen`;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t}return null}function be(e){switch(typeof e){case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function xe(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Se(e){var t=xe(e)?`checked`:`value`,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=``+e[t];if(!e.hasOwnProperty(t)&&n!==void 0&&typeof n.get==`function`&&typeof n.set==`function`){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ce(e){e._valueTracker||=Se(e)}function we(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=xe(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function Te(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Ee(e,t){var n=t.checked;return T({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function De(e,t){var n=t.defaultValue==null?``:t.defaultValue,r=t.checked==null?t.defaultChecked:t.checked;n=be(t.value==null?n:t.value),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===`checkbox`||t.type===`radio`?t.checked!=null:t.value!=null}}function Oe(e,t){t=t.checked,t!=null&&ee(e,`checked`,t,!1)}function ke(e,t){Oe(e,t);var n=be(t.value),r=t.type;if(n!=null)r===`number`?(n===0&&e.value===``||e.value!=n)&&(e.value=``+n):e.value!==``+n&&(e.value=``+n);else if(r===`submit`||r===`reset`){e.removeAttribute(`value`);return}t.hasOwnProperty(`value`)?Ae(e,t.type,n):t.hasOwnProperty(`defaultValue`)&&Ae(e,t.type,be(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function D(e,t,n){if(t.hasOwnProperty(`value`)||t.hasOwnProperty(`defaultValue`)){var r=t.type;if(!(r!==`submit`&&r!==`reset`||t.value!==void 0&&t.value!==null))return;t=``+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==``&&(e.name=``),e.defaultChecked=!!e._wrapperState.initialChecked,n!==``&&(e.name=n)}function Ae(e,t,n){(t!==`number`||Te(e.ownerDocument)!==e)&&(n==null?e.defaultValue=``+e._wrapperState.initialValue:e.defaultValue!==``+n&&(e.defaultValue=``+n))}var je=Array.isArray;function Me(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+be(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ne(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(r(91));return T({},t,{value:void 0,defaultValue:void 0,children:``+e._wrapperState.initialValue})}function Pe(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(r(92));if(je(n)){if(1<n.length)throw Error(r(93));n=n[0]}t=n}t??=``,n=t}e._wrapperState={initialValue:be(n)}}function Fe(e,t){var n=be(t.value),r=be(t.defaultValue);n!=null&&(n=``+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=``+r)}function Ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==``&&t!==null&&(e.value=t)}function Le(e){switch(e){case`svg`:return`http://www.w3.org/2000/svg`;case`math`:return`http://www.w3.org/1998/Math/MathML`;default:return`http://www.w3.org/1999/xhtml`}}function Re(e,t){return e==null||e===`http://www.w3.org/1999/xhtml`?Le(t):e===`http://www.w3.org/2000/svg`&&t===`foreignObject`?`http://www.w3.org/1999/xhtml`:e}var ze,Be=function(e){return typeof MSApp<`u`&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==`http://www.w3.org/2000/svg`||`innerHTML`in e)e.innerHTML=t;else{for(ze||=document.createElement(`div`),ze.innerHTML=`<svg>`+t.valueOf().toString()+`</svg>`,t=ze.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function O(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ve={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},He=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(Ve).forEach(function(e){He.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ve[t]=Ve[e]})});function k(e,t,n){return t==null||typeof t==`boolean`||t===``?``:n||typeof t!=`number`||t===0||Ve.hasOwnProperty(e)&&Ve[e]?(``+t).trim():t+`px`}function Ue(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=n.indexOf(`--`)===0,i=k(n,t[n],r);n===`float`&&(n=`cssFloat`),r?e.setProperty(n,i):e[n]=i}}var We=T({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ge(e,t){if(t){if(We[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(r(60));if(typeof t.dangerouslySetInnerHTML!=`object`||!(`__html`in t.dangerouslySetInnerHTML))throw Error(r(61))}if(t.style!=null&&typeof t.style!=`object`)throw Error(r(62))}}function Ke(e,t){if(e.indexOf(`-`)===-1)return typeof t.is==`string`;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var qe=null;function Je(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var A=null,j=null,Ye=null;function Xe(e){if(e=Li(e)){if(typeof A!=`function`)throw Error(r(280));var t=e.stateNode;t&&(t=zi(t),A(e.stateNode,e.type,t))}}function M(e){j?Ye?Ye.push(e):Ye=[e]:j=e}function Ze(){if(j){var e=j,t=Ye;if(Ye=j=null,Xe(e),t)for(e=0;e<t.length;e++)Xe(t[e])}}function Qe(e,t){return e(t)}function $e(){}var et=!1;function tt(e,t,n){if(et)return e(t,n);et=!0;try{return Qe(e,t,n)}finally{et=!1,(j!==null||Ye!==null)&&($e(),Ze())}}function nt(e,t){var n=e.stateNode;if(n===null)return null;var i=zi(n);if(i===null)return null;n=i[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(i=!i.disabled)||(e=e.type,i=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!i;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(r(231,t,typeof n));return n}var N=!1;if(c)try{var rt={};Object.defineProperty(rt,\"passive\",{get:function(){N=!0}}),window.addEventListener(`test`,rt,rt),window.removeEventListener(`test`,rt,rt)}catch{N=!1}function it(e,t,n,r,i,a,o,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var at=!1,ot=null,P=!1,F=null,I={onError:function(e){at=!0,ot=e}};function st(e,t,n,r,i,a,o,s,c){at=!1,ot=null,it.apply(I,arguments)}function ct(e,t,n,i,a,o,s,c,l){if(st.apply(this,arguments),at){if(at){var u=ot;at=!1,ot=null}else throw Error(r(198));P||(P=!0,F=u)}}function lt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ut(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function dt(e){if(lt(e)!==e)throw Error(r(188))}function ft(e){var t=e.alternate;if(!t){if(t=lt(e),t===null)throw Error(r(188));return t===e?e:null}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return dt(a),e;if(o===i)return dt(a),t;o=o.sibling}throw Error(r(188))}if(n.return!==i.return)n=a,i=o;else{for(var s=!1,c=a.child;c;){if(c===n){s=!0,n=a,i=o;break}if(c===i){s=!0,i=a,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,i=a;break}if(c===i){s=!0,i=o,n=a;break}c=c.sibling}if(!s)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function pt(e){return e=ft(e),e===null?null:mt(e)}function mt(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=mt(e);if(t!==null)return t;e=e.sibling}return null}var ht=n.unstable_scheduleCallback,gt=n.unstable_cancelCallback,_t=n.unstable_shouldYield,vt=n.unstable_requestPaint,L=n.unstable_now,yt=n.unstable_getCurrentPriorityLevel,R=n.unstable_ImmediatePriority,z=n.unstable_UserBlockingPriority,bt=n.unstable_NormalPriority,xt=n.unstable_LowPriority,St=n.unstable_IdlePriority,Ct=null,wt=null;function Tt(e){if(wt&&typeof wt.onCommitFiberRoot==`function`)try{wt.onCommitFiberRoot(Ct,e,void 0,(e.current.flags&128)==128)}catch{}}var Et=Math.clz32?Math.clz32:kt,Dt=Math.log,Ot=Math.LN2;function kt(e){return e>>>=0,e===0?32:31-(Dt(e)/Ot|0)|0}var At=64,jt=4194304;function Mt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function B(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s===0?(a&=o,a!==0&&(r=Mt(a))):r=Mt(s)}else o=n&~i,o===0?a!==0&&(r=Mt(a)):r=Mt(o);if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===16&&a&4194240))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Et(t),i=1<<n,r|=e[n],t&=~i;return r}function Nt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Pt(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-Et(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Nt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}}function Ft(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function It(){var e=At;return At<<=1,!(At&4194240)&&(At=64),e}function Lt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Rt(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Et(t),e[t]=n}function zt(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Et(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function Bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Et(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var V=0;function Vt(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ht,Ut,Wt,Gt,Kt,qt=!1,Jt=[],Yt=null,Xt=null,Zt=null,Qt=new Map,$t=new Map,en=[],tn=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit`.split(` `);function nn(e,t){switch(e){case`focusin`:case`focusout`:Yt=null;break;case`dragenter`:case`dragleave`:Xt=null;break;case`mouseover`:case`mouseout`:Zt=null;break;case`pointerover`:case`pointerout`:Qt.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:$t.delete(t.pointerId)}}function rn(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Li(t),t!==null&&Ut(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function an(e,t,n,r,i){switch(t){case`focusin`:return Yt=rn(Yt,e,t,n,r,i),!0;case`dragenter`:return Xt=rn(Xt,e,t,n,r,i),!0;case`mouseover`:return Zt=rn(Zt,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Qt.set(a,rn(Qt.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,$t.set(a,rn($t.get(a)||null,e,t,n,r,i)),!0}return!1}function on(e){var t=Ii(e.target);if(t!==null){var n=lt(t);if(n!==null){if(t=n.tag,t===13){if(t=ut(n),t!==null){e.blockedOn=t,Kt(e.priority,function(){Wt(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function sn(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=vn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);qe=r,n.target.dispatchEvent(r),qe=null}else return t=Li(n),t!==null&&Ut(t),e.blockedOn=n,!1;t.shift()}return!0}function cn(e,t,n){sn(e)&&n.delete(t)}function ln(){qt=!1,Yt!==null&&sn(Yt)&&(Yt=null),Xt!==null&&sn(Xt)&&(Xt=null),Zt!==null&&sn(Zt)&&(Zt=null),Qt.forEach(cn),$t.forEach(cn)}function un(e,t){e.blockedOn===t&&(e.blockedOn=null,qt||(qt=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,ln)))}function dn(e){function t(t){return un(t,e)}if(0<Jt.length){un(Jt[0],e);for(var n=1;n<Jt.length;n++){var r=Jt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Yt!==null&&un(Yt,e),Xt!==null&&un(Xt,e),Zt!==null&&un(Zt,e),Qt.forEach(t),$t.forEach(t),n=0;n<en.length;n++)r=en[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<en.length&&(n=en[0],n.blockedOn===null);)on(n),n.blockedOn===null&&en.shift()}var fn=S.ReactCurrentBatchConfig,pn=!0;function mn(e,t,n,r){var i=V,a=fn.transition;fn.transition=null;try{V=1,gn(e,t,n,r)}finally{V=i,fn.transition=a}}function hn(e,t,n,r){var i=V,a=fn.transition;fn.transition=null;try{V=4,gn(e,t,n,r)}finally{V=i,fn.transition=a}}function gn(e,t,n,r){if(pn){var i=vn(e,t,n,r);if(i===null)ci(e,t,r,_n,n),nn(e,r);else if(an(i,e,t,n,r))r.stopPropagation();else if(nn(e,r),t&4&&-1<tn.indexOf(e)){for(;i!==null;){var a=Li(i);if(a!==null&&Ht(a),a=vn(e,t,n,r),a===null&&ci(e,t,r,_n,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else ci(e,t,r,null,n)}}var _n=null;function vn(e,t,n,r){if(_n=null,e=Je(r),e=Ii(e),e!==null){if(t=lt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ut(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}return _n=e,null}function yn(e){switch(e){case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 1;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`toggle`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 4;case`message`:switch(yt()){case R:return 1;case z:return 4;case bt:case xt:return 16;case St:return 536870912;default:return 16}default:return 16}}var bn=null,H=null,xn=null;function Sn(){if(xn)return xn;var e,t=H,n=t.length,r,i=`value`in bn?bn.value:bn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return xn=i.slice(e,1<r?1-r:void 0)}function Cn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function wn(){return!0}function Tn(){return!1}function U(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?wn:Tn,this.isPropagationStopped=Tn,this}return T(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=wn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=wn)},persist:function(){},isPersistent:wn}),t}var En={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Dn=U(En),On=T({},En,{view:0,detail:0}),kn=U(On),An,jn,Mn,Nn=T({},On,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Un,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Mn&&(Mn&&e.type===`mousemove`?(An=e.screenX-Mn.screenX,jn=e.screenY-Mn.screenY):jn=An=0,Mn=e),An)},movementY:function(e){return`movementY`in e?e.movementY:jn}}),W=U(Nn),Pn=U(T({},Nn,{dataTransfer:0})),Fn=U(T({},On,{relatedTarget:0})),In=U(T({},En,{animationName:0,elapsedTime:0,pseudoElement:0})),Ln=U(T({},En,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Rn=U(T({},En,{data:0})),zn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Bn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Vn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Hn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Vn[e])?!!t[e]:!1}function Un(){return Hn}var Wn=U(T({},On,{key:function(e){if(e.key){var t=zn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Cn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Bn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Un,charCode:function(e){return e.type===`keypress`?Cn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Cn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Gn=U(T({},Nn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Kn=U(T({},On,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Un})),qn=U(T({},En,{propertyName:0,elapsedTime:0,pseudoElement:0})),Jn=U(T({},Nn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Yn=[9,13,27,32],Xn=c&&`CompositionEvent`in window,Zn=null;c&&`documentMode`in document&&(Zn=document.documentMode);var Qn=c&&`TextEvent`in window&&!Zn,$n=c&&(!Xn||Zn&&8<Zn&&11>=Zn),er=` `,tr=!1;function nr(e,t){switch(e){case`keyup`:return Yn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function rr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var ir=!1;function ar(e,t){switch(e){case`compositionend`:return rr(t);case`keypress`:return t.which===32?(tr=!0,er):null;case`textInput`:return e=t.data,e===er&&tr?null:e;default:return null}}function or(e,t){if(ir)return e===`compositionend`||!Xn&&nr(e,t)?(e=Sn(),xn=H=bn=null,ir=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return $n&&t.locale!==`ko`?null:t.data;default:return null}}var sr={color:!0,date:!0,datetime:!0,\"datetime-local\":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!sr[e.type]:t===`textarea`}function lr(e,t,n,r){M(r),t=ui(t,`onChange`),0<t.length&&(n=new Dn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var ur=null,dr=null;function fr(e){ri(e,0)}function pr(e){if(we(Ri(e)))return e}function mr(e,t){if(e===`change`)return t}var hr=!1;if(c){var gr;if(c){var _r=`oninput`in document;if(!_r){var vr=document.createElement(`div`);vr.setAttribute(`oninput`,`return;`),_r=typeof vr.oninput==`function`}gr=_r}else gr=!1;hr=gr&&(!document.documentMode||9<document.documentMode)}function yr(){ur&&(ur.detachEvent(`onpropertychange`,br),dr=ur=null)}function br(e){if(e.propertyName===`value`&&pr(dr)){var t=[];lr(t,dr,e,Je(e)),tt(fr,t)}}function xr(e,t,n){e===`focusin`?(yr(),ur=t,dr=n,ur.attachEvent(`onpropertychange`,br)):e===`focusout`&&yr()}function Sr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return pr(dr)}function Cr(e,t){if(e===`click`)return pr(t)}function wr(e,t){if(e===`input`||e===`change`)return pr(t)}function Tr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Er=typeof Object.is==`function`?Object.is:Tr;function Dr(e,t){if(Er(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!l.call(t,i)||!Er(e[i],t[i]))return!1}return!0}function Or(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function kr(e,t){var n=Or(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Or(n)}}function Ar(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ar(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jr(){for(var e=window,t=Te();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Te(e.document)}return t}function Mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}function Nr(e){var t=jr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ar(n.ownerDocument.documentElement,n)){if(r!==null&&Mr(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),`selectionStart`in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=kr(n,a);var o=kr(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus==`function`&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Pr=c&&`documentMode`in document&&11>=document.documentMode,Fr=null,Ir=null,Lr=null,Rr=!1;function zr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Rr||Fr==null||Fr!==Te(r)||(r=Fr,`selectionStart`in r&&Mr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Lr&&Dr(Lr,r)||(Lr=r,r=ui(Ir,`onSelect`),0<r.length&&(t=new Dn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Fr)))}function Br(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Vr={animationend:Br(`Animation`,`AnimationEnd`),animationiteration:Br(`Animation`,`AnimationIteration`),animationstart:Br(`Animation`,`AnimationStart`),transitionend:Br(`Transition`,`TransitionEnd`)},Hr={},Ur={};c&&(Ur=document.createElement(`div`).style,`AnimationEvent`in window||(delete Vr.animationend.animation,delete Vr.animationiteration.animation,delete Vr.animationstart.animation),`TransitionEvent`in window||delete Vr.transitionend.transition);function Wr(e){if(Hr[e])return Hr[e];if(!Vr[e])return e;var t=Vr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ur)return Hr[e]=t[n];return e}var Gr=Wr(`animationend`),Kr=Wr(`animationiteration`),qr=Wr(`animationstart`),Jr=Wr(`transitionend`),Yr=new Map,Xr=`abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);function Zr(e,t){Yr.set(e,t),o(t,[e])}for(var Qr=0;Qr<Xr.length;Qr++){var $r=Xr[Qr];Zr($r.toLowerCase(),`on`+($r[0].toUpperCase()+$r.slice(1)))}Zr(Gr,`onAnimationEnd`),Zr(Kr,`onAnimationIteration`),Zr(qr,`onAnimationStart`),Zr(`dblclick`,`onDoubleClick`),Zr(`focusin`,`onFocus`),Zr(`focusout`,`onBlur`),Zr(Jr,`onTransitionEnd`),s(`onMouseEnter`,[`mouseout`,`mouseover`]),s(`onMouseLeave`,[`mouseout`,`mouseover`]),s(`onPointerEnter`,[`pointerout`,`pointerover`]),s(`onPointerLeave`,[`pointerout`,`pointerover`]),o(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),o(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),o(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),o(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var ei=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),ti=new Set(`cancel close invalid load scroll toggle`.split(` `).concat(ei));function ni(e,t,n){var r=e.type||`unknown-event`;e.currentTarget=n,ct(r,t,void 0,e),e.currentTarget=null}function ri(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;ni(i,s,l),a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;ni(i,s,l),a=c}}}if(P)throw e=F,P=!1,F=null,e}function G(e,t){var n=t[Ni];n===void 0&&(n=t[Ni]=new Set);var r=e+`__bubble`;n.has(r)||(si(t,e,2,!1),n.add(r))}function ii(e,t,n){var r=0;t&&(r|=4),si(n,e,r,t)}var ai=`_reactListening`+Math.random().toString(36).slice(2);function oi(e){if(!e[ai]){e[ai]=!0,i.forEach(function(t){t!==`selectionchange`&&(ti.has(t)||ii(t,!1,e),ii(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ai]||(t[ai]=!0,ii(`selectionchange`,!1,t))}}function si(e,t,n,r){switch(yn(t)){case 1:var i=mn;break;case 4:i=hn;break;default:i=gn}n=i.bind(null,t,n,e),i=void 0,!N||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function ci(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;s!==null;){if(o=Ii(s),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue a}s=s.parentNode}}r=r.return}tt(function(){var r=a,i=Je(n),o=[];a:{var s=Yr.get(e);if(s!==void 0){var c=Dn,l=e;switch(e){case`keypress`:if(Cn(n)===0)break a;case`keydown`:case`keyup`:c=Wn;break;case`focusin`:l=`focus`,c=Fn;break;case`focusout`:l=`blur`,c=Fn;break;case`beforeblur`:case`afterblur`:c=Fn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=W;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=Pn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=Kn;break;case Gr:case Kr:case qr:c=In;break;case Jr:c=qn;break;case`scroll`:c=kn;break;case`wheel`:c=Jn;break;case`copy`:case`cut`:case`paste`:c=Ln;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=Gn}var u=!!(t&4),d=!u&&e===`scroll`,f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){m=p;var h=m.stateNode;if(m.tag===5&&h!==null&&(m=h,f!==null&&(h=nt(p,f),h!=null&&u.push(li(p,h,m)))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==qe&&(l=n.relatedTarget||n.fromElement)&&(Ii(l)||l[Mi]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Ii(l):null,l!==null&&(d=lt(l),l!==d||l.tag!==5&&l.tag!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=W,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=Gn,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:Ri(c),m=l==null?s:Ri(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Ii(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=c,f=l,p=0,m=u;m;m=di(m))p++;for(m=0,h=f;h;h=di(h))m++;for(;0<p-m;)u=di(u),p--;for(;0<m-p;)f=di(f),m--;for(;p--;){if(u===f||f!==null&&u===f.alternate)break b;u=di(u),f=di(f)}u=null}else u=null;c!==null&&fi(o,s,c,u,!1),l!==null&&d!==null&&fi(o,d,l,u,!0)}}a:{if(s=r?Ri(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=mr;else if(cr(s)){if(hr)g=wr;else{g=Sr;var _=xr}}else(c=s.nodeName)&&c.toLowerCase()===`input`&&(s.type===`checkbox`||s.type===`radio`)&&(g=Cr);if(g&&=g(e,r)){lr(o,g,n,i);break a}_&&_(e,s,r),e===`focusout`&&(_=s._wrapperState)&&_.controlled&&s.type===`number`&&Ae(s,`number`,s.value)}switch(_=r?Ri(r):window,e){case`focusin`:(cr(_)||_.contentEditable===`true`)&&(Fr=_,Ir=r,Lr=null);break;case`focusout`:Lr=Ir=Fr=null;break;case`mousedown`:Rr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Rr=!1,zr(o,n,i);break;case`selectionchange`:if(Pr)break;case`keydown`:case`keyup`:zr(o,n,i)}var v;if(Xn)b:{switch(e){case`compositionstart`:var y=`onCompositionStart`;break b;case`compositionend`:y=`onCompositionEnd`;break b;case`compositionupdate`:y=`onCompositionUpdate`;break b}y=void 0}else ir?nr(e,n)&&(y=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(y=`onCompositionStart`);y&&($n&&n.locale!==`ko`&&(ir||y!==`onCompositionStart`?y===`onCompositionEnd`&&ir&&(v=Sn()):(bn=i,H=`value`in bn?bn.value:bn.textContent,ir=!0)),_=ui(r,y),0<_.length&&(y=new Rn(y,e,null,n,i),o.push({event:y,listeners:_}),v?y.data=v:(v=rr(n),v!==null&&(y.data=v)))),(v=Qn?ar(e,n):or(e,n))&&(r=ui(r,`onBeforeInput`),0<r.length&&(i=new Rn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:i,listeners:r}),i.data=v))}ri(o,t)})}function li(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ui(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=nt(e,n),a!=null&&r.unshift(li(e,a,i)),a=nt(e,t),a!=null&&r.push(li(e,a,i))),e=e.return}return r}function di(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function fi(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&l!==null&&(s=l,i?(c=nt(n,a),c!=null&&o.unshift(li(n,c,s))):i||(c=nt(n,a),c!=null&&o.push(li(n,c,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var pi=/\\r\\n?/g,mi=/\\u0000|\\uFFFD/g;function hi(e){return(typeof e==`string`?e:``+e).replace(pi,`\n`).replace(mi,``)}function gi(e,t,n){if(t=hi(t),hi(e)!==t&&n)throw Error(r(425))}function _i(){}var vi=null,yi=null;function bi(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var xi=typeof setTimeout==`function`?setTimeout:void 0,Si=typeof clearTimeout==`function`?clearTimeout:void 0,Ci=typeof Promise==`function`?Promise:void 0,wi=typeof queueMicrotask==`function`?queueMicrotask:Ci===void 0?xi:function(e){return Ci.resolve(null).then(e).catch(Ti)};function Ti(e){setTimeout(function(){throw e})}function Ei(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`){if(r===0){e.removeChild(i),dn(t);return}r--}else n!==`$`&&n!==`$?`&&n!==`$!`||r++}n=i}while(n);dn(t)}function Di(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`)break;if(t===`/$`)return null}}return e}function Oi(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`){if(t===0)return e;t--}else n===`/$`&&t++}e=e.previousSibling}return null}var ki=Math.random().toString(36).slice(2),Ai=`__reactFiber$`+ki,ji=`__reactProps$`+ki,Mi=`__reactContainer$`+ki,Ni=`__reactEvents$`+ki,Pi=`__reactListeners$`+ki,Fi=`__reactHandles$`+ki;function Ii(e){var t=e[Ai];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Mi]||n[Ai]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Oi(e);e!==null;){if(n=e[Ai])return n;e=Oi(e)}return t}e=n,n=e.parentNode}return null}function Li(e){return e=e[Ai]||e[Mi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ri(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function zi(e){return e[ji]||null}var Bi=[],Vi=-1;function Hi(e){return{current:e}}function K(e){0>Vi||(e.current=Bi[Vi],Bi[Vi]=null,Vi--)}function q(e,t){Vi++,Bi[Vi]=e.current,e.current=t}var Ui={},Wi=Hi(Ui),Gi=Hi(!1),Ki=Ui;function qi(e,t){var n=e.type.contextTypes;if(!n)return Ui;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ji(e){return e=e.childContextTypes,e!=null}function Yi(){K(Gi),K(Wi)}function Xi(e,t,n){if(Wi.current!==Ui)throw Error(r(168));q(Wi,t),q(Gi,n)}function Zi(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!=`function`)return n;for(var a in i=i.getChildContext(),i)if(!(a in t))throw Error(r(108,ye(e)||`Unknown`,a));return T({},n,i)}function Qi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ui,Ki=Wi.current,q(Wi,e),q(Gi,Gi.current),!0}function $i(e,t,n){var i=e.stateNode;if(!i)throw Error(r(169));n?(e=Zi(e,t,Ki),i.__reactInternalMemoizedMergedChildContext=e,K(Gi),K(Wi),q(Wi,e)):K(Gi),q(Gi,n)}var ea=null,ta=!1,na=!1;function ra(e){ea===null?ea=[e]:ea.push(e)}function ia(e){ta=!0,ra(e)}function aa(){if(!na&&ea!==null){na=!0;var e=0,t=V;try{var n=ea;for(V=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ea=null,ta=!1}catch(t){throw ea!==null&&(ea=ea.slice(e+1)),ht(R,aa),t}finally{V=t,na=!1}}return null}var oa=[],sa=0,ca=null,la=0,ua=[],da=0,fa=null,pa=1,ma=``;function ha(e,t){oa[sa++]=la,oa[sa++]=ca,ca=e,la=t}function ga(e,t,n){ua[da++]=pa,ua[da++]=ma,ua[da++]=fa,fa=e;var r=pa;e=ma;var i=32-Et(r)-1;r&=~(1<<i),n+=1;var a=32-Et(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,pa=1<<32-Et(t)+i|n<<i|r,ma=a+e}else pa=1<<a|n<<i|r,ma=e}function _a(e){e.return!==null&&(ha(e,1),ga(e,1,0))}function va(e){for(;e===ca;)ca=oa[--sa],oa[sa]=null,la=oa[--sa],oa[sa]=null;for(;e===fa;)fa=ua[--da],ua[da]=null,ma=ua[--da],ua[da]=null,pa=ua[--da],ua[da]=null}var ya=null,ba=null,J=!1,xa=null;function Sa(e,t){var n=Kl(5,null,null,0);n.elementType=`DELETED`,n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Ca(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null&&(e.stateNode=t,ya=e,ba=Di(t.firstChild),!0);case 6:return t=e.pendingProps===``||t.nodeType!==3?null:t,t!==null&&(e.stateNode=t,ya=e,ba=null,!0);case 13:return t=t.nodeType===8?t:null,t!==null&&(n=fa===null?null:{id:pa,overflow:ma},e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Kl(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ya=e,ba=null,!0);default:return!1}}function wa(e){return!!(e.mode&1)&&!(e.flags&128)}function Ta(e){if(J){var t=ba;if(t){var n=t;if(!Ca(e,t)){if(wa(e))throw Error(r(418));t=Di(n.nextSibling);var i=ya;t&&Ca(e,t)?Sa(i,n):(e.flags=e.flags&-4097|2,J=!1,ya=e)}}else{if(wa(e))throw Error(r(418));e.flags=e.flags&-4097|2,J=!1,ya=e}}}function Ea(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ya=e}function Da(e){if(e!==ya)return!1;if(!J)return Ea(e),J=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!==`head`&&t!==`body`&&!bi(e.type,e.memoizedProps)),t&&=ba){if(wa(e))throw Oa(),Error(r(418));for(;t;)Sa(e,t),t=Di(t.nextSibling)}if(Ea(e),e.tag===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(317));a:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`){if(t===0){ba=Di(e.nextSibling);break a}t--}else n!==`$`&&n!==`$!`&&n!==`$?`||t++}e=e.nextSibling}ba=null}}else ba=ya?Di(e.stateNode.nextSibling):null;return!0}function Oa(){for(var e=ba;e;)e=Di(e.nextSibling)}function ka(){ba=ya=null,J=!1}function Aa(e){xa===null?xa=[e]:xa.push(e)}var ja=S.ReactCurrentBatchConfig;function Ma(e,t,n){if(e=n.ref,e!==null&&typeof e!=`function`&&typeof e!=`object`){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(r(309));var i=n.stateNode}if(!i)throw Error(r(147,e));var a=i,o=``+e;return t!==null&&t.ref!==null&&typeof t.ref==`function`&&t.ref._stringRef===o?t.ref:(t=function(e){var t=a.refs;e===null?delete t[o]:t[o]=e},t._stringRef=o,t)}if(typeof e!=`string`)throw Error(r(284));if(!n._owner)throw Error(r(290,e))}return e}function Na(e,t){throw e=Object.prototype.toString.call(t),Error(r(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e))}function Pa(e){var t=e._init;return t(e._payload)}function Fa(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function i(e,t){for(e=new Map;t!==null;)t.key===null?e.set(t.index,t):e.set(t.key,t),t=t.sibling;return e}function a(e,t){return e=Yl(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=2,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=2),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=$l(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===ne?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===ue&&Pa(i)===t.type)?(r=a(t,n.props),r.ref=Ma(e,t,n),r.return=e,r):(r=Xl(n.type,n.key,n.props,null,e.mode,r),r.ref=Ma(e,t,n),r.return=e,r)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=eu(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=Zl(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`)return t=$l(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case C:return n=Xl(t.type,t.key,t.props,null,e.mode,n),n.ref=Ma(e,null,t),n.return=e,n;case te:return t=eu(t,e.mode,n),t.return=e,t;case ue:var r=t._init;return f(e,r(t._payload),n)}if(je(t)||pe(t))return t=Zl(t,e.mode,n,null),t.return=e,t;Na(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case C:return n.key===i?l(e,t,n,r):null;case te:return n.key===i?u(e,t,n,r):null;case ue:return i=n._init,p(e,t,i(n._payload),r)}if(je(n)||pe(n))return i===null?d(e,t,n,r,null):null;Na(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case C:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case te:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case ue:var a=r._init;return m(e,t,n,a(r._payload),i)}if(je(r)||pe(r))return e=e.get(n)||null,d(t,e,r,i,null);Na(t,r)}return null}function h(r,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(r,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(r,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(r,d),J&&ha(r,h),l;if(d===null){for(;h<s.length;h++)d=f(r,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return J&&ha(r,h),l}for(d=i(r,d);h<s.length;h++)g=m(d,r,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(r,e)}),J&&ha(r,h),l}function g(a,s,c,l){var u=pe(c);if(typeof u!=`function`)throw Error(r(150));if(c=u.call(c),c==null)throw Error(r(151));for(var d=u=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),J&&ha(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return J&&ha(a,g),u}for(h=i(a,h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),J&&ha(a,g),u}function _(e,r,i,o){if(typeof i==`object`&&i&&i.type===ne&&i.key===null&&(i=i.props.children),typeof i==`object`&&i){switch(i.$$typeof){case C:a:{for(var c=i.key,l=r;l!==null;){if(l.key===c){if(c=i.type,c===ne){if(l.tag===7){n(e,l.sibling),r=a(l,i.props.children),r.return=e,e=r;break a}}else if(l.elementType===c||typeof c==`object`&&c&&c.$$typeof===ue&&Pa(c)===l.type){n(e,l.sibling),r=a(l,i.props),r.ref=Ma(e,l,i),r.return=e,e=r;break a}n(e,l);break}t(e,l),l=l.sibling}i.type===ne?(r=Zl(i.props.children,e.mode,o,i.key),r.return=e,e=r):(o=Xl(i.type,i.key,i.props,null,e.mode,o),o.ref=Ma(e,r,i),o.return=e,e=o)}return s(e);case te:a:{for(l=i.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),r=a(r,i.children||[]),r.return=e,e=r;break a}n(e,r);break}t(e,r),r=r.sibling}r=eu(i,e.mode,o),r.return=e,e=r}return s(e);case ue:return l=i._init,_(e,r,l(i._payload),o)}if(je(i))return h(e,r,i,o);if(pe(i))return g(e,r,i,o);Na(e,i)}return typeof i==`string`&&i!==``||typeof i==`number`?(i=``+i,r!==null&&r.tag===6?(n(e,r.sibling),r=a(r,i),r.return=e,e=r):(n(e,r),r=$l(i,e.mode,o),r.return=e,e=r),s(e)):n(e,r)}return _}var Ia=Fa(!0),La=Fa(!1),Ra=Hi(null),za=null,Ba=null,Va=null;function Ha(){Va=Ba=za=null}function Ua(e){var t=Ra.current;K(Ra),e._currentValue=t}function Wa(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Ga(e,t){za=e,Va=Ba=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ns=!0),e.firstContext=null)}function Ka(e){var t=e._currentValue;if(Va!==e){if(e={context:e,memoizedValue:t,next:null},Ba===null){if(za===null)throw Error(r(308));Ba=e,za.dependencies={lanes:0,firstContext:e}}else Ba=Ba.next=e}return t}var qa=null;function Ja(e){qa===null?qa=[e]:qa.push(e)}function Ya(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Ja(t)):(n.next=i.next,i.next=n),t.interleaved=n,Xa(e,r)}function Xa(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Za=!1;function Qa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $a(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function eo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function to(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Q&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Xa(e,n)}return i=r.interleaved,i===null?(t.next=t,Ja(r)):(t.next=i.next,i.next=t),r.interleaved=t,Xa(e,n)}function no(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194240)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Bt(e,n)}}function ro(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function io(e,t,n,r){var i=e.updateQueue;Za=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});a:{var m=e,h=s;switch(f=t,p=n,h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(p,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(p,d,f):m,f==null)break a;d=T({},d,f);break a;case 2:Za=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(1);if(u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Yc|=o,e.lanes=o,e.memoizedState=d}}function ao(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],a=i.callback;if(a!==null){if(i.callback=null,i=n,typeof a!=`function`)throw Error(r(191,a));a.call(i)}}}var oo={},so=Hi(oo),co=Hi(oo),lo=Hi(oo);function uo(e){if(e===oo)throw Error(r(174));return e}function fo(e,t){switch(q(lo,t),q(co,e),q(so,oo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Re(null,``);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Re(t,e)}K(so),q(so,t)}function po(){K(so),K(co),K(lo)}function mo(e){uo(lo.current);var t=uo(so.current),n=Re(t,e.type);t!==n&&(q(co,e),q(so,n))}function ho(e){co.current===e&&(K(so),K(co))}var Y=Hi(0);function go(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===`$?`||n.data===`$!`))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var _o=[];function vo(){for(var e=0;e<_o.length;e++)_o[e]._workInProgressVersionPrimary=null;_o.length=0}var yo=S.ReactCurrentDispatcher,bo=S.ReactCurrentBatchConfig,xo=0,X=null,So=null,Co=null,wo=!1,To=!1,Eo=0,Do=0;function Oo(){throw Error(r(321))}function ko(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Er(e[n],t[n]))return!1;return!0}function Ao(e,t,n,i,a,o){if(xo=o,X=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,yo.current=e===null||e.memoizedState===null?ps:ms,e=n(i,a),To){o=0;do{if(To=!1,Eo=0,25<=o)throw Error(r(301));o+=1,Co=So=null,t.updateQueue=null,yo.current=hs,e=n(i,a)}while(To)}if(yo.current=fs,t=So!==null&&So.next!==null,xo=0,Co=So=X=null,wo=!1,t)throw Error(r(300));return e}function jo(){var e=Eo!==0;return Eo=0,e}function Mo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Co===null?X.memoizedState=Co=e:Co=Co.next=e,Co}function No(){if(So===null){var e=X.alternate;e=e===null?null:e.memoizedState}else e=So.next;var t=Co===null?X.memoizedState:Co.next;if(t!==null)Co=t,So=e;else{if(e===null)throw Error(r(310));So=e,e={memoizedState:So.memoizedState,baseState:So.baseState,baseQueue:So.baseQueue,queue:So.queue,next:null},Co===null?X.memoizedState=Co=e:Co=Co.next=e}return Co}function Po(e,t){return typeof t==`function`?t(e):t}function Fo(e){var t=No(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=So,a=i.baseQueue,o=n.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}i.baseQueue=a=o,n.pending=null}if(a!==null){o=a.next,i=i.baseState;var c=s=null,l=null,u=o;do{var d=u.lane;if((xo&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(c=l=f,s=i):l=l.next=f,X.lanes|=d,Yc|=d}u=u.next}while(u!==null&&u!==o);l===null?s=i:l.next=c,Er(i,t.memoizedState)||(Ns=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=l,n.lastRenderedState=i}if(e=n.interleaved,e!==null){a=e;do o=a.lane,X.lanes|=o,Yc|=o,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Io(e){var t=No(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Er(o,t.memoizedState)||(Ns=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Lo(){}function Ro(e,t){var n=X,i=No(),a=t(),o=!Er(i.memoizedState,a);if(o&&(i.memoizedState=a,Ns=!0),i=i.queue,Xo(Vo.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||Co!==null&&Co.memoizedState.tag&1){if(n.flags|=2048,Go(9,Bo.bind(null,n,i,a,t),void 0,null),Hc===null)throw Error(r(349));xo&30||zo(n,t,a)}return a}function zo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=X.updateQueue,t===null?(t={lastEffect:null,stores:null},X.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Bo(e,t,n,r){t.value=n,t.getSnapshot=r,Ho(t)&&Uo(e)}function Vo(e,t,n){return n(function(){Ho(t)&&Uo(e)})}function Ho(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Er(e,n)}catch{return!0}}function Uo(e){var t=Xa(e,1);t!==null&&hl(t,e,1,-1)}function Wo(e){var t=Mo();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:e},t.queue=e,e=e.dispatch=cs.bind(null,X,e),[t.memoizedState,e]}function Go(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=X.updateQueue,t===null?(t={lastEffect:null,stores:null},X.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Ko(){return No().memoizedState}function qo(e,t,n,r){var i=Mo();X.flags|=e,i.memoizedState=Go(1|t,n,void 0,r===void 0?null:r)}function Jo(e,t,n,r){var i=No();r=r===void 0?null:r;var a=void 0;if(So!==null){var o=So.memoizedState;if(a=o.destroy,r!==null&&ko(r,o.deps)){i.memoizedState=Go(t,n,a,r);return}}X.flags|=e,i.memoizedState=Go(1|t,n,a,r)}function Yo(e,t){return qo(8390656,8,e,t)}function Xo(e,t){return Jo(2048,8,e,t)}function Zo(e,t){return Jo(4,2,e,t)}function Qo(e,t){return Jo(4,4,e,t)}function $o(e,t){if(typeof t==`function`)return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function es(e,t,n){return n=n==null?null:n.concat([e]),Jo(4,4,$o.bind(null,t,e),n)}function ts(){}function ns(e,t){var n=No();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ko(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function rs(e,t){var n=No();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ko(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function is(e,t,n){return xo&21?(Er(n,t)||(n=It(),X.lanes|=n,Yc|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ns=!0),e.memoizedState=n)}function as(e,t){var n=V;V=n!==0&&4>n?n:4,e(!0);var r=bo.transition;bo.transition={};try{e(!1),t()}finally{V=n,bo.transition=r}}function os(){return No().memoizedState}function ss(e,t,n){var r=ml(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ls(e))us(t,n);else if(n=Ya(e,t,n,r),n!==null){var i=pl();hl(n,e,r,i),ds(n,t,r)}}function cs(e,t,n){var r=ml(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ls(e))us(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Er(s,o)){var c=t.interleaved;c===null?(i.next=i,Ja(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}n=Ya(e,t,i,r),n!==null&&(i=pl(),hl(n,e,r,i),ds(n,t,r))}}function ls(e){var t=e.alternate;return e===X||t!==null&&t===X}function us(e,t){To=wo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ds(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Bt(e,n)}}var fs={readContext:Ka,useCallback:Oo,useContext:Oo,useEffect:Oo,useImperativeHandle:Oo,useInsertionEffect:Oo,useLayoutEffect:Oo,useMemo:Oo,useReducer:Oo,useRef:Oo,useState:Oo,useDebugValue:Oo,useDeferredValue:Oo,useTransition:Oo,useMutableSource:Oo,useSyncExternalStore:Oo,useId:Oo,unstable_isNewReconciler:!1},ps={readContext:Ka,useCallback:function(e,t){return Mo().memoizedState=[e,t===void 0?null:t],e},useContext:Ka,useEffect:Yo,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),qo(4194308,4,$o.bind(null,t,e),n)},useLayoutEffect:function(e,t){return qo(4194308,4,e,t)},useInsertionEffect:function(e,t){return qo(4,2,e,t)},useMemo:function(e,t){var n=Mo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Mo();return t=n===void 0?t:n(t),r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ss.bind(null,X,e),[r.memoizedState,e]},useRef:function(e){var t=Mo();return e={current:e},t.memoizedState=e},useState:Wo,useDebugValue:ts,useDeferredValue:function(e){return Mo().memoizedState=e},useTransition:function(){var e=Wo(!1),t=e[0];return e=as.bind(null,e[1]),Mo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=X,a=Mo();if(J){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Hc===null)throw Error(r(349));xo&30||zo(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Yo(Vo.bind(null,i,o,e),[e]),i.flags|=2048,Go(9,Bo.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=Mo(),t=Hc.identifierPrefix;if(J){var n=ma,r=pa;n=(r&~(1<<32-Et(r)-1)).toString(32)+n,t=`:`+t+`R`+n,n=Eo++,0<n&&(t+=`H`+n.toString(32)),t+=`:`}else n=Do++,t=`:`+t+`r`+n.toString(32)+`:`;return e.memoizedState=t},unstable_isNewReconciler:!1},ms={readContext:Ka,useCallback:ns,useContext:Ka,useEffect:Xo,useImperativeHandle:es,useInsertionEffect:Zo,useLayoutEffect:Qo,useMemo:rs,useReducer:Fo,useRef:Ko,useState:function(){return Fo(Po)},useDebugValue:ts,useDeferredValue:function(e){return is(No(),So.memoizedState,e)},useTransition:function(){return[Fo(Po)[0],No().memoizedState]},useMutableSource:Lo,useSyncExternalStore:Ro,useId:os,unstable_isNewReconciler:!1},hs={readContext:Ka,useCallback:ns,useContext:Ka,useEffect:Xo,useImperativeHandle:es,useInsertionEffect:Zo,useLayoutEffect:Qo,useMemo:rs,useReducer:Io,useRef:Ko,useState:function(){return Io(Po)},useDebugValue:ts,useDeferredValue:function(e){var t=No();return So===null?t.memoizedState=e:is(t,So.memoizedState,e)},useTransition:function(){return[Io(Po)[0],No().memoizedState]},useMutableSource:Lo,useSyncExternalStore:Ro,useId:os,unstable_isNewReconciler:!1};function gs(e,t){if(e&&e.defaultProps){for(var n in t=T({},t),e=e.defaultProps,e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function _s(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:T({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var vs={isMounted:function(e){return(e=e._reactInternals)?lt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=pl(),i=ml(e),a=eo(r,i);a.payload=t,n!=null&&(a.callback=n),t=to(e,a,i),t!==null&&(hl(t,e,i,r),no(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=pl(),i=ml(e),a=eo(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=to(e,a,i),t!==null&&(hl(t,e,i,r),no(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pl(),r=ml(e),i=eo(n,r);i.tag=2,t!=null&&(i.callback=t),t=to(e,i,r),t!==null&&(hl(t,e,r,n),no(t,e,r))}};function ys(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Dr(n,r)||!Dr(i,a):!0}function bs(e,t,n){var r=!1,i=Ui,a=t.contextType;return typeof a==`object`&&a?a=Ka(a):(i=Ji(t)?Ki:Wi.current,r=t.contextTypes,a=(r=r!=null)?qi(e,i):Ui),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=vs,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function xs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&vs.enqueueReplaceState(t,t.state,null)}function Ss(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Qa(e);var a=t.contextType;typeof a==`object`&&a?i.context=Ka(a):(a=Ji(t)?Ki:Wi.current,i.context=qi(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(_s(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==`function`||typeof i.getSnapshotBeforeUpdate==`function`||typeof i.UNSAFE_componentWillMount!=`function`&&typeof i.componentWillMount!=`function`||(t=i.state,typeof i.componentWillMount==`function`&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount==`function`&&i.UNSAFE_componentWillMount(),t!==i.state&&vs.enqueueReplaceState(i,i.state,null),io(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4194308)}function Cs(e,t){try{var n=``,r=t;do n+=_e(r),r=r.return;while(r);var i=n}catch(e){i=`\nError generating stack: `+e.message+`\n`+e.stack}return{value:e,source:t,stack:i,digest:null}}function ws(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ts(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var Es=typeof WeakMap==`function`?WeakMap:Map;function Ds(e,t,n){n=eo(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){rl||(rl=!0,il=r),Ts(e,t)},n}function Os(e,t,n){n=eo(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==`function`){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Ts(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){Ts(e,t),typeof r!=`function`&&(al===null?al=new Set([this]):al.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}function ks(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Es;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=zl.bind(null,e,t,n),t.then(e,e))}function As(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t===null||t.dehydrated!==null),t)return e;e=e.return}while(e!==null);return null}function js(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=eo(-1,1),t.tag=2,to(n,t,1))),n.lanes|=1),e)}var Ms=S.ReactCurrentOwner,Ns=!1;function Ps(e,t,n,r){t.child=e===null?La(t,null,n,r):Ia(t,e.child,n,r)}function Fs(e,t,n,r,i){n=n.render;var a=t.ref;return Ga(t,i),r=Ao(e,t,n,r,a,i),n=jo(),e!==null&&!Ns?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,tc(e,t,i)):(J&&n&&_a(t),t.flags|=1,Ps(e,t,r,i),t.child)}function Is(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ql(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Ls(e,t,a,r,i)):(e=Xl(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&i)===0){var o=a.memoizedProps;if(n=n.compare,n=n===null?Dr:n,n(o,r)&&e.ref===t.ref)return tc(e,t,i)}return t.flags|=1,e=Yl(a,r),e.ref=t.ref,e.return=t,t.child=e}function Ls(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Dr(a,r)&&e.ref===t.ref){if(Ns=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Ns=!0);else return t.lanes=e.lanes,tc(e,t,i)}}return Bs(e,t,n,r,i)}function Rs(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`){if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},q(Kc,Gc),Gc|=n;else{if(!(n&1073741824))return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,q(Kc,Gc),Gc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a===null?n:a.baseLanes,q(Kc,Gc),Gc|=r}}else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),q(Kc,Gc),Gc|=r;return Ps(e,t,i,n),t.child}function zs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Bs(e,t,n,r,i){var a=Ji(n)?Ki:Wi.current;return a=qi(t,a),Ga(t,i),n=Ao(e,t,n,r,a,i),r=jo(),e!==null&&!Ns?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,tc(e,t,i)):(J&&r&&_a(t),t.flags|=1,Ps(e,t,n,i),t.child)}function Vs(e,t,n,r,i){if(Ji(n)){var a=!0;Qi(t)}else a=!1;if(Ga(t,i),t.stateNode===null)ec(e,t),bs(t,n,r),Ss(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=Ka(l):(l=Ji(n)?Ki:Wi.current,l=qi(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&xs(t,o,r,l),Za=!1;var f=t.memoizedState;o.state=f,io(t,r,o,i),c=t.memoizedState,s!==r||f!==c||Gi.current||Za?(typeof u==`function`&&(_s(t,n,u,r),c=t.memoizedState),(s=Za||ys(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4194308)):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,$a(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:gs(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=Ka(c):(c=Ji(n)?Ki:Wi.current,c=qi(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&xs(t,o,r,c),Za=!1,f=t.memoizedState,o.state=f,io(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||Gi.current||Za?(typeof p==`function`&&(_s(t,n,p,r),m=t.memoizedState),(l=Za||ys(t,n,l,r,f,m,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Hs(e,t,n,r,a,i)}function Hs(e,t,n,r,i,a){zs(e,t);var o=!!(t.flags&128);if(!r&&!o)return i&&$i(t,n,!1),tc(e,t,a);r=t.stateNode,Ms.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Ia(t,e.child,null,a),t.child=Ia(t,null,s,a)):Ps(e,t,s,a),t.memoizedState=r.state,i&&$i(t,n,!0),t.child}function Us(e){var t=e.stateNode;t.pendingContext?Xi(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Xi(e,t.context,!1),fo(e,t.containerInfo)}function Ws(e,t,n,r,i){return ka(),Aa(i),t.flags|=256,Ps(e,t,n,r),t.child}var Gs={dehydrated:null,treeContext:null,retryLane:0};function Ks(e){return{baseLanes:e,cachePool:null,transitions:null}}function qs(e,t,n){var r=t.pendingProps,i=Y.current,a=!1,o=!!(t.flags&128),s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:!!(i&2)),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),q(Y,i&1),e===null)return Ta(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.lanes=t.mode&1?e.data===`$!`?8:1073741824:1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:`hidden`,children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=Ql(o,r,0,null),e=Zl(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Ks(n),t.memoizedState=Gs,e):Js(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return Xs(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var c={mode:`hidden`,children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Yl(i,c),r.subtreeFlags=i.subtreeFlags&14680064),s===null?(a=Zl(a,o,n,null),a.flags|=2):a=Yl(s,a),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?Ks(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=Gs,r}return a=e.child,e=a.sibling,r=Yl(a,{mode:`visible`,children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Js(e,t){return t=Ql({mode:`visible`,children:t},e.mode,0,null),t.return=e,e.child=t}function Ys(e,t,n,r){return r!==null&&Aa(r),Ia(t,e.child,null,n),e=Js(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xs(e,t,n,i,a,o,s){if(n)return t.flags&256?(t.flags&=-257,i=ws(Error(r(422))),Ys(e,t,s,i)):t.memoizedState===null?(o=i.fallback,a=t.mode,i=Ql({mode:`visible`,children:i.children},a,0,null),o=Zl(o,a,s,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&1&&Ia(t,e.child,null,s),t.child.memoizedState=Ks(s),t.memoizedState=Gs,o):(t.child=e.child,t.flags|=128,null);if(!(t.mode&1))return Ys(e,t,s,null);if(a.data===`$!`){if(i=a.nextSibling&&a.nextSibling.dataset,i)var c=i.dgst;return i=c,o=Error(r(419)),i=ws(o,i,void 0),Ys(e,t,s,i)}if(c=(s&e.childLanes)!==0,Ns||c){if(i=Hc,i!==null){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(i.suspendedLanes|s))===0?a:0,a!==0&&a!==o.retryLane&&(o.retryLane=a,Xa(e,a),hl(i,e,a,-1))}return kl(),i=ws(Error(r(421))),Ys(e,t,s,i)}return a.data===`$?`?(t.flags|=128,t.child=e.child,t=Vl.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,ba=Di(a.nextSibling),ya=t,J=!0,xa=null,e!==null&&(ua[da++]=pa,ua[da++]=ma,ua[da++]=fa,pa=e.id,ma=e.overflow,fa=t),t=Js(t,i.children),t.flags|=4096,t)}function Zs(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Wa(e.return,t,n)}function Qs(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function $s(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Ps(e,t,r.children,n),r=Y.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Zs(e,n,t);else if(e.tag===19)Zs(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(q(Y,r),!(t.mode&1))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&go(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Qs(t,!1,i,n,a);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&go(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Qs(t,!0,n,null,a);break;case`together`:Qs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ec(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function tc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Yc|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=Yl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Yl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function nc(e,t,n){switch(t.tag){case 3:Us(t),ka();break;case 5:mo(t);break;case 1:Ji(t.type)&&Qi(t);break;case 4:fo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;q(Ra,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(q(Y,Y.current&1),e=tc(e,t,n),e===null?null:e.sibling):qs(e,t,n):(q(Y,Y.current&1),t.flags|=128,null);q(Y,Y.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return $s(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),q(Y,Y.current),r)break;return null;case 22:case 23:return t.lanes=0,Rs(e,t,n)}return tc(e,t,n)}var rc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},ic=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,uo(so.current);var o=null;switch(n){case`input`:i=Ee(e,i),r=Ee(e,r),o=[];break;case`select`:i=T({},i,{value:void 0}),r=T({},r,{value:void 0}),o=[];break;case`textarea`:i=Ne(e,i),r=Ne(e,r),o=[];break;default:typeof i.onClick!=`function`&&typeof r.onClick==`function`&&(e.onclick=_i)}Ge(n,r);var s;for(u in n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null){if(u===`style`){var c=i[u];for(s in c)c.hasOwnProperty(s)&&(n||={},n[s]=``)}else u!==`dangerouslySetInnerHTML`&&u!==`children`&&u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&u!==`autoFocus`&&(a.hasOwnProperty(u)?o||=[]:(o||=[]).push(u,null))}for(u in r){var l=r[u];if(c=i?.[u],r.hasOwnProperty(u)&&l!==c&&(l!=null||c!=null)){if(u===`style`){if(c){for(s in c)!c.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||={},n[s]=``);for(s in l)l.hasOwnProperty(s)&&c[s]!==l[s]&&(n||={},n[s]=l[s])}else n||(o||=[],o.push(u,n)),n=l}else u===`dangerouslySetInnerHTML`?(l=l?l.__html:void 0,c=c?c.__html:void 0,l!=null&&c!==l&&(o||=[]).push(u,l)):u===`children`?typeof l!=`string`&&typeof l!=`number`||(o||=[]).push(u,``+l):u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&(a.hasOwnProperty(u)?(l!=null&&u===`onScroll`&&G(`scroll`,e),o||c===l||(o=[])):(o||=[]).push(u,l))}}n&&(o||=[]).push(`style`,n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},ac=function(e,t,n,r){n!==r&&(t.flags|=4)};function oc(e,t){if(!J)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function sc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function cc(e,t,n){var i=t.pendingProps;switch(va(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return sc(t),null;case 1:return Ji(t.type)&&Yi(),sc(t),null;case 3:return i=t.stateNode,po(),K(Gi),K(Wi),vo(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Da(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,xa!==null&&(yl(xa),xa=null))),sc(t),null;case 5:ho(t);var o=uo(lo.current);if(n=t.type,e!==null&&t.stateNode!=null)ic(e,t,n,i,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(r(166));return sc(t),null}if(e=uo(so.current),Da(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[Ai]=t,i[ji]=s,e=!!(t.mode&1),n){case`dialog`:G(`cancel`,i),G(`close`,i);break;case`iframe`:case`object`:case`embed`:G(`load`,i);break;case`video`:case`audio`:for(o=0;o<ei.length;o++)G(ei[o],i);break;case`source`:G(`error`,i);break;case`img`:case`image`:case`link`:G(`error`,i),G(`load`,i);break;case`details`:G(`toggle`,i);break;case`input`:De(i,s),G(`invalid`,i);break;case`select`:i._wrapperState={wasMultiple:!!s.multiple},G(`invalid`,i);break;case`textarea`:Pe(i,s),G(`invalid`,i)}for(var c in Ge(n,s),o=null,s)if(s.hasOwnProperty(c)){var l=s[c];c===`children`?typeof l==`string`?i.textContent!==l&&(!0!==s.suppressHydrationWarning&&gi(i.textContent,l,e),o=[`children`,l]):typeof l==`number`&&i.textContent!==``+l&&(!0!==s.suppressHydrationWarning&&gi(i.textContent,l,e),o=[`children`,``+l]):a.hasOwnProperty(c)&&l!=null&&c===`onScroll`&&G(`scroll`,i)}switch(n){case`input`:Ce(i),D(i,s,!0);break;case`textarea`:Ce(i),Ie(i);break;case`select`:case`option`:break;default:typeof s.onClick==`function`&&(i.onclick=_i)}i=o,t.updateQueue=i,i!==null&&(t.flags|=4)}else{c=o.nodeType===9?o:o.ownerDocument,e===`http://www.w3.org/1999/xhtml`&&(e=Le(n)),e===`http://www.w3.org/1999/xhtml`?n===`script`?(e=c.createElement(`div`),e.innerHTML=`<script><\\/script>`,e=e.removeChild(e.firstChild)):typeof i.is==`string`?e=c.createElement(n,{is:i.is}):(e=c.createElement(n),n===`select`&&(c=e,i.multiple?c.multiple=!0:i.size&&(c.size=i.size))):e=c.createElementNS(e,n),e[Ai]=t,e[ji]=i,rc(e,t,!1,!1),t.stateNode=e;a:{switch(c=Ke(n,i),n){case`dialog`:G(`cancel`,e),G(`close`,e),o=i;break;case`iframe`:case`object`:case`embed`:G(`load`,e),o=i;break;case`video`:case`audio`:for(o=0;o<ei.length;o++)G(ei[o],e);o=i;break;case`source`:G(`error`,e),o=i;break;case`img`:case`image`:case`link`:G(`error`,e),G(`load`,e),o=i;break;case`details`:G(`toggle`,e),o=i;break;case`input`:De(e,i),o=Ee(e,i),G(`invalid`,e);break;case`option`:o=i;break;case`select`:e._wrapperState={wasMultiple:!!i.multiple},o=T({},i,{value:void 0}),G(`invalid`,e);break;case`textarea`:Pe(e,i),o=Ne(e,i),G(`invalid`,e);break;default:o=i}for(s in Ge(n,o),l=o,l)if(l.hasOwnProperty(s)){var u=l[s];s===`style`?Ue(e,u):s===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,u!=null&&Be(e,u)):s===`children`?typeof u==`string`?(n!==`textarea`||u!==``)&&O(e,u):typeof u==`number`&&O(e,``+u):s!==`suppressContentEditableWarning`&&s!==`suppressHydrationWarning`&&s!==`autoFocus`&&(a.hasOwnProperty(s)?u!=null&&s===`onScroll`&&G(`scroll`,e):u!=null&&ee(e,s,u,c))}switch(n){case`input`:Ce(e),D(e,i,!1);break;case`textarea`:Ce(e),Ie(e);break;case`option`:i.value!=null&&e.setAttribute(`value`,``+be(i.value));break;case`select`:e.multiple=!!i.multiple,s=i.value,s==null?i.defaultValue!=null&&Me(e,!!i.multiple,i.defaultValue,!0):Me(e,!!i.multiple,s,!1);break;default:typeof o.onClick==`function`&&(e.onclick=_i)}switch(n){case`button`:case`input`:case`select`:case`textarea`:i=!!i.autoFocus;break a;case`img`:i=!0;break a;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return sc(t),null;case 6:if(e&&t.stateNode!=null)ac(e,t,e.memoizedProps,i);else{if(typeof i!=`string`&&t.stateNode===null)throw Error(r(166));if(n=uo(lo.current),uo(so.current),Da(t)){if(i=t.stateNode,n=t.memoizedProps,i[Ai]=t,(s=i.nodeValue!==n)&&(e=ya,e!==null))switch(e.tag){case 3:gi(i.nodeValue,n,!!(e.mode&1));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&gi(i.nodeValue,n,!!(e.mode&1))}s&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[Ai]=t,t.stateNode=i}return sc(t),null;case 13:if(K(Y),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(J&&ba!==null&&t.mode&1&&!(t.flags&128))Oa(),ka(),t.flags|=98560,s=!1;else if(s=Da(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s===null?null:s.dehydrated,!s)throw Error(r(317));s[Ai]=t}else ka(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;sc(t),s=!1}else xa!==null&&(yl(xa),xa=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||Y.current&1?qc===0&&(qc=3):kl())),t.updateQueue!==null&&(t.flags|=4),sc(t),null);case 4:return po(),e===null&&oi(t.stateNode.containerInfo),sc(t),null;case 10:return Ua(t.type._context),sc(t),null;case 17:return Ji(t.type)&&Yi(),sc(t),null;case 19:if(K(Y),s=t.memoizedState,s===null)return sc(t),null;if(i=!!(t.flags&128),c=s.rendering,c===null){if(i)oc(s,!1);else{if(qc!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=go(e),c!==null){for(t.flags|=128,oc(s,!1),i=c.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)s=n,e=i,s.flags&=14680066,c=s.alternate,c===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return q(Y,Y.current&1|2),t.child}e=e.sibling}s.tail!==null&&L()>tl&&(t.flags|=128,i=!0,oc(s,!1),t.lanes=4194304)}}else{if(!i){if(e=go(c),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),oc(s,!0),s.tail===null&&s.tailMode===`hidden`&&!c.alternate&&!J)return sc(t),null}else 2*L()-s.renderingStartTime>tl&&n!==1073741824&&(t.flags|=128,i=!0,oc(s,!1),t.lanes=4194304)}s.isBackwards?(c.sibling=t.child,t.child=c):(n=s.last,n===null?t.child=c:n.sibling=c,s.last=c)}return s.tail===null?(sc(t),null):(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=L(),t.sibling=null,n=Y.current,q(Y,i?n&1|2:n&1),t);case 22:case 23:return Tl(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?Gc&1073741824&&(sc(t),t.subtreeFlags&6&&(t.flags|=8192)):sc(t),null;case 24:return null;case 25:return null}throw Error(r(156,t.tag))}function lc(e,t){switch(va(t),t.tag){case 1:return Ji(t.type)&&Yi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return po(),K(Gi),K(Wi),vo(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ho(t),null;case 13:if(K(Y),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));ka()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return K(Y),null;case 4:return po(),null;case 10:return Ua(t.type._context),null;case 22:case 23:return Tl(),null;case 24:return null;default:return null}}var uc=!1,dc=!1,fc=typeof WeakSet==`function`?WeakSet:Set,Z=null;function pc(e,t){var n=e.ref;if(n!==null){if(typeof n==`function`)try{n(null)}catch(n){$(e,t,n)}else n.current=null}}function mc(e,t,n){try{n()}catch(n){$(e,t,n)}}var hc=!1;function gc(e,t){if(vi=pn,e=jr(),Mr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(yi={focusedElem:e,selectionRange:n},pn=!1,Z=t;Z!==null;)if(t=Z,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Z=e;else for(;Z!==null;){t=Z;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,_=h.memoizedState,v=t.stateNode;v.__reactInternalSnapshotBeforeUpdate=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:gs(t.type,g),_)}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent=``:y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(e){$(t,t.return,e)}if(e=t.sibling,e!==null){e.return=t.return,Z=e;break}Z=t.return}return h=hc,hc=!1,h}function _c(e,t,n){var r=t.updateQueue;if(r=r===null?null:r.lastEffect,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&mc(t,n,a)}i=i.next}while(i!==r)}}function vc(e,t){if(t=t.updateQueue,t=t===null?null:t.lastEffect,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function yc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t==`function`?t(e):t.current=e}}function bc(e){var t=e.alternate;t!==null&&(e.alternate=null,bc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ai],delete t[ji],delete t[Ni],delete t[Pi],delete t[Fi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function xc(e){return e.tag===5||e.tag===3||e.tag===4}function Sc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||xc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Cc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=_i));else if(r!==4&&(e=e.child,e!==null))for(Cc(e,t,n),e=e.sibling;e!==null;)Cc(e,t,n),e=e.sibling}function wc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(wc(e,t,n),e=e.sibling;e!==null;)wc(e,t,n),e=e.sibling}var Tc=null,Ec=!1;function Dc(e,t,n){for(n=n.child;n!==null;)Oc(e,t,n),n=n.sibling}function Oc(e,t,n){if(wt&&typeof wt.onCommitFiberUnmount==`function`)try{wt.onCommitFiberUnmount(Ct,n)}catch{}switch(n.tag){case 5:dc||pc(n,t);case 6:var r=Tc,i=Ec;Tc=null,Dc(e,t,n),Tc=r,Ec=i,Tc!==null&&(Ec?(e=Tc,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Tc.removeChild(n.stateNode));break;case 18:Tc!==null&&(Ec?(e=Tc,n=n.stateNode,e.nodeType===8?Ei(e.parentNode,n):e.nodeType===1&&Ei(e,n),dn(e)):Ei(Tc,n.stateNode));break;case 4:r=Tc,i=Ec,Tc=n.stateNode.containerInfo,Ec=!0,Dc(e,t,n),Tc=r,Ec=i;break;case 0:case 11:case 14:case 15:if(!dc&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&mc(n,t,o),i=i.next}while(i!==r)}Dc(e,t,n);break;case 1:if(!dc&&(pc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){$(n,t,e)}Dc(e,t,n);break;case 21:Dc(e,t,n);break;case 22:n.mode&1?(dc=(r=dc)||n.memoizedState!==null,Dc(e,t,n),dc=r):Dc(e,t,n);break;default:Dc(e,t,n)}}function kc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new fc),t.forEach(function(t){var r=Hl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Ac(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];try{var o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 5:Tc=c.stateNode,Ec=!1;break a;case 3:Tc=c.stateNode.containerInfo,Ec=!0;break a;case 4:Tc=c.stateNode.containerInfo,Ec=!0;break a}c=c.return}if(Tc===null)throw Error(r(160));Oc(o,s,a),Tc=null,Ec=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(e){$(a,t,e)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)jc(t,e),t=t.sibling}function jc(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ac(t,e),Mc(e),i&4){try{_c(3,e,e.return),vc(3,e)}catch(t){$(e,e.return,t)}try{_c(5,e,e.return)}catch(t){$(e,e.return,t)}}break;case 1:Ac(t,e),Mc(e),i&512&&n!==null&&pc(n,n.return);break;case 5:if(Ac(t,e),Mc(e),i&512&&n!==null&&pc(n,n.return),e.flags&32){var a=e.stateNode;try{O(a,``)}catch(t){$(e,e.return,t)}}if(i&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,s=n===null?o:n.memoizedProps,c=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{c===`input`&&o.type===`radio`&&o.name!=null&&Oe(a,o),Ke(c,s);var u=Ke(c,o);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];d===`style`?Ue(a,f):d===`dangerouslySetInnerHTML`?Be(a,f):d===`children`?O(a,f):ee(a,d,f,u)}switch(c){case`input`:ke(a,o);break;case`textarea`:Fe(a,o);break;case`select`:var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m==null?p!==!!o.multiple&&(o.defaultValue==null?Me(a,!!o.multiple,o.multiple?[]:``,!1):Me(a,!!o.multiple,o.defaultValue,!0)):Me(a,!!o.multiple,m,!1)}a[ji]=o}catch(t){$(e,e.return,t)}}break;case 6:if(Ac(t,e),Mc(e),i&4){if(e.stateNode===null)throw Error(r(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(t){$(e,e.return,t)}}break;case 3:if(Ac(t,e),Mc(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{dn(t.containerInfo)}catch(t){$(e,e.return,t)}break;case 4:Ac(t,e),Mc(e);break;case 13:Ac(t,e),Mc(e),a=e.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||(el=L())),i&4&&kc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(dc=(u=dc)||d,Ac(t,e),dc=u):Ac(t,e),Mc(e),i&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(Z=e,d=e.child;d!==null;){for(f=Z=d;Z!==null;){switch(p=Z,m=p.child,p.tag){case 0:case 11:case 14:case 15:_c(4,p,p.return);break;case 1:pc(p,p.return);var h=p.stateNode;if(typeof h.componentWillUnmount==`function`){i=p,n=p.return;try{t=i,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){$(i,n,e)}}break;case 5:pc(p,p.return);break;case 22:if(p.memoizedState!==null){Ic(f);continue}}m===null?Ic(f):(m.return=p,Z=m)}d=d.sibling}a:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{a=f.stateNode,u?(o=a.style,typeof o.setProperty==`function`?o.setProperty(`display`,`none`,`important`):o.display=`none`):(c=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty(`display`)?l.display:null,c.style.display=k(`display`,s))}catch(t){$(e,e.return,t)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?``:f.memoizedProps}catch(t){$(e,e.return,t)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break a;for(;f.sibling===null;){if(f.return===null||f.return===e)break a;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Ac(t,e),Mc(e),i&4&&kc(e);break;case 21:break;default:Ac(t,e),Mc(e)}}function Mc(e){var t=e.flags;if(t&2){try{a:{for(var n=e.return;n!==null;){if(xc(n)){var i=n;break a}n=n.return}throw Error(r(160))}switch(i.tag){case 5:var a=i.stateNode;i.flags&32&&(O(a,``),i.flags&=-33),wc(e,Sc(e),a);break;case 3:case 4:var o=i.stateNode.containerInfo;Cc(e,Sc(e),o);break;default:throw Error(r(161))}}catch(t){$(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Nc(e,t,n){Z=e,Pc(e,t,n)}function Pc(e,t,n){for(var r=!!(e.mode&1);Z!==null;){var i=Z,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||uc;if(!o){var s=i.alternate,c=s!==null&&s.memoizedState!==null||dc;s=uc;var l=dc;if(uc=o,(dc=c)&&!l)for(Z=i;Z!==null;)o=Z,c=o.child,o.tag===22&&o.memoizedState!==null||c===null?Lc(i):(c.return=o,Z=c);for(;a!==null;)Z=a,Pc(a,t,n),a=a.sibling;Z=i,uc=s,dc=l}Fc(e,t,n)}else i.subtreeFlags&8772&&a!==null?(a.return=i,Z=a):Fc(e,t,n)}}function Fc(e){for(;Z!==null;){var t=Z;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:dc||vc(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!dc){if(n===null)i.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:gs(t.type,n.memoizedProps);i.componentDidUpdate(a,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}}var o=t.updateQueue;o!==null&&ao(t,o,i);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ao(t,s,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;var l=t.memoizedProps;switch(t.type){case`button`:case`input`:case`select`:case`textarea`:l.autoFocus&&n.focus();break;case`img`:l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&dn(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}dc||t.flags&512&&yc(t)}catch(e){$(t,t.return,e)}}if(t===e){Z=null;break}if(n=t.sibling,n!==null){n.return=t.return,Z=n;break}Z=t.return}}function Ic(e){for(;Z!==null;){var t=Z;if(t===e){Z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Z=n;break}Z=t.return}}function Lc(e){for(;Z!==null;){var t=Z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{vc(4,t)}catch(e){$(t,n,e)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==`function`){var i=t.return;try{r.componentDidMount()}catch(e){$(t,i,e)}}var a=t.return;try{yc(t)}catch(e){$(t,a,e)}break;case 5:var o=t.return;try{yc(t)}catch(e){$(t,o,e)}}}catch(e){$(t,t.return,e)}if(t===e){Z=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Z=s;break}Z=t.return}}var Rc=Math.ceil,zc=S.ReactCurrentDispatcher,Bc=S.ReactCurrentOwner,Vc=S.ReactCurrentBatchConfig,Q=0,Hc=null,Uc=null,Wc=0,Gc=0,Kc=Hi(0),qc=0,Jc=null,Yc=0,Xc=0,Zc=0,Qc=null,$c=null,el=0,tl=1/0,nl=null,rl=!1,il=null,al=null,ol=!1,sl=null,cl=0,ll=0,ul=null,dl=-1,fl=0;function pl(){return Q&6?L():dl===-1?dl=L():dl}function ml(e){return e.mode&1?Q&2&&Wc!==0?Wc&-Wc:ja.transition===null?(e=V,e===0?(e=window.event,e=e===void 0?16:yn(e.type),e):e):(fl===0&&(fl=It()),fl):1}function hl(e,t,n,i){if(50<ll)throw ll=0,ul=null,Error(r(185));Rt(e,n,i),(!(Q&2)||e!==Hc)&&(e===Hc&&(!(Q&2)&&(Xc|=n),qc===4&&xl(e,Wc)),gl(e,i),n===1&&Q===0&&!(t.mode&1)&&(tl=L()+500,ta&&aa()))}function gl(e,t){var n=e.callbackNode;Pt(e,t);var r=B(e,e===Hc?Wc:0);if(r===0)n!==null&&gt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&gt(n),t===1)e.tag===0?ia(Sl.bind(null,e)):ra(Sl.bind(null,e)),wi(function(){!(Q&6)&&aa()}),n=null;else{switch(Vt(r)){case 1:n=R;break;case 4:n=z;break;case 16:n=bt;break;case 536870912:n=St;break;default:n=bt}n=Wl(n,_l.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function _l(e,t){if(dl=-1,fl=0,Q&6)throw Error(r(327));var n=e.callbackNode;if(Ll()&&e.callbackNode!==n)return null;var i=B(e,e===Hc?Wc:0);if(i===0)return null;if(i&30||(i&e.expiredLanes)!==0||t)t=Al(e,i);else{t=i;var a=Q;Q|=2;var o=Ol();(Hc!==e||Wc!==t)&&(nl=null,tl=L()+500,El(e,t));do try{Ml();break}catch(t){Dl(e,t)}while(1);Ha(),zc.current=o,Q=a,Uc===null?(Hc=null,Wc=0,t=qc):t=0}if(t!==0){if(t===2&&(a=Ft(e),a!==0&&(i=a,t=vl(e,a))),t===1)throw n=Jc,El(e,0),xl(e,i),gl(e,L()),n;if(t===6)xl(e,i);else{if(a=e.current.alternate,!(i&30)&&!bl(a)&&(t=Al(e,i),t===2&&(o=Ft(e),o!==0&&(i=o,t=vl(e,o))),t===1))throw n=Jc,El(e,0),xl(e,i),gl(e,L()),n;switch(e.finishedWork=a,e.finishedLanes=i,t){case 0:case 1:throw Error(r(345));case 2:Fl(e,$c,nl);break;case 3:if(xl(e,i),(i&130023424)===i&&(t=el+500-L(),10<t)){if(B(e,0)!==0)break;if(a=e.suspendedLanes,(a&i)!==i){pl(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=xi(Fl.bind(null,e,$c,nl),t);break}Fl(e,$c,nl);break;case 4:if(xl(e,i),(i&4194240)===i)break;for(t=e.eventTimes,a=-1;0<i;){var s=31-Et(i);o=1<<s,s=t[s],s>a&&(a=s),i&=~o}if(i=a,i=L()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Rc(i/1960))-i,10<i){e.timeoutHandle=xi(Fl.bind(null,e,$c,nl),i);break}Fl(e,$c,nl);break;case 5:Fl(e,$c,nl);break;default:throw Error(r(329))}}}return gl(e,L()),e.callbackNode===n?_l.bind(null,e):null}function vl(e,t){var n=Qc;return e.current.memoizedState.isDehydrated&&(El(e,t).flags|=256),e=Al(e,t),e!==2&&(t=$c,$c=n,t!==null&&yl(t)),e}function yl(e){$c===null?$c=e:$c.push.apply($c,e)}function bl(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Er(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function xl(e,t){for(t&=~Zc,t&=~Xc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Et(t),r=1<<n;e[n]=-1,t&=~r}}function Sl(e){if(Q&6)throw Error(r(327));Ll();var t=B(e,0);if(!(t&1))return gl(e,L()),null;var n=Al(e,t);if(e.tag!==0&&n===2){var i=Ft(e);i!==0&&(t=i,n=vl(e,i))}if(n===1)throw n=Jc,El(e,0),xl(e,t),gl(e,L()),n;if(n===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Fl(e,$c,nl),gl(e,L()),null}function Cl(e,t){var n=Q;Q|=1;try{return e(t)}finally{Q=n,Q===0&&(tl=L()+500,ta&&aa())}}function wl(e){sl!==null&&sl.tag===0&&!(Q&6)&&Ll();var t=Q;Q|=1;var n=Vc.transition,r=V;try{if(Vc.transition=null,V=1,e)return e()}finally{V=r,Vc.transition=n,Q=t,!(Q&6)&&aa()}}function Tl(){Gc=Kc.current,K(Kc)}function El(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Si(n)),Uc!==null)for(n=Uc.return;n!==null;){var r=n;switch(va(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Yi();break;case 3:po(),K(Gi),K(Wi),vo();break;case 5:ho(r);break;case 4:po();break;case 13:K(Y);break;case 19:K(Y);break;case 10:Ua(r.type._context);break;case 22:case 23:Tl()}n=n.return}if(Hc=e,Uc=e=Yl(e.current,null),Wc=Gc=t,qc=0,Jc=null,Zc=Xc=Yc=0,$c=Qc=null,qa!==null){for(t=0;t<qa.length;t++)if(n=qa[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}qa=null}return e}function Dl(e,t){do{var n=Uc;try{if(Ha(),yo.current=fs,wo){for(var i=X.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}wo=!1}if(xo=0,Co=So=X=null,To=!1,Eo=0,Bc.current=null,n===null||n.return===null){qc=1,Jc=t,Uc=null;break}a:{var o=e,s=n.return,c=n,l=t;if(t=Wc,c.flags|=32768,typeof l==`object`&&l&&typeof l.then==`function`){var u=l,d=c,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=As(s);if(m!==null){m.flags&=-257,js(m,s,c,o,t),m.mode&1&&ks(o,u,t),t=m,l=u;var h=t.updateQueue;if(h===null){var g=new Set;g.add(l),t.updateQueue=g}else h.add(l);break a}if(!(t&1)){ks(o,u,t),kl();break a}l=Error(r(426))}else if(J&&c.mode&1){var _=As(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),js(_,s,c,o,t),Aa(Cs(l,c));break a}}o=l=Cs(l,c),qc!==4&&(qc=2),Qc===null?Qc=[o]:Qc.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=Ds(o,l,t);ro(o,v);break a;case 1:c=l;var y=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError==`function`||b!==null&&typeof b.componentDidCatch==`function`&&(al===null||!al.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=Os(o,c,t);ro(o,x);break a}}o=o.return}while(o!==null)}Pl(n)}catch(e){t=e,Uc===n&&n!==null&&(Uc=n=n.return);continue}break}while(1)}function Ol(){var e=zc.current;return zc.current=fs,e===null?fs:e}function kl(){(qc===0||qc===3||qc===2)&&(qc=4),Hc===null||!(Yc&268435455)&&!(Xc&268435455)||xl(Hc,Wc)}function Al(e,t){var n=Q;Q|=2;var i=Ol();(Hc!==e||Wc!==t)&&(nl=null,El(e,t));do try{jl();break}catch(t){Dl(e,t)}while(1);if(Ha(),Q=n,zc.current=i,Uc!==null)throw Error(r(261));return Hc=null,Wc=0,qc}function jl(){for(;Uc!==null;)Nl(Uc)}function Ml(){for(;Uc!==null&&!_t();)Nl(Uc)}function Nl(e){var t=Ul(e.alternate,e,Gc);e.memoizedProps=e.pendingProps,t===null?Pl(e):Uc=t,Bc.current=null}function Pl(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=lc(n,t),n!==null){n.flags&=32767,Uc=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{qc=6,Uc=null;return}}else if(n=cc(n,t,Gc),n!==null){Uc=n;return}if(t=t.sibling,t!==null){Uc=t;return}Uc=t=e}while(t!==null);qc===0&&(qc=5)}function Fl(e,t,n){var r=V,i=Vc.transition;try{Vc.transition=null,V=1,Il(e,t,n,r)}finally{Vc.transition=i,V=r}return null}function Il(e,t,n,i){do Ll();while(sl!==null);if(Q&6)throw Error(r(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(zt(e,o),e===Hc&&(Uc=Hc=null,Wc=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ol||(ol=!0,Wl(bt,function(){return Ll(),null})),o=!!(n.flags&15990),n.subtreeFlags&15990||o){o=Vc.transition,Vc.transition=null;var s=V;V=1;var c=Q;Q|=4,Bc.current=null,gc(e,n),jc(n,e),Nr(yi),pn=!!vi,yi=vi=null,e.current=n,Nc(n,e,a),vt(),Q=c,V=s,Vc.transition=o}else e.current=n;if(ol&&(ol=!1,sl=e,cl=a),o=e.pendingLanes,o===0&&(al=null),Tt(n.stateNode,i),gl(e,L()),t!==null)for(i=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],i(a.value,{componentStack:a.stack,digest:a.digest});if(rl)throw rl=!1,e=il,il=null,e;return cl&1&&e.tag!==0&&Ll(),o=e.pendingLanes,o&1?e===ul?ll++:(ll=0,ul=e):ll=0,aa(),null}function Ll(){if(sl!==null){var e=Vt(cl),t=Vc.transition,n=V;try{if(Vc.transition=null,V=16>e?16:e,sl===null)var i=!1;else{if(e=sl,sl=null,cl=0,Q&6)throw Error(r(331));var a=Q;for(Q|=4,Z=e.current;Z!==null;){var o=Z,s=o.child;if(Z.flags&16){var c=o.deletions;if(c!==null){for(var l=0;l<c.length;l++){var u=c[l];for(Z=u;Z!==null;){var d=Z;switch(d.tag){case 0:case 11:case 15:_c(8,d,o)}var f=d.child;if(f!==null)f.return=d,Z=f;else for(;Z!==null;){d=Z;var p=d.sibling,m=d.return;if(bc(d),d===u){Z=null;break}if(p!==null){p.return=m,Z=p;break}Z=m}}}var h=o.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var _=g.sibling;g.sibling=null,g=_}while(g!==null)}}Z=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,Z=s;else b:for(;Z!==null;){if(o=Z,o.flags&2048)switch(o.tag){case 0:case 11:case 15:_c(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,Z=v;break b}Z=o.return}}var y=e.current;for(Z=y;Z!==null;){s=Z;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,Z=b;else b:for(s=y;Z!==null;){if(c=Z,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:vc(9,c)}}catch(e){$(c,c.return,e)}if(c===s){Z=null;break b}var x=c.sibling;if(x!==null){x.return=c.return,Z=x;break b}Z=c.return}}if(Q=a,aa(),wt&&typeof wt.onPostCommitFiberRoot==`function`)try{wt.onPostCommitFiberRoot(Ct,e)}catch{}i=!0}return i}finally{V=n,Vc.transition=t}}return!1}function Rl(e,t,n){t=Cs(n,t),t=Ds(e,t,1),e=to(e,t,1),t=pl(),e!==null&&(Rt(e,1,t),gl(e,t))}function $(e,t,n){if(e.tag===3)Rl(e,e,n);else for(;t!==null;){if(t.tag===3){Rl(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(al===null||!al.has(r))){e=Cs(n,e),e=Os(t,e,1),t=to(t,e,1),e=pl(),t!==null&&(Rt(t,1,e),gl(t,e));break}}t=t.return}}function zl(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=pl(),e.pingedLanes|=e.suspendedLanes&n,Hc===e&&(Wc&n)===n&&(qc===4||qc===3&&(Wc&130023424)===Wc&&500>L()-el?El(e,0):Zc|=n),gl(e,t)}function Bl(e,t){t===0&&(e.mode&1?(t=jt,jt<<=1,!(jt&130023424)&&(jt=4194304)):t=1);var n=pl();e=Xa(e,t),e!==null&&(Rt(e,t,n),gl(e,n))}function Vl(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bl(e,n)}function Hl(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(r(314))}i!==null&&i.delete(t),Bl(e,n)}var Ul=function(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps||Gi.current)Ns=!0;else{if((e.lanes&n)===0&&!(t.flags&128))return Ns=!1,nc(e,t,n);Ns=!!(e.flags&131072)}}else Ns=!1,J&&t.flags&1048576&&ga(t,la,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;ec(e,t),e=t.pendingProps;var a=qi(t,Wi.current);Ga(t,n),a=Ao(null,t,i,e,a,n);var o=jo();return t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ji(i)?(o=!0,Qi(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Qa(t),a.updater=vs,t.stateNode=a,a._reactInternals=t,Ss(t,i,e,n),t=Hs(null,t,i,!0,o,n)):(t.tag=0,J&&o&&_a(t),Ps(null,t,a,n),t=t.child),t;case 16:i=t.elementType;a:{switch(ec(e,t),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=Jl(i),e=gs(i,e),a){case 0:t=Bs(null,t,i,e,n);break a;case 1:t=Vs(null,t,i,e,n);break a;case 11:t=Fs(null,t,i,e,n);break a;case 14:t=Is(null,t,i,gs(i.type,e),n);break a}throw Error(r(306,i,``))}return t;case 0:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:gs(i,a),Bs(e,t,i,a,n);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:gs(i,a),Vs(e,t,i,a,n);case 3:a:{if(Us(t),e===null)throw Error(r(387));i=t.pendingProps,o=t.memoizedState,a=o.element,$a(e,t),io(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated){if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Cs(Error(r(423)),t),t=Ws(e,t,i,n,a);break a}if(i!==a){a=Cs(Error(r(424)),t),t=Ws(e,t,i,n,a);break a}for(ba=Di(t.stateNode.containerInfo.firstChild),ya=t,J=!0,xa=null,n=La(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ka(),i===a){t=tc(e,t,n);break a}Ps(e,t,i,n)}t=t.child}return t;case 5:return mo(t),e===null&&Ta(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,bi(i,a)?s=null:o!==null&&bi(i,o)&&(t.flags|=32),zs(e,t),Ps(e,t,s,n),t.child;case 6:return e===null&&Ta(t),null;case 13:return qs(e,t,n);case 4:return fo(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ia(t,null,i,n):Ps(e,t,i,n),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:gs(i,a),Fs(e,t,i,a,n);case 7:return Ps(e,t,t.pendingProps,n),t.child;case 8:return Ps(e,t,t.pendingProps.children,n),t.child;case 12:return Ps(e,t,t.pendingProps.children,n),t.child;case 10:a:{if(i=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,q(Ra,i._currentValue),i._currentValue=s,o!==null){if(Er(o.value,s)){if(o.children===a.children&&!Gi.current){t=tc(e,t,n);break a}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){s=o.child;for(var l=c.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=eo(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Wa(o.return,n,t),c.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(r(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),Wa(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}}Ps(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,Ga(t,n),a=Ka(a),i=i(a),t.flags|=1,Ps(e,t,i,n),t.child;case 14:return i=t.type,a=gs(i,t.pendingProps),a=gs(i.type,a),Is(e,t,i,a,n);case 15:return Ls(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:gs(i,a),ec(e,t),t.tag=1,Ji(i)?(e=!0,Qi(t)):e=!1,Ga(t,n),bs(t,i,a),Ss(t,i,a,n),Hs(null,t,i,!0,e,n);case 19:return $s(e,t,n);case 22:return Rs(e,t,n)}throw Error(r(156,t.tag))};function Wl(e,t){return ht(e,t)}function Gl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Kl(e,t,n,r){return new Gl(e,t,n,r)}function ql(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jl(e){if(typeof e==`function`)return+!!ql(e);if(e!=null){if(e=e.$$typeof,e===se)return 11;if(e===w)return 14}return 2}function Yl(e,t){var n=e.alternate;return n===null?(n=Kl(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xl(e,t,n,i,a,o){var s=2;if(i=e,typeof e==`function`)ql(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case ne:return Zl(n.children,a,o,t);case re:s=8,a|=8;break;case ie:return e=Kl(12,n,t,a|2),e.elementType=ie,e.lanes=o,e;case ce:return e=Kl(13,n,t,a),e.elementType=ce,e.lanes=o,e;case le:return e=Kl(19,n,t,a),e.elementType=le,e.lanes=o,e;case de:return Ql(n,a,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case ae:s=10;break a;case oe:s=9;break a;case se:s=11;break a;case w:s=14;break a;case ue:s=16,i=null;break a}throw Error(r(130,e==null?e:typeof e,``))}return t=Kl(s,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function Zl(e,t,n,r){return e=Kl(7,e,r,t),e.lanes=n,e}function Ql(e,t,n,r){return e=Kl(22,e,r,t),e.elementType=de,e.lanes=n,e.stateNode={isHidden:!1},e}function $l(e,t,n){return e=Kl(6,e,null,t),e.lanes=n,e}function eu(e,t,n){return t=Kl(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Lt(0),this.expirationTimes=Lt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function nu(e,t,n,r,i,a,o,s,c){return e=new tu(e,t,n,s,c),t===1?(t=1,!0===a&&(t|=8)):t=0,a=Kl(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Qa(a),e}function ru(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:te,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function iu(e){if(!e)return Ui;e=e._reactInternals;a:{if(lt(e)!==e||e.tag!==1)throw Error(r(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break a;case 1:if(Ji(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break a}}t=t.return}while(t!==null);throw Error(r(171))}if(e.tag===1){var n=e.type;if(Ji(n))return Zi(e,n,t)}return t}function au(e,t,n,r,i,a,o,s,c){return e=nu(n,r,!0,e,i,a,o,s,c),e.context=iu(null),n=e.current,r=pl(),i=ml(n),a=eo(r,i),a.callback=t??null,to(n,a,i),e.current.lanes=i,Rt(e,i,r),gl(e,r),e}function ou(e,t,n,r){var i=t.current,a=pl(),o=ml(i);return n=iu(n),t.context===null?t.context=n:t.pendingContext=n,t=eo(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=to(i,t,o),e!==null&&(hl(e,i,o,a),no(e,i,o)),o}function su(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function cu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function lu(e,t){cu(e,t),(e=e.alternate)&&cu(e,t)}function uu(){return null}var du=typeof reportError==`function`?reportError:function(e){console.error(e)};function fu(e){this._internalRoot=e}pu.prototype.render=fu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));ou(e,t,null,null)},pu.prototype.unmount=fu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;wl(function(){ou(null,e,null,null)}),t[Mi]=null}};function pu(e){this._internalRoot=e}pu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Gt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<en.length&&t!==0&&t<en[n].priority;n++);en.splice(n,0,e),n===0&&on(e)}};function mu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function hu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function gu(){}function _u(e,t,n,r,i){if(i){if(typeof r==`function`){var a=r;r=function(){var e=su(o);a.call(e)}}var o=au(t,r,e,0,null,!1,!1,``,gu);return e._reactRootContainer=o,e[Mi]=o.current,oi(e.nodeType===8?e.parentNode:e),wl(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r==`function`){var s=r;r=function(){var e=su(c);s.call(e)}}var c=nu(e,0,!1,null,null,!1,!1,``,gu);return e._reactRootContainer=c,e[Mi]=c.current,oi(e.nodeType===8?e.parentNode:e),wl(function(){ou(t,c,n,r)}),c}function vu(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i==`function`){var s=i;i=function(){var e=su(o);s.call(e)}}ou(t,o,e,i)}else o=_u(n,t,e,i,r);return su(o)}Ht=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Mt(t.pendingLanes);n!==0&&(Bt(t,n|1),gl(t,L()),!(Q&6)&&(tl=L()+500,aa()))}break;case 13:wl(function(){var t=Xa(e,1);t!==null&&hl(t,e,1,pl())}),lu(e,1)}},Ut=function(e){if(e.tag===13){var t=Xa(e,134217728);t!==null&&hl(t,e,134217728,pl()),lu(e,134217728)}},Wt=function(e){if(e.tag===13){var t=ml(e),n=Xa(e,t);n!==null&&hl(n,e,t,pl()),lu(e,t)}},Gt=function(){return V},Kt=function(e,t){var n=V;try{return V=e,t()}finally{V=n}},A=function(e,t,n){switch(t){case`input`:if(ke(e,n),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name=`+JSON.stringify(``+t)+`][type=\"radio\"]`),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=zi(i);if(!a)throw Error(r(90));we(i),ke(i,a)}}}break;case`textarea`:Fe(e,n);break;case`select`:t=n.value,t!=null&&Me(e,!!n.multiple,t,!1)}},Qe=Cl,$e=wl;var yu={usingClientEntryPoint:!1,Events:[Li,Ri,zi,M,Ze,Cl]},bu={findFiberByHostInstance:Ii,bundleType:0,version:`18.3.1`,rendererPackageName:`react-dom`},xu={bundleType:bu.bundleType,version:bu.version,rendererPackageName:bu.rendererPackageName,rendererConfig:bu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:S.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=pt(e),e===null?null:e.stateNode},findFiberByHostInstance:bu.findFiberByHostInstance||uu,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:`18.3.1-next-f1338f8080-20240426`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Su.isDisabled&&Su.supportsFiber)try{Ct=Su.inject(xu),wt=Su}catch{}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yu,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!mu(t))throw Error(r(200));return ru(e,t,null,n)},e.createRoot=function(e,t){if(!mu(e))throw Error(r(299));var n=!1,i=``,a=du;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=nu(e,1,!1,null,null,n,!1,i,a),e[Mi]=t.current,oi(e.nodeType===8?e.parentNode:e),new fu(t)},e.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(r(188)):(e=Object.keys(e).join(`,`),Error(r(268,e)));return e=pt(t),e=e===null?null:e.stateNode,e},e.flushSync=function(e){return wl(e)},e.hydrate=function(e,t,n){if(!hu(t))throw Error(r(200));return vu(null,e,t,!0,n)},e.hydrateRoot=function(e,t,n){if(!mu(e))throw Error(r(405));var i=n!=null&&n.hydratedSources||null,a=!1,o=``,s=du;if(n!=null&&(!0===n.unstable_strictMode&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=au(t,null,e,1,n??null,a,!1,o,s),e[Mi]=t.current,oi(e),i)for(e=0;e<i.length;e++)n=i[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new pu(t)},e.render=function(e,t,n){if(!hu(t))throw Error(r(200));return vu(null,e,t,!1,n)},e.unmountComponentAtNode=function(e){if(!hu(e))throw Error(r(40));return e._reactRootContainer?(wl(function(){vu(null,null,e,!1,function(){e._reactRootContainer=null,e[Mi]=null})}),!0):!1},e.unstable_batchedUpdates=Cl,e.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!hu(n))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return vu(e,t,n,!1,i)},e.version=`18.3.1-next-f1338f8080-20240426`})),m=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=p()})),h=o((e=>{var t=m();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot}))(),g=c(u(),1);let _=(0,g.createContext)(null);function v({actions:e,dependencies:t=[],handoff:n,summary:r}){let i=(0,g.useContext)(_),a=(0,g.useRef)(null),o=(0,g.useRef)([]),s=(0,g.useRef)(0);(t.some((e,t)=>e!==o.current[t])||t.length!==o.current.length)&&(s.current++,o.current=t);let c=t;a.current={revision:String(s.current),actions:e,...typeof r==`function`?{summary:r}:{},handoff:typeof n==`function`?n:()=>({kind:`native-control-signals`,signals:c.map((e,t)=>({index:t,value:e}))})},(0,g.useLayoutEffect)(()=>i?.register(()=>a.current),[i])}let y=[`M3 8V5a2 2 0 0 1 2-2h3M16 3h3a2 2 0 0 1 2 2v3M21 16v3a2 2 0 0 1-2 2h-3M8 21H5a2 2 0 0 1-2-2v-3`,`M6.5 12s2.2-3.8 5.5-3.8 5.5 3.8 5.5 3.8-2.2 3.8-5.5 3.8S6.5 12 6.5 12Z`],b={cx:12,cy:12,r:1.8},x=[`M10.3 17.5H4.5a2 2 0 0 1-2-2v-10a2 2 0 0 1 2-2h13a2 2 0 0 1 2 2v7.7`,`M2.5 7h17M6 5.25h10`,`M6 9.5h4a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1Z`,`M5.3 14.2l2.2-2.4 1.6 1.5 1.1-1M13.5 10h3.5M13.5 12.3h2`,`M12 18s2-3.2 5.5-3.2S23 18 23 18s-2 3.2-5.5 3.2S12 18 12 18Z`],ee={cx:17.5,cy:18,r:1.3};var S=o((e=>{var t=u(),n=Symbol.for(`react.element`),r=Symbol.for(`react.fragment`),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)i.call(t,s)&&!o.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:a.current}}e.Fragment=r,e.jsx=s,e.jsxs=s})),C=o(((e,t)=>{t.exports=S()}))();function te(e){switch(e){case`minus`:return(0,C.jsx)(`path`,{d:`M5 12h14`});case`messageCircle`:return(0,C.jsx)(`path`,{d:`M21 11.5a8.4 8.4 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.4 8.4 0 0 1-3.8-.9L3 21l1.9-5.7a8.4 8.4 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.4 8.4 0 0 1 3.8-.9h.5a8.5 8.5 0 0 1 8 8z`});case`arrowLeft`:return(0,C.jsx)(`path`,{d:`M20 12H4M11 5l-7 7 7 7`});case`link`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M10 13a5 5 0 0 0 7 .5l3-3a5 5 0 0 0-7-7l-2 2`}),(0,C.jsx)(`path`,{d:`M14 11a5 5 0 0 0-7-.5l-3 3a5 5 0 0 0 7 7l2-2`})]});case`unlink`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`m18.8 12.3 1.7-1.7a5 5 0 0 0-7.1-7.1l-1.7 1.7`}),(0,C.jsx)(`path`,{d:`m5.2 11.7-1.7 1.7a5 5 0 0 0 7.1 7.1l1.7-1.7`}),(0,C.jsx)(`path`,{d:`M8 2v3M2 8h3M16 19v3M19 16h3`})]});case`copy`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`rect`,{x:`9`,y:`9`,width:`12`,height:`12`,rx:`2`}),(0,C.jsx)(`path`,{d:`M15 9V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h4`})]});case`arrowUp`:return(0,C.jsx)(`path`,{d:`M12 20V4M5 11l7-7 7 7`});case`star`:return(0,C.jsx)(`path`,{d:`M12 3.5l2.6 5.3 5.9.9-4.25 4.15 1 5.85L12 16.95 6.75 19.7l1-5.85L3.5 9.7l5.9-.9z`});case`arrowUpRight`:return(0,C.jsx)(`path`,{d:`M7 17 17 7M8 7h9v9`});case`arrowDown`:return(0,C.jsx)(`path`,{d:`M12 4v16M5 13l7 7 7-7`});case`thumbsUp`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M7 10v11H3V10Z`}),(0,C.jsx)(`path`,{d:`M7 18c2 0 3 3 7 3h2.5a2 2 0 0 0 1.9-1.4l2.4-7A2 2 0 0 0 18.9 10H14l.7-3.5A3 3 0 0 0 11.8 3L7 10Z`})]});case`thumbsDown`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M7 14V3H3v11Z`}),(0,C.jsx)(`path`,{d:`M7 6c2 0 3-3 7-3h2.5a2 2 0 0 1 1.9 1.4l2.4 7a2 2 0 0 1-1.9 2.6H14l.7 3.5a3 3 0 0 1-2.9 3.5L7 14Z`})]});case`undo`:return(0,C.jsx)(`path`,{d:`M3 10h11a7 7 0 0 1 0 14M3 10l5-5M3 10l5 5`,transform:`translate(0 -3)`});case`redo`:return(0,C.jsx)(`path`,{d:`M21 7H10a7 7 0 0 0 0 14M21 7l-5-5M21 7l-5 5`});case`remix`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M5 5h5a5 5 0 0 1 5 5v9`}),(0,C.jsx)(`path`,{d:`m11 15 4 4 4-4`}),(0,C.jsx)(`path`,{d:`M5 19h2`}),(0,C.jsx)(`circle`,{cx:`5`,cy:`5`,r:`2`}),(0,C.jsx)(`circle`,{cx:`5`,cy:`19`,r:`2`})]});case`more`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`circle`,{cx:`5`,cy:`12`,r:`1`}),(0,C.jsx)(`circle`,{cx:`12`,cy:`12`,r:`1`}),(0,C.jsx)(`circle`,{cx:`19`,cy:`12`,r:`1`})]});case`palette`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`circle`,{cx:`13.5`,cy:`6.5`,r:`.6`,fill:`currentColor`,stroke:`none`}),(0,C.jsx)(`circle`,{cx:`17`,cy:`11`,r:`.6`,fill:`currentColor`,stroke:`none`}),(0,C.jsx)(`circle`,{cx:`8.5`,cy:`7.5`,r:`.6`,fill:`currentColor`,stroke:`none`}),(0,C.jsx)(`circle`,{cx:`6.5`,cy:`12.5`,r:`.6`,fill:`currentColor`,stroke:`none`}),(0,C.jsx)(`path`,{d:`M12 3a9 9 0 0 0 0 18c1 0 1.6-.8 1.6-1.6 0-.5-.2-.8-.4-1.1-.3-.3-.4-.6-.4-1.1A1.6 1.6 0 0 1 14.3 15h1.9A4.8 4.8 0 0 0 21 10.2C21 6 16.9 3 12 3Z`})]});case`lock`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`rect`,{x:`5`,y:`11`,width:`14`,height:`10`,rx:`2`}),(0,C.jsx)(`path`,{d:`M8 11V7a4 4 0 0 1 8 0v4`})]});case`unlock`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`rect`,{x:`5`,y:`11`,width:`14`,height:`10`,rx:`2`}),(0,C.jsx)(`path`,{d:`M8 11V7a4 4 0 0 1 7.9-1`})]});case`pushpin`:return(0,C.jsxs)(`g`,{transform:`rotate(35 12 12)`,children:[(0,C.jsx)(`path`,{d:`M8 3h8l-1 6 3 3v2H6v-2l3-3Z`}),(0,C.jsx)(`path`,{d:`M12 14v7`})]});case`pushpinFilled`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M8 3h8l-1 6 3 3v2H6v-2l3-3Z`,fill:`currentColor`}),(0,C.jsx)(`path`,{d:`M12 14v7`})]});case`pin`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M12 21s7-5.7 7-11a7 7 0 0 0-14 0c0 5.3 7 11 7 11Z`}),(0,C.jsx)(`circle`,{cx:`12`,cy:`10`,r:`2.5`})]});case`user`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`circle`,{cx:`12`,cy:`8`,r:`4`}),(0,C.jsx)(`path`,{d:`M5 21a7 7 0 0 1 14 0`})]});case`image`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`}),(0,C.jsx)(`circle`,{cx:`8.5`,cy:`8.5`,r:`1.5`}),(0,C.jsx)(`path`,{d:`m21 15-5-5L5 21`})]});case`imageOff`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M2 2l20 20`}),(0,C.jsx)(`path`,{d:`M10.41 10.41a2 2 0 1 1-2.83-2.83`}),(0,C.jsx)(`path`,{d:`M13.5 13.5 6 21`}),(0,C.jsx)(`path`,{d:`m18 12 3 3`}),(0,C.jsx)(`path`,{d:`M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59`}),(0,C.jsx)(`path`,{d:`M21 15V5a2 2 0 0 0-2-2H9`})]});case`film`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`}),(0,C.jsx)(`path`,{d:`M7 3v18M17 3v18M3 8h4M3 16h4M17 8h4M17 16h4`})]});case`folder`:return(0,C.jsx)(`path`,{d:`M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z`});case`list`:return(0,C.jsx)(`path`,{d:`M9 6h12M9 12h12M9 18h12M4 6h.01M4 12h.01M4 18h.01`});case`grid`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`rect`,{x:`3`,y:`3`,width:`7`,height:`7`,rx:`1.5`}),(0,C.jsx)(`rect`,{x:`14`,y:`3`,width:`7`,height:`7`,rx:`1.5`}),(0,C.jsx)(`rect`,{x:`3`,y:`14`,width:`7`,height:`7`,rx:`1.5`}),(0,C.jsx)(`rect`,{x:`14`,y:`14`,width:`7`,height:`7`,rx:`1.5`})]});case`zap`:return(0,C.jsx)(`path`,{d:`M13 2 4 14h7l-1 8 9-12h-7Z`});case`plug`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M12 22v-5M9 8V2M15 8V2`}),(0,C.jsx)(`path`,{d:`M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z`})]});case`book`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M4 19.5A2.5 2.5 0 0 1 6.5 17H20`}),(0,C.jsx)(`path`,{d:`M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z`})]});case`bookOpen`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M12 7v14`}),(0,C.jsx)(`path`,{d:`M3 5v14h6a3 3 0 0 1 3 3 3 3 0 0 1 3-3h6V5h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3Z`})]});case`input`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`}),(0,C.jsx)(`path`,{d:`m10 17 5-5-5-5`}),(0,C.jsx)(`path`,{d:`M15 12H3`})]});case`upload`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M12 16V4M7 9l5-5 5 5`}),(0,C.jsx)(`path`,{d:`M5 20h14`})]});case`download`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M12 4v12M7 11l5 5 5-5`}),(0,C.jsx)(`path`,{d:`M5 20h14`})]});case`save`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M5 3h11l3 3v15H5Z`}),(0,C.jsx)(`path`,{d:`M8 3v5h7M8 21v-7h8v7`})]});case`search`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`circle`,{cx:`11`,cy:`11`,r:`7`}),(0,C.jsx)(`path`,{d:`m20 20-3.5-3.5`})]});case`magnet`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M6 4h4v8a2 2 0 0 0 4 0V4h4v8a6 6 0 0 1-12 0Z`}),(0,C.jsx)(`path`,{d:`M6 8h4M14 8h4`})]});case`bot`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`rect`,{x:`4`,y:`8`,width:`16`,height:`11`,rx:`2`}),(0,C.jsx)(`path`,{d:`M12 8V4M9 13h.01M15 13h.01M9 16h6`})]});case`note`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`rect`,{x:`4`,y:`3`,width:`16`,height:`18`,rx:`2`}),(0,C.jsx)(`path`,{d:`M8 8h8M8 12h8M8 16h5`})]});case`clock`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`}),(0,C.jsx)(`path`,{d:`M12 7v5l3 2`})]});case`calendar`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`rect`,{x:`3`,y:`5`,width:`18`,height:`16`,rx:`2`}),(0,C.jsx)(`path`,{d:`M16 3v4M8 3v4M3 10h18`})]});case`hourglass`:return(0,C.jsx)(`path`,{d:`M6 3h12M6 21h12M7 3c0 5 5 6 5 9s-5 4-5 9M17 3c0 5-5 6-5 9s5 4 5 9`});case`edit`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M12 20h9`}),(0,C.jsx)(`path`,{d:`M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z`})]});case`music`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M9 18V5l12-2v13`}),(0,C.jsx)(`circle`,{cx:`6`,cy:`18`,r:`3`}),(0,C.jsx)(`circle`,{cx:`18`,cy:`16`,r:`3`})]});case`mic`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`rect`,{x:`9`,y:`2`,width:`6`,height:`13`,rx:`3`}),(0,C.jsx)(`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`}),(0,C.jsx)(`path`,{d:`M12 19v3`})]});case`target`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`}),(0,C.jsx)(`circle`,{cx:`12`,cy:`12`,r:`5`}),(0,C.jsx)(`circle`,{cx:`12`,cy:`12`,r:`1`,fill:`currentColor`,stroke:`none`})]});case`pointer`:return(0,C.jsx)(`path`,{d:`M4.5 3.5 20 10.4l-6.5 1.9a1.9 1.9 0 0 0-1.3 1.3L10.3 20z`,strokeLinejoin:`round`});case`sprout`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M12 21V9`}),(0,C.jsx)(`path`,{d:`M12 9C9 9 6 7 6 4c3 0 6 2 6 5ZM12 12c3 0 6-2 6-5-3 0-6 2-6 5Z`})]});case`hand`:return(0,C.jsx)(`path`,{d:`M8 13V5a1.5 1.5 0 0 1 3 0v6M11 11V4a1.5 1.5 0 0 1 3 0v7M14 11V6a1.5 1.5 0 0 1 3 0v8a6 6 0 0 1-6 6h-1a6 6 0 0 1-5.2-3l-2-3.5a1.5 1.5 0 0 1 2.6-1.5L8 14`});case`scissors`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`circle`,{cx:`6`,cy:`6`,r:`2.5`}),(0,C.jsx)(`circle`,{cx:`6`,cy:`18`,r:`2.5`}),(0,C.jsx)(`path`,{d:`M8 8l12 8M8 16 20 8`})]});case`maximize`:return(0,C.jsx)(`path`,{d:`M8 3H5a2 2 0 0 0-2 2v3M16 3h3a2 2 0 0 1 2 2v3M21 16v3a2 2 0 0 1-2 2h-3M3 16v3a2 2 0 0 0 2 2h3`});case`settings`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`circle`,{cx:`12`,cy:`12`,r:`3`}),(0,C.jsx)(`path`,{d:`M19.4 15a1.6 1.6 0 0 0 .3 1.8 2 2 0 1 1-2.8 2.8 1.6 1.6 0 0 0-1.8-.3 1.6 1.6 0 0 0-1 1.5 2 2 0 1 1-4 0 1.6 1.6 0 0 0-1-1.5 1.6 1.6 0 0 0-1.8.3 2 2 0 1 1-2.8-2.8 1.6 1.6 0 0 0 .3-1.8 1.6 1.6 0 0 0-1.5-1 2 2 0 1 1 0-4 1.6 1.6 0 0 0 1.5-1 1.6 1.6 0 0 0-.3-1.8 2 2 0 1 1 2.8-2.8 1.6 1.6 0 0 0 1.8.3H9a1.6 1.6 0 0 0 1-1.5 2 2 0 1 1 4 0 1.6 1.6 0 0 0 1 1.5 1.6 1.6 0 0 0 1.8-.3 2 2 0 1 1 2.8 2.8 1.6 1.6 0 0 0-.3 1.8V9a1.6 1.6 0 0 0 1.5 1 2 2 0 1 1 0 4 1.6 1.6 0 0 0-1.5 1Z`})]});case`scale`:return(0,C.jsx)(`path`,{d:`M12 3v18M7 21h10M6 7h12M6 7 3 14h6ZM18 7l-3 7h6ZM3 14a3 3 0 0 0 6 0M15 14a3 3 0 0 0 6 0`});case`checkbox`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`}),(0,C.jsx)(`path`,{d:`m8 12 3 3 5-6`})]});case`warning`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M10.3 4 2.6 17a2 2 0 0 0 1.7 3h15.4a2 2 0 0 0 1.7-3L13.7 4a2 2 0 0 0-3.4 0Z`}),(0,C.jsx)(`path`,{d:`M12 9v4M12 17h.01`})]});case`sparkle`:return(0,C.jsx)(`path`,{d:`M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8Z`});case`check`:return(0,C.jsx)(`path`,{d:`m5 12 5 5 9-10`});case`x`:return(0,C.jsx)(`path`,{d:`M6 6 18 18M18 6 6 18`});case`plus`:return(0,C.jsx)(`path`,{d:`M12 5v14M5 12h14`});case`refresh`:return(0,C.jsx)(`path`,{d:`M3 12a9 9 0 0 1 15-6.7L21 8M21 3v5h-5M21 12a9 9 0 0 1-15 6.7L3 16M3 21v-5h5`});case`play`:return(0,C.jsx)(`path`,{d:`M7 4v16l13-8Z`});case`preview`:return(0,C.jsxs)(C.Fragment,{children:[y.map(e=>(0,C.jsx)(`path`,{d:e},e)),(0,C.jsx)(`circle`,{...b})]});case`listingPreview`:return(0,C.jsxs)(C.Fragment,{children:[x.map(e=>(0,C.jsx)(`path`,{d:e},e)),(0,C.jsx)(`circle`,{...ee})]});case`pause`:return(0,C.jsx)(`path`,{d:`M9 5v14M15 5v14`});case`playFilled`:return(0,C.jsx)(`path`,{d:`M7 4.6v14.8c0 .8.9 1.2 1.5.8l11.4-7.4a1 1 0 0 0 0-1.6L8.5 3.8C7.9 3.4 7 3.8 7 4.6Z`,fill:`currentColor`,stroke:`none`});case`pauseFilled`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`rect`,{x:`6`,y:`4.5`,width:`4`,height:`15`,rx:`1`,fill:`currentColor`,stroke:`none`}),(0,C.jsx)(`rect`,{x:`14`,y:`4.5`,width:`4`,height:`15`,rx:`1`,fill:`currentColor`,stroke:`none`})]});case`volume2`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M11 5 6 9H2v6h4l5 4V5Z`,fill:`currentColor`}),(0,C.jsx)(`path`,{d:`M15.5 8.5a5 5 0 0 1 0 7M19 5a10 10 0 0 1 0 14`})]});case`volumeX`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M11 5 6 9H2v6h4l5 4V5Z`,fill:`currentColor`}),(0,C.jsx)(`path`,{d:`m22 9-6 6M16 9l6 6`})]});case`minimize`:return(0,C.jsx)(`path`,{d:`M8 3v3a2 2 0 0 1-2 2H3M21 8h-3a2 2 0 0 1-2-2V3M3 16h3a2 2 0 0 1 2 2v3M16 21v-3a2 2 0 0 1 2-2h3`});case`stop`:return(0,C.jsx)(`rect`,{x:`6`,y:`6`,width:`12`,height:`12`,rx:`2`});case`chevronRight`:return(0,C.jsx)(`path`,{d:`m9 6 6 6-6 6`});case`chevronLeft`:return(0,C.jsx)(`path`,{d:`m15 6-6 6 6 6`});case`chevronDown`:return(0,C.jsx)(`path`,{d:`m6 9 6 6 6-6`});case`trash`:return(0,C.jsx)(`path`,{d:`M4 7h16M9 7V5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2M6 7l1 13a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-13`});case`layers`:return(0,C.jsx)(`path`,{d:`m12 3 9 5-9 5-9-5Zm9 9-9 5-9-5m18 4-9 5-9-5`});case`type`:return(0,C.jsx)(`path`,{d:`M4 6V4h16v2M12 4v16M9 20h6`});case`home`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M3 10.5 12 3l9 7.5`}),(0,C.jsx)(`path`,{d:`M5 9.5V20a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9.5`}),(0,C.jsx)(`path`,{d:`M9 21v-6h6v6`})]});case`menu`:return(0,C.jsx)(`path`,{d:`M4 6h16M4 12h16M4 18h16`});case`logout`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`}),(0,C.jsx)(`path`,{d:`M16 17l5-5-5-5`}),(0,C.jsx)(`path`,{d:`M21 12H9`})]});case`help`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`}),(0,C.jsx)(`path`,{d:`M9.1 9a3 3 0 0 1 5.8 1c0 2-3 3-3 3`}),(0,C.jsx)(`path`,{d:`M12 17h.01`})]});case`bug`:return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`path`,{d:`m8 2 1.9 1.9M14.1 3.9 16 2`}),(0,C.jsx)(`path`,{d:`M9 7.1v-1a3 3 0 1 1 6 0v1`}),(0,C.jsx)(`path`,{d:`M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6`}),(0,C.jsx)(`path`,{d:`M12 20v-9`}),(0,C.jsx)(`path`,{d:`M6.5 9C4.6 8.8 3 7.1 3 5M6 13H2M3 21c0-2.1 1.7-3.9 3.8-4M21 5c0 2.1-1.6 3.8-3.5 4M22 13h-4M17.2 17c2.1.1 3.8 1.9 3.8 4`})]});default:return null}}function ne({name:e,size:t=`1em`,style:n,className:r,strokeWidth:i=1.5}){let a=te(e);return a?(0,C.jsx)(`svg`,{viewBox:`0 0 24 24`,width:t,height:t,fill:`none`,stroke:`currentColor`,strokeWidth:i,strokeLinecap:`round`,strokeLinejoin:`round`,className:r,style:{display:`inline-block`,verticalAlign:`-0.14em`,flexShrink:0,...n||{}},\"aria-hidden\":`true`,children:a}):null}Object.freeze([`list`,`accounts`,`grants`,`create`,`bind`,`read`,`update`,`creatives`,`contribute`,`grant`,`revoke`,`unlink`]),Object.freeze({files:256,textBytes:3e6,pathLength:180});var re=class extends Error{constructor(e,t,n=[]){super(t),this.name=`BlockError`,this.code=e,this.details=n}};function ie(e,t,n){if(!e)throw new re(t,n)}function ae(e){return!!e&&typeof e==`object`&&!Array.isArray(e)&&[Object.prototype,null].includes(Object.getPrototypeOf(e))}function oe(){let e=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&[Object.prototype,null].includes(Object.getPrototypeOf(e)),t=/^(string|text|number|integer|boolean|object|json)(\\[\\])?\\??$/,n=new Set([`__proto__`,`prototype`,`constructor`]);function r(i,a=0){return a>40?!1:typeof i==`string`?t.test(i):Array.isArray(i)?i.length===1&&r(i[0],a+1):e(i)&&Object.entries(i).every(([e,t])=>!n.has(e)&&r(t,a+1))}function i(t,r,o=0){return o>40?!1:r==null?!0:Array.isArray(r)?r.length===1&&Array.isArray(t)&&t.every(e=>i(e,r[0],o+1)):typeof r==`string`?r.endsWith(`?`)?t===void 0||i(t,r.slice(0,-1),o+1):r.endsWith(`[]`)?Array.isArray(t)&&t.every(e=>i(e,r.slice(0,-2),o+1)):r===`string`||r===`text`?typeof t==`string`:r===`object`?e(t):r===`json`?a(t,o+1):r===`integer`?Number.isSafeInteger(t):r===`number`?typeof t==`number`&&Number.isFinite(t):r===`boolean`&&typeof t==`boolean`:e(r)&&e(t)&&Object.entries(r).every(([e,r])=>!n.has(e)&&i(Object.hasOwn(t,e)?t[e]:void 0,r,o+1))}function a(t,r){return r>40?!1:t===null||typeof t==`string`||typeof t==`boolean`?!0:typeof t==`number`?Number.isFinite(t):(e(t)||Array.isArray(t))&&Object.entries(t).every(([e,t])=>!n.has(e)&&a(t,r+1))}return{semanticSchemaValid:r,schemaMatches:i,validate:(e,t)=>{try{return r(t)&&a(e,0)&&i(e,t)}catch{return!1}}}}let{semanticSchemaValid:se,schemaMatches:ce}=oe();Object.freeze([`upstream`,`project`,`adapter`,`chat`,`default`,`user`,`external`,`view`]);let le=Object.freeze([`key`,`semantic`,`accepts`,`schema`,`sources`,`sensitivity`,`freshnessPolicy`,`cardinality`,`batchable`]),w=Object.freeze([Object.freeze({name:`narration_script`,parents:Object.freeze([`script`])}),Object.freeze({name:`sales_script`,parents:Object.freeze([`script`])}),Object.freeze({name:`timed_transcript`,parents:Object.freeze([`transcript`])}),Object.freeze({name:`product_image`,parents:Object.freeze([`image`])}),Object.freeze({name:`reference_image`,parents:Object.freeze([`image`])}),Object.freeze({name:`generated_image`,parents:Object.freeze([`image`,`source_image`])}),Object.freeze({name:`processed_image`,parents:Object.freeze([`image`,`source_image`])}),Object.freeze({name:`visual_description`,parents:Object.freeze([`plain_text`])}),Object.freeze({name:`transcript_text`,parents:Object.freeze([`plain_text`])}),Object.freeze({name:`editor_timeline`,parents:Object.freeze([`timeline`])}),Object.freeze({name:`legacy.timeline.updatededitor`,parents:Object.freeze([`timeline`])}),Object.freeze({name:`narration_audio`,parents:Object.freeze([`source_audio`])}),Object.freeze({name:`generated_video`,parents:Object.freeze([`source_video`])}),Object.freeze({name:`edited_video`,parents:Object.freeze([`source_video`])}),Object.freeze({name:`rendered_video`,parents:Object.freeze([`source_video`])}),Object.freeze({name:`rendered_audio`,parents:Object.freeze([`source_audio`])})]);new Map(w.map(e=>[e.name,e.parents])),Object.freeze(new Set(`sm.ai-decide@1.0.0,sm.ai-write@1.0.0,sm.board-editor.hosted@3.0.0,sm.board-editor@2.0.0,sm.board-editor@2.1.0,sm.board-editor@2.2.0,sm.board-editor@2.2.1,sm.board-editor@2.2.10,sm.board-editor@2.2.11,sm.board-editor@2.2.2,sm.board-editor@2.2.3,sm.board-editor@2.2.4,sm.board-editor@2.2.5,sm.board-editor@2.2.6,sm.board-editor@2.2.7,sm.board-editor@2.2.8,sm.board-editor@2.2.9,sm.board-editor@3.0.0,sm.captions@2.0.0,sm.character@2.0.0,sm.character@2.0.1,sm.compare@2.0.0,sm.compare@2.0.1,sm.compare@2.0.2,sm.connect-app@1.0.0,sm.contact-fields@1.0.0,sm.edit-assistant@2.0.0,sm.edit-assistant@2.0.1,sm.edit-assistant@2.0.2,sm.editor.hosted@3.0.0,sm.editor@2.0.0,sm.editor@2.1.0,sm.editor@2.2.0,sm.editor@2.2.1,sm.editor@2.2.10,sm.editor@2.2.11,sm.editor@2.2.12,sm.editor@2.2.2,sm.editor@2.2.3,sm.editor@2.2.4,sm.editor@2.2.5,sm.editor@2.2.6,sm.editor@2.2.7,sm.editor@2.2.8,sm.editor@2.2.9,sm.editor@3.0.0,sm.export-audio@2.0.0,sm.export-timeline@2.0.0,sm.export-video@2.0.0,sm.export-video@2.1.0,sm.final-edit@2.0.0,sm.final-edit@2.0.1,sm.final-edit@2.0.2,sm.generate-image@2.0.0,sm.generate-image@2.1.0,sm.generate-video@2.0.0,sm.generate-video@2.0.1,sm.grade@2.0.0,sm.grade@2.0.1,sm.grade@2.0.2,sm.import-media@2.0.0,sm.import-media@2.0.1,sm.import-media@2.0.2,sm.location@2.0.0,sm.location@2.0.1,sm.meta-creative@1.0.0,sm.motion-graphics@2.0.0,sm.panel-strip.hosted@3.0.0,sm.panel-strip@2.0.0,sm.panel-strip@2.1.0,sm.panel-strip@2.2.0,sm.panel-strip@2.3.0,sm.panel-strip@2.3.1,sm.panel-strip@2.3.2,sm.panel-strip@2.3.3,sm.panel-strip@2.3.4,sm.panel-strip@2.3.5,sm.panel-strip@2.3.6,sm.panel-strip@2.3.7,sm.panel-strip@2.4.0,sm.panel-strip@2.4.1,sm.panel-strip@2.4.2,sm.panel-strip@3.0.0,sm.photo-editor@1.0.0,sm.photo-notes@1.0.0,sm.photo-notes@1.1.0,sm.pipeline@2.0.0,sm.pipeline@2.1.0,sm.pipeline@2.2.0,sm.pipeline@2.2.1,sm.pipeline@2.2.2,sm.pipeline@2.2.3,sm.pipeline@2.2.4,sm.pipeline@2.2.5,sm.pipeline@2.2.6,sm.rough-cut@2.0.0,sm.rough-cut@2.0.1,sm.rough-cut@2.0.2,sm.score@2.0.0,sm.style@2.0.0,sm.style@2.0.1,sm.transition@2.0.0,sm.transition@2.0.1,sm.transition@2.0.2,sm.video-assets@2.0.0,sm.video-assets@2.1.0,sm.video-assets@2.1.1,sm.video-assets@2.1.2,sm.video-assets@2.1.3,sm.video-assets@2.1.4,sm.voiceover.hosted@3.0.0,sm.voiceover@2.0.0,sm.voiceover@2.1.0,sm.voiceover@2.1.1,sm.voiceover@2.1.2,sm.voiceover@2.1.3,sm.voiceover@2.1.4,sm.voiceover@2.1.5,sm.voiceover@2.1.6,sm.voiceover@3.0.0,sm.when@1.0.0,sm.when@1.1.0,sm.write-summary@1.0.0,stillmade.generate@1.0.0`.split(`,`))),Object.freeze({routes:16,operations:64,keyLength:80,declarationBytes:65536});let ue=`(0|[1-9][0-9]{0,5})\\\\.(0|[1-9][0-9]{0,5})\\\\.(0|[1-9][0-9]{0,5})`;RegExp(`^`+ue+`$`),RegExp(`^(>=|<=|>|<|=)?`+ue+`$`),Object.freeze([`blueprint`,`shotPlan`,`panels`,`board`,`canvas`,`animation`,`editor`]),Object.freeze([{type:`Cut`,sounds:[]},{type:`Fade`,sounds:[]},{type:`Cross dissolve`,sounds:[]},{type:`Shape wipe`,sounds:[`shape_sweep`,`shape_pop`]},{type:`Iris`,sounds:[`shape_sweep`,`shape_pop`]},{type:`Ink splat`,sounds:[`shape_sweep`,`shape_pop`]},{type:`Swirl`,sounds:[`whoosh`,`swirl_wind`]},{type:`Whip left`,sounds:[`whip_crack`,`whip_zip`]},{type:`Whip right`,sounds:[`whip_crack`,`whip_zip`]},{type:`Whip up`,sounds:[`whip_crack`,`whip_zip`]},{type:`Whip down`,sounds:[`whip_crack`,`whip_zip`]},{type:`Whip pan`,sounds:[`whip_crack`,`whip_zip`]},{type:`Slash`,sounds:[`shape_sweep`,`shape_pop`]},{type:`Shred`,sounds:[`shape_sweep`,`shape_pop`]},{type:`Morph`,sounds:[`morph_warp`,`morph_bloom`]},{type:`Dip to black`,sounds:[]},{type:`Dip to white`,sounds:[]},{type:`Push left`,sounds:[`push_slide`,`push_thump`]},{type:`Push right`,sounds:[`push_slide`,`push_thump`]},{type:`Push up`,sounds:[`push_slide`,`push_thump`]},{type:`Push down`,sounds:[`push_slide`,`push_thump`]},{type:`Zoom left`,sounds:[]},{type:`Zoom right`,sounds:[]},{type:`Zoom up`,sounds:[]},{type:`Zoom down`,sounds:[]}].map(e=>Object.freeze({...e,sounds:Object.freeze(e.sounds)}))),Object.freeze([`screen.capture`,`cursor.track`,`camera.capture`,`microphone.capture`,`clipboard.read`,`clipboard.write`,`media.pick`,`notifications.show`,`power.keep-awake`,`native.tools`,`folder.read`,`folder.write`]),Object.freeze({\"org.stillmade.PythonAdapter\":Object.freeze({id:`org.stillmade.PythonAdapter`,adapterVersion:1,label:`Python connection`,actions:Object.freeze([`adapter.import`,`adapter.inspect`,`adapter.execute`,`adapter.describe`,`adapter.call`]),projectExtensions:Object.freeze([`py`])}),\"org.natron.Natron\":Object.freeze({id:`org.natron.Natron`,adapterVersion:1,label:`Natron`,actions:Object.freeze([`launch`,`project.import`,`project.open`,`project.render`]),projectExtensions:Object.freeze([`ntp`])})}),Object.freeze({fileName:255,documentText:1e6,documentTitle:300,tableColumns:500,tableRows:1e5,tableCells:5e5,columnName:160,cellText:1e5,url:8192});let de=Object.freeze({pdf:`application/pdf`,txt:`text/plain`,csv:`text/csv`,md:`text/markdown`,json:`application/json`,zip:`application/zip`});Object.freeze([...new Set(Object.values(de))]),Object.freeze([`markdown`,`plain`]),Object.freeze({origins:8,requestBytes:4194304,responseBytes:8388608,timeoutMs:3e4,redirects:3,headers:32,headerBytes:16384,urlLength:8192,requestsPerMinute:120,originRequestsPerMinute:3e3,keyLength:4096}),Object.freeze([`GET`,`HEAD`,`POST`,`PUT`,`PATCH`,`DELETE`]),Object.freeze([`bearer`,`header`,`query`,`oauth2`]),Object.freeze({sockets:4,messageBytes:1048576,runBytes:268435456,protocols:8}),Object.freeze([`media.saved`,`schedule`,`webhook`,`project.completed`,`provider`]),Object.freeze({triggers:4,labelLength:120,minEverySeconds:60,maxEverySeconds:31536e3}),Object.freeze([`recipe`,`javascript`,`capability`]),Object.freeze({features:24,id:48,label:40,does:160,asks:8,ask:80});let fe=ie,pe=ae;Object.freeze([`type`,`required`,`default`,`min`,`max`,`description`,`role`,`primary`,`context`,`imageMode`,...le]),Object.freeze(`text.number.integer.boolean.json.object.image.video.audio.asset.script.transcript.brief.bible.shot-plan.panel-document.board-document.scene-document.timeline.timeline-edit.file-bundle.workspace-edit.timeline-range.research.character.location.style.pipeline.approval.scene.shot.mask.depth.pose.metadata.project-context.file.document.table.url.date.color`.split(`.`)),Object.freeze([`final.render`,`stock.search`,`stock.select`,`stock.auto`,`gif.search`,`gif.save`,`presenter.generate`,`quality.analyze`,`image.generate`,`image.generate.batch`,`media.generate`,`youtube.upload`]),Object.freeze([`text`,`number`,`slider`,`checkbox`,`asset`,`select`,`multiselect`,`file`,`date`,`color`,`url`,`richtext`,`list`,`grid`]),Object.freeze([`gallery`,`before-after`,`table`,`document`,`chart`,`code`,`player`,`download`]),Object.freeze({file:[`file`,`file[]`],date:[`date`],color:[`color`],url:[`url`],richtext:[`document`,`text`],list:[`text[]`,`number[]`,`integer[]`,`url[]`,`date[]`,`color[]`],grid:[`table`]}),Object.freeze({gallery:[`image[]`],\"before-after\":[`image`],table:[`table`],document:[`document`,`text`],chart:[`table`,`number[]`,`integer[]`],code:[`text`,`json`,`object`],player:[`audio`,`video`,`audio[]`,`video[]`],download:[`file`,`file[]`,`file-bundle`]});let T=Object.freeze({script:`script`,transcript:`transcript`,shots:`shot[]`,shotPlan:`shot-plan`,scenes:`scene[]`,characters:`character[]`,locations:`location[]`,styles:`style[]`,assets:`asset[]`,files:`file[]`,generations:`metadata[]`,versions:`metadata[]`,timeline:`timeline`,editor:`timeline`,canvas:`pipeline`,blueprint:`bible`,panels:`panel-document`,board:`board-document`,animation:`scene-document`,metadata:`metadata`}),E=(e,t,n,r)=>Object.freeze({executor:e,mode:t,byok:n,summary:r}),me=Object.freeze({\"text.generate\":E(`capability-run`,`sync`,!0,`Exact model, account BYOK or credits, and explicit run review`),\"audio.speech\":E(`capability-run`,`sync`,!0,`One short text/script input to measured audio in any StillMade catalog voice (Deepgram, ElevenLabs, OpenAI, Kokoro) with credits, or OpenAI with your key; playback review; accepted project recordings can be explicitly added to Editor audio`),\"audio.transcribe\":E(`capability-run`,`sync`,!0,`One owner-scoped stored audio asset to reviewed text and ordered word timings with StillMade transcription on credits, or OpenAI Whisper with your key`),\"audio.music\":E(`capability-run`,`sync`,!1,`One prompt to generated music (5–240 seconds) with StillMade credits and playback review`),\"audio.sfx\":E(`capability-run`,`sync`,!1,`One prompt to a generated sound effect (0.5–22 seconds) with StillMade credits and playback review`),\"image.generate\":E(`capability-run`,`sync`,!0,`One prompt and optional reference images to a stored PNG with any catalog image model and its settings; StillMade credits or account key, and actual image review`),\"video.generate\":E(`capability-run`,`async`,!0,`One prompt and optional first/last frames to a measured stored video clip with any catalog video model and its settings; StillMade credits and actual video review`),\"image.describe\":E(`capability-run`,`sync`,!0,`One to four owned images to bounded production notes; host-selected model/payment and actual description review`),\"media.analyze\":E(`capability-run`,`sync`,!1,`One owned video (optionally one time range), image or up to four images to structured visual evidence: summary, timeline, observations, on-screen text and issues, with StillMade credits; detail \"check\" gives one to four photos a short answer each at one price per call`),\"web.fetch\":E(`capability-run`,`sync`,!1,`One public web page read by the host and answered against the Block's instruction, with StillMade credits; no cookies, keys or private addresses`),\"web.research\":E(`capability-run`,`sync`,!1,`One topic searched on the web and summarized with cited sources, with StillMade credits`),\"timeline.propose\":E(`capability-run`,`sync`,!0,`Bounded typed context to strict timeline-edit JSON; host-selected model/payment, stale-before checks, preview and Apply`),\"workspace.propose\":E(`capability-run`,`sync`,!0,`Bounded typed context to a strict workspace-edit proposal for one permitted workspace; preview and explicit Apply`),\"connection.execute\":E(`connection`,`sync`,!1,`One reviewed action on a connected third-party app account through the host connection service; the Block never receives account credentials`)}),he=e=>Object.freeze(Object.entries(me).filter(([,t])=>e(t)).map(([e])=>e));he(()=>!0),he(e=>e.executor===`capability-run`),he(e=>e.executor===`capability-run`&&e.mode===`sync`),he(e=>e.byok),[...Object.keys(T).map(e=>`context.${e}.read`)];let ge=new Set([`__proto__`,`prototype`,`constructor`]);function _e(e,t=0,n={nodes:0}){if(fe(t<=40&&++n.nodes<=5e5,`LIMIT`,`Document exceeds complexity limit`),!(e===null||[`string`,`boolean`].includes(typeof e))){if(typeof e==`number`){fe(Number.isFinite(e),`SCHEMA`,`Numbers must be finite`);return}fe(Array.isArray(e)||pe(e),`SCHEMA`,`Only JSON data is accepted`);for(let[r,i]of Object.entries(e))fe(!ge.has(r),`SCHEMA`,`Forbidden field: ${r}`),_e(i,t+1,n)}}function ve(e){_e(e);let t=e=>Array.isArray(e)?e.map(t):pe(e)?Object.fromEntries(Object.keys(e).sort().map(n=>[n,t(e[n])])):e;return JSON.stringify(t(e))}let ye=e=>typeof e==`function`||!!e&&typeof e==`object`&&typeof e.$$typeof==`symbol`;function be(e){return fe(e?.version===1&&[`useSharedScript`,`useLiveEditor`,`useIsMobileUI`,`findVoice`,`estimateCreditsFromText`,`normalizeVoiceId`,`groupVoiceCards`,`cardIndexOfVoice`,`isCardLocked`,`isVoiceLocked`,`sortCardsLockedLast`,`fmtCostLabel`,`parseTranscriptCost`,`elevenLabsUrl`].every(t=>typeof e[t]==`function`)&&[`LiveEditorBadge`,`TranscriptionEditor`,`ThemedSelect`].every(t=>ye(e[t]))&&Array.isArray(e.VOICES)&&typeof e.DEFAULT_VOICE_ID==`string`&&e.CREDIT_COSTS&&typeof e.CREDIT_COSTS==`object`&&[`alert`,`confirm`].every(t=>typeof e.ui?.[t]==`function`)&&typeof e.ELEVENLABS_CONFIGURED==`boolean`&&typeof e.PRESENTER_HOST_BETA==`boolean`,`HOST_SERVICES`,`Voiceover requires version 1 of its workspace host dependencies.`),e}let xe=Object.freeze([`generateVoiceover`,`generateVoicePreview`,`transcribeAudio`,`uploadReferenceImage`,`parseTranscript`,`gifToneCheck`,`editVoScript`,`getElevenLabsVoiceInfo`,`getElVoiceSettings`,`setElVoiceSettings`,`getCustomVoices`,`addCustomVoice`,`removeCustomVoice`,`isElevenLabsVoiceId`]);function Se(e){let t=e?.voiceSettingsDefaults;return fe(e?.version===1&&xe.every(t=>typeof e[t]==`function`)&&t&&[`stability`,`similarity`,`style`].every(e=>Number.isFinite(t[e])&&t[e]>=0&&t[e]<=1)&&typeof t.speakerBoost==`boolean`,`HOST_SERVICES`,`Voiceover requires version 1 of its declared host services.`),e}function Ce(e={}){return e??={},{activeTake:[{audioUrl:e.audioUrl||null,duration:Number(e.duration)||0,source:e.source||`kokoro`,words:e.words||[],transcriptText:e.transcriptText||``,voiceId:e.voiceId||``,speed:Number(e.speed)||1}],versions:e.versions||[]}}function we(e){return{...e.activeTake[0],versions:e.versions}}let Te=[{id:`speed`,label:`Speed it up`,tip:`Set voiceover to ~1.15×. Faster retains better — default drags.`},{id:`tight`,label:`Don't pad the script`,tip:`Only say what the video needs — a shorter, tighter voiceover beats a stretched one. Retention over length.`},{id:`sfx`,label:`Use sound effects`,tip:`Add auto sound effects in the editor (Audio Score). SFX make visual changes land.`}];function Ee(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(r.result),r.onerror=()=>n(Error(`Failed to read file`)),r.readAsDataURL(e)})}function De(e){let t=Math.max(0,Number(e)||0),n=Math.floor(t/60),r=Math.floor(t%60);return`${n}:${String(r).padStart(2,`0`)}`}function Oe(e,t,n){let r=`${e||``} ${t||``} ${n||``}`.toLowerCase(),i=/explainer|casual|comed|funny|listicle|react|relatable|meme|banter/.test(r),a=/story|serious|educational|emotional|documentary|somber|sincere|tragic|history|science|tutorial/.test(r),o=i&&!a;return{on:o,aggressiveness:o?`sparse`:`off`}}function ke({hostServices:e,workspaceHost:t,voiceover:n,projectId:r,initialScript:i=``,scriptHandoff:a=null,scriptHandoffError:o=``,defaultEnabled:s=!1,onChange:c,onContinue:l,onSkip:u,standalone:d=!1,continuing:f=!1,viewOnly:p=!1,requireVoiceover:m=!1,nextStepLabel:h=`Shot Map`,requiredHint:_=`Animated Studio cuts every scene to your narration timing`,allowReactionGifs:y=!1,genre:b=``,lean:x=``,tone:ee=``}){let{useSharedScript:S,useLiveEditor:te,useIsMobileUI:re,findVoice:ie,estimateCreditsFromText:ae,normalizeVoiceId:oe,groupVoiceCards:se,cardIndexOfVoice:ce,isCardLocked:le,isVoiceLocked:w,sortCardsLockedLast:ue,fmtCostLabel:de,parseTranscriptCost:fe,elevenLabsUrl:pe,LiveEditorBadge:T,VOICES:E,DEFAULT_VOICE_ID:me,CREDIT_COSTS:he,ui:ge,ELEVENLABS_CONFIGURED:_e,TranscriptionEditor:ye,ThemedSelect:xe,PRESENTER_HOST_BETA:ke}=be(t),{AudioPlayer:Ae=null,pickAudioFile:je=null,voiceSample:Me=null,fitContent:Ne=!1}=t,Pe=Ne?{height:`auto`,overflow:`visible`}:null,{generateVoiceover:Fe,generateVoicePreview:Ie,transcribeAudio:Le,uploadReferenceImage:Re,parseTranscript:ze,gifToneCheck:Be,editVoScript:O,getElevenLabsVoiceInfo:Ve,getElVoiceSettings:He,setElVoiceSettings:k,getCustomVoices:Ue,addCustomVoice:We,removeCustomVoice:Ge,isElevenLabsVoiceId:Ke,voiceSettingsDefaults:qe}=Se(e),Je=re(),A=n||{},[j,Ye]=(0,g.useState)(A.script||i||``),Xe=S(r,j,Ye,e=>{z.current.script=e,bn.current=!0,c?.({script:e,dirty:!0})}),[M,Ze]=(0,g.useState)(oe(A.voiceId)||me),[Qe,$e]=(0,g.useState)(()=>Ue()),et=e=>ie(e)||Qe.find(t=>t.id===e)||(Ke(e)?{id:e,apiId:e,label:`ElevenLabs voice`,vibe:`Your ElevenLabs voice`,accent:``,provider:`elevenlabs`,model:`eleven_flash_v2_5`,gender:`custom`,custom:!0}:null),[tt,nt]=(0,g.useState)(()=>ce(ue(se(E)),oe(A.voiceId))>=6),[N,rt]=(0,g.useState)(`all`),it=N===`all`?E:N===`elevenlabs`?E.filter(e=>e.provider===`elevenlabs`):E.filter(e=>e.gender===N),at=(0,g.useMemo)(()=>ue(se(it)),[it]),ot=tt?at:at.slice(0,6),[P,F]=(0,g.useState)(Number(A.speed)||1),[I,st]=(0,g.useState)(A.audioUrl||null),[ct,lt]=(0,g.useState)(Number(A.duration)||0),[ut,dt]=(0,g.useState)(A.source||`kokoro`),[ft,pt]=(0,g.useState)(Array.isArray(A.words)?A.words:[]),[mt,ht]=(0,g.useState)(A.transcriptText||``),[gt,_t]=(0,g.useState)(()=>Array.isArray(A.versions)&&A.versions.length?A.versions:A.audioUrl?[{id:`v-initial`,url:A.audioUrl,duration:Number(A.duration)||0,voiceId:A.voiceId||me,speed:Number(A.speed)||1,script:A.script||``,source:A.source||`kokoro`,words:Array.isArray(A.words)?A.words:[],transcriptText:A.transcriptText||``,createdAt:0}]:[]),vt=(0,g.useMemo)(()=>Ce({audioUrl:I,duration:ct,source:ut,words:ft,transcriptText:mt,voiceId:M,speed:P,versions:gt}),[I,ct,ut,ft,mt,M,P,gt]),L=(0,g.useRef)(null);L.current=e=>{if(e===vt)return;z.current.audioDocument=e;let t=we(e);st(t.audioUrl),lt(t.duration),dt(t.source),pt(t.words),ht(t.transcriptText),Ze(t.voiceId),F(t.speed),_t(t.versions),bn.current=!0,c?.({...t,dirty:!0})};let yt=te(r,vt,(0,g.useCallback)(e=>L.current(e),[]),`voiceover`),R=p||Xe.canEdit===!1||yt.canEdit===!1,z=(0,g.useRef)({alive:!0});z.current={...z.current,script:j,viewOnly:R,projectId:r,audioDocument:vt,scriptHandoff:a,liveScript:Xe,liveAudio:yt},(0,g.useEffect)(()=>(z.current.alive=!0,()=>{z.current.alive=!1}),[]);let bt=()=>{let e=z.current;if(!e.alive||e.viewOnly||e.script!==j||e.projectId!==r||e.audioDocument!==vt)throw Error(`The shared script or edit access changed, or another audio take or timing edit arrived during this request. Review the current voiceover before trying again.`)},xt=y||h===`Image Panels`,St=(0,g.useMemo)(()=>Oe(b,x,ee),[b,x,ee]),[Ct,wt]=(0,g.useState)(()=>A.reactionGifs?.enabled??St.on),[Tt,Et]=(0,g.useState)(()=>A.reactionGifs?.tone||St.aggressiveness),[Dt,Ot]=(0,g.useState)(!1),[kt,At]=(0,g.useState)({open:!1,loading:!1,result:null,error:``}),[jt,Mt]=(0,g.useState)({open:!1,loading:!1,oldScript:``,newScript:``,error:``}),[B,Nt]=(0,g.useState)({id:null,status:`idle`,error:``}),Pt=(0,g.useRef)(0),Ft=(0,g.useRef)(null),It=(0,g.useRef)(new Set),Lt=a&&typeof a.id==`string`&&typeof a.sourceLabel==`string`&&typeof a.text==`string`&&a.text.trim()&&a.text.length<=2e5&&typeof a.validate==`function`?JSON.stringify([r,a.id,a.text]):null,Rt=(0,g.useRef)(null);Rt.current={key:Lt,proposal:a},(0,g.useEffect)(()=>(Nt(e=>e.status===`applied`?e.projectId===r&&e.actorId===Xe.actorId?e:{id:null,status:`idle`,error:``}:e.id===Lt?e:{id:null,status:`idle`,error:``}),()=>{++Pt.current,Ft.current?.()}),[r,Lt,Xe.actorId]);let[zt,Bt]=(0,g.useState)(()=>A.collageCanvases?.enabled??!1),[V,Vt]=(0,g.useState)(!1),[Ht,Ut]=(0,g.useState)(()=>A.collageCanvases?.host?.enabled??!1),[Wt,Gt]=(0,g.useState)(!1),[Kt,qt]=(0,g.useState)(`idle`),[Jt,Yt]=(0,g.useState)(``),[Xt,Zt]=(0,g.useState)(`idle`),[Qt,$t]=(0,g.useState)(``),[en,tn]=(0,g.useState)(``),[nn,rn]=(0,g.useState)(`idle`),[an,on]=(0,g.useState)(``),[sn,cn]=(0,g.useState)(!1),[ln,un]=(0,g.useState)(!1),[dn,fn]=(0,g.useState)(!1),[pn,mn]=(0,g.useState)(null),[hn,gn]=(0,g.useState)(null),_n=(0,g.useRef)(null),vn=(0,g.useRef)({}),yn=(0,g.useRef)(null),bn=(0,g.useRef)(!1),H=(0,g.useCallback)(e=>{z.current.alive&&!z.current.viewOnly&&c?.(e)},[c]),xn=et(M),Sn=w(xn),[Cn,wn]=xn?.provider===`deepgram`?[.7,1.5]:xn?.provider===`elevenlabs`?[.7,1.2]:[.5,2],Tn=e=>{if(R)return;let t=Math.round(Math.max(Cn,Math.min(wn,P+e))*100)/100;F(t),H({speed:t})};(0,g.useEffect)(()=>{if(R)return;let e=et(M),[t,n]=e?.provider===`deepgram`?[.7,1.5]:e?.provider===`elevenlabs`?[.7,1.2]:[.5,2];if(P<t||P>n){let e=Math.max(t,Math.min(n,P));F(e),H({speed:e})}},[M,R]);let[U,En]=(0,g.useState)(He),[Dn,On]=(0,g.useState)(null),kn=e=>En(t=>k({...t,...e})),An=Object.keys(qe).some(e=>U[e]!==qe[e]),jn=(0,g.useMemo)(()=>ae(j,P,M),[j,P,M]),Mn=ut===`upload`?he[`transcribe:upload`]:he[`transcribe:timestamp`],Nn=(0,g.useMemo)(()=>fe(en.length),[en]),W=Kt===`generating`||Xt===`analyzing`||ln||nn===`parsing`||B.status===`checking`;(0,g.useEffect)(()=>{if(B.status!==`applied`||B.synced||j!==B.text)return;let e=!Xe.enabled||Xe.getSharedBase?.()?.script===B.text,t=yt.getSharedBase?.(),n=!yt.enabled||t&&ve(t)===B.audioSignature;e&&n&&Nt(e=>e===B?{...e,synced:!0}:e)},[B,j,Xe,yt]),(0,g.useEffect)(()=>()=>{try{_n.current?.pause()}catch{}},[]);let Pn=async e=>{try{_n.current?.pause()}catch{}if(pn===e.id){_n.current=null,mn(null);return}if(hn)return;let t=Me?``:e.sampleUrl||vn.current[e.id];if(Me){gn(e.id);try{t=await Me(e.id)}catch{}if(gn(null),!t)return}if(!t&&!Me)try{t=localStorage.getItem(`sm-vo-preview:${e.id}`)||``}catch{}if(!t){gn(e.id);try{let n=await Ie(e.id);if(t=n?.url||``,t&&!n?.stub){vn.current[e.id]=t;try{localStorage.setItem(`sm-vo-preview:${e.id}`,t)}catch{}}}catch{}gn(null)}if(!t)return;let n=new Audio(t);n.onended=()=>{mn(null),_n.current=null},n.onerror=()=>{mn(null),_n.current=null},_n.current=n,mn(e.id),n.play().catch(()=>{mn(null),_n.current=null})},Fn=async()=>{if(R)return{ok:!1,error:`This Step is view only.`};if(Sn)return qt(`failed`),Yt(`This voice is unavailable on the current plan — pick another voice above.`),{ok:!1,error:`This voice is unavailable on the current plan. Pick another voice.`};let e=String(j||``).trim();if(!e)return qt(`failed`),Yt(`Script is empty`),{ok:!1,error:`The narration script is empty.`};qt(`generating`),Yt(``);try{let t=await Fe({text:e,voiceId:M,speed:P,projectId:r,...xn?.provider===`elevenlabs`?{voiceSettings:U}:{}});if(bt(),!t?.url)throw Error(t?.error||`No audio URL returned`);st(t.url),lt(Number(t.duration)||0),dt(`kokoro`),pt([]),ht(``);let n=[{id:`v-${crypto.randomUUID()}`,url:t.url,duration:Number(t.duration)||0,voiceId:M,speed:P,script:e,source:`kokoro`,createdAt:Date.now()},...gt];return _t(n),bn.current=!0,t.stub?(qt(`failed`),Yt(`This environment has no voiceover keys — a silent placeholder take was placed, not real narration.`)):qt(`idle`),H({audioUrl:t.url,duration:Number(t.duration)||0,source:`kokoro`,voiceId:M,speed:P,script:e,words:[],transcriptText:``,versions:n,dirty:!0}),t.stub?{ok:!1,error:`This environment has no voiceover keys; a silent placeholder take was placed, not real narration.`}:{ok:!0,url:t.url,duration:Number(t.duration)||0}}catch(e){return qt(`failed`),Yt(e.message||String(e)),{ok:!1,error:e.message||String(e)}}},In=async e=>{if(!R&&e){un(!0);try{let t=await Ee(e),n=await Re(t);Ln(n,0)}catch(e){await ge.alert(`Upload failed: ${e.message||e}`,{title:`Upload failed`})}finally{un(!1),yn.current&&(yn.current.value=``)}}},Ln=(e,t=0)=>{bt(),st(e),dt(`upload`),lt(t),pt([]),ht(``);let n=[{id:`v-${crypto.randomUUID()}`,url:e,duration:t,voiceId:M,speed:P,script:j,source:`upload`,createdAt:Date.now()},...gt];_t(n),bn.current=!0,H({audioUrl:e,source:`upload`,duration:t,words:[],transcriptText:``,versions:n,dirty:!0})},Rn=async()=>{if(!(R||W)){un(!0);try{let e=await je();e?.url&&Ln(e.url,Number(e.duration)||0)}catch(e){await ge.alert(`Upload failed: ${e.message||e}`,{title:`Upload failed`})}finally{un(!1)}}},zn=e=>{if(e.preventDefault(),fn(!1),R||W||je)return;let t=e.dataTransfer?.files?.[0];if(t){if(t.type&&!t.type.startsWith(`audio/`)){ge.alert(`Please drop an audio file (mp3, wav, m4a, …).`,{title:`Not an audio file`});return}In(t)}},Bn=async()=>{if(!R&&I){Zt(`analyzing`),$t(``);try{let e=await Le(I,null,ut===`upload`?`upload`:`timestamp`,r);bt();let t=Array.isArray(e?.words)?e.words:[],n=e?.text||``;pt(t),ht(n),bn.current=!0,Zt(`idle`);let i=gt.map(e=>e.url===I?{...e,words:t,transcriptText:n,analyzedAt:Date.now()}:e);_t(i),H({words:t,transcriptText:n,analyzedAt:Date.now(),versions:i,dirty:!0})}catch(e){Zt(`failed`),$t(e.message||String(e))}}},Vn=e=>{if(R||W)return;let t=e.map(e=>e.text).join(` `),n=gt.map(n=>n.url===I?{...n,words:e,transcriptText:t}:n);pt(e),ht(t),_t(n),bn.current=!0,H({words:e,transcriptText:t,versions:n,dirty:!0})},Hn=async()=>{if(R)return;let e=String(en||``).trim();if(e){rn(`parsing`),on(``);try{let t=await ze(e,r);if(bt(),!t.length)throw Error(`Couldn’t find any words in that transcript.`);let n=t.map(e=>e.text).join(` `);pt(t),ht(n),bn.current=!0,rn(`idle`);let i=gt.map(e=>e.url===I?{...e,words:t,transcriptText:n,analyzedAt:Date.now()}:e);_t(i),H({words:t,transcriptText:n,analyzedAt:Date.now(),versions:i,dirty:!0})}catch(e){rn(`failed`),on(e.message||String(e))}}},Un=e=>{if(R||!e||e.url===I)return;st(e.url),lt(Number(e.duration)||0),dt(e.source||`kokoro`),Ze(e.voiceId||M),F(Number(e.speed)||1),typeof e.script==`string`&&Ye(e.script);let t=Array.isArray(e.words)?e.words:[];pt(t),ht(e.transcriptText||``),bn.current=!0,H({audioUrl:e.url,duration:Number(e.duration)||0,source:e.source||`kokoro`,voiceId:e.voiceId||M,speed:Number(e.speed)||1,script:typeof e.script==`string`?e.script:j,words:t,transcriptText:e.transcriptText||``,dirty:!0})},Wn=e=>H({reactionGifs:{...A.reactionGifs||{},enabled:Ct,tone:Tt,...e}}),Gn=()=>{if(R||W)return;let e=!Ct;wt(e),Wn({enabled:e}),e&&Kn()},Kn=async()=>{At({open:!0,loading:!0,result:null,error:``});try{let e=await Be({genre:b,lean:x,tone:Tt,script:j,modelTier:`standard`});At({open:!0,loading:!1,result:e,error:``})}catch(e){At({open:!0,loading:!1,result:null,error:e.message||String(e)})}},qn=e=>{if(!e){At(e=>({...e,open:!1}));return}if(e.id===`skip`){wt(!1),Wn({enabled:!1}),At(e=>({...e,open:!1}));return}if(e.id===`edit`){At(e=>({...e,open:!1})),Yn();return}let t=e.aggressiveness||Tt||`sparse`;Et(t),wt(!0),Wn({enabled:!0,tone:t}),At(e=>({...e,open:!1}))},Jn=ut!==`upload`&&!!String(j).trim(),Yn=async()=>{if(!R&&Jn){Mt({open:!0,loading:!0,oldScript:j,newScript:``,error:``});try{let e=await O({currentValue:j,modelTier:`standard`,projectId:r});Mt({open:!0,loading:!1,oldScript:j,newScript:e||``,error:e?``:`No edit was returned.`})}catch(e){Mt({open:!0,loading:!1,oldScript:j,newScript:``,error:e.message||String(e)})}}},Xn=(e,{baseline:t=jt.oldScript,shared:n=!1}={})=>{if(z.current.viewOnly||z.current.script!==t){if(n)throw Error(`The narration changed. Review the current script before applying this proposal.`);ge.alert(`The script changed. Review a new edit before applying it.`,{title:`Script changed`});return}let r;return n&&(r={...z.current.audioDocument,activeTake:z.current.audioDocument.activeTake.map(e=>({...e,words:[],transcriptText:``}))},z.current.script=e,z.current.audioDocument=r,Xe.adoptDocument({script:e}),yt.adoptDocument(r)),Ye(e),bn.current=!0,pt([]),ht(``),n||wt(!0),H({script:e,words:[],transcriptText:``,...n?{}:{reactionGifs:{...A.reactionGifs||{},enabled:!0,tone:Tt}},dirty:!0}),Mt({open:!1,loading:!1,oldScript:``,newScript:``,error:``}),r};v({dependencies:[j,W,R,vt,Cn,wn,Sn,jn,M,P,gt],handoff:()=>({kind:`voiceover-controls`,script:j,speed:P,voiceId:M,source:ut,selectedTakeIds:(vt?.activeTake||[]).map(e=>e.id).filter(Boolean)}),actions:[{id:`replace_narration_script`,label:`Replace narration script`,effect:`edit`,available:()=>!W&&!R,parameters:{type:`object`,additionalProperties:!1,required:[`text`],properties:{text:{type:`string`,minLength:1,maxLength:12e3}}},parse:e=>{if(W||z.current.viewOnly||!e||Object.keys(e).length!==1||typeof e.text!=`string`||!e.text.trim()||e.text.length>12e3)throw Error(`Provide narration text in an editable, idle workspace.`);return e},run:({text:e})=>(Xn(e,{baseline:j,shared:!0}),{status:`completed`,message:`Updated the narration script. Its old word timings were cleared; generate and analyze narration before continuing.`})},{id:`select_narration_take`,label:`Select narration take`,effect:`edit`,available:()=>!W&&!R&&gt.length>0,parameters:{type:`object`,additionalProperties:!1,required:[`takeId`],properties:{takeId:{type:`string`,enum:gt.slice(0,50).map(e=>e.id)}}},parse:e=>{if(W||R||!e||Object.keys(e).length!==1||!gt.slice(0,50).some(t=>t.id===e.takeId))throw Error(`Choose an available narration take.`);return e},run:({takeId:e})=>(Un(gt.find(t=>t.id===e)),{status:`completed`,message:`Selected the narration take with its saved timings.`})},{id:`set_narration_speed`,label:`Change narration speed`,effect:`edit`,available:()=>!W&&!R,parameters:{type:`object`,additionalProperties:!1,required:[`speed`],properties:{speed:{type:`number`,minimum:Cn,maximum:wn}}},parse:e=>{if(W||R||!e||Object.keys(e).length!==1||!Number.isFinite(e.speed)||e.speed<Cn||e.speed>wn)throw Error(`Choose a supported narration speed.`);return e},run:({speed:e})=>(F(e),H({speed:e}),{status:`completed`,message:`Updated the speed for the next narration generation.`})},{id:`generate_narration`,label:`Generate voiceover`,effect:`run`,available:()=>!W&&!R&&!Sn&&!!String(j||``).trim(),parameters:{type:`object`,additionalProperties:!1,properties:{}},parse:e=>{if(W||R||Sn||!String(j||``).trim()||!e||Object.keys(e).length)throw Error(`Write the narration script first, in an editable, idle workspace with an available voice.`);return{}},review:()=>({description:`Make the voiceover from this Step’s narration script with the chosen voice and speed.`,notes:[`${de(jn,{approx:!0})} for this voiceover`]}),run:async()=>{let e=await Fn();if(!e?.ok)throw Error(e?.error||`The voiceover was not made.`);return{status:`completed`,message:`Generated a voiceover take${e.duration?` (${Math.round(e.duration)} seconds)`:``} from the narration script. It is saved on this Step as the selected take.`,.../^\\/api\\/media\\/[A-Za-z0-9_-]{1,64}\\/[A-Za-z0-9._-]{1,128}$/.test(e.url||``)?{resultAudio:{url:e.url,...e.duration>0&&e.duration<=3600?{seconds:e.duration}:{}}}:{}}}}]});let Zn=async()=>{if(!Lt||W||R||a.text===j||It.current.has(Lt))return;let e=Lt,t=a,n=j,i=vt,o=Xe.actorId,s=yt.actorId,c=++Pt.current,l=()=>z.current.alive&&c===Pt.current&&Rt.current.key===e&&z.current.projectId===r,u=()=>{if(!l())throw Error(`This script proposal changed. Review the current Block output.`);let e=z.current;if(e.viewOnly||e.liveScript.actorId!==o||e.liveAudio.actorId!==s||[`checking`,`setup`,`conflict`].includes(e.liveScript.status)||[`checking`,`setup`,`conflict`].includes(e.liveAudio.status))throw Error(`Wait for narration and voiceover editing to be ready, then review this script again.`);if(e.script!==n||e.audioDocument!==i)throw Error(`The narration or selected take changed while this proposal was checked. Your current work was kept.`)},d,f,p=()=>{f?.(),f=null,d?.(),d=null};Ft.current=p,Nt({id:e,status:`checking`,error:``});try{if(u(),d=await Xe.pauseWorkflow(),u(),f=await yt.pauseWorkflow(),u(),await t.validate()!==!0)throw Error(`The connected Block output changed. Review its latest script before applying it.`);u();let i=Xn(t.text,{baseline:n,shared:!0});Nt({id:e,projectId:r,actorId:o,status:`applied`,text:t.text,audioSignature:ve(i),synced:!1,error:``})}catch(t){l()&&Nt({id:e,status:`error`,error:t.message||`The script could not be applied. Your narration was kept.`})}finally{p(),Ft.current===p&&(Ft.current=null),!l()&&z.current.alive&&Nt(t=>t.id===e&&t.status===`checking`?{id:null,status:`idle`,error:``}:t)}},Qn=()=>{Lt&&(++Pt.current,Ft.current?.(),It.current.add(Lt),Nt({id:Lt,status:`kept`,error:``}))},$n=()=>{R||l?.({enabled:!0,words:ft,transcriptText:mt,audioUrl:I,voiceId:M,speed:P,source:ut,script:j,duration:ct,dirty:bn.current,reactionGifs:xt?{enabled:Ct,tone:Tt}:void 0,collageCanvases:xt?{enabled:zt,host:Ht?{enabled:!0}:void 0}:void 0})},er=()=>{R||(u||l)?.({enabled:!1,dirty:bn.current})},tr=d?`Save voiceover`:`Continue → ${h}`;return(0,C.jsxs)(`div`,{style:{...D.container,...Pe,...Je?{border:`none`,borderRadius:0}:null},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,flexWrap:`wrap`,gap:8},children:[(0,C.jsx)(T,{live:Xe,inline:!0,label:`Script`}),(0,C.jsx)(T,{live:yt,inline:!0,label:`Voiceover takes`})]}),(0,C.jsxs)(`div`,{style:D.header,children:[(0,C.jsxs)(`div`,{style:D.headerLeft,children:[(0,C.jsx)(`div`,{style:D.logoMark}),(0,C.jsx)(`span`,{style:D.headerTitle,children:`Voiceover`})]}),(0,C.jsxs)(`div`,{style:D.headerActions,children:[R&&(0,C.jsx)(`div`,{style:D.viewOnlyBadge,children:`View only`}),!d&&!R&&!m&&(0,C.jsxs)(`button`,{className:`btn`,onClick:er,disabled:W||f,style:D.skipBtn,children:[`Skip → `,h]}),m&&!R&&(0,C.jsx)(`div`,{style:D.headerBadge,title:_,children:`Required`}),(0,C.jsx)(`button`,{className:`btn btn-primary`,onClick:$n,disabled:W||f||m&&!(I&&ft.length),title:m&&!(I&&ft.length)?I?`Run the timing analysis first — everything is cut to the word timings`:`Generate or upload the narration first`:void 0,style:D.confirmBtn,children:f?`Building ${h.toLowerCase()}…`:tr})]})]}),(0,C.jsxs)(`div`,{style:Pe?{...D.body,overflowY:`visible`,flex:`none`}:D.body,children:[o&&(0,C.jsxs)(`p`,{role:`status`,style:D.cardSub,children:[`Connected script is not ready. `,o]}),Lt&&!It.current.has(Lt)&&(B.id!==Lt||B.status!==`applied`)&&(0,C.jsxs)(`div`,{style:D.card,children:[(0,C.jsxs)(`h2`,{style:D.handoffTitle,children:[`Use script from `,a.sourceLabel]}),(0,C.jsx)(`p`,{style:D.cardSub,children:a.text===j?`This script is already your current narration. Your audio and timings are unchanged.`:`Review this Block’s script before replacing your narration. Audio takes and their history stay available; current word timings will need to be analyzed again.`}),(0,C.jsx)(`div`,{style:D.handoffPreview,children:a.text}),B.id===Lt&&B.error&&(0,C.jsx)(`p`,{role:`alert`,style:D.cardSub,children:B.error}),(0,C.jsxs)(`div`,{style:D.handoffActions,children:[(0,C.jsx)(`button`,{className:`btn btn-primary`,disabled:W||R||a.text===j||[`checking`,`setup`,`conflict`].includes(Xe.status)||[`checking`,`setup`,`conflict`].includes(yt.status),onClick:Zn,children:B.id===Lt&&B.status===`checking`?`Checking current narration…`:`Apply script`}),(0,C.jsx)(`button`,{className:`btn btn-secondary`,onClick:Qn,children:`Keep current`})]})]}),B.status===`applied`&&B.projectId===r&&B.actorId===Xe.actorId&&(0,C.jsx)(`div`,{role:`status`,style:D.cardSub,children:j===B.text?Xe.status===`conflict`||yt.status===`conflict`?`Script applied locally. Resolve the shared narration changes before continuing.`:B.synced?`Script applied to narration. Generate and analyze a new take when you are ready.`:`Script applied. Waiting for shared narration to sync…`:`The narration has changed since this script was applied.`}),(0,C.jsxs)(`div`,{style:{...D.card,position:`relative`},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:8},children:[(0,C.jsx)(`div`,{style:D.cardTitle,children:`Narration script`}),xt&&(0,C.jsxs)(`span`,{role:`button`,tabIndex:0,\"aria-expanded\":Wt,onMouseEnter:()=>Gt(!0),onMouseLeave:()=>Gt(!1),onClick:()=>Gt(e=>!e),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),Gt(e=>!e))},style:{display:`inline-flex`,alignItems:`center`,gap:5,cursor:`pointer`,color:Wt?`var(--accent)`:`var(--text-muted)`,fontSize:11.5,fontWeight:600,userSelect:`none`},children:[(0,C.jsxs)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 16 16`,\"aria-hidden\":`true`,style:{display:`block`},children:[(0,C.jsx)(`path`,{d:`M8 0.8 L9.7 6.3 L15.2 8 L9.7 9.7 L8 15.2 L6.3 9.7 L0.8 8 L6.3 6.3 Z`,fill:`var(--accent)`}),(0,C.jsx)(`path`,{d:`M12.9 1.4 L13.5 3.1 L15.2 3.7 L13.5 4.3 L12.9 6 L12.3 4.3 L10.6 3.7 L12.3 3.1 Z`,fill:`var(--accent)`,opacity:`0.65`})]}),`Quick tips`,Wt&&(0,C.jsx)(`span`,{onClick:e=>e.stopPropagation(),style:{position:`absolute`,top:34,right:10,zIndex:30,width:`min(340px, calc(100% - 20px))`,background:`var(--bg-elevated)`,border:`1px solid var(--border)`,borderRadius:8,boxShadow:`0 10px 30px rgba(0,0,0,0.35)`,padding:`10px 12px`,display:`flex`,flexDirection:`column`,gap:8,cursor:`default`,textAlign:`left`},children:Te.map(e=>(0,C.jsxs)(`span`,{style:{fontSize:12,fontWeight:400,color:`var(--text-secondary)`,lineHeight:1.5},children:[(0,C.jsxs)(`strong`,{style:{color:`var(--text-primary)`},children:[e.label,`.`]}),` `,e.tip]},e.id))})]})]}),(0,C.jsx)(`textarea`,{maxLength:2e5,style:D.textarea,value:j,onChange:e=>{Ye(e.target.value),H({script:e.target.value})},placeholder:`Write or paste the narration here…`,rows:5,disabled:W||R}),(0,C.jsxs)(`div`,{style:D.charCount,children:[String(j).length.toLocaleString(),` chars · ~`,jn,` cr to generate`]})]}),xt&&(0,C.jsxs)(`div`,{style:D.card,children:[(0,C.jsxs)(`div`,{style:D.toggleRow,children:[(0,C.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:3,minWidth:0},children:[(0,C.jsxs)(`div`,{style:D.gifTitleRow,children:[(0,C.jsx)(`span`,{style:D.cardTitle,children:`Reaction GIFs`}),(0,C.jsx)(`button`,{type:`button`,style:D.infoGlyph,onClick:()=>Ot(e=>!e),\"aria-expanded\":Dt,\"aria-label\":`About reaction GIFs`,title:`About reaction GIFs`,children:`i`})]}),(0,C.jsx)(`div`,{style:D.cardSub,children:Ct?`Planned around your narration${Tt&&Tt!==`off`?` · ${Tt}`:``} · ${de(he[`gif:plan`])} to plan`:`Drop quick reaction GIFs in on the beat — a free retention layer.`})]}),(0,C.jsx)(`button`,{type:`button`,role:`switch`,\"aria-checked\":Ct,style:D.switch,onClick:Gn,disabled:R||W,\"aria-label\":`Include reaction GIFs`,children:(0,C.jsx)(`span`,{style:{...D.switchTrack,...Ct?D.switchTrackOn:{}},children:(0,C.jsx)(`span`,{style:{...D.switchKnob,...Ct?D.switchKnobOn:{}}})})})]}),Dt&&(0,C.jsx)(`div`,{style:D.infoBox,children:`Reaction GIFs are an Image-Panel-only layer. They are planned around your narration. Recommended for casual, comedic, reaction, and relatable content.`})]}),xt&&(0,C.jsxs)(`div`,{style:D.card,children:[(0,C.jsxs)(`div`,{style:D.toggleRow,children:[(0,C.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:3,minWidth:0},children:[(0,C.jsxs)(`div`,{style:D.gifTitleRow,children:[(0,C.jsx)(`span`,{style:D.cardTitle,children:`White Board Motion`}),(0,C.jsx)(`button`,{type:`button`,style:D.infoGlyph,onClick:()=>Vt(e=>!e),\"aria-expanded\":V,\"aria-label\":`About White Board Motion`,title:`About White Board Motion`,children:`i`})]}),(0,C.jsx)(`div`,{style:D.cardSub,children:zt?`Auto-placed where the narration lists real things · ${de(he[`canvas:plan`])} to plan`:`Photo-collage beats: real images pop in as the narration names them.`})]}),(0,C.jsx)(`button`,{type:`button`,role:`switch`,\"aria-checked\":zt,style:D.switch,onClick:()=>{if(R||W)return;let e=!zt;Bt(e),H({collageCanvases:{...A.collageCanvases||{},enabled:e}})},disabled:R||W,\"aria-label\":`Include White Board Motion beats`,children:(0,C.jsx)(`span`,{style:{...D.switchTrack,...zt?D.switchTrackOn:{}},children:(0,C.jsx)(`span`,{style:{...D.switchKnob,...zt?D.switchKnobOn:{}}})})})]}),V&&(0,C.jsx)(`div`,{style:D.infoBox,children:`A White Board Motion beat is one long beat on a solid background where stock photos pop in exactly when the narration names them, each with its own sound, plus text on emphasized words. Best for explainer stretches that list or compare real things. Once in a while, for a single punchy line, it types the narration out on the plain background with a typing sound instead of photos. You can always insert one by hand on the Strip step, with this off. Stock photos are metered by the stock library on build.`}),zt&&ke&&(0,C.jsxs)(`div`,{style:{...D.toggleRow,marginTop:10,paddingTop:10,borderTop:`1px solid var(--border)`},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:3,minWidth:0},children:[(0,C.jsxs)(`div`,{style:D.gifTitleRow,children:[(0,C.jsx)(`span`,{style:D.cardTitle,children:`Auto presenter / host`}),(0,C.jsx)(`span`,{style:{fontSize:9,fontWeight:800,letterSpacing:`0.06em`,padding:`1px 6px`,borderRadius:999,background:`var(--accent)`,color:`var(--accent-contrast, #0A0A0A)`},children:`BETA`})]}),(0,C.jsx)(`div`,{style:D.cardSub,children:`An AI presenter points, presents and reacts on the White Board Motion beats — set it up on the Image Panels step.`})]}),(0,C.jsx)(`button`,{type:`button`,role:`switch`,\"aria-checked\":Ht,style:D.switch,onClick:()=>{if(R||W)return;let e=!Ht;Ut(e),H({collageCanvases:{...A.collageCanvases||{},enabled:zt,host:{...A.collageCanvases?.host||{},enabled:e}}})},disabled:R||W,\"aria-label\":`Enable auto presenter/host`,children:(0,C.jsx)(`span`,{style:{...D.switchTrack,...Ht?D.switchTrackOn:{}},children:(0,C.jsx)(`span`,{style:{...D.switchKnob,...Ht?D.switchKnobOn:{}}})})})]})]}),(0,C.jsxs)(`div`,{style:D.card,children:[(0,C.jsxs)(`div`,{style:D.voiceHead,children:[(0,C.jsx)(`div`,{style:D.cardTitle,children:`Voice`}),(0,C.jsx)(`div`,{style:D.voiceFilterRow,children:[[`all`,`All`],[`female`,`Female`],[`male`,`Male`],[`elevenlabs`,`ElevenLabs`]].map(([e,t])=>(0,C.jsx)(`button`,{type:`button`,style:{...D.voiceFilterBtn,...N===e?D.voiceFilterBtnOn:{}},onClick:()=>rt(e),children:t},e))})]}),(0,C.jsx)(`div`,{style:D.voiceGrid,children:ot.map(e=>{if(e.kind===`group`){let t=e.versions.some(e=>e.id===M)?M:e.defaultId,n=e.versions.find(e=>e.id===t)||e.versions[0],r=e.versions.some(e=>e.id===M),i=pn===n.id,a=le(e);return(0,C.jsxs)(`div`,{style:{...D.voiceCard,...r?D.voiceCardActive:{},...a?D.voiceCardLocked:{}},onClick:()=>{R||a||(Ze(t),H({voiceId:t}))},role:`button`,tabIndex:0,\"aria-disabled\":a||void 0,title:a?`This ElevenLabs Voice Library voice needs a paid ElevenLabs plan`:void 0,onKeyDown:e=>{R||a||(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),Ze(t),H({voiceId:t}))},children:[(0,C.jsx)(`span`,{role:`button`,tabIndex:0,style:D.voicePlay,onClick:e=>{e.stopPropagation(),Pn(n)},onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.stopPropagation(),e.preventDefault(),Pn(n))},\"aria-label\":`Preview ${n.label}`,children:hn===n.id?`⋯`:i?`❚❚`:`▶`}),(0,C.jsxs)(`div`,{style:D.voiceMeta,children:[(0,C.jsx)(`div`,{style:D.voiceName,children:e.group}),(0,C.jsx)(`span`,{onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),children:(0,C.jsx)(xe,{style:D.voiceSelect,value:t,disabled:R||a,onChange:e=>{R||a||(Ze(e.target.value),H({voiceId:e.target.value}))},children:e.versions.map(e=>(0,C.jsx)(`option`,{value:e.id,disabled:w(e),children:e.groupLabel},e.id))})})]}),a?(0,C.jsx)(`span`,{style:D.voiceLockBadge,title:`Needs a paid ElevenLabs plan`,children:`Unavailable`}):n.provider===`elevenlabs`&&(0,C.jsx)(`span`,{style:D.voiceBadge,children:`ElevenLabs`}),r&&(0,C.jsx)(`span`,{style:D.voiceCheck,children:`✓`})]},`group:${e.group}`)}let t=e.voice,n=t.id===M,r=pn===t.id,i=le(e);return(0,C.jsxs)(`div`,{style:{...D.voiceCard,...n?D.voiceCardActive:{},...i?D.voiceCardLocked:{}},onClick:()=>{R||i||(Ze(t.id),H({voiceId:t.id}))},role:`button`,tabIndex:0,\"aria-disabled\":i||void 0,title:i?`This ElevenLabs Voice Library voice needs a paid ElevenLabs plan`:void 0,onKeyDown:e=>{R||i||(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),Ze(t.id),H({voiceId:t.id}))},children:[(0,C.jsx)(`span`,{role:`button`,tabIndex:0,style:D.voicePlay,onClick:e=>{e.stopPropagation(),Pn(t)},onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.stopPropagation(),e.preventDefault(),Pn(t))},\"aria-label\":`Preview ${t.label}`,children:hn===t.id?`⋯`:r?`❚❚`:`▶`}),(0,C.jsxs)(`div`,{style:D.voiceMeta,children:[(0,C.jsx)(`div`,{style:D.voiceName,children:t.label}),(0,C.jsx)(`div`,{style:D.voiceVibe,children:t.vibe})]}),i?(0,C.jsx)(`span`,{style:D.voiceLockBadge,title:`Needs a paid ElevenLabs plan`,children:`Unavailable`}):t.provider===`elevenlabs`&&(0,C.jsx)(`span`,{style:D.voiceBadge,children:`ElevenLabs`}),n&&(0,C.jsx)(`span`,{style:D.voiceCheck,children:`✓`})]},t.id)})}),at.length>6&&(0,C.jsx)(`button`,{type:`button`,style:D.showAllVoicesBtn,onClick:()=>nt(e=>!e),children:tt?`Show fewer`:`Show all ${at.length} voices`}),at.length===0&&(0,C.jsx)(`div`,{style:D.emptySmall,children:`No voices match.`}),!1,(0,C.jsxs)(`div`,{style:D.speedRow,children:[(0,C.jsx)(`span`,{style:D.speedLabel,children:`Speed`}),(0,C.jsx)(`button`,{type:`button`,style:D.speedReset,title:`−0.05`,disabled:W||R||P<=Cn,onClick:()=>Tn(-.05),children:`−`}),(0,C.jsx)(`input`,{type:`range`,min:Cn,max:wn,step:`0.05`,value:P,onChange:e=>{let t=Number(e.target.value);F(t),H({speed:t})},disabled:W||R,style:D.speedSlider}),(0,C.jsx)(`button`,{type:`button`,style:D.speedReset,title:`+0.05`,disabled:W||R||P>=wn,onClick:()=>Tn(.05),children:`+`}),(0,C.jsxs)(`span`,{style:D.speedVal,children:[P.toFixed(2),`×`]}),P!==1&&(0,C.jsx)(`button`,{type:`button`,style:D.speedReset,title:`Reset to 1.00×`,disabled:W||R,onClick:()=>{F(1),H({speed:1})},children:`↺`})]}),xn?.provider===`elevenlabs`&&(0,C.jsxs)(`div`,{style:D.elSettings,children:[(0,C.jsxs)(`div`,{style:D.elSettingsHead,children:[(0,C.jsx)(`span`,{style:D.speedLabel,children:`Voice settings`}),An&&(0,C.jsx)(`button`,{type:`button`,style:D.speedReset,title:`Reset to voice defaults`,onClick:()=>En(k({...qe})),children:`↺`})]}),[[`stability`,`Stability`,`How steady the delivery is. Lower = more emotional and varied between takes; higher = calmer and more consistent (can sound flat). Default: 0.50.`],[`similarity`,`Similarity`,`How closely the voice sticks to the original speaker’s sound. Higher = closest match but can carry over recording artifacts; lower = smoother, less distinctive. Default: 0.75.`],[`style`,`Style`,`Exaggerates the speaker’s delivery style and energy. High values can sound unstable and add latency. Default: 0.00.`]].map(([e,t,n])=>(0,C.jsxs)(g.Fragment,{children:[(0,C.jsxs)(`div`,{style:D.speedRow,children:[(0,C.jsx)(`span`,{style:D.elSliderLabel,children:t}),(0,C.jsx)(`button`,{type:`button`,style:D.infoGlyph,\"aria-expanded\":Dn===e,\"aria-label\":`About ${t}`,title:`About ${t}`,onClick:()=>On(t=>t===e?null:e),children:`i`}),(0,C.jsx)(`input`,{type:`range`,min:0,max:1,step:`0.05`,value:U[e],onChange:t=>kn({[e]:Number(t.target.value)}),disabled:W||R,style:D.speedSlider}),(0,C.jsx)(`span`,{style:D.speedVal,children:U[e].toFixed(2)})]}),Dn===e&&(0,C.jsx)(`div`,{style:D.infoBox,children:n})]},e)),(0,C.jsxs)(`div`,{style:D.speedRow,children:[(0,C.jsx)(`span`,{style:D.elSliderLabel,children:`Speaker boost`}),(0,C.jsx)(`button`,{type:`button`,style:D.infoGlyph,\"aria-expanded\":Dn===`speakerBoost`,\"aria-label\":`About Speaker boost`,title:`About Speaker boost`,onClick:()=>On(e=>e===`speakerBoost`?null:`speakerBoost`),children:`i`}),(0,C.jsx)(`button`,{type:`button`,style:{...D.elBoostBtn,...U.speakerBoost?D.elBoostBtnOn:null},disabled:W||R,onClick:()=>kn({speakerBoost:!U.speakerBoost}),children:U.speakerBoost?`On`:`Off`})]}),Dn===`speakerBoost`&&(0,C.jsx)(`div`,{style:D.infoBox,children:`Slightly boosts similarity to the original speaker. The effect is subtle on most voices. Default: On.`})]})]}),(0,C.jsxs)(`div`,{style:D.card,children:[(0,C.jsx)(`div`,{style:D.cardTitle,children:`Audio`}),(0,C.jsxs)(`div`,{style:D.audioBtnRow,children:[(0,C.jsx)(`button`,{className:`btn btn-primary`,style:D.genBtn,onClick:Fn,disabled:W||R||Sn||!String(j).trim(),title:Sn?`This voice needs a paid ElevenLabs plan — pick another voice above`:void 0,children:Kt===`generating`?`Generating…`:Sn?`Voice unavailable`:`${I&&ut!==`upload`?`Re-generate`:`Generate`} ${de(jn,{approx:!0})}`}),(0,C.jsx)(`span`,{style:D.orSep,children:`or`}),(0,C.jsx)(`button`,{className:`btn`,style:{...D.uploadBtn,...dn?D.uploadBtnDrag:null},onClick:je?Rn:()=>yn.current?.click(),disabled:W||R,onDragEnter:e=>{e.preventDefault(),!R&&!W&&!je&&fn(!0)},onDragOver:e=>{R||W||je||(e.preventDefault(),e.dataTransfer.dropEffect=`copy`,dn||fn(!0))},onDragLeave:e=>{e.preventDefault(),fn(!1)},onDrop:zn,title:je?`Choose an audio file`:`Click to choose, or drag an audio file here`,children:ln?`Uploading…`:dn?`⤓ Drop to upload`:`⤓ Upload audio file`}),!je&&(0,C.jsx)(`input`,{ref:yn,type:`file`,accept:`audio/*`,style:{display:`none`},onChange:e=>In(e.target.files?.[0])}),_e&&(0,C.jsx)(`a`,{href:pe(`voiceover_step`),target:`_blank`,rel:`noopener noreferrer`,style:D.elevenLink,children:`Want a specific or cloned voice? Generate it on ElevenLabs (3,000+ voices) and upload it here`})]}),Kt===`failed`&&Jt&&(0,C.jsxs)(`div`,{style:D.errorBox,children:[`⚠ `,Jt]}),I&&(0,C.jsxs)(`div`,{style:D.playerWrap,children:[Ae?(0,C.jsx)(Ae,{src:I,style:D.audioEl}):(0,C.jsx)(`audio`,{controls:!0,src:I,style:D.audioEl}),(0,C.jsxs)(`div`,{style:D.playerMeta,children:[ut===`upload`?`Uploaded audio`:`${xn?.label||M} · ${P.toFixed(2)}×`,ct>0&&` · ${De(ct)}`]})]}),gt.length>1&&(0,C.jsxs)(`div`,{style:D.versionsWrap,children:[(0,C.jsxs)(`div`,{style:D.versionsHead,children:[`Versions (`,gt.length,`)`]}),(0,C.jsx)(`div`,{style:D.versionsList,children:gt.map(e=>{let t=e.url===I;return(0,C.jsxs)(`button`,{type:`button`,style:{...D.versionRow,...t?D.versionRowActive:{}},onClick:()=>Un(e),disabled:W||R,title:t?`Active take`:`Use this take`,children:[(0,C.jsxs)(`span`,{style:D.versionMain,children:[t?`▸ `:``,e.source===`upload`?`Uploaded audio`:ie(e.voiceId)?.label||e.voiceId,e.source===`upload`?``:` · ${Number(e.speed||1).toFixed(2)}×`]}),(0,C.jsxs)(`span`,{style:D.versionMeta,children:[e.duration>0?De(e.duration):`—`,t?` · Active`:``]})]},e.id)})})]})]}),(0,C.jsxs)(`div`,{style:D.card,children:[(0,C.jsxs)(`div`,{style:D.cardTitleRow,children:[(0,C.jsx)(`div`,{style:D.cardTitle,children:`Timing analysis`}),(0,C.jsx)(`button`,{className:`btn`,style:{...D.analyzeBtn,...I&&!W&&!R?D.analyzeBtnReady:{}},onClick:Bn,disabled:W||R||!I,title:I?`Transcribe the audio with word-level timestamps`:`Generate or upload audio first`,children:Xt===`analyzing`?`Analyzing…`:`Analyze audio ${de(Mn)}`})]}),(0,C.jsx)(`div`,{style:D.cardSub,children:`Analyze your generated or uploaded audio for exact timing — your shot map is built from it.`}),Xt===`failed`&&Qt&&(0,C.jsxs)(`div`,{style:D.errorBox,children:[`⚠ `,Qt]}),(0,C.jsxs)(`button`,{type:`button`,style:D.disclosure,onClick:()=>cn(e=>!e),\"aria-expanded\":sn,children:[(0,C.jsx)(`span`,{style:D.disclosureChevron,children:sn?`▾`:`▸`}),`Have your own transcript or captions?`]}),sn&&(0,C.jsxs)(`div`,{style:D.disclosureBody,children:[(0,C.jsx)(`div`,{style:D.cardSub,children:`Paste it in any format — SRT, VTT, a YouTube transcript, or plain text — and AI turns it into timed words. Skip this if you don’t already have one; just analyze the audio above.`}),(0,C.jsx)(`textarea`,{style:D.textarea,value:en,onChange:e=>tn(e.target.value),placeholder:`Paste a transcript here — captions, an SRT/VTT, a YouTube transcript, or just plain text.`,rows:4,disabled:W||R}),(0,C.jsxs)(`div`,{style:D.audioBtnRow,children:[(0,C.jsx)(`button`,{className:`btn`,style:D.analyzeBtn,onClick:Hn,disabled:W||R||!en.trim(),children:nn===`parsing`?`Reading transcript…`:`✦ Parse transcript with AI ${de(Nn)}`}),en.trim()&&(0,C.jsxs)(`span`,{style:D.orSep,children:[en.trim().split(/\\s+/).length.toLocaleString(),` words pasted`]})]}),nn===`failed`&&an&&(0,C.jsxs)(`div`,{style:D.errorBox,children:[`⚠ `,an]})]}),(0,C.jsx)(`div`,{style:{marginTop:10},children:(0,C.jsx)(ye,{words:ft,onChange:Vn,readOnly:R||W},I||`no-audio`)})]}),!d&&(0,C.jsx)(`div`,{style:D.hintRow,children:ft.length===0?`Tip: analyze the audio for exact timing. You can also continue now and the shot map will use estimated timing.`:m?`${ft.length} timed words ready — every word individually time-stamped; your beats cut on exact word boundaries.`:`${ft.length} timed words ready — your shot map will match this audio exactly.`})]}),kt.open&&(0,C.jsx)(`div`,{style:D.modalOverlay,onMouseDown:()=>At(e=>({...e,open:!1})),children:(0,C.jsxs)(`div`,{style:D.modalCard,onMouseDown:e=>e.stopPropagation(),children:[(0,C.jsx)(`div`,{style:D.modalTitle,children:`Reaction GIFs for this video?`}),kt.loading?(0,C.jsx)(`div`,{style:D.modalBody,children:`Checking whether reaction GIFs fit the tone…`}):kt.error?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`div`,{style:D.modalBody,children:`Couldn’t check the tone right now. You can keep reaction GIFs on and plan them at the strip, or turn them off.`}),(0,C.jsxs)(`div`,{style:D.modalActions,children:[(0,C.jsx)(`button`,{className:`btn`,style:D.modalBtn,onClick:()=>qn({id:`skip`}),children:`Don’t turn on`}),(0,C.jsx)(`button`,{className:`btn btn-primary`,style:D.modalBtn,onClick:()=>qn({id:`proceed`,aggressiveness:Tt}),children:`Keep on`})]})]}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`div`,{style:D.modalBody,children:kt.result?.reason||(kt.result?.fit?`This tone suits quick reaction GIFs.`:`This tone is usually better without reaction GIFs.`)}),(0,C.jsx)(`div`,{style:D.modalActions,children:(kt.result?.options||[]).map(e=>{if(e.id===`edit`&&!Jn)return null;let t=e.id===`proceed`;return(0,C.jsx)(`button`,{className:`btn${t?` btn-primary`:``}`,style:D.modalBtn,onClick:()=>qn(e),title:e.hint||``,children:e.label},e.id)})})]})]})}),jt.open&&(0,C.jsx)(`div`,{style:D.modalOverlay,onMouseDown:()=>Mt(e=>({...e,open:!1})),children:(0,C.jsxs)(`div`,{style:{...D.modalCard,maxWidth:720,width:`92%`},onMouseDown:e=>e.stopPropagation(),children:[(0,C.jsx)(`div`,{style:D.modalTitle,children:`Make it GIF-viable`}),jt.loading?(0,C.jsx)(`div`,{style:D.modalBody,children:`Proposing small, style-preserving edits to open up a few reaction beats…`}):jt.error?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(`div`,{style:D.modalBody,children:[`⚠ `,jt.error]}),(0,C.jsx)(`div`,{style:D.modalActions,children:(0,C.jsx)(`button`,{className:`btn`,style:D.modalBtn,onClick:()=>Mt(e=>({...e,open:!1})),\"data-icon-action\":`true`,\"aria-label\":`Close`,title:`Close`,children:(0,C.jsx)(ne,{name:`x`,size:18})})})]}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`div`,{style:D.modalBody,children:`Additions and light rephrasing only — your style, voice, and meaning stay the same. Applying this clears the current timing analysis, so re-generate and re-analyze afterward.`}),(0,C.jsxs)(`div`,{style:D.diffCols,children:[(0,C.jsxs)(`div`,{style:D.diffCol,children:[(0,C.jsx)(`div`,{style:D.diffColHead,children:`Current`}),(0,C.jsx)(`div`,{style:D.diffText,children:jt.oldScript})]}),(0,C.jsxs)(`div`,{style:D.diffCol,children:[(0,C.jsx)(`div`,{style:D.diffColHead,children:`Proposed`}),(0,C.jsx)(`div`,{style:{...D.diffText,...D.diffTextNew},children:jt.newScript})]})]}),(0,C.jsxs)(`div`,{style:D.modalActions,children:[(0,C.jsx)(`button`,{className:`btn`,style:D.modalBtn,onClick:()=>Mt(e=>({...e,open:!1})),children:`Reject`}),(0,C.jsx)(`button`,{className:`btn btn-primary`,style:D.modalBtn,onClick:()=>Xn(jt.newScript),disabled:!String(jt.newScript).trim(),children:`Apply edits`})]})]})]})})]})}let D={container:{display:`flex`,flexDirection:`column`,height:`100%`,background:`var(--bg-secondary)`,borderRadius:`var(--radius-lg)`,overflow:`hidden`,border:`1px solid var(--border)`},header:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:`14px 20px`,borderBottom:`1px solid var(--border)`,background:`var(--bg-tertiary)`,flexShrink:0,gap:12,flexWrap:`wrap`},headerLeft:{display:`flex`,alignItems:`center`,gap:10},logoMark:{width:8,height:8,borderRadius:`50%`,background:`var(--accent)`,boxShadow:`0 0 8px var(--accent-glow)`},headerTitle:{fontWeight:600,fontSize:13,color:`var(--text-primary)`,letterSpacing:`0.01em`},headerBadge:{fontSize:11,fontWeight:600,color:`var(--accent)`,background:`var(--accent-dim)`,padding:`2px 8px`,borderRadius:20,letterSpacing:`0.05em`},headerActions:{display:`flex`,alignItems:`center`,gap:8},viewOnlyBadge:{fontSize:11,fontWeight:600,color:`var(--text-muted)`,background:`var(--bg-elevated)`,border:`1px solid var(--border)`,padding:`2px 8px`,borderRadius:20,letterSpacing:`0.05em`},confirmBtn:{fontSize:12,padding:`6px 16px`},skipBtn:{fontSize:12,padding:`6px 14px`,background:`var(--bg-elevated)`,color:`var(--text-secondary)`,border:`1px solid var(--border)`},body:{flex:1,overflowY:`auto`,padding:`16px max(20px, calc((100% - 720px) / 2))`,display:`flex`,flexDirection:`column`,gap:12,width:`100%`,boxSizing:`border-box`},card:{background:`var(--bg-tertiary)`,border:`1px solid var(--border)`,borderRadius:`var(--radius)`,padding:`14px 16px`,display:`flex`,flexDirection:`column`,gap:8},cardTitle:{fontSize:13,fontWeight:600,color:`var(--text-primary)`},cardTitleRow:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:10,flexWrap:`wrap`},cardSub:{fontSize:12,color:`var(--text-muted)`,lineHeight:1.5},handoffTitle:{margin:0,font:`200 italic 24px/1.2 var(--font-display)`,color:`var(--fg)`},handoffPreview:{whiteSpace:`pre-wrap`,overflowWrap:`anywhere`,font:`16px/1.6 var(--font-body)`,color:`var(--fg)`,background:`var(--bg-elev-1)`,border:`1px solid var(--border-tok)`,borderRadius:`var(--r-3)`,padding:14,maxHeight:240,overflowY:`auto`},handoffActions:{display:`flex`,flexWrap:`wrap`,gap:8},toggleRow:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:16},switch:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,width:46,flexShrink:0,border:`none`,background:`transparent`,cursor:`pointer`,padding:0},switchTrack:{position:`relative`,display:`block`,width:46,height:26,borderRadius:999,border:`1px solid var(--border)`,background:`var(--bg-elevated)`,transition:`background 0.15s`},switchTrackOn:{background:`var(--accent)`,borderColor:`var(--accent)`},switchKnob:{position:`absolute`,top:2,left:2,width:20,height:20,borderRadius:`50%`,background:`var(--text-primary)`,transition:`transform 0.15s`},switchKnobOn:{transform:`translateX(20px)`,background:`var(--accent-contrast, #0A0A0A)`},textarea:{width:`100%`,boxSizing:`border-box`,padding:`8px 10px`,fontSize:13,lineHeight:1.5,fontFamily:`inherit`,color:`var(--text-primary)`,background:`var(--bg-elevated)`,border:`1px solid var(--border)`,borderRadius:6,resize:`vertical`,minHeight:90,outline:`none`},charCount:{fontSize:11,color:`var(--text-muted)`,textAlign:`right`},voiceGrid:{display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(200px, 1fr))`,gap:8},voiceCard:{position:`relative`,display:`flex`,alignItems:`center`,gap:10,padding:`8px 10px`,background:`var(--bg-elevated)`,border:`1px solid var(--border)`,borderRadius:8,cursor:`pointer`},voiceBadge:{position:`absolute`,top:5,right:6,fontSize:8.5,fontWeight:800,letterSpacing:`0.02em`,padding:`1.5px 6px`,borderRadius:999,background:`var(--text-primary)`,color:`var(--bg-elevated)`,lineHeight:1.4,pointerEvents:`none`,whiteSpace:`nowrap`},voiceCardActive:{borderColor:`var(--accent)`,background:`color-mix(in oklab, var(--accent) 14%, transparent)`},voiceCardLocked:{opacity:.5,cursor:`default`},voiceLockBadge:{position:`absolute`,top:5,right:6,fontSize:8.5,fontWeight:800,letterSpacing:`0.02em`,padding:`1.5px 6px`,borderRadius:999,background:`var(--text-muted)`,color:`var(--bg-elevated)`,lineHeight:1.4,pointerEvents:`none`,whiteSpace:`nowrap`},voicePlay:{width:28,height:28,flexShrink:0,borderRadius:`50%`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,background:`var(--accent)`,color:`var(--accent-contrast, #0A0A0A)`,cursor:`pointer`,fontSize:11,fontWeight:700},voiceMeta:{flex:1,minWidth:0},voiceName:{fontSize:13,fontWeight:600,color:`var(--text-primary)`},voiceVibe:{fontSize:11,color:`var(--text-muted)`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},voiceSelect:{marginTop:2,maxWidth:`100%`,fontSize:11,color:`var(--text-secondary)`,background:`var(--bg-secondary)`,border:`1px solid var(--border)`,borderRadius:4,padding:`2px 4px`,fontFamily:`var(--font)`,cursor:`pointer`},showAllVoicesBtn:{alignSelf:`flex-start`,marginTop:8,background:`none`,border:`none`,color:`var(--accent)`,fontSize:12,fontWeight:600,cursor:`pointer`,padding:0,fontFamily:`var(--font)`,textDecoration:`underline`},voiceHead:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:8,marginBottom:8,flexWrap:`wrap`},voiceFilterRow:{display:`inline-flex`,flexWrap:`wrap`,gap:2,padding:2,background:`var(--bg-elevated)`,borderRadius:8,border:`1px solid var(--border)`},voiceFilterBtn:{background:`none`,border:`none`,color:`var(--text-muted)`,fontSize:11,fontWeight:600,padding:`4px 10px`,borderRadius:6,cursor:`pointer`,fontFamily:`var(--font)`},voiceFilterBtnOn:{background:`var(--accent)`,color:`var(--accent-contrast, #0A0A0A)`},voiceCheck:{alignSelf:`flex-end`,color:`var(--accent)`,fontWeight:700,flexShrink:0,lineHeight:1},customVoicesBlock:{marginTop:14,paddingTop:12,borderTop:`1px dashed var(--border)`,display:`flex`,flexDirection:`column`,gap:8},customVoicesHead:{fontSize:12,fontWeight:700,color:`var(--text-secondary)`},customVoiceRemove:{position:`absolute`,top:4,right:4,width:18,height:18,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`var(--bg-tertiary)`,border:`1px solid var(--border)`,color:`var(--text-muted)`,fontSize:13,lineHeight:1,borderRadius:`50%`,padding:0,cursor:`pointer`,fontFamily:`var(--font)`},speedRow:{display:`flex`,alignItems:`center`,gap:10,marginTop:4},speedLabel:{fontSize:11,color:`var(--text-muted)`,textTransform:`uppercase`,letterSpacing:`0.05em`,flexShrink:0},speedSlider:{flex:1,minWidth:0,accentColor:`var(--accent)`},speedVal:{fontSize:12,color:`var(--text-primary)`,fontVariantNumeric:`tabular-nums`,width:48,textAlign:`right`},speedReset:{width:24,height:24,padding:0,border:`1px solid var(--border)`,background:`transparent`,color:`var(--text-muted)`,borderRadius:4,cursor:`pointer`,fontSize:12},elSettings:{marginTop:10,paddingTop:10,borderTop:`1px solid var(--border)`,display:`flex`,flexDirection:`column`,gap:6},elSettingsHead:{display:`flex`,alignItems:`center`,justifyContent:`space-between`},elSliderLabel:{fontSize:11,color:`var(--text-muted)`,width:92,flexShrink:0},elBoostBtn:{padding:`3px 12px`,border:`1px solid var(--border)`,background:`transparent`,color:`var(--text-muted)`,borderRadius:999,cursor:`pointer`,fontSize:11},elBoostBtnOn:{borderColor:`var(--accent)`,color:`var(--accent)`},audioBtnRow:{display:`flex`,alignItems:`center`,gap:10,flexWrap:`wrap`},genBtn:{fontSize:12,padding:`8px 14px`},uploadBtn:{fontSize:12,padding:`8px 14px`,background:`var(--bg-elevated)`,color:`var(--text-secondary)`,border:`1px dashed var(--border)`},uploadBtnDrag:{border:`1px dashed var(--accent)`,color:`var(--accent)`,background:`var(--accent-dim)`},orSep:{fontSize:11,color:`var(--text-muted)`},elevenLink:{marginLeft:`auto`,maxWidth:280,fontSize:11,color:`var(--text-muted)`,textDecoration:`underline`,textDecorationStyle:`dotted`,lineHeight:1.4},playerWrap:{display:`flex`,flexDirection:`column`,gap:6,marginTop:4},audioEl:{width:`100%`,height:36},playerMeta:{fontSize:11,color:`var(--text-muted)`},analyzeBtn:{fontSize:12,padding:`6px 14px`,background:`var(--bg-elevated)`,color:`var(--text-secondary)`,border:`1px solid var(--border)`},analyzeBtnReady:{background:`linear-gradient(180deg, rgba(255,255,255,0.10), rgba(0,0,0,0.12)), var(--fg)`,color:`var(--bg)`,border:`1px solid var(--fg)`,boxShadow:`0 1px 6px rgba(0,0,0,0.25)`,cursor:`pointer`},disclosure:{display:`flex`,alignItems:`center`,gap:6,alignSelf:`flex-start`,background:`none`,border:`none`,color:`var(--text-secondary)`,fontSize:12,fontWeight:600,cursor:`pointer`,padding:`4px 0`,fontFamily:`var(--font)`},disclosureChevron:{fontSize:10,color:`var(--text-muted)`,width:10,display:`inline-block`,textAlign:`center`},disclosureBody:{display:`flex`,flexDirection:`column`,gap:8,paddingLeft:10,borderLeft:`2px solid var(--border)`,marginLeft:2},versionsWrap:{display:`flex`,flexDirection:`column`,gap:6,marginTop:8},versionsHead:{fontSize:11,fontWeight:600,color:`var(--text-muted)`,textTransform:`uppercase`,letterSpacing:`0.05em`},versionsList:{display:`flex`,flexDirection:`column`,gap:4,maxHeight:156,overflowY:`auto`,paddingRight:2},versionRow:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:10,padding:`7px 10px`,background:`var(--bg-elevated)`,border:`1px solid var(--border)`,borderRadius:6,cursor:`pointer`,fontFamily:`var(--font)`,textAlign:`left`,width:`100%`},versionRowActive:{borderColor:`var(--accent)`,background:`color-mix(in oklab, var(--accent) 12%, transparent)`},versionMain:{fontSize:12,fontWeight:600,color:`var(--text-primary)`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},versionMeta:{fontSize:11,color:`var(--text-muted)`,flexShrink:0,fontVariantNumeric:`tabular-nums`},errorBox:{padding:`6px 10px`,background:`rgba(247, 100, 100, 0.08)`,border:`1px solid rgba(247, 100, 100, 0.3)`,borderRadius:4,fontSize:12,color:`#e88`},hintRow:{fontSize:12,color:`var(--text-muted)`,textAlign:`center`,padding:`4px 0 8px`},gifTitleRow:{display:`flex`,alignItems:`center`,gap:6},infoGlyph:{width:16,height:16,flexShrink:0,borderRadius:`50%`,border:`1px solid var(--border)`,background:`var(--bg-elevated)`,color:`var(--text-muted)`,fontSize:10,fontStyle:`italic`,fontWeight:700,fontFamily:`Georgia, serif`,lineHeight:`14px`,textAlign:`center`,cursor:`pointer`,padding:0},infoBox:{fontSize:12,color:`var(--text-secondary)`,lineHeight:1.5,background:`var(--bg-elevated)`,border:`1px solid var(--border)`,borderRadius:6,padding:`8px 10px`,marginTop:2},modalOverlay:{position:`fixed`,inset:0,zIndex:99e3,background:`rgba(0,0,0,0.55)`,display:`flex`,alignItems:`center`,justifyContent:`center`,padding:20},modalCard:{background:`var(--bg-secondary)`,border:`1px solid var(--border)`,borderRadius:`var(--radius-lg)`,padding:`18px 20px`,maxWidth:460,width:`90%`,display:`flex`,flexDirection:`column`,gap:12,boxShadow:`0 12px 40px rgba(0,0,0,0.4)`},modalTitle:{fontSize:15,fontWeight:600,color:`var(--text-primary)`},modalBody:{fontSize:13,color:`var(--text-secondary)`,lineHeight:1.5},modalActions:{display:`flex`,gap:8,flexWrap:`wrap`,justifyContent:`flex-end`,marginTop:4},modalBtn:{fontSize:12,padding:`7px 14px`},diffCols:{display:`flex`,gap:10,flexWrap:`wrap`},diffCol:{flex:1,minWidth:220,display:`flex`,flexDirection:`column`,gap:4},diffColHead:{fontSize:11,fontWeight:600,color:`var(--text-muted)`,textTransform:`uppercase`,letterSpacing:`0.05em`},diffText:{fontSize:12,lineHeight:1.5,whiteSpace:`pre-wrap`,color:`var(--text-secondary)`,background:`var(--bg-elevated)`,border:`1px solid var(--border)`,borderRadius:6,padding:`8px 10px`,maxHeight:260,overflowY:`auto`},diffTextNew:{color:`var(--text-primary)`,borderColor:`var(--accent)`,background:`color-mix(in oklab, var(--accent) 8%, transparent)`}},Ae={ready:`saved`,dirty:`saving`,pending:`saving`,closed:`offline`},je=e=>e.sourceConflict||e.error?`conflict`:Ae[e.phase]||(e.pending||e.dirty?`saving`:`saved`);function Me(e,{shared:t=e=>e,merge:n=(e,t)=>t,debounceMs:r=0,maxWaitMs:i=1500}={}){let a=new Map,o=(e,n)=>{clearTimeout(e.timer),e.timer=null,e.first=0;let r=t(e.screen,n),i=JSON.stringify(r);e.text===null&&(e.text=JSON.stringify(e.document)),i!==e.text&&(e.document=r,e.text=i,e.binding.changed())},s=(e,t)=>{if(!(r>0))return o(e,t);let n=Date.now();e.first||=n,clearTimeout(e.timer),e.timer=setTimeout(()=>o(e,t),Math.max(0,Math.min(r,e.first+i-n)))};function c(r,i,c,l=`document`){let u=(0,g.useRef)({document:i,receive:c});u.current.receive=c;let[d,f]=(0,g.useState)(()=>({canEdit:e.getShared?.().canEdit!==!1,phase:`ready`}));return(0,g.useEffect)(()=>{let r=a.get(l);if(!r){let n={binding:null,listeners:new Set,screen:u.current.document,document:t(u.current.document,l),text:null,timer:null,first:0};r=n,a.set(l,n),n.binding=e.connectDocument({key:l,source:n.document,read:()=>n.document,replace:e=>{n.document=e,n.text=null;for(let t of n.listeners)t(e)}})}let i=e=>{let t=n(u.current.document,e,l);u.current.document=t,r.screen=t,u.current.receive?.(t)};r.listeners.add(i);let s=r.binding.onStatus(e=>f({...e,canEdit:e.canEdit!==!1}));return JSON.stringify(r.document)!==JSON.stringify(t(u.current.document,l))&&i(r.document),()=>{r.listeners.delete(i),s?.(),r.timer&&o(r,l)}},[l]),(0,g.useEffect)(()=>{let e=a.get(l);u.current.document=i,e&&e.screen!==i&&(e.screen=i,s(e,l))},[i,l]),(0,g.useMemo)(()=>({enabled:!1,canEdit:d.canEdit,status:je(d),actorId:`frame`,adoptDocument(e){let t=a.get(l);t&&(t.screen=e,u.current.document=e,o(t,l))},async persistDocument(e){let t=a.get(l);return t?(t.screen=e,u.current.document=e,o(t,l),await t.binding.flush(),{saved:!0}):{saved:!1}},getSharedBase:()=>null,pauseWorkflow:async()=>()=>{}}),[d,l])}return c.change=(e,t)=>{let n=a.get(e);if(!n||!n.listeners.size)return!1;let r=t(n.screen);if(!r||r===n.screen)return!1;for(let e of n.listeners)e(r);return n.screen=r,o(n,e),!0},c}function Ne(e){return function(t,n,r,i){let a=(0,g.useRef)({script:n,setScript:r,onRemote:i});a.current={script:n,setScript:r,onRemote:i};let o=e(t,(0,g.useMemo)(()=>({script:n}),[n]),e=>{typeof e?.script==`string`&&e.script!==a.current.script&&(a.current.script=e.script,a.current.setScript(e.script),a.current.onRemote?.(e.script))},`script`);return(0,g.useMemo)(()=>({...o,persistScript:e=>o.persistDocument({script:e})}),[o])}}let Pe=/~?\\s*(\\d{1,4}(?:,\\d{3})*)\\s*(?:cr|credits?)\\b/gi;function Fe(e){let t=0;for(let n of String(e||``).matchAll(Pe))t=Math.max(t,Number(n[1].replace(/,/g,``)));return t}function Ie({bridge:e=null}={}){let t=[],n=null,r=e=>new Promise(r=>{t.push({...e,resolve:r}),n?.()}),i=e=>typeof e==`string`?e:String(e?.message||e||``),a=(t,n)=>e.allowSpending({credits:t,label:n.replace(/\\s+/g,` `).trim().slice(0,120)}),o=[],s=0,c=e=>t=>{let r=i(t).trim();if(!r)return;let a=++s;o.push({id:a,tone:e,text:r}),o.length>3&&o.shift(),n?.(),e!==`error`&&setTimeout(()=>l(a),6e3)},l=e=>{let t=o.findIndex(t=>t.id===e);t>=0&&(o.splice(t,1),n?.())},u=Object.freeze({success:c(`success`),error:c(`error`),info:c(`info`),warn:c(`warn`)}),d=Object.freeze({alert:(e,t={})=>r({kind:`alert`,message:i(e),title:t.title||``,confirmLabel:t.confirmLabel||`OK`}).then(()=>void 0),async confirm(t,n={}){let o=i(t),s=typeof e?.allowSpending==`function`?Fe(o):0;if(s>0)try{return(await a(s,o)).allowed}catch{}return r({kind:`confirm`,message:o,title:n.title||``,confirmLabel:n.confirmLabel||`Continue`,cancelLabel:n.cancelLabel||`Cancel`,credits:s})}});function f(){let[,e]=(0,g.useState)(0);(0,g.useEffect)(()=>(n=()=>e(e=>e+1),()=>{n=null}),[]);let r=t[0];(0,g.useEffect)(()=>{if(!r)return;let e=e=>{e.key===`Escape`&&(e.stopPropagation(),s(r.kind===`alert`))};return addEventListener(`keydown`,e,!0),()=>removeEventListener(`keydown`,e,!0)});let i=o.length>0&&(0,C.jsx)(`div`,{role:`status`,\"aria-live\":`polite`,style:Le.notices,children:o.map(e=>(0,C.jsxs)(`div`,{style:{...Le.notice,...e.tone===`error`?Le.noticeError:{}},children:[e.text,e.tone===`error`&&(0,C.jsx)(`button`,{type:`button`,\"aria-label\":`Close`,style:Le.noticeClose,onClick:()=>l(e.id),children:`×`})]},e.id))});if(!r)return i||null;let s=n=>{t.shift(),e(e=>e+1),n===!0&&r.credits>0?a(r.credits,r.message).then(e=>r.resolve(e.allowed),()=>r.resolve(!0)):r.resolve(n)};return(0,C.jsxs)(C.Fragment,{children:[i,(0,C.jsx)(`div`,{role:`presentation`,style:Le.backdrop,onClick:e=>{e.target===e.currentTarget&&s(r.kind===`alert`)},children:(0,C.jsxs)(`div`,{role:`dialog`,\"aria-modal\":`true`,\"aria-label\":r.title||`Message`,style:Le.box,children:[r.title&&(0,C.jsx)(`strong`,{style:Le.title,children:r.title}),(0,C.jsx)(`p`,{style:Le.message,children:r.message}),(0,C.jsxs)(`div`,{style:Le.actions,children:[r.kind===`confirm`&&(0,C.jsx)(`button`,{type:`button`,className:`btn btn-secondary`,onClick:()=>s(!1),children:r.cancelLabel}),(0,C.jsx)(`button`,{type:`button`,className:`btn btn-primary`,autoFocus:!0,onClick:()=>s(!0),children:r.confirmLabel})]})]})})]})}return{ui:d,toast:u,DialogHost:f}}let Le={backdrop:{position:`fixed`,inset:0,background:`var(--scrim)`,display:`grid`,placeItems:`center`,padding:16,zIndex:1e3},box:{background:`var(--bg-elev-1)`,color:`var(--fg)`,border:`1px solid var(--border-tok)`,borderRadius:`var(--r-3)`,padding:20,maxWidth:420,width:`100%`,display:`grid`,gap:12},title:{fontSize:16},message:{margin:0,lineHeight:1.5,whiteSpace:`pre-wrap`},actions:{display:`flex`,gap:8,justifyContent:`flex-end`,flexWrap:`wrap`},notices:{position:`fixed`,left:16,right:16,bottom:16,display:`grid`,justifyItems:`center`,gap:8,zIndex:1001,pointerEvents:`none`},notice:{background:`var(--fg)`,color:`var(--bg)`,borderRadius:`var(--r-3)`,padding:`10px 14px`,maxWidth:480,lineHeight:1.4,display:`flex`,gap:10,alignItems:`flex-start`,pointerEvents:`auto`},noticeClose:{background:`none`,border:0,color:`inherit`,font:`inherit`,cursor:`pointer`,padding:0,lineHeight:1},noticeError:{background:`var(--danger)`,color:`var(--bg)`}},Re=Object.freeze({video:3,build:3,media:4.5,other:3,chat:2}),ze=(e,t)=>Math.max(0,Number(e)||0)*Re[t]/.02180909090909091,Be=(e,t)=>Math.max(1,Math.ceil(ze(e,t)-1e-9)),O=`2026-11-05`,Ve=`carried`;Object.freeze({\"veo-3.1-lite\":{usd:.05,resolution:{\"720p\":1,\"1080p\":1.6},provider:`Atlas`,checked:O,source:`Atlas catalog list price $0.05/s; 1080p at $0.08/s, Google's Veo 3.1 Lite step`},\"vidu-q3-turbo\":{usd:.04,provider:`Atlas`,checked:O,source:`Atlas catalog list price (we pay $0.034)`},\"wan-2.6-flash\":{usd:.025,provider:`Atlas`,checked:O,source:`Atlas catalog list price (we pay $0.018)`},\"wan-2.7\":{usd:.17,provider:`Higgsfield, then Atlas`,checked:Ve,source:`Atlas $0.10/s at 720p (checked); the 1.7x step to the 1080p we generate is carried from the old table`},\"kling-v3-turbo\":{usd:.112,provider:`Higgsfield, then Atlas`,checked:O,source:`Atlas catalog list price (we pay $0.095); Higgsfield $0.056/s on promotion`},\"seedance-2.0\":{usd:.2,resolution:{\"480p\":1,\"720p\":1.3,\"1080p\":3.2,\"4k\":7.5},provider:`BytePlus Ark`,checked:Ve,source:`Ark is priced per token and its price page does not load without an account; carried from the old table (verify against an Ark invoice)`},\"seedance-2.0-fast\":{usd:.09,resolution:{\"480p\":1,\"720p\":1.3},provider:`BytePlus Ark`,checked:Ve,source:`carried from the old table (Atlas lists $0.09/s)`},\"seedance-2.0-mini\":{usd:.09,resolution:{\"480p\":1,\"720p\":1.3},provider:`BytePlus Ark`,checked:Ve,source:`priced as Fast, carried from the old table (Atlas lists $0.056/s)`}}),Object.freeze({\"seedance-2\":`seedance-2.0`,\"kling-3\":`kling-v3-turbo`,\"kling-v3-pro\":`kling-v3-turbo`,\"kling-v3-std\":`kling-v3-turbo`,\"kling-o3-std\":`kling-v3-turbo`}),Object.freeze({\"gpt-image-2\":{quality:{low:{\"1K\":.006,\"2K\":.007,\"4K\":.012},medium:{\"1K\":.053,\"2K\":.056,\"4K\":.101},high:{\"1K\":.211,\"2K\":.222,\"4K\":.401}},referenceUsd:.02,provider:`OpenAI for square, fal then Atlas for other shapes`,checked:O,source:`fal gpt-image-2 price table (dearest size in each class); OpenAI direct is $30 per million output tokens`},\"gpt-image-2.5-flare\":{quality:{low:{\"1K\":.00588,\"2K\":.00615,\"4K\":.01113},medium:{\"1K\":.01317,\"2K\":.01434,\"4K\":.02595},high:{\"1K\":.05268,\"2K\":.05529,\"4K\":.10008}},referenceUsd:.02,provider:`OpenAI for square, fal for other shapes`,checked:`2026-11-06`,source:`fal openai/gpt-image-2.5/flare price table; OpenAI rate card $30 per million output tokens`},\"gpt-image-2.5-sunburst\":{quality:{low:{\"1K\":.00588,\"2K\":.00615,\"4K\":.01113},medium:{\"1K\":.01317,\"2K\":.01434,\"4K\":.02595},high:{\"1K\":.05268,\"2K\":.05529,\"4K\":.10008}},referenceUsd:.02,provider:`OpenAI for square, fal for other shapes`,checked:`2026-11-06`,source:`fal openai/gpt-image-2.5/sunburst price table; OpenAI rate card $30 per million output tokens`},\"gpt-image-2.6-flare\":{quality:{low:{\"1K\":.00588,\"2K\":.00615,\"4K\":.01113},medium:{\"1K\":.01317,\"2K\":.01434,\"4K\":.02595},high:{\"1K\":.05268,\"2K\":.05529,\"4K\":.10008}},referenceUsd:.02,provider:`OpenAI for square, fal for other shapes`,checked:`2026-11-07`,source:`OpenAI and fal gpt-image-2.6 token rates ($30 per million output tokens); per-image price taken from 2.5 until published`},\"gpt-image-2.6-sunburst\":{quality:{low:{\"1K\":.00588,\"2K\":.00615,\"4K\":.01113},medium:{\"1K\":.01317,\"2K\":.01434,\"4K\":.02595},high:{\"1K\":.05268,\"2K\":.05529,\"4K\":.10008}},referenceUsd:.02,provider:`OpenAI for square, fal for other shapes`,checked:`2026-11-07`,source:`OpenAI and fal gpt-image-2.6 token rates ($30 per million output tokens); per-image price taken from 2.5 until published`},\"gpt-image-1.5\":{quality:{low:{\"1K\":.013},medium:{\"1K\":.051},high:{\"1K\":.2}},provider:`fal`,checked:O,source:`fal price for a non-square image`},\"nano-banana-2\":{usd:.08,resolution:{\"1K\":1,\"2K\":1.5,\"4K\":2},provider:`fal`,checked:O,source:`fal: $0.08 at 1K, 1.5x at 2K, 2x at 4K`},\"nano-banana-2-lite\":{usd:.048,provider:`fal`,checked:O,source:`fal: $37.50 per million output tokens, one 1K image (about 1,290 tokens)`},\"nano-banana-pro\":{usd:.15,resolution:{\"1K\":1,\"2K\":1,\"4K\":2},provider:`fal`,checked:O,source:`fal: $0.15, 4K at double`},\"kling-image-v3\":{usd:.028,provider:`fal`,checked:O,source:`fal: $0.028 per image`},\"seedream-v4.5\":{usd:.04,provider:`fal`,checked:O,source:`fal: $0.04 per image`},\"flux-step\":{usd:.02,provider:`fal`,checked:Ve,source:`carried from the old table`},flux:{usd:.04,provider:`fal`,checked:Ve,source:`carried from the old table`},ideogram:{usd:.08,provider:`fal`,checked:Ve,source:`carried from the old table`},gemini:{usd:.08,resolution:{\"1K\":1,\"2K\":1.5,\"4K\":2},provider:`fal`,checked:O,source:`served as Nano Banana 2`}});let He=Object.freeze({deepgram:{usdPer1kChars:.03,checked:O,source:`Deepgram Aura-2 pay as you go`},openai:{usdPer1kChars:.015,checked:O,source:`OpenAI tts-1, $15 per million characters`},elevenlabs:{usdPer1kChars:.04,checked:O,source:`ElevenLabs API, Flash / Turbo`},kokoro:{usdPer1kChars:.02,checked:O,source:`fal Kokoro`}});Object.freeze({usdPerSecond:2e-4,checked:O,source:`fal ACE-Step, per second of audio`}),Object.freeze({usdPerSecond:.002,checked:O,source:`fal ElevenLabs sound effects v2, per second`}),Object.freeze({\"openai/gpt-5-mini\":{input:.25,output:2},\"google/gemini-2.5-flash\":{input:.3,output:2.5},\"anthropic/claude-haiku-5.5\":{input:.1,output:.5},\"anthropic/claude-sonnet-4\":{input:3,output:15},\"anthropic/claude-sonnet-4.5\":{input:3,output:15},\"anthropic/claude-sonnet-5.5\":{input:2,output:10},\"openai/gpt-5.4\":{input:2.5,output:15},\"google/gemini-2.5-pro\":{input:1.25,output:10},\"x-ai/grok-4.5\":{input:2,output:6},\"x-ai/grok-4.20\":{input:1.25,output:2.5},\"anthropic/claude-opus-4.1\":{input:15,output:75},\"anthropic/claude-opus-4.5\":{input:5,output:25},\"anthropic/claude-opus-4.8\":{input:5,output:25},\"openai/gpt-5.5\":{input:5,output:30}}),Object.freeze({input:2e3,output:1e3}),Object.freeze({input:1e4,output:4096});let k=(e,t,n,r,i={})=>Object.freeze({usd:e,tier:t,unit:n,source:r,checked:i.checked||Ve,...i}),Ue=Object.freeze({\"media:analyze\":k(.02,`media`,`call`,`the vision provider caps a call at $0.02 (VISION_MAX_INITIAL_COST)`,{checked:O}),\"media:check\":k(.005,`media`,`call`,`four photos at most, $0.00125 each (MEDIA_CHECK_IMAGE_USD)`,{checked:O}),\"research:search\":k(.008,`media`,`search`,`Tavily basic search`,{checked:O}),\"research:summarize\":k(.01,`media`,`call`,`one Gemini Flash read of fetched pages`,{estimate:!0}),\"transcribe:timestamp\":k(.01,`media`,`run`,`fal Whisper word timing`,{estimate:!0}),\"transcribe:upload\":k(.01,`media`,`run`,`fal Whisper word timing`,{estimate:!0}),\"transcribe:captions\":k(.01,`media`,`run`,`fal Whisper word timing`,{estimate:!0}),\"connection:action\":k(.012,`other`,`action`,`a premium Composio tool call at the overage rate`,{checked:O}),\"automation:app-event\":k(.003,`other`,`event`,`Composio, per trigger event`,{checked:O}),\"automation:app-check\":k(3e-4,`other`,`check`,`Composio, per tool call`,{checked:O}),llm:k(.01,`other`,`call`,`a Standard model call`,{estimate:!0}),vision:k(.01,`other`,`image`,`one vision read`,{estimate:!0}),\"narrative:compile\":k(.06,`other`,`script`,`about ten Gemini Flash calls`,{estimate:!0}),\"narrative:compile-research\":k(.1,`other`,`script`,`the compile plus three Tavily searches and a dossier`,{estimate:!0}),\"narrative:learn-voice\":k(.01,`other`,`call`,`one extraction call`,{estimate:!0}),\"roughcut:base\":k(.05,`other`,`run`,`segmentation and matching`,{estimate:!0}),\"roughcut:per-min\":k(.015,`other`,`footage minute`,`Gemini Flash frame reads`,{estimate:!0}),\"finaledit:base\":k(.06,`other`,`run`,`polish decisions`,{estimate:!0}),\"finaledit:per-min\":k(.02,`other`,`video minute`,`Gemini Flash scan`,{estimate:!0}),\"aomotion:base\":k(.06,`other`,`run`,`motion graphics pass`,{estimate:!0}),\"aomotion:per-min\":k(.02,`other`,`video minute`,`motion graphics pass`,{estimate:!0}),\"aomotion:base:opus\":k(.12,`other`,`run`,`motion graphics pass on Opus`,{estimate:!0}),\"aomotion:per-min:opus\":k(.04,`other`,`video minute`,`motion graphics pass on Opus`,{estimate:!0}),motiongraphic:k(.015,`other`,`graphic`,`one small call`,{estimate:!0}),\"transcript:parse\":k(.005,`other`,`1,000 characters`,`Gemini Flash word timing`,{estimate:!0}),\"vibe-edit\":k(.02,`other`,`turn`,`Flash region scan and decision`,{estimate:!0}),\"canvas:context-connect\":k(.01,`other`,`run`,`one canvas read`,{estimate:!0}),\"anim2:plan\":k(.03,`other`,`video`,`shot planning`,{estimate:!0}),\"anim2:vibe\":k(.03,`other`,`turn`,`scene vibe turn`,{estimate:!0}),\"anim2:qa\":k(.03,`other`,`frame`,`vision QA`,{estimate:!0}),\"anim2:trigger\":k(.01,`other`,`scene`,`one Haiku call`,{estimate:!0}),\"gif:plan\":k(.03,`other`,`pass`,`GIF planning`,{estimate:!0}),\"canvas:plan\":k(.03,`other`,`pass`,`collage planning`,{estimate:!0}),\"canvasChat:build\":k(.03,`other`,`build`,`canvas chat orchestration`,{estimate:!0}),\"strip:plan\":k(.05,`other`,`pass`,`strip planning`,{estimate:!0}),\"panel:qa\":k(.03,`other`,`pass`,`style-consistency vision pass`,{estimate:!0})});Object.freeze({standard:.4,balanced:.85,reasoning:.5,premium:1.4}),Object.freeze({build:.1,chat:.005,other:.05});function We({chars:e,seconds:t,provider:n=`deepgram`}={}){return(He[n]||He.elevenlabs).usdPer1kChars*(Number(e)>0?Number(e):Math.max(1,Number(t)||30)*12.5)/1e3}let Ge=[{id:`asteria`,label:`Asteria`,vibe:`Clear, confident female`,accent:`American`,gender:`female`,provider:`deepgram`,apiId:`aura-2-asteria-en`,sampleUrl:`https://v3b.fal.media/files/b/0a9d0758/3HH_BFTlx9Lj5ZyETT3cM_1780631929430.mpeg`},{id:`adam`,label:`Adam`,vibe:`Dominant, firm male`,accent:`American`,gender:`male`,provider:`elevenlabs`,apiId:`pNInz6obpgDQGcFmaJgB`,model:`eleven_flash_v2_5`,sampleUrl:`https://storage.googleapis.com/eleven-public-prod/premade/voices/pNInz6obpgDQGcFmaJgB/d6905d7a-dd26-4187-bfff-1bd3a5ea7cac.mp3`},{id:`liam-social`,label:`Liam · Social`,vibe:`Energetic — reels & shorts`,accent:`American`,gender:`male`,provider:`elevenlabs`,apiId:`TX3LPaxmHKxFdv7VOQHJ`,model:`eleven_flash_v2_5`,sampleUrl:`https://storage.googleapis.com/eleven-public-prod/premade/voices/TX3LPaxmHKxFdv7VOQHJ/63148076-6363-42db-aea8-31424308b92c.mp3`},{id:`jake`,label:`Jake`,vibe:`Deep, smooth, dramatic`,accent:`American`,gender:`male`,provider:`elevenlabs`,apiId:`ev2kMR9ZJZZsemuogS5u`,model:`eleven_flash_v2_5`,libraryVoice:!0,sampleUrl:`https://storage.googleapis.com/eleven-public-prod/database/workspace/8b0d34c23a9a42acb0215569d54bf145/voices/ev2kMR9ZJZZsemuogS5u/PxQGC0wpl8AJ49BX0uSd.mp3`},{id:`liam-viral`,label:`Liam · Viral`,vibe:`Hyped short-form storyteller`,accent:`American`,gender:`male`,provider:`elevenlabs`,apiId:`VCgLBmBjldJmfphyB8sZ`,model:`eleven_flash_v2_5`,libraryVoice:!0,sampleUrl:`https://api.us.elevenlabs.io/v1/voices/VCgLBmBjldJmfphyB8sZ/previews/audio?payload=eyJ2b2ljZV9zb3VyY2UiOiJjdXN0b20iLCJ3b3Jrc3BhY2VfaWQiOiIyMGQyY2YwM2Y2MzM0MjIyODVlYWE4MjlhZTcwMTIyMCIsImZpbGVuYW1lIjoiTUdOek1CSFpJM0JJREFFOGN6MzgubXAzIiwidGltZXN0YW1wIjoxNzg0NTY2ODAwMDAwMDAwfQ%3D%3D`},{id:`brian`,label:`Brian`,vibe:`Deep, resonant, comforting`,accent:`American`,gender:`male`,provider:`elevenlabs`,apiId:`Gubgw9l4dtIoQA9YZHgx`,model:`eleven_flash_v2_5`,libraryVoice:!0,sampleUrl:`https://storage.googleapis.com/eleven-public-prod/database/workspace/bb3de32d375e4462a5d1aebc77eb7b0a/voices/Gubgw9l4dtIoQA9YZHgx/0tEqW9hX1QsyouhvnTSQ.mp3`},{id:`mark-natural`,label:`Mark · Natural`,vibe:`Natural conversations`,group:`Mark`,groupLabel:`Natural conversations`,groupDefault:!0,accent:`American`,gender:`male`,provider:`elevenlabs`,apiId:`UgBBYS2sOqTuMpoF3BR0`,model:`eleven_flash_v2_5`,libraryVoice:!0,sampleUrl:`https://storage.googleapis.com/eleven-public-prod/database/workspace/f94e260200764678babc807b935bfb0b/voices/UgBBYS2sOqTuMpoF3BR0/0Oc7jiXwWN9kRTXfQsmw.mp3`},{id:`mark-casual`,label:`Mark · Casual`,vibe:`Casual, relaxed & light`,group:`Mark`,groupLabel:`Casual, relaxed & light`,accent:`American`,gender:`male`,provider:`elevenlabs`,apiId:`1SM7GgM6IMuvQlz2BwM3`,model:`eleven_flash_v2_5`,libraryVoice:!0,sampleUrl:`https://api.us.elevenlabs.io/v1/voices/1SM7GgM6IMuvQlz2BwM3/previews/audio?payload=eyJ2b2ljZV9zb3VyY2UiOiJjdXN0b20iLCJ3b3Jrc3BhY2VfaWQiOiJmOTRlMjYwMjAwNzY0Njc4YmFiYzgwN2I5MzViZmIwYiIsImZpbGVuYW1lIjoieTk0RzFyR2l4YXFMMkZ2UDNUdGUubXAzIiwidGltZXN0YW1wIjoxNzg0NTY2ODAwMDAwMDAwfQ%3D%3D`},{id:`mark-plain`,label:`Mark · Wise`,vibe:`Wise, social`,group:`Mark`,groupLabel:`Wise, social`,accent:`American`,gender:`male`,provider:`elevenlabs`,apiId:`WTUK291rZZ9CLPCiFTfh`,model:`eleven_flash_v2_5`,libraryVoice:!0,sampleUrl:`https://storage.googleapis.com/eleven-public-prod/database/workspace/f94e260200764678babc807b935bfb0b/voices/WTUK291rZZ9CLPCiFTfh/bnnCGcGCSiY3m9CS9dGc.mp3`},{id:`onyx`,label:`Onyx`,vibe:`Deep, steady male narrator`,accent:`American`,gender:`male`,provider:`openai`,apiId:`onyx`,sampleUrl:null},{id:`nova`,label:`Nova`,vibe:`Bright, clear female narrator`,accent:`American`,gender:`female`,provider:`openai`,apiId:`nova`,sampleUrl:null},{id:`luna`,label:`Luna`,vibe:`Friendly, youthful female`,accent:`American`,gender:`female`,provider:`deepgram`,apiId:`aura-2-luna-en`,sampleUrl:`https://v3b.fal.media/files/b/0a9d0759/9_5Fefw5yUv4sjGK-igBK_1780631932143.mpeg`},{id:`odysseus`,label:`Odysseus`,vibe:`Calm, smooth, professional male`,accent:`American`,gender:`male`,provider:`deepgram`,apiId:`aura-2-odysseus-en`,sampleUrl:`https://v3b.fal.media/files/b/0a9d0759/yPWfpKDmdT-VMvrXWs_ng_1780631934630.mpeg`},{id:`aurora`,label:`Aurora`,vibe:`Cheerful, expressive female`,accent:`American`,gender:`female`,provider:`deepgram`,apiId:`aura-2-aurora-en`,sampleUrl:`https://v3b.fal.media/files/b/0a9d0759/A9EzRcZ3vygk9G4OKKO2m_1780631936861.mpeg`},{id:`apollo`,label:`Apollo`,vibe:`Confident, comfortable male`,accent:`American`,gender:`male`,provider:`deepgram`,apiId:`aura-2-apollo-en`,sampleUrl:`https://v3b.fal.media/files/b/0a9d0759/_Nh9G3zPiE6-y-QUQ9HDQ_1780631939579.mpeg`},{id:`thalia`,label:`Thalia`,vibe:`Confident, energetic female`,accent:`American`,gender:`female`,provider:`deepgram`,apiId:`aura-2-thalia-en`,sampleUrl:`https://v3b.fal.media/files/b/0a9d075a/DyK_ByXlX3jPh1k_YEtRv_1780631941792.mpeg`},{id:`atlas`,label:`Atlas`,vibe:`Enthusiastic, confident male`,accent:`American`,gender:`male`,provider:`deepgram`,apiId:`aura-2-atlas-en`,sampleUrl:`https://v3b.fal.media/files/b/0a9d075e/JhBmHpZbkTv_YXycAY61j_1780631944143.mpeg`},{id:`hera`,label:`Hera`,vibe:`Warm, professional female`,accent:`American`,gender:`female`,provider:`deepgram`,apiId:`aura-2-hera-en`,sampleUrl:`https://v3b.fal.media/files/b/0a9d075a/lZYwGtSbUzeKyuONn7MjS_1780631946601.mpeg`},{id:`arcas`,label:`Arcas`,vibe:`Natural, smooth male`,accent:`American`,gender:`male`,provider:`deepgram`,apiId:`aura-2-arcas-en`,sampleUrl:`https://v3b.fal.media/files/b/0a9d075f/7dZg4RASSJLWSmiUmozjN_1780631949000.mpeg`},{id:`cora`,label:`Cora`,vibe:`Smooth, melodic female`,accent:`American`,gender:`female`,provider:`deepgram`,apiId:`aura-2-cora-en`,sampleUrl:`https://v3b.fal.media/files/b/0a9d075b/WBYfx_LAlhQxZ1vI5uZ8q_1780631951822.mpeg`},{id:`zeus`,label:`Zeus`,vibe:`Deep, trustworthy male`,accent:`American`,gender:`male`,provider:`deepgram`,apiId:`aura-2-zeus-en`,sampleUrl:`https://v3b.fal.media/files/b/0a9d075b/44QNHx44Ot4UBsYpm0lMK_1780631954245.mpeg`},{id:`orion`,label:`Orion`,vibe:`Approachable, calm male`,accent:`American`,gender:`male`,provider:`deepgram`,apiId:`aura-2-orion-en`,sampleUrl:`https://v3b.fal.media/files/b/0a9d075b/NNybdHumjI9O4xittIQIJ_1780631957264.mpeg`}],Ke=`asteria`;function qe(e){let t=String(e||``);return Ge.some(e=>e.id===t)?t:t===`am_adam`?`adam`:/^[ab]m[_-]/i.test(t)?`odysseus`:/^[ab]f[_-]/i.test(t)?`asteria`:/^[A-Za-z0-9]{20}$/.test(t)?t:Ke}function Je(e){return Ge.find(t=>t.id===qe(e))}function A(e){return!!e?.libraryVoice}function j(e){return e?e.kind===`group`?(e.versions||[]).length>0&&e.versions.every(A):A(e.voice):!1}function Ye(e){return[...e||[]].sort((e,t)=>+!!j(e)-!!j(t))}function Xe(e){let t=[],n=new Map;for(let r of e||[])if(r.group){let e=n.get(r.group);if(e==null)n.set(r.group,t.length),t.push({kind:`group`,group:r.group,versions:[r],defaultId:r.groupDefault?r.id:null});else{let n=t[e];n.versions.push(r),r.groupDefault&&(n.defaultId=r.id)}}else t.push({kind:`single`,voice:r});for(let e of t)e.kind===`group`&&!e.defaultId&&(e.defaultId=e.versions[0].id);return t}function M(e,t){return e.findIndex(e=>e.kind===`group`?e.versions.some(e=>e.id===t):e.voice.id===t)}function Ze(e,t=1,n){let r=String(e||``).trim().length;if(!r)return 0;let i=Je(n)?.provider||(/^[A-Za-z0-9]{20}$/.test(String(n||``))?`elevenlabs`:`deepgram`);return Be(We({chars:r,provider:i}),`media`)}function Qe({words:e=[],onChange:t,readOnly:n=!1}){let[r,i]=(0,g.useState)(!1),[a,o]=(0,g.useState)(null),[s,c]=(0,g.useState)(!1),[l,u]=(0,g.useState)(`lines`),d=Array.isArray(e)?e:[],f=tt(d);return(0,C.jsxs)(`div`,{style:N.wrap,children:[(0,C.jsxs)(`div`,{style:N.head,children:[(0,C.jsx)(`span`,{style:N.headTitle,children:`Transcript`}),f.length>0&&(0,C.jsx)(`span`,{style:N.headDur,children:l===`words`?`${d.length} timed words`:`${f.length} line${f.length===1?``:`s`}`}),(0,C.jsx)(`span`,{style:{flex:1}}),t&&d.length>0&&(0,C.jsx)(`button`,{type:`button`,style:N.copy,disabled:n,onClick:()=>{i(e=>!e),o(null),u(`words`)},\"aria-pressed\":r,children:r?`Done editing`:`Edit words`}),f.length>0&&(0,C.jsx)(`div`,{style:N.viewToggle,title:`Lines groups words into readable phrases; Words shows every word's own timestamp — the timing your beats cut on`,children:[`lines`,`words`].map(e=>(0,C.jsx)(`button`,{type:`button`,onClick:()=>u(e),style:{...N.viewBtn,...l===e?N.viewBtnOn:{}},children:e===`lines`?`Lines`:`Words`},e))}),f.length>0&&(0,C.jsx)(`button`,{type:`button`,style:N.copy,onClick:async()=>{let e=l===`words`?d.map(e=>`${nt(e.start)} ${String(e.text??``).trim()}`).join(`\n`):f.map(e=>`${nt(e.start)} ${e.text}`).join(`\n`);if(e)try{await navigator.clipboard.writeText(e),c(!0),setTimeout(()=>c(!1),1500)}catch{}},title:`Copy the full transcript with timestamps`,children:s?`✓ Copied`:`Copy`})]}),(0,C.jsxs)(`div`,{style:l===`words`?N.wordList:N.list,children:[f.length===0&&(0,C.jsx)(`div`,{style:N.empty,children:`No transcript yet — analyze the audio.`}),l===`words`?d.map((e,i)=>r&&t&&a===i?(0,C.jsx)(et,{word:e,index:i,readOnly:n,onCommit:e=>t(d.map((t,n)=>n===i?e:t))},i):r&&t?(0,C.jsxs)(`button`,{type:`button`,disabled:n,style:N.wordChip,\"aria-label\":`Edit word ${i+1}: ${e.text}`,onClick:()=>o(i),children:[(0,C.jsx)(`span`,{style:N.wordStamp,children:nt(e.start)}),(0,C.jsx)(`span`,{style:N.wordText,children:String(e.text??``).trim()})]},i):(0,C.jsxs)(`span`,{style:N.wordChip,children:[(0,C.jsx)(`span`,{style:N.wordStamp,children:nt(e.start)}),(0,C.jsx)(`span`,{style:N.wordText,children:String(e.text??``).trim()})]},i)):f.map((e,t)=>(0,C.jsxs)(`div`,{style:N.row,children:[(0,C.jsx)(`span`,{style:N.time,children:nt(e.start)}),(0,C.jsx)(`span`,{style:N.text,children:e.text})]},t))]})]})}let $e={display:`block`,padding:`6px 8px`,border:`1px solid var(--border)`,borderRadius:5,background:`var(--bg-primary)`,color:`var(--text-primary)`,font:`inherit`};function et({word:e,index:t,readOnly:n,onCommit:r}){let[i,a]=(0,g.useState)(e),[o,s]=(0,g.useState)(e.text),[c,l]=(0,g.useState)(String(e.start)),[u,d]=(0,g.useState)(String(e.end)),[f,p]=(0,g.useState)(``),m=e.text!==i.text||e.start!==i.start||e.end!==i.end,h=()=>{a(e),s(e.text),l(String(e.start)),d(String(e.end)),p(``)};return(0,C.jsxs)(`form`,{onSubmit:t=>{if(t.preventDefault(),n||m)return;let i=Number(c),l=Number(u);if(!o.trim()||o.length>2e3||!c.trim()||!u.trim()||!Number.isFinite(i)||!Number.isFinite(l)||i<0||l<i||l>172800){p(`Enter text and valid times: end must be at or after start.`);return}let d={...e,text:o.trim(),start:i,end:l};a(d),s(d.text),p(``),r(d)},style:{display:`flex`,flexWrap:`wrap`,gap:6,padding:8,border:`1px solid var(--border)`,borderRadius:6,width:`100%`,boxSizing:`border-box`},children:[(0,C.jsxs)(`label`,{style:{flex:`1 1 120px`},children:[`Word `,t+1,(0,C.jsx)(`input`,{\"aria-label\":`Word ${t+1}`,value:o,disabled:n||m,onChange:e=>s(e.target.value),style:{...$e,width:`100%`,boxSizing:`border-box`}})]}),(0,C.jsxs)(`label`,{children:[`Start (s)`,(0,C.jsx)(`input`,{\"aria-label\":`Start for word ${t+1}`,inputMode:`decimal`,value:c,disabled:n||m,onChange:e=>l(e.target.value),style:{...$e,width:70}})]}),(0,C.jsxs)(`label`,{children:[`End (s)`,(0,C.jsx)(`input`,{\"aria-label\":`End for word ${t+1}`,inputMode:`decimal`,value:u,disabled:n||m,onChange:e=>d(e.target.value),style:{...$e,width:70}})]}),(0,C.jsx)(`button`,{type:`submit`,className:`btn btn-primary`,style:{alignSelf:`end`},disabled:n||m,children:`Save word`}),m&&(0,C.jsxs)(`div`,{role:`status`,children:[`This word changed while you were editing. `,(0,C.jsx)(`button`,{type:`button`,onClick:h,children:`Load current word`})]}),f&&(0,C.jsx)(`div`,{role:`alert`,children:f})]})}function tt(e){let t=[],n=null;for(let r=0;r<e.length;r++){let i=e[r],a=String(i.text??``).trim();if(!a)continue;let o=Number(i.start)||0,s=Number.isFinite(Number(i.end))?Number(i.end):o;n?(n.text+=(/^[.,!?;:]/.test(a)?``:` `)+a,n.end=s):n={start:o,end:s,text:a};let c=/[,.!?;:][\"')\\]]?$/.test(a),l=e[r+1],u=l&&(Number(l.start)||0)-s>=.4;(c||u||!l)&&(t.push(n),n=null)}return t}function nt(e){let t=Math.max(0,Number(e)||0),n=Math.floor(t/60);return`${n}:${(t-n*60).toFixed(1).padStart(4,`0`)}`}let N={wrap:{border:`1px solid var(--border)`,borderRadius:`var(--radius)`,background:`var(--bg-tertiary)`,overflow:`hidden`},head:{display:`flex`,flexWrap:`wrap`,alignItems:`baseline`,gap:10,padding:`8px 12px`,borderBottom:`1px solid var(--border)`},headTitle:{fontSize:12,fontWeight:600,color:`var(--text-primary)`},headDur:{whiteSpace:`nowrap`,fontSize:11,color:`var(--text-muted)`,fontVariantNumeric:`tabular-nums`},copy:{padding:`3px 10px`,border:`1px solid var(--border)`,background:`var(--bg-elevated)`,color:`var(--text-primary)`,borderRadius:6,cursor:`pointer`,fontSize:11,fontFamily:`inherit`,fontWeight:600,alignSelf:`center`},list:{maxHeight:300,overflowY:`auto`,padding:8,display:`flex`,flexDirection:`column`,gap:5},viewToggle:{display:`flex`,flexShrink:0,gap:0,border:`1px solid var(--border)`,borderRadius:6,overflow:`hidden`,alignSelf:`center`},viewBtn:{padding:`3px 10px`,border:`none`,background:`transparent`,color:`var(--text-muted)`,cursor:`pointer`,fontSize:11,fontFamily:`inherit`,fontWeight:600},viewBtnOn:{background:`var(--bg-elevated)`,color:`var(--text-primary)`},wordList:{maxHeight:300,overflowY:`auto`,padding:8,display:`flex`,flexWrap:`wrap`,gap:6,alignContent:`flex-start`},wordChip:{display:`inline-flex`,flexDirection:`column`,alignItems:`center`,gap:1,padding:`3px 7px`,border:`1px solid var(--border)`,borderRadius:6,background:`var(--bg-elevated)`},wordStamp:{fontSize:9,color:`var(--text-muted)`,fontVariantNumeric:`tabular-nums`,lineHeight:1},wordText:{fontSize:12.5,color:`var(--text-primary)`,lineHeight:1.2},empty:{fontSize:12,color:`var(--text-muted)`,textAlign:`center`,padding:`16px 0`},row:{display:`flex`,alignItems:`baseline`,gap:10},time:{width:52,flexShrink:0,fontSize:10,color:`var(--text-muted)`,textAlign:`right`,fontVariantNumeric:`tabular-nums`,paddingTop:1},text:{flex:1,minWidth:0,fontSize:13,lineHeight:1.45,color:`var(--text-primary)`}};var rt=m();function it(e){let t=e.props.children;return typeof t==`string`||typeof t==`number`?String(t):g.Children.toArray(t).filter(e=>typeof e==`string`||typeof e==`number`).join(``)}function at(e){let t=[];return g.Children.forEach(e,e=>{e&&typeof e==`object`&&(e.type===`optgroup`?g.Children.forEach(e.props.children,n=>{n&&n.type===`option`&&t.push({value:n.props.value??it(n),label:it(n),disabled:!!n.props.disabled,group:e.props.label})}):e.type===`option`&&t.push({value:e.props.value??it(e),label:it(e),disabled:!!e.props.disabled}))}),t}function ot(e,t,n){let r=t;for(let t=0;t<e.length;t++)if(r+=n,r<0&&(r=e.length-1),r>=e.length&&(r=0),!e[r]?.disabled)return r;return t}function P({value:e,defaultValue:t,onChange:n,disabled:r=!1,style:i,className:a=``,title:o,children:s,options:c,\"aria-label\":l,...u}){let d=(0,g.useMemo)(()=>c||at(s),[c,s]),f=e!==void 0,[p,m]=(0,g.useState)(t??d[0]?.value),h=f?e:p,_=d.findIndex(e=>String(e.value)===String(h)),v=d[_],[y,b]=(0,g.useState)(!1),[x,ee]=(0,g.useState)(-1),[S,te]=(0,g.useState)(null),[ne,re]=(0,g.useState)(null),ie=(0,g.useRef)(null),ae=(0,g.useRef)(null),oe=(0,g.useRef)({str:``,t:0}),se=(0,g.useCallback)(e=>{f||m(e),n?.({target:{value:e}}),b(!1),ie.current?.focus()},[f,n]),ce=(0,g.useCallback)(()=>{if(r)return;let e=ie.current?.getBoundingClientRect();e&&te({left:e.left,top:e.bottom,width:e.width,topY:e.top,bottomSpace:window.innerHeight-e.bottom}),ee(_>=0?_:ot(d,-1,1)),b(!0)},[r,_,d]);(0,g.useEffect)(()=>{if(!y)return;let e=e=>{!ae.current?.contains(e.target)&&!ie.current?.contains(e.target)&&b(!1)};document.addEventListener(`mousedown`,e,!0);let t,n=null,r=()=>{let e=ie.current?.getBoundingClientRect();if(!e){b(!1);return}if(e.bottom<0||e.top>window.innerHeight||e.right<0||e.left>window.innerWidth){b(!1);return}(!n||n.left!==e.left||n.top!==e.bottom||n.width!==e.width||n.topY!==e.top)&&(n={left:e.left,top:e.bottom,width:e.width,topY:e.top,bottomSpace:window.innerHeight-e.bottom},te(n)),t=requestAnimationFrame(r)};return t=requestAnimationFrame(r),()=>{document.removeEventListener(`mousedown`,e,!0),cancelAnimationFrame(t)}},[y]),(0,g.useEffect)(()=>{y&&ae.current&&ae.current.querySelector(`[data-i=\"${x}\"]`)?.scrollIntoView({block:`nearest`})},[y,x]),(0,g.useEffect)(()=>{y||re(null)},[y]);let le=(0,g.useCallback)(e=>{if(!r){if(!y){[`ArrowDown`,`ArrowUp`,`Enter`,` `].includes(e.key)&&(e.preventDefault(),ce());return}if(e.key===`Escape`)e.preventDefault(),b(!1),ie.current?.focus();else if(e.key===`ArrowDown`)e.preventDefault(),ee(e=>ot(d,e,1));else if(e.key===`ArrowUp`)e.preventDefault(),ee(e=>ot(d,e,-1));else if(e.key===`Home`)e.preventDefault(),ee(ot(d,-1,1));else if(e.key===`End`)e.preventDefault(),ee(ot(d,d.length,-1));else if(e.key===`Enter`||e.key===` `)e.preventDefault(),d[x]&&!d[x].disabled&&se(d[x].value);else if(e.key===`Tab`)b(!1);else if(e.key.length===1){let t=Date.now(),n=t-oe.current.t<700?oe.current.str+e.key:e.key;oe.current={str:n,t};let r=d.findIndex(e=>e.label.toLowerCase().startsWith(n.toLowerCase()));r>=0&&ee(r)}}},[y,r,d,x,se,ce]),w=S&&S.bottomSpace<260&&S.topY>S.bottomSpace;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(`button`,{ref:ie,type:`button`,disabled:r,title:o,\"aria-label\":l,\"aria-haspopup\":`listbox`,\"aria-expanded\":y,className:`tsel-trigger ${a}`,style:i,onClick:()=>y?b(!1):ce(),onKeyDown:le,...u,children:[(0,C.jsx)(`span`,{className:`tsel-label`,children:v?v.label:``}),(0,C.jsx)(`span`,{className:`tsel-caret`,\"aria-hidden\":!0,children:`▾`})]}),y&&S&&(0,rt.createPortal)((0,C.jsx)(`div`,{ref:ae,role:`listbox`,className:`tsel-pop`,style:{position:`fixed`,left:S.left,minWidth:S.width,maxWidth:Math.max(S.width,320),...w?{bottom:window.innerHeight-S.topY+4}:{top:S.top+4}},children:d.map((e,t)=>(0,C.jsxs)(`div`,{role:`option`,\"data-i\":t,\"aria-selected\":t===_,\"aria-disabled\":e.disabled||void 0,\"data-active\":t===x,className:`tsel-opt`,onMouseEnter:()=>ee(t),onMouseDown:t=>{t.preventDefault(),e.disabled||se(e.value)},children:[(0,C.jsx)(`span`,{className:`tsel-check`,\"aria-hidden\":!0,children:t===_?`✓`:``}),(0,C.jsx)(`span`,{className:`tsel-opt-label`,children:e.label}),e.note&&(0,C.jsx)(`span`,{className:`tsel-note`,tabIndex:-1,title:e.note,\"aria-label\":e.note,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onMouseEnter:t=>{let n=t.currentTarget.getBoundingClientRect();re({text:e.note,x:n.right+8,y:n.top+n.height/2})},onMouseLeave:()=>re(null),children:`ⓘ`})]},t))}),document.body),ne&&(0,rt.createPortal)((0,C.jsx)(`div`,{className:`tsel-tip`,style:{position:`fixed`,left:ne.x,top:ne.y,transform:`translateY(-50%)`},children:ne.text}),document.body)]})}let F=globalThis.StillMade,I=new Proxy({},{get:(e,t)=>typeof t==`string`&&Ue[t]?Be(Ue[t].usd,Ue[t].tier):void 0}),st=(e,{approx:t=!1,suffix:n=``}={})=>`(${t?`~`:``}${Math.max(0,Math.round(e||0))} cr${n?` + ${n}`:``})`,ct=e=>Math.max(1,Math.ceil((e||0)/1e3)*I[`transcript:parse`]),lt=Me(F),ut=Ne(lt),{ui:dt,DialogHost:ft}=Ie({bridge:F}),pt={input:{},shared:{canEdit:!1,outputs:{},state:{}}},mt=new Set,ht=()=>{for(let e of mt)e()};F.onInput(e=>{pt.input=e,ht()}),F.onShared(e=>{pt.shared=e,ht()});function gt(){let[,e]=(0,g.useState)(0);return(0,g.useEffect)(()=>{let t=()=>e(e=>e+1);return mt.add(t),()=>mt.delete(t)},[]),pt}let _t=e=>!!e&&e.kind===`audio`&&typeof e.url==`string`,vt=new Map,L=e=>{for(let t of[e?.output,...Array.isArray(e?.takes)?e.takes:[],e?.take])_t(t)&&vt.set(t.url,t);return e};function yt(e){let t=pt.shared.outputs||{},n=pt.input||{};return[t.output,...Array.isArray(t.takes)?t.takes:[],n.take,...Array.isArray(n.takes)?n.takes:[]].find(t=>_t(t)&&t.url===e)||vt.get(e)||null}let R=async e=>L(await F.run(e)),z=()=>{let e=pt.shared.outputs?.takes;return Array.isArray(e)?e.filter(_t):[]},bt=e=>Number.isFinite(Number(e))&&Number(e)>=.25&&Number(e)<=4?Number(e):void 0,xt={voiceover:null};async function St(e){let t=yt(e?.audioUrl),n=Array.isArray(e?.words)&&e.words.length?{schemaVersion:1,text:e.transcriptText||e.words.map(e=>e.text).join(` `),words:e.words}:void 0;return R({make:`use`,script:e?.script||``,takes:z(),...t?{take:t}:{},...n?{words:n}:{}})}let Ct=Object.freeze({version:1,voiceSettingsDefaults:{stability:.5,similarity:.75,style:0,speakerBoost:!0},async generateVoiceover({text:e,voiceId:t,speed:n}={}){let r=await R({make:`speech`,script:e,voice:t||`asteria`,...bt(n)?{speed:bt(n)}:{},takes:z()});if(!_t(r?.output))throw Error(`No audio came back. Try again.`);return{url:r.output.url,duration:Number(r.output.duration)||0}},async generateVoicePreview(e){return{url:(await F.previewVoice(e)).url}},async transcribeAudio(e){let t=yt(e);if(!t)throw Error(`Save this audio again before analyzing it.`);let n=await R({make:`timing`,take:t,script:xt.voiceover?.script||``,takes:z()});return{words:n?.timing?.words||[],text:n?.timing?.text||``}},async parseTranscript(e){let t=yt(xt.voiceover?.audioUrl);return(await R({make:`parse`,transcript:e,script:xt.voiceover?.script||``,takes:z(),...t?{take:t}:{}}))?.timing?.words||[]},async uploadReferenceImage(){throw Error(`Use Upload audio file.`)},async gifToneCheck(){return{fit:!0,options:[]}},async editVoScript(){throw Error(`Script edits are not part of this Block.`)},async getElevenLabsVoiceInfo(){return{ok:!1}},getElVoiceSettings:()=>({stability:.5,similarity:.75,style:0,speakerBoost:!0}),setElVoiceSettings:()=>{},getCustomVoices:()=>[],addCustomVoice:()=>null,removeCustomVoice:()=>{},isElevenLabsVoiceId:()=>!1});function wt({src:e,style:t}){gt();let[n,r]=(0,g.useState)(``),[i,a]=(0,g.useState)(``),o=yt(e),s=o?`${o.assetId}:${o.versionId}`:``;return(0,g.useEffect)(()=>{let e=!0,t=``;if(r(``),a(``),!o){a(`Save this audio to play it here.`);return}return F.previewMedia(o).then(n=>{t=n.url,e?r(n.url):F.releaseMedia(n.url)},t=>{e&&a(t.message||`This audio could not be played here.`)}),()=>{e=!1,t&&F.releaseMedia(t)}},[e,s]),i?(0,C.jsx)(`p`,{role:`status`,style:{margin:0,fontSize:13,color:`var(--fg-muted)`},children:i}):(0,C.jsx)(`audio`,{controls:!0,src:n||void 0,style:t})}let Tt=null;F.onInput(e=>{if(Tt&&_t(e.take)&&e.take.url!==Tt.before){let t=Tt;Tt=null,t.resolve(e.take)}});async function Et(){let e=pt.input.take?.url||null,t=new Promise(t=>{Tt={before:e,resolve:t}}),{added:n}=await F.addFiles(`take`);if(!n)return Tt=null,null;let r=await Promise.race([t,new Promise(e=>setTimeout(()=>e(null),2e4))]);if(!r)throw Error(`The audio file did not arrive. Try again.`);return{url:r.url,duration:Number(r.duration)||0}}let Dt=Object.freeze({version:1,useSharedScript:ut,useLiveEditor:lt,useIsMobileUI:()=>globalThis.innerWidth<768,findVoice:Je,estimateCreditsFromText:Ze,normalizeVoiceId:qe,groupVoiceCards:Xe,cardIndexOfVoice:M,isCardLocked:j,isVoiceLocked:A,sortCardsLockedLast:Ye,fmtCostLabel:st,parseTranscriptCost:ct,elevenLabsUrl:()=>``,LiveEditorBadge:()=>null,VOICES:Ge,DEFAULT_VOICE_ID:Ke,CREDIT_COSTS:I,ui:dt,ELEVENLABS_CONFIGURED:!1,TranscriptionEditor:Qe,ThemedSelect:P,PRESENTER_HOST_BETA:!1,AudioPlayer:wt,pickAudioFile:Et,fitContent:!0,voiceSample:async e=>(await F.previewVoice(e)).url});function Ot(){let{input:e,shared:t}=gt(),[n,r]=(0,g.useState)({});xt.voiceover=n;let i=typeof e.input?.text==`string`&&e.input.text.trim()?e.input.text:``,a=(0,g.useMemo)(()=>i?{id:`connected:${i.length}:${i.slice(0,64)}`,sourceLabel:`the Step before`,text:i,validate:()=>!0}:null,[i]),[o,s]=(0,g.useState)(!1);return(0,g.useEffect)(()=>{!o&&Object.keys(pt.input).length+Object.keys(pt.shared).length&&s(!0)},[e,t,o]),o?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(ke,{projectId:`block`,voiceover:n,initialScript:i,scriptHandoff:a,hostServices:Ct,workspaceHost:Dt,standalone:!0,viewOnly:t.canEdit===!1,onChange:e=>r(t=>({...t,...e})),onContinue:async e=>{try{await St({...n,...e})}catch(e){await dt.alert(e.message||`The voiceover could not be saved.`,{title:`Not saved`})}}}),(0,C.jsx)(ft,{})]}):null}(0,h.createRoot)(document.getElementById(`root`)).render((0,C.jsx)(Ot,{}))})();",
139
145
  "runtime": "frame"
140
146
  },
141
147
  "tests": [