@inupedia/spotlight-vue 0.8.5 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/spotlight-vue.css +1 -1
- package/dist/avatar/speech/live2dTtsPlayback.d.ts +15 -2
- package/dist/avatar/speech/live2dTtsPlayback.d.ts.map +1 -1
- package/dist/avatar/speech/live2dTtsPlayback.js +77 -15
- package/dist/avatar/speech/spotlightSpeech.d.ts.map +1 -1
- package/dist/avatar/speech/spotlightSpeech.js +44 -36
- package/dist/avatar/spine/live2dApp.d.ts +3 -0
- package/dist/avatar/spine/live2dApp.d.ts.map +1 -1
- package/dist/avatar/spine/live2dApp.js +30 -18
- package/dist/avatar/spine/spineAvatar.d.ts +4 -0
- package/dist/avatar/spine/spineAvatar.d.ts.map +1 -1
- package/dist/avatar/spine/spineAvatar.js +114 -83
- package/dist/avatar/spine/spineLipSync.d.ts +1 -0
- package/dist/avatar/spine/spineLipSync.d.ts.map +1 -1
- package/dist/avatar/spine/spineLipSync.js +41 -36
- package/dist/avatar/voice/avatarDirector.d.ts +8 -0
- package/dist/avatar/voice/avatarDirector.d.ts.map +1 -0
- package/dist/avatar/voice/avatarDirector.js +6 -0
- package/dist/avatar/voice/config.d.ts +5 -0
- package/dist/avatar/voice/config.d.ts.map +1 -0
- package/dist/avatar/voice/config.js +5 -0
- package/dist/avatar/voice/panelHidePolicy.d.ts +6 -0
- package/dist/avatar/voice/panelHidePolicy.d.ts.map +1 -0
- package/dist/avatar/voice/panelHidePolicy.js +6 -0
- package/dist/avatar/voice/voiceSession.d.ts +5 -0
- package/dist/avatar/voice/voiceSession.d.ts.map +1 -0
- package/dist/avatar/voice/voiceSession.js +14 -0
- package/dist/components/Live2dPanel.vue.d.ts.map +1 -1
- package/dist/components/Live2dPanel.vue.js +2 -2
- package/dist/components/Live2dPanel2.vue.js +31 -27
- package/dist/components/SpotlightShell.vue.d.ts.map +1 -1
- package/dist/components/SpotlightShell.vue.js +5 -2
- package/dist/components/SpotlightShell2.vue.js +289 -222
- package/dist/config.d.ts +3 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +24 -22
- package/dist/mountShell.d.ts.map +1 -1
- package/dist/mountShell.js +13 -10
- package/dist/plugin.js +1 -1
- package/dist/remote/audio.d.ts.map +1 -1
- package/dist/remote/audio.js +19 -18
- package/dist/remote/runPipeline.d.ts +10 -3
- package/dist/remote/runPipeline.d.ts.map +1 -1
- package/dist/remote/runPipeline.js +120 -111
- package/dist/store/live2dSpeechStore.d.ts +2 -2
- package/dist/store/memoryPreferenceStore.d.ts +1 -1
- package/dist/store/pipeline/constants.d.ts +2 -0
- package/dist/store/pipeline/constants.d.ts.map +1 -1
- package/dist/store/pipeline/constants.js +2 -0
- package/dist/store/runtime/types.d.ts +1 -1
- package/dist/store/runtime/types.d.ts.map +1 -1
- package/dist/store/spotlightStore.d.ts +11 -13
- package/dist/store/spotlightStore.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/avatar/speech/live2dBriefingSummarizer.js +0 -91
- package/dist/avatar/speech/live2dStreamSpeech.js +0 -4
- package/dist/avatar/speech/llmUtils.js +0 -18
|
@@ -1 +1 @@
|
|
|
1
|
-
.inspira-card-spotlight[data-v-451e3591]{position:relative;display:flex;width:100%;min-width:0;height:100%;overflow:hidden;border-radius:12px}.inspira-card-spotlight__content[data-v-451e3591]{position:relative;z-index:10;width:100%;min-width:0;height:100%}.inspira-card-spotlight__gradient[data-v-451e3591]{pointer-events:none;position:absolute;inset:0;border-radius:inherit;opacity:0;transition:opacity .3s ease}.inspira-card-spotlight:hover .inspira-card-spotlight__gradient[data-v-451e3591]{opacity:1}.border-beam-official[data-v-3cee2783]{--size: var(--v602b8bb2);--duration: var(--e7874400);--anchor: var(--v5fc92b5b);--border-width: var(--c1a8d7d8);--color-from: var(--v2bd85f47);--color-to: var(--v055f9958);--delay: var(--v770d7dfd);position:absolute;inset:0;pointer-events:none;border-radius:inherit;border:calc(var(--border-width) * 1px) solid transparent;mask-image:linear-gradient(transparent,transparent),linear-gradient(#fff,#fff);mask-clip:padding-box,border-box;mask-composite:intersect;-webkit-mask-image:linear-gradient(transparent,transparent),linear-gradient(white,white);-webkit-mask-clip:padding-box,border-box;-webkit-mask-composite:source-in}.border-beam-official[data-v-3cee2783]:after{content:"";position:absolute;top:0;left:0;width:calc(var(--size) * 1px);aspect-ratio:1 / 1;background:linear-gradient(to left,var(--color-from),var(--color-to),transparent);offset-anchor:calc(var(--anchor) * 1%) 50%;offset-path:rect(0 auto auto 0 round calc(var(--size) * 1px));animation:border-beam-official-anim-3cee2783 var(--duration) infinite linear;animation-delay:var(--delay)}@keyframes border-beam-official-anim-3cee2783{to{offset-distance:100%}}@media(prefers-reduced-motion:reduce){.border-beam-official[data-v-3cee2783]:after{animation:none}}.spotlight-backdrop[data-v-b381bab1]{position:fixed;inset:0;background:radial-gradient(120% 80% at 50% 0%,#bae6fd47,#f0fdfa14 42%,#0f172a38);backdrop-filter:blur(18px) saturate(1.15);-webkit-backdrop-filter:blur(18px) saturate(1.15);z-index:9999;display:flex;align-items:flex-start;justify-content:center;padding-top:12vh;transition:background .28s ease,backdrop-filter .28s ease}.spotlight-panel[data-v-b381bab1]{position:fixed;left:50%;top:12vh;transform:translate(-50%);width:min(680px,calc(100% - 40px));max-height:82vh;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,SF Pro Text,Helvetica Neue,system-ui,sans-serif;background:linear-gradient(165deg,#ffffffeb,#f8fafce0 52%,#f0fdfadb);border-radius:22px;border:1px solid rgba(148,163,184,.28);box-shadow:0 24px 64px #0f172a1f,0 8px 24px #0f172a0f,inset 0 1px #ffffffd9;padding:16px 16px 14px;color:#0f172a;display:flex;flex-direction:column;gap:12px;backdrop-filter:blur(40px) saturate(1.35);-webkit-backdrop-filter:blur(40px) saturate(1.35)}.spotlight-panel.is-memory-on[data-v-b381bab1]{border-color:#2dd4bf6b;box-shadow:0 24px 64px #0f172a1f,0 0 0 1px #2dd4bf1f,0 12px 36px #2dd4bf1a}.spotlight-panel-beam[data-v-b381bab1]{z-index:2}.spotlight-permission-banner[data-v-b381bab1]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:14px;border:1px solid rgba(148,163,184,.24);background:#ffffffb8}.spotlight-permission-banner-body[data-v-b381bab1]{display:flex;flex-direction:column;gap:4px;font-size:13px;line-height:1.45;color:#475569}.spotlight-permission-banner-body strong[data-v-b381bab1]{color:#0f172a;font-weight:600}.spotlight-permission-banner-actions[data-v-b381bab1]{display:flex;gap:8px;flex-shrink:0}.spotlight-permission-btn[data-v-b381bab1]{border:0;border-radius:999px;min-height:32px;padding:0 14px;font-size:13px;font-weight:600;cursor:pointer;transition:opacity .18s ease,transform .18s ease}.spotlight-permission-btn[data-v-b381bab1]:active{transform:scale(.98);opacity:.88}.spotlight-permission-btn.is-approve[data-v-b381bab1]{background:linear-gradient(135deg,#14b8a6,#0ea5e9);color:#fff}.spotlight-permission-btn.is-dismiss[data-v-b381bab1]{background:#94a3b82e;color:#334155}.spotlight-input-shell[data-v-b381bab1],.spotlight-list-shell[data-v-b381bab1]{position:relative;width:100%;min-width:0;border-radius:14px;box-sizing:border-box}.spotlight-input-wrap[data-v-b381bab1]{position:relative;display:flex;align-items:center;gap:10px;width:100%;min-width:0;min-height:48px;padding:10px 12px;border-radius:14px;border:1px solid rgba(148,163,184,.22);box-sizing:border-box;background:#ffffffc7;transition:border-color .2s ease,background .2s ease,box-shadow .2s ease}.spotlight-voice-shell[data-v-b381bab1]{position:relative;display:flex;align-items:center;gap:14px;width:100%;min-height:48px;padding:12px 14px;border-radius:14px;border:1px solid rgba(148,163,184,.22);background:#ffffffc7;box-sizing:border-box}.spotlight-voice-text[data-v-b381bab1]{font-size:15px;line-height:1.4;color:#334155}.spotlight-voice-mic[data-v-b381bab1]{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:1px solid rgba(148,163,184,.28);background:#f8fafce6;color:#ef4444}.spotlight-voice-shell.is-transcribing .spotlight-voice-mic[data-v-b381bab1]{color:#0ea5e9}.spotlight-input-wrap.is-running[data-v-b381bab1]{border-color:#0ea5e973;box-shadow:0 0 0 3px #0ea5e91a}.spotlight-input-wrap.is-done[data-v-b381bab1]{border-color:#10b9816b}.spotlight-input-wrap.is-error[data-v-b381bab1]{border-color:#ef444473}.spotlight-input[data-v-b381bab1]{flex:1;min-width:0;border:0;outline:none;background:transparent;color:#0f172a;font-size:17px;font-weight:400;letter-spacing:-.01em}.spotlight-input[data-v-b381bab1]::placeholder{color:#94a3b8}.spotlight-agent-badge[data-v-b381bab1]{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;padding:4px 10px;border-radius:999px;border:1px solid rgba(148,163,184,.22);background:#f8fafceb;color:#64748b;font-size:12px;font-weight:600}.spotlight-agent-badge-dot[data-v-b381bab1]{width:7px;height:7px;border-radius:50%;background:#94a3b8}.spotlight-agent-badge.is-running[data-v-b381bab1]{color:#0284c7}.spotlight-agent-badge.is-running .spotlight-agent-badge-dot[data-v-b381bab1]{background:#0ea5e9}.spotlight-agent-badge.is-done[data-v-b381bab1]{color:#059669}.spotlight-agent-badge.is-done .spotlight-agent-badge-dot[data-v-b381bab1]{background:#10b981}.spotlight-agent-badge.is-error[data-v-b381bab1]{color:#dc2626}.spotlight-agent-badge.is-error .spotlight-agent-badge-dot[data-v-b381bab1]{background:#ef4444}.spotlight-command-deck[data-v-b381bab1]{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:28px;position:relative;z-index:3}.spotlight-command-deck-meta[data-v-b381bab1]{display:flex;align-items:center;gap:10px;min-width:0}.spotlight-command-deck-kicker[data-v-b381bab1]{color:#64748b;font-size:12px;font-weight:600;letter-spacing:.02em}.spotlight-command-deck-status[data-v-b381bab1]{color:#0f172a;font-size:13px;font-weight:600;letter-spacing:-.01em}.spotlight-memory-dot-btn[data-v-b381bab1]{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;height:44px;margin:-8px -6px -8px 0;padding:0 10px;border:0;border-radius:999px;background:transparent;cursor:pointer;flex-shrink:0;-webkit-tap-highlight-color:transparent;transition:transform .18s ease}.spotlight-memory-label[data-v-b381bab1]{color:#64748b;font-size:12px;font-weight:600;line-height:1;white-space:nowrap}.spotlight-memory-dot-btn[data-v-b381bab1]:active{transform:scale(.94)}.spotlight-memory-dot-btn[data-v-b381bab1]:focus-visible{outline:none;box-shadow:0 0 0 3px #2dd4bf59}.spotlight-memory-dot[data-v-b381bab1]{position:relative;width:8px;height:8px;border-radius:50%;background:#cbd5e1;transition:background .28s ease,box-shadow .28s ease,transform .28s ease}.spotlight-memory-dot.is-on[data-v-b381bab1]{background:#14b8a6;box-shadow:0 0 #14b8a673;animation:spotlight-memory-dot-pulse-b381bab1 3.2s ease-in-out infinite}.spotlight-memory-dot.is-on[data-v-b381bab1]:after{content:"";position:absolute;inset:-5px;border-radius:inherit;border:1px solid rgba(45,212,191,.35);opacity:0;animation:spotlight-memory-dot-ring-b381bab1 3.2s ease-in-out infinite}@keyframes spotlight-memory-dot-pulse-b381bab1{0%,to{opacity:.72;box-shadow:0 0 #14b8a647;transform:scale(.96)}50%{opacity:1;box-shadow:0 0 0 6px #14b8a600;transform:scale(1)}}@keyframes spotlight-memory-dot-ring-b381bab1{0%,to{opacity:0;transform:scale(.85)}50%{opacity:.55;transform:scale(1.15)}}.spotlight-list[data-v-b381bab1]{margin:0;padding:6px;list-style:none;max-height:min(54vh,480px);overflow:auto;border-radius:14px;border:1px solid rgba(148,163,184,.2);background:#ffffff9e}.spotlight-item[data-v-b381bab1]{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:10px 12px;border-radius:10px;cursor:pointer;transition:background .18s ease}.spotlight-item[data-v-b381bab1]:hover,.spotlight-item.is-selected[data-v-b381bab1]{background:#f1f5f9f2}.spotlight-item.is-selected[data-v-b381bab1]{background:#ccfbf1b8}.spotlight-item-label[data-v-b381bab1]{color:#0f172a;font-size:15px;font-weight:400;letter-spacing:-.01em}.spotlight-item-hint[data-v-b381bab1],.spotlight-list-divider[data-v-b381bab1]{color:#94a3b8;font-size:12px;font-weight:500}.spotlight-list-divider[data-v-b381bab1]{display:flex;align-items:center;gap:10px;padding:8px 12px 4px;pointer-events:none}.spotlight-list-divider[data-v-b381bab1]:after{content:"";flex:1;height:.5px;background:#94a3b847}.spotlight-voice-mic-icon[data-v-b381bab1]{position:relative;display:block;width:14px;height:18px}.spotlight-voice-mic-body[data-v-b381bab1]{position:absolute;inset:0 2px 6px;border:2px solid currentColor;border-radius:999px}.spotlight-voice-mic-stem[data-v-b381bab1]{position:absolute;left:50%;bottom:0;width:2px;height:5px;transform:translate(-50%);background:currentColor;border-radius:1px}.spotlight-voice-shell.is-recording[data-v-b381bab1]{border-color:#ef444459;box-shadow:0 0 0 3px #ef444414}.spotlight-voice-shell.is-transcribing[data-v-b381bab1]{border-color:#0ea5e959;box-shadow:0 0 0 3px #0ea5e914}.spotlight-voice-beam[data-v-b381bab1]{display:block}.spotlight-item--empty[data-v-b381bab1]{cursor:default;opacity:.72}@media(max-width:768px){.spotlight-panel[data-v-b381bab1]{width:calc(100% - 24px);top:8vh;padding:14px}.spotlight-command-deck[data-v-b381bab1]{flex-wrap:wrap}.spotlight-input[data-v-b381bab1]{font-size:16px}.spotlight-agent-badge[data-v-b381bab1]{align-self:flex-start}}@media(prefers-reduced-motion:reduce){.spotlight-backdrop[data-v-b381bab1],.spotlight-panel[data-v-b381bab1],.spotlight-input-wrap[data-v-b381bab1],.spotlight-memory-dot[data-v-b381bab1],.spotlight-memory-dot.is-on[data-v-b381bab1]:after,.spotlight-item[data-v-b381bab1],.spotlight-permission-btn[data-v-b381bab1],.spotlight-memory-dot-btn[data-v-b381bab1]{transition:none;animation:none}}.thinking-bar[data-v-de0d91bb]{--tb-text: #0f172a;--tb-text-secondary: #475569;--tb-text-muted: #64748b;--tb-text-faint: #94a3b8;--tb-border: rgba(148, 163, 184, .28);--tb-surface: rgba(255, 255, 255, .94);--tb-surface-soft: rgba(248, 250, 252, .92);--tb-surface-inset: rgba(255, 255, 255, .88);--tb-accent: #14b8a6;--tb-info: #0ea5e9;--tb-success: #10b981;--tb-error: #ef4444;--tb-radius-xl: 22px;--tb-radius-lg: 16px;--tb-radius-md: 14px;--tb-radius-sm: 12px;--tb-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;position:fixed;width:min(720px,calc(100vw - 48px));max-height:min(78vh,820px);display:flex;flex-direction:column;min-height:0;font-family:var(--tb-font);background:linear-gradient(165deg,#fffffff5,#f8fafcf0 55%,#f0fdfaeb);border-radius:var(--tb-radius-xl);border:1px solid var(--tb-border);box-shadow:0 24px 64px #0f172a1a,0 8px 24px #0f172a0d,inset 0 1px #ffffffe6;color:var(--tb-text);z-index:10000;overflow:hidden;opacity:0;backdrop-filter:blur(40px) saturate(1.35);-webkit-backdrop-filter:blur(40px) saturate(1.35);transition:opacity .28s ease,transform .28s ease}.thinking-bar--open[data-v-de0d91bb]{opacity:1}.thinking-bar--embedded[data-v-de0d91bb]{position:relative;right:auto;bottom:auto;width:100%;max-height:100%}.thinking-bar--centered[data-v-de0d91bb]{left:50%;top:50%;width:min(980px,calc(100vw - 56px));transform:translate(-50%,-50%) scale(.98);transform-origin:center}.thinking-bar--centered.thinking-bar--open[data-v-de0d91bb]{transform:translate(-50%,-50%) scale(1)}.thinking-bar--corner[data-v-de0d91bb]{right:24px;bottom:24px;width:min(520px,calc(100vw - 28px));max-height:min(76vh,calc(100vh - 36px));border-radius:20px;transform:scale(.98);transform-origin:right bottom}.thinking-bar--corner.thinking-bar--open[data-v-de0d91bb]{transform:scale(1)}.thinking-bar-grid[data-v-de0d91bb]{display:none}.thinking-bar-header[data-v-de0d91bb]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid var(--tb-border);flex-shrink:0}.thinking-bar-title-stack[data-v-de0d91bb]{display:grid;gap:2px;min-width:0}.thinking-bar-kicker[data-v-de0d91bb]{color:var(--tb-text-muted);font-size:12px;font-weight:600;letter-spacing:.02em}.thinking-bar-title[data-v-de0d91bb]{color:var(--tb-text);font-size:17px;font-weight:600;letter-spacing:-.02em;line-height:1.35;min-width:0}.thinking-bar-memory-badge[data-v-de0d91bb]{display:inline-flex;width:fit-content;margin-top:4px;padding:3px 8px;border-radius:999px;border:1px solid rgba(14,165,233,.28);background:#0ea5e91a;color:#0284c7;font-size:11px;font-weight:600}.thinking-bar-memory-refresh[data-v-de0d91bb]{display:inline-flex;align-items:center;justify-content:center;width:fit-content;max-width:100%;border:1px solid color-mix(in srgb,var(--spotlight-accent, #0f766e) 35%,transparent);border-radius:999px;padding:4px 9px;background:color-mix(in srgb,var(--spotlight-accent, #0f766e) 8%,transparent);color:inherit;font:inherit;font-size:12px;line-height:1.35;white-space:nowrap;cursor:pointer}.thinking-bar-memory-refresh[data-v-de0d91bb]:hover{background:color-mix(in srgb,var(--spotlight-accent, #0f766e) 16%,transparent)}.thinking-bar-memory-result[data-v-de0d91bb]{position:relative;display:flex;min-height:0;flex:1;flex-direction:column;gap:16px;padding:18px;overflow-x:hidden;overflow-y:auto;background:radial-gradient(circle at 8% 0%,rgba(20,184,166,.1),transparent 34%),#f8fafc8f}.thinking-bar-memory-result-intro[data-v-de0d91bb]{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border:1px solid rgba(20,184,166,.24);border-radius:var(--tb-radius-lg);background:#f0fdfad1}.thinking-bar-memory-result-icon[data-v-de0d91bb]{display:inline-flex;width:30px;height:30px;flex:0 0 30px;align-items:center;justify-content:center;border-radius:999px;background:var(--tb-accent);color:#fff;font-size:15px;font-weight:700;box-shadow:0 6px 14px #14b8a633}.thinking-bar-memory-result-copy[data-v-de0d91bb]{display:grid;min-width:0;gap:3px}.thinking-bar-memory-result-eyebrow[data-v-de0d91bb]{color:#0f766e;font-size:11px;font-weight:700;letter-spacing:.04em}.thinking-bar-memory-result-copy strong[data-v-de0d91bb]{color:var(--tb-text);font-size:15px;line-height:1.45}.thinking-bar-memory-result-copy p[data-v-de0d91bb]{margin:0;color:var(--tb-text-muted);font-size:12px;line-height:1.55}.thinking-bar-memory-result-answer[data-v-de0d91bb]{min-width:0;padding:18px 20px;border:1px solid var(--tb-border);border-radius:var(--tb-radius-lg);background:#ffffffe6;box-shadow:0 8px 24px #0f172a0a}.thinking-bar-memory-result-answer-label[data-v-de0d91bb]{margin-bottom:10px;color:var(--tb-text-muted);font-size:11px;font-weight:700;letter-spacing:.06em}.thinking-bar-memory-result-footer[data-v-de0d91bb]{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--tb-text-muted);font-size:11px;line-height:1.5}.thinking-bar-memory-result-refresh[data-v-de0d91bb]{flex:0 0 auto;padding:7px 12px;color:#0f766e;font-size:12px;font-weight:600}.thinking-bar-metrics[data-v-de0d91bb]{display:flex;align-items:center;gap:8px;margin-left:auto}.thinking-bar-metric[data-v-de0d91bb]{display:grid;min-width:58px;padding:7px 9px;border:1px solid var(--tb-border);border-radius:var(--tb-radius-sm);background:var(--tb-surface-inset);text-align:center}.thinking-bar-metric strong[data-v-de0d91bb]{color:var(--tb-text);font-size:15px;line-height:1.1}.thinking-bar-metric em[data-v-de0d91bb]{color:var(--tb-text-muted);font-size:10px;font-style:normal;line-height:1.2}.thinking-bar-close[data-v-de0d91bb]{flex-shrink:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;padding:0;border:1px solid var(--tb-border);border-radius:var(--tb-radius-sm);background:var(--tb-surface-inset);color:var(--tb-text-muted);font-size:20px;line-height:1;cursor:pointer;transition:background .15s ease,color .15s ease}.thinking-bar-close[data-v-de0d91bb]:hover{background:var(--tb-surface-soft);color:var(--tb-text)}.thinking-bar-steps[data-v-de0d91bb]{padding:14px 16px 16px;flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;display:flex;flex-direction:column;gap:10px;background:#f8fafc73}.thinking-bar-steps[data-v-de0d91bb],.thinking-bar-step-body[data-v-de0d91bb],.thinking-bar-tool-call-block[data-v-de0d91bb],.thinking-bar-tool-result-table-wrap[data-v-de0d91bb],.thinking-bar-file-tree-body[data-v-de0d91bb],.thinking-bar-file-preview-body[data-v-de0d91bb]{-ms-overflow-style:none;scrollbar-width:none}.thinking-bar-steps[data-v-de0d91bb]::-webkit-scrollbar,.thinking-bar-step-body[data-v-de0d91bb]::-webkit-scrollbar,.thinking-bar-tool-call-block[data-v-de0d91bb]::-webkit-scrollbar,.thinking-bar-tool-result-table-wrap[data-v-de0d91bb]::-webkit-scrollbar,.thinking-bar-file-tree-body[data-v-de0d91bb]::-webkit-scrollbar,.thinking-bar-file-preview-body[data-v-de0d91bb]::-webkit-scrollbar{display:none}.thinking-bar-step[data-v-de0d91bb]{position:relative;display:flex;flex-direction:column;flex:0 0 auto;min-width:0;padding:12px 14px;border-radius:var(--tb-radius-lg);border:1px solid var(--tb-border);background:var(--tb-surface-inset);box-shadow:0 1px 2px #0f172a0a;overflow:hidden}.thinking-bar-step.active[data-v-de0d91bb]{border-color:#14b8a661;box-shadow:0 0 0 1px #14b8a61f}.thinking-bar-step.done[data-v-de0d91bb]{border-color:#0ea5e947}.thinking-bar-step.error[data-v-de0d91bb]{border-color:#ef444452}.thinking-bar-step.pending[data-v-de0d91bb]{opacity:.72}.thinking-bar-step-inner[data-v-de0d91bb]{display:flex;align-items:flex-start;gap:12px;min-width:0}.thinking-bar-step-status[data-v-de0d91bb]{flex-shrink:0;width:10px;height:10px;margin-top:5px;border-radius:999px;background:var(--tb-text-faint)}.thinking-bar-step-status.is-active[data-v-de0d91bb]{background:var(--tb-accent);box-shadow:0 0 0 4px #14b8a62e}.thinking-bar-step-status.is-done[data-v-de0d91bb]{background:var(--tb-info)}.thinking-bar-step-status.is-error[data-v-de0d91bb]{background:var(--tb-error)}.thinking-bar-step-column[data-v-de0d91bb]{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}.thinking-bar-step-label[data-v-de0d91bb]{color:var(--tb-text);font-size:15px;font-weight:600;line-height:1.45}.thinking-bar-step.pending .thinking-bar-step-label[data-v-de0d91bb]{color:var(--tb-text-muted)}.thinking-bar-step-body[data-v-de0d91bb]{max-height:min(42vh,400px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.thinking-bar-step-text[data-v-de0d91bb]{margin:0;color:var(--tb-text-secondary);font-size:14px;line-height:1.65;white-space:pre-wrap;word-break:break-word}.thinking-bar-step-process[data-v-de0d91bb]{color:var(--tb-text-muted)}.thinking-bar-gather-process[data-v-de0d91bb]{display:flex;flex-direction:column;gap:8px}.thinking-bar-gather-headline[data-v-de0d91bb],.thinking-bar-gather-note[data-v-de0d91bb]{margin:0;color:var(--tb-text-secondary);font-size:14px;line-height:1.65}.thinking-bar-gather-note[data-v-de0d91bb]{color:var(--tb-text-muted)}.thinking-bar-source-list[data-v-de0d91bb]{margin:0;padding:0 0 0 1.35em;color:var(--tb-text);font-size:14px;line-height:1.55}.thinking-bar-source-list li+li[data-v-de0d91bb]{margin-top:6px}.thinking-bar-step-markdown[data-v-de0d91bb]{white-space:normal}.thinking-bar-md-preview[data-v-de0d91bb]{--md-theme-bg-color: transparent;--md-color: var(--tb-text-secondary);--md-bk-color: transparent;--md-border-color: var(--tb-border);--md-code-bg-color: rgba(241, 245, 249, .98);--md-code-color: #0f766e;--md-table-even-color: rgba(248, 250, 252, .98);--md-table-odd-color: rgba(255, 255, 255, .98);--md-table-header-bg-color: rgba(241, 245, 249, .98)}.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview-wrapper{padding:0}.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview,.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview p,.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview li,.thinking-bar-step-answer[data-v-de0d91bb] .md-editor-preview p,.thinking-bar-step-answer[data-v-de0d91bb] .md-editor-preview li{color:var(--tb-text-secondary);font-size:14px;line-height:1.65}.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview h1,.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview h2,.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview h3,.thinking-bar-step-answer[data-v-de0d91bb] .md-editor-preview h1,.thinking-bar-step-answer[data-v-de0d91bb] .md-editor-preview h2,.thinking-bar-step-answer[data-v-de0d91bb] .md-editor-preview h3{margin:8px 0 4px;color:var(--tb-text);font-size:14px;font-weight:600}.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview strong{color:var(--tb-text)}.thinking-bar-tool-step-flow[data-v-de0d91bb]{--thinking-detail-gap: 10px;display:flex;flex-direction:column;gap:var(--thinking-detail-gap)}.thinking-bar-step-answer-section[data-v-de0d91bb]{display:flex;flex-direction:column;gap:8px}.thinking-bar-step-section-label[data-v-de0d91bb]{color:var(--tb-text);font-size:13px;font-weight:600}.thinking-bar-execution-details[data-v-de0d91bb],.thinking-bar-tool-call[data-v-de0d91bb]{border:1px solid var(--tb-border);border-radius:var(--tb-radius-md);background:var(--tb-surface);overflow:hidden}.thinking-bar-tool-call--nested[data-v-de0d91bb]{border-style:dashed;background:#ffffffb8}.thinking-bar-execution-details-summary[data-v-de0d91bb],.thinking-bar-tool-call-head[data-v-de0d91bb]{display:flex;align-items:center;gap:10px;padding:10px 12px;cursor:pointer;list-style:none;background:var(--tb-surface-soft)}.thinking-bar-execution-details-summary[data-v-de0d91bb]::-webkit-details-marker,.thinking-bar-tool-call-head[data-v-de0d91bb]::-webkit-details-marker{display:none}.thinking-bar-tool-call-head-main[data-v-de0d91bb]{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.thinking-bar-tool-call-head-side[data-v-de0d91bb]{display:flex;align-items:center;gap:8px;flex-shrink:0}.thinking-bar-execution-details-title[data-v-de0d91bb],.thinking-bar-tool-call-name[data-v-de0d91bb],.thinking-bar-workspace-title[data-v-de0d91bb],.thinking-bar-nested-tools-label[data-v-de0d91bb]{color:var(--tb-text);font-size:13px;font-weight:600}.thinking-bar-execution-details-meta[data-v-de0d91bb]{margin-left:auto;padding:2px 8px;border-radius:999px;border:1px solid var(--tb-border);background:var(--tb-surface-inset);color:var(--tb-text-muted);font-size:11px;font-weight:600}.thinking-bar-execution-details-caret[data-v-de0d91bb],.thinking-bar-tool-call-caret[data-v-de0d91bb]{color:var(--tb-text-faint);font-size:12px;transition:transform .18s ease}.thinking-bar-execution-details[open] .thinking-bar-execution-details-caret[data-v-de0d91bb],.thinking-bar-tool-call[open] .thinking-bar-tool-call-caret[data-v-de0d91bb]{transform:rotate(180deg)}.thinking-bar-execution-details-body[data-v-de0d91bb],.thinking-bar-tool-call-body[data-v-de0d91bb]{display:grid;gap:var(--thinking-detail-gap, 10px);padding:12px;border-top:1px solid var(--tb-border);max-height:min(40vh,380px);overflow-y:auto}.thinking-bar-execution-planning[data-v-de0d91bb],.thinking-bar-tool-call-block[data-v-de0d91bb]{margin:0;padding:10px 12px;border-radius:var(--tb-radius-sm);border:1px solid var(--tb-border);background:#fffffff5;color:var(--tb-text-secondary);font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.thinking-bar-tool-call-block[data-v-de0d91bb]{display:flex;flex-direction:column;gap:8px;max-height:min(28vh,280px);overflow:auto}.thinking-bar-tool-call-block-title[data-v-de0d91bb]{margin:0;color:#0d9488;font-size:11px;font-weight:700;letter-spacing:.03em}.thinking-bar-tool-call-block--error[data-v-de0d91bb]{border-color:#ef444447}.thinking-bar-tool-call-block--error .thinking-bar-tool-call-block-title[data-v-de0d91bb]{color:#dc2626}.thinking-bar-tool-call-pre[data-v-de0d91bb],.thinking-bar-tool-trace-item[data-v-de0d91bb],.thinking-bar-tool-call-id[data-v-de0d91bb]{margin:0;color:var(--tb-text-secondary);font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.thinking-bar-tool-call-id[data-v-de0d91bb]{font-size:11px;color:var(--tb-text-faint)}.thinking-bar-tool-call-status[data-v-de0d91bb]{padding:3px 9px;border-radius:999px;border:1px solid var(--tb-border);background:var(--tb-surface-inset);color:var(--tb-text-muted);font-size:11px;font-weight:600}.thinking-bar-tool-call-status.is-running[data-v-de0d91bb]{background:#f59e0b1f;border-color:#f59e0b47;color:#b45309}.thinking-bar-tool-call-status.is-done[data-v-de0d91bb]{background:#10b9811f;border-color:#10b98147;color:#047857}.thinking-bar-tool-call-status.is-error[data-v-de0d91bb]{background:#ef44441a;border-color:#ef444447;color:#b91c1c}.thinking-bar-tool-result-table-wrap[data-v-de0d91bb]{overflow:auto;border-radius:var(--tb-radius-sm);border:1px solid var(--tb-border)}.thinking-bar-tool-result-table[data-v-de0d91bb]{width:100%;border-collapse:collapse;font-size:12px}.thinking-bar-tool-result-table th[data-v-de0d91bb],.thinking-bar-tool-result-table td[data-v-de0d91bb]{padding:8px 10px;text-align:left;border-bottom:1px solid var(--tb-border);white-space:pre-wrap;word-break:break-word}.thinking-bar-tool-result-table th[data-v-de0d91bb]{background:#f1f5f9fa;color:var(--tb-text);font-weight:600}.thinking-bar-tool-result-table td[data-v-de0d91bb]{color:var(--tb-text-secondary);background:#fff}.thinking-bar-tool-result-image-shell[data-v-de0d91bb]{padding:8px;border-radius:var(--tb-radius-sm);background:#f8fafcfa}.thinking-bar-attachments[data-v-de0d91bb]{display:flex;flex-direction:column;gap:10px}.thinking-bar-attachment[data-v-de0d91bb]{padding:10px;border-radius:var(--tb-radius-md);border:1px solid rgba(14,165,233,.22);background:var(--tb-surface);text-decoration:none;color:inherit}.thinking-bar-attachment-name[data-v-de0d91bb]{color:var(--tb-text);font-size:13px;font-weight:600}.thinking-bar-attachment-type[data-v-de0d91bb]{color:#0284c7;font-size:12px}.thinking-bar-workspace-shell[data-v-de0d91bb]{display:grid;grid-template-columns:minmax(210px,240px) minmax(0,1fr);gap:10px}.thinking-bar-file-tree-pane[data-v-de0d91bb],.thinking-bar-file-preview[data-v-de0d91bb]{border:1px solid var(--tb-border);border-radius:var(--tb-radius-md);background:var(--tb-surface);overflow:hidden}.thinking-bar-file-tree-head[data-v-de0d91bb],.thinking-bar-file-preview-head[data-v-de0d91bb]{padding:10px 12px;border-bottom:1px solid var(--tb-border);color:var(--tb-text-secondary);font-size:12px;font-weight:600}.thinking-bar-file-tree-body[data-v-de0d91bb]{max-height:min(200px,100%);overflow:auto;padding:6px 0}.thinking-bar-tree-row[data-v-de0d91bb]{width:100%;min-height:34px;display:flex;align-items:center;gap:6px;padding:0 10px;border:0;background:transparent;color:var(--tb-text-secondary);text-align:left;cursor:pointer}.thinking-bar-tree-row[data-v-de0d91bb]:hover{background:#f1f5f9f2}.thinking-bar-tree-row--file.active[data-v-de0d91bb]{background:#ccfbf1a6;color:#0f766e}.thinking-bar-file-preview-body[data-v-de0d91bb]{margin:0;padding:12px;color:var(--tb-text-secondary);font-size:12px;line-height:1.65;white-space:pre-wrap;word-break:break-word}.thinking-bar-preview-chip[data-v-de0d91bb]{padding:2px 8px;border-radius:999px;background:#0ea5e91a;color:#0284c7;font-size:11px;font-weight:600}.thinking-bar-empty-preview[data-v-de0d91bb]{padding:16px;color:var(--tb-text-muted);font-size:13px}.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview table{display:block;overflow:auto;border-radius:var(--tb-radius-sm)}.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview thead th{position:static}.thinking-bar-step-answer[data-v-de0d91bb]{margin:0}.thinking-bar-chat-items[data-v-de0d91bb]{display:flex;flex-direction:column;gap:8px}.thinking-bar-chat-item[data-v-de0d91bb]{min-width:0}.thinking-bar-tool-trace-list[data-v-de0d91bb]{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px}.thinking-bar-tool-trace-item[data-v-de0d91bb]{color:var(--tb-text-secondary);line-height:1.5}.thinking-bar-tool-result-image[data-v-de0d91bb]{display:block;width:100%;max-height:320px;object-fit:contain;border-radius:var(--tb-radius-sm)}.thinking-bar-tool-result-html[data-v-de0d91bb]{width:100%;min-height:min(200px,22vh);border:none;border-radius:var(--tb-radius-sm);background:#fff}.thinking-bar-attachment[data-v-de0d91bb]{display:flex;flex-direction:column;gap:10px}.thinking-bar-attachment-image[data-v-de0d91bb]{width:100%;max-height:240px;object-fit:contain;border-radius:var(--tb-radius-sm);background:#f8fafcfa}.thinking-bar-attachment-meta[data-v-de0d91bb]{display:flex;align-items:center;justify-content:space-between;gap:12px}.thinking-bar-workspace[data-v-de0d91bb]{display:flex;flex-direction:column;gap:10px;margin-top:4px}.thinking-bar-tree-node[data-v-de0d91bb]{display:block}.thinking-bar-tree-row--directory[data-v-de0d91bb]{color:var(--tb-text)}.thinking-bar-tree-caret[data-v-de0d91bb],.thinking-bar-tree-icon[data-v-de0d91bb]{flex-shrink:0}.thinking-bar-tree-label[data-v-de0d91bb]{min-width:0;font-size:12px;line-height:1.5;word-break:break-word}.thinking-bar-file-preview[data-v-de0d91bb]{min-width:0;display:flex;flex-direction:column;min-height:0}.thinking-bar-file-preview-title[data-v-de0d91bb]{min-width:0;display:flex;align-items:center;gap:8px}.thinking-bar-image-shell[data-v-de0d91bb]{flex:1;display:flex;align-items:center;justify-content:center;padding:12px;background:#f8fafcfa}.thinking-bar-image-preview[data-v-de0d91bb]{max-width:100%;max-height:320px;object-fit:contain;border-radius:var(--tb-radius-sm)}.thinking-bar-html-preview[data-v-de0d91bb]{flex:1;min-height:min(200px,28vh);border:none;background:#fff}.thinking-bar--corner .thinking-bar-title[data-v-de0d91bb]{font-size:16px}.thinking-bar--corner .thinking-bar-step-label[data-v-de0d91bb]{font-size:14px}.thinking-bar--corner .thinking-bar-step-text[data-v-de0d91bb],.thinking-bar--corner .thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview{font-size:13px}.thinking-bar--corner .thinking-bar-tool-call-body[data-v-de0d91bb]{max-height:min(36vh,300px)}.thinking-bar--corner .thinking-bar-tool-call-block[data-v-de0d91bb]{max-height:min(24vh,200px)}.thinking-bar--corner .thinking-bar-header[data-v-de0d91bb]{padding:14px 16px 12px}.thinking-bar--corner .thinking-bar-steps[data-v-de0d91bb]{padding:12px 14px 14px}@media(max-width:768px){.thinking-bar--centered[data-v-de0d91bb]{width:calc(100vw - 24px);max-height:72vh}.thinking-bar--corner[data-v-de0d91bb]{right:12px;bottom:12px;width:min(360px,calc(100vw - 24px))}.thinking-bar-header[data-v-de0d91bb]{align-items:flex-start;flex-wrap:wrap}.thinking-bar-metrics[data-v-de0d91bb]{display:none}.thinking-bar-workspace-shell[data-v-de0d91bb]{grid-template-columns:1fr}.thinking-bar-memory-result[data-v-de0d91bb]{padding:14px}.thinking-bar-memory-result-footer[data-v-de0d91bb]{align-items:flex-start;flex-direction:column}}@media(prefers-reduced-motion:reduce){.thinking-bar[data-v-de0d91bb],.thinking-bar-close[data-v-de0d91bb],.thinking-bar-execution-details-caret[data-v-de0d91bb],.thinking-bar-tool-call-caret[data-v-de0d91bb]{transition:none}}.live2d-panel-shell[data-v-c16f40d6]{position:fixed;right:220px;bottom:16px;z-index:5000;width:min(420px,42vw);height:min(560px,52vh);pointer-events:none}.live2d-panel[data-v-c16f40d6]{position:absolute;inset:0;pointer-events:auto;touch-action:none;background:transparent}.live2d-close[data-v-c16f40d6]{position:absolute;top:12px;right:12px;z-index:4;width:32px;height:32px;border:1px solid rgba(148,163,184,.35);border-radius:999px;background:#ffffffdb;color:#64748b;font:22px/1 system-ui,sans-serif;cursor:pointer;pointer-events:auto;box-shadow:0 8px 22px #0f172a1a}.live2d-voice-controls[data-v-c16f40d6]{position:absolute;left:50%;bottom:12px;z-index:5;display:flex;flex-direction:column;align-items:center;gap:6px;transform:translate(-50%);pointer-events:auto;-webkit-user-select:none;user-select:none}.live2d-voice-button[data-v-c16f40d6]{position:relative;display:grid;place-items:center;width:54px;height:54px;border:1px solid rgba(13,148,136,.34);border-radius:999px;background:linear-gradient(145deg,#fff,#ecfeff);color:#0f766e;cursor:pointer;touch-action:none;box-shadow:0 12px 28px #0d948833,inset 0 1px #ffffffe6;transition:transform .16s ease,box-shadow .16s ease}.live2d-voice-button[data-v-c16f40d6]:not(:disabled):hover{transform:translateY(-2px)}.live2d-voice-button.is-recording[data-v-c16f40d6]{background:linear-gradient(145deg,#fff1f2,#ffe4e6);color:#e11d48;box-shadow:0 0 0 8px #f43f5e1f,0 14px 30px #e11d483d;animation:voice-pulse-c16f40d6 1.1s ease-in-out infinite}.live2d-voice-button.is-transcribing[data-v-c16f40d6]{cursor:wait;animation:voice-spin-c16f40d6 1.3s linear infinite}.live2d-voice-button[data-v-c16f40d6]:disabled{cursor:not-allowed;opacity:.56}.live2d-mic-icon[data-v-c16f40d6]{width:14px;height:22px;border:2px solid currentcolor;border-radius:8px}.live2d-mic-icon[data-v-c16f40d6]:before{content:"";position:absolute;left:50%;top:25px;width:22px;height:12px;border:2px solid currentcolor;border-top:0;border-radius:0 0 12px 12px;transform:translate(-50%)}.live2d-mic-icon[data-v-c16f40d6]:after{content:"";position:absolute;left:50%;top:37px;width:2px;height:7px;background:currentcolor;transform:translate(-50%)}.live2d-voice-label[data-v-c16f40d6]{padding:4px 9px;border:1px solid rgba(148,163,184,.28);border-radius:999px;background:#ffffffe6;color:#475569;font-size:12px;line-height:1.2;box-shadow:0 6px 16px #0f172a14}.live2d-voice-error[data-v-c16f40d6]{width:min(280px,64vw);padding:7px 10px;border:1px solid rgba(244,63,94,.32);border-radius:10px;background:#fff1f2f5;color:#be123c;font-size:12px;line-height:1.45;max-height:72px;overflow:auto;text-align:center;box-shadow:0 8px 18px #9f12391f}.live2d-speech-bubble[data-v-c16f40d6]{position:absolute;right:calc(100% - 36px);bottom:44%;width:min(360px,40vw);max-height:32vh;overflow:hidden auto;border-radius:20px;border:1px solid rgba(148,163,184,.35);background:linear-gradient(165deg,#fffffff5,#f0fdfaf0);box-shadow:0 18px 36px #0f172a1a,inset 0 1px #ffffffe6;color:#0f172a;padding:10px 12px;pointer-events:auto}.live2d-speech-bubble.is-speaking[data-v-c16f40d6]{border-color:#14b8a673;box-shadow:0 20px 40px #14b8a624,0 0 0 1px #0ea5e92e,inset 0 1px #ffffffe6}.live2d-speech-head[data-v-c16f40d6]{display:inline-flex;align-items:center;gap:8px;color:#0d9488;font-size:12px;line-height:1}.live2d-speech-dot[data-v-c16f40d6]{width:8px;height:8px;border-radius:999px;background:currentcolor;box-shadow:0 0 12px currentcolor}.live2d-speech-bubble.is-speaking .live2d-speech-dot[data-v-c16f40d6]{animation:speech-pulse-c16f40d6 1.1s ease-in-out infinite}.live2d-speech-text[data-v-c16f40d6]{margin:8px 0 0;white-space:pre-wrap;word-break:break-word;font-size:13px;line-height:1.55;color:#334155}.speech-bubble-enter-active[data-v-c16f40d6],.speech-bubble-leave-active[data-v-c16f40d6]{transition:all .28s ease}.speech-bubble-enter-from[data-v-c16f40d6],.speech-bubble-leave-to[data-v-c16f40d6]{opacity:0;transform:translate(10px) scale(.98)}@keyframes speech-pulse-c16f40d6{0%{opacity:.65;transform:scale(.95)}50%{opacity:1;transform:scale(1.12)}to{opacity:.65;transform:scale(.95)}}@keyframes voice-pulse-c16f40d6{50%{transform:scale(1.04)}}@keyframes voice-spin-c16f40d6{to{transform:rotate(360deg)}}@media(max-width:720px){.live2d-panel-shell[data-v-c16f40d6]{right:0;bottom:8px;width:min(360px,96vw);height:min(500px,62vh)}.live2d-speech-bubble[data-v-c16f40d6]{right:16px;bottom:70%;width:min(320px,88vw)}}
|
|
1
|
+
.inspira-card-spotlight[data-v-451e3591]{position:relative;display:flex;width:100%;min-width:0;height:100%;overflow:hidden;border-radius:12px}.inspira-card-spotlight__content[data-v-451e3591]{position:relative;z-index:10;width:100%;min-width:0;height:100%}.inspira-card-spotlight__gradient[data-v-451e3591]{pointer-events:none;position:absolute;inset:0;border-radius:inherit;opacity:0;transition:opacity .3s ease}.inspira-card-spotlight:hover .inspira-card-spotlight__gradient[data-v-451e3591]{opacity:1}.border-beam-official[data-v-3cee2783]{--size: var(--v602b8bb2);--duration: var(--e7874400);--anchor: var(--v5fc92b5b);--border-width: var(--c1a8d7d8);--color-from: var(--v2bd85f47);--color-to: var(--v055f9958);--delay: var(--v770d7dfd);position:absolute;inset:0;pointer-events:none;border-radius:inherit;border:calc(var(--border-width) * 1px) solid transparent;mask-image:linear-gradient(transparent,transparent),linear-gradient(#fff,#fff);mask-clip:padding-box,border-box;mask-composite:intersect;-webkit-mask-image:linear-gradient(transparent,transparent),linear-gradient(white,white);-webkit-mask-clip:padding-box,border-box;-webkit-mask-composite:source-in}.border-beam-official[data-v-3cee2783]:after{content:"";position:absolute;top:0;left:0;width:calc(var(--size) * 1px);aspect-ratio:1 / 1;background:linear-gradient(to left,var(--color-from),var(--color-to),transparent);offset-anchor:calc(var(--anchor) * 1%) 50%;offset-path:rect(0 auto auto 0 round calc(var(--size) * 1px));animation:border-beam-official-anim-3cee2783 var(--duration) infinite linear;animation-delay:var(--delay)}@keyframes border-beam-official-anim-3cee2783{to{offset-distance:100%}}@media(prefers-reduced-motion:reduce){.border-beam-official[data-v-3cee2783]:after{animation:none}}.spotlight-backdrop[data-v-b381bab1]{position:fixed;inset:0;background:radial-gradient(120% 80% at 50% 0%,#bae6fd47,#f0fdfa14 42%,#0f172a38);backdrop-filter:blur(18px) saturate(1.15);-webkit-backdrop-filter:blur(18px) saturate(1.15);z-index:9999;display:flex;align-items:flex-start;justify-content:center;padding-top:12vh;transition:background .28s ease,backdrop-filter .28s ease}.spotlight-panel[data-v-b381bab1]{position:fixed;left:50%;top:12vh;transform:translate(-50%);width:min(680px,calc(100% - 40px));max-height:82vh;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,SF Pro Text,Helvetica Neue,system-ui,sans-serif;background:linear-gradient(165deg,#ffffffeb,#f8fafce0 52%,#f0fdfadb);border-radius:22px;border:1px solid rgba(148,163,184,.28);box-shadow:0 24px 64px #0f172a1f,0 8px 24px #0f172a0f,inset 0 1px #ffffffd9;padding:16px 16px 14px;color:#0f172a;display:flex;flex-direction:column;gap:12px;backdrop-filter:blur(40px) saturate(1.35);-webkit-backdrop-filter:blur(40px) saturate(1.35)}.spotlight-panel.is-memory-on[data-v-b381bab1]{border-color:#2dd4bf6b;box-shadow:0 24px 64px #0f172a1f,0 0 0 1px #2dd4bf1f,0 12px 36px #2dd4bf1a}.spotlight-panel-beam[data-v-b381bab1]{z-index:2}.spotlight-permission-banner[data-v-b381bab1]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:14px;border:1px solid rgba(148,163,184,.24);background:#ffffffb8}.spotlight-permission-banner-body[data-v-b381bab1]{display:flex;flex-direction:column;gap:4px;font-size:13px;line-height:1.45;color:#475569}.spotlight-permission-banner-body strong[data-v-b381bab1]{color:#0f172a;font-weight:600}.spotlight-permission-banner-actions[data-v-b381bab1]{display:flex;gap:8px;flex-shrink:0}.spotlight-permission-btn[data-v-b381bab1]{border:0;border-radius:999px;min-height:32px;padding:0 14px;font-size:13px;font-weight:600;cursor:pointer;transition:opacity .18s ease,transform .18s ease}.spotlight-permission-btn[data-v-b381bab1]:active{transform:scale(.98);opacity:.88}.spotlight-permission-btn.is-approve[data-v-b381bab1]{background:linear-gradient(135deg,#14b8a6,#0ea5e9);color:#fff}.spotlight-permission-btn.is-dismiss[data-v-b381bab1]{background:#94a3b82e;color:#334155}.spotlight-input-shell[data-v-b381bab1],.spotlight-list-shell[data-v-b381bab1]{position:relative;width:100%;min-width:0;border-radius:14px;box-sizing:border-box}.spotlight-input-wrap[data-v-b381bab1]{position:relative;display:flex;align-items:center;gap:10px;width:100%;min-width:0;min-height:48px;padding:10px 12px;border-radius:14px;border:1px solid rgba(148,163,184,.22);box-sizing:border-box;background:#ffffffc7;transition:border-color .2s ease,background .2s ease,box-shadow .2s ease}.spotlight-voice-shell[data-v-b381bab1]{position:relative;display:flex;align-items:center;gap:14px;width:100%;min-height:48px;padding:12px 14px;border-radius:14px;border:1px solid rgba(148,163,184,.22);background:#ffffffc7;box-sizing:border-box}.spotlight-voice-text[data-v-b381bab1]{font-size:15px;line-height:1.4;color:#334155}.spotlight-voice-mic[data-v-b381bab1]{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:1px solid rgba(148,163,184,.28);background:#f8fafce6;color:#ef4444}.spotlight-voice-shell.is-transcribing .spotlight-voice-mic[data-v-b381bab1]{color:#0ea5e9}.spotlight-input-wrap.is-running[data-v-b381bab1]{border-color:#0ea5e973;box-shadow:0 0 0 3px #0ea5e91a}.spotlight-input-wrap.is-done[data-v-b381bab1]{border-color:#10b9816b}.spotlight-input-wrap.is-error[data-v-b381bab1]{border-color:#ef444473}.spotlight-input[data-v-b381bab1]{flex:1;min-width:0;border:0;outline:none;background:transparent;color:#0f172a;font-size:17px;font-weight:400;letter-spacing:-.01em}.spotlight-input[data-v-b381bab1]::placeholder{color:#94a3b8}.spotlight-agent-badge[data-v-b381bab1]{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;padding:4px 10px;border-radius:999px;border:1px solid rgba(148,163,184,.22);background:#f8fafceb;color:#64748b;font-size:12px;font-weight:600}.spotlight-agent-badge-dot[data-v-b381bab1]{width:7px;height:7px;border-radius:50%;background:#94a3b8}.spotlight-agent-badge.is-running[data-v-b381bab1]{color:#0284c7}.spotlight-agent-badge.is-running .spotlight-agent-badge-dot[data-v-b381bab1]{background:#0ea5e9}.spotlight-agent-badge.is-done[data-v-b381bab1]{color:#059669}.spotlight-agent-badge.is-done .spotlight-agent-badge-dot[data-v-b381bab1]{background:#10b981}.spotlight-agent-badge.is-error[data-v-b381bab1]{color:#dc2626}.spotlight-agent-badge.is-error .spotlight-agent-badge-dot[data-v-b381bab1]{background:#ef4444}.spotlight-command-deck[data-v-b381bab1]{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:28px;position:relative;z-index:3}.spotlight-command-deck-meta[data-v-b381bab1]{display:flex;align-items:center;gap:10px;min-width:0}.spotlight-command-deck-kicker[data-v-b381bab1]{color:#64748b;font-size:12px;font-weight:600;letter-spacing:.02em}.spotlight-command-deck-status[data-v-b381bab1]{color:#0f172a;font-size:13px;font-weight:600;letter-spacing:-.01em}.spotlight-memory-dot-btn[data-v-b381bab1]{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;height:44px;margin:-8px -6px -8px 0;padding:0 10px;border:0;border-radius:999px;background:transparent;cursor:pointer;flex-shrink:0;-webkit-tap-highlight-color:transparent;transition:transform .18s ease}.spotlight-memory-label[data-v-b381bab1]{color:#64748b;font-size:12px;font-weight:600;line-height:1;white-space:nowrap}.spotlight-memory-dot-btn[data-v-b381bab1]:active{transform:scale(.94)}.spotlight-memory-dot-btn[data-v-b381bab1]:focus-visible{outline:none;box-shadow:0 0 0 3px #2dd4bf59}.spotlight-memory-dot[data-v-b381bab1]{position:relative;width:8px;height:8px;border-radius:50%;background:#cbd5e1;transition:background .28s ease,box-shadow .28s ease,transform .28s ease}.spotlight-memory-dot.is-on[data-v-b381bab1]{background:#14b8a6;box-shadow:0 0 #14b8a673;animation:spotlight-memory-dot-pulse-b381bab1 3.2s ease-in-out infinite}.spotlight-memory-dot.is-on[data-v-b381bab1]:after{content:"";position:absolute;inset:-5px;border-radius:inherit;border:1px solid rgba(45,212,191,.35);opacity:0;animation:spotlight-memory-dot-ring-b381bab1 3.2s ease-in-out infinite}@keyframes spotlight-memory-dot-pulse-b381bab1{0%,to{opacity:.72;box-shadow:0 0 #14b8a647;transform:scale(.96)}50%{opacity:1;box-shadow:0 0 0 6px #14b8a600;transform:scale(1)}}@keyframes spotlight-memory-dot-ring-b381bab1{0%,to{opacity:0;transform:scale(.85)}50%{opacity:.55;transform:scale(1.15)}}.spotlight-list[data-v-b381bab1]{margin:0;padding:6px;list-style:none;max-height:min(54vh,480px);overflow:auto;border-radius:14px;border:1px solid rgba(148,163,184,.2);background:#ffffff9e}.spotlight-item[data-v-b381bab1]{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:10px 12px;border-radius:10px;cursor:pointer;transition:background .18s ease}.spotlight-item[data-v-b381bab1]:hover,.spotlight-item.is-selected[data-v-b381bab1]{background:#f1f5f9f2}.spotlight-item.is-selected[data-v-b381bab1]{background:#ccfbf1b8}.spotlight-item-label[data-v-b381bab1]{color:#0f172a;font-size:15px;font-weight:400;letter-spacing:-.01em}.spotlight-item-hint[data-v-b381bab1],.spotlight-list-divider[data-v-b381bab1]{color:#94a3b8;font-size:12px;font-weight:500}.spotlight-list-divider[data-v-b381bab1]{display:flex;align-items:center;gap:10px;padding:8px 12px 4px;pointer-events:none}.spotlight-list-divider[data-v-b381bab1]:after{content:"";flex:1;height:.5px;background:#94a3b847}.spotlight-voice-mic-icon[data-v-b381bab1]{position:relative;display:block;width:14px;height:18px}.spotlight-voice-mic-body[data-v-b381bab1]{position:absolute;inset:0 2px 6px;border:2px solid currentColor;border-radius:999px}.spotlight-voice-mic-stem[data-v-b381bab1]{position:absolute;left:50%;bottom:0;width:2px;height:5px;transform:translate(-50%);background:currentColor;border-radius:1px}.spotlight-voice-shell.is-recording[data-v-b381bab1]{border-color:#ef444459;box-shadow:0 0 0 3px #ef444414}.spotlight-voice-shell.is-transcribing[data-v-b381bab1]{border-color:#0ea5e959;box-shadow:0 0 0 3px #0ea5e914}.spotlight-voice-beam[data-v-b381bab1]{display:block}.spotlight-item--empty[data-v-b381bab1]{cursor:default;opacity:.72}@media(max-width:768px){.spotlight-panel[data-v-b381bab1]{width:calc(100% - 24px);top:8vh;padding:14px}.spotlight-command-deck[data-v-b381bab1]{flex-wrap:wrap}.spotlight-input[data-v-b381bab1]{font-size:16px}.spotlight-agent-badge[data-v-b381bab1]{align-self:flex-start}}@media(prefers-reduced-motion:reduce){.spotlight-backdrop[data-v-b381bab1],.spotlight-panel[data-v-b381bab1],.spotlight-input-wrap[data-v-b381bab1],.spotlight-memory-dot[data-v-b381bab1],.spotlight-memory-dot.is-on[data-v-b381bab1]:after,.spotlight-item[data-v-b381bab1],.spotlight-permission-btn[data-v-b381bab1],.spotlight-memory-dot-btn[data-v-b381bab1]{transition:none;animation:none}}.thinking-bar[data-v-de0d91bb]{--tb-text: #0f172a;--tb-text-secondary: #475569;--tb-text-muted: #64748b;--tb-text-faint: #94a3b8;--tb-border: rgba(148, 163, 184, .28);--tb-surface: rgba(255, 255, 255, .94);--tb-surface-soft: rgba(248, 250, 252, .92);--tb-surface-inset: rgba(255, 255, 255, .88);--tb-accent: #14b8a6;--tb-info: #0ea5e9;--tb-success: #10b981;--tb-error: #ef4444;--tb-radius-xl: 22px;--tb-radius-lg: 16px;--tb-radius-md: 14px;--tb-radius-sm: 12px;--tb-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;position:fixed;width:min(720px,calc(100vw - 48px));max-height:min(78vh,820px);display:flex;flex-direction:column;min-height:0;font-family:var(--tb-font);background:linear-gradient(165deg,#fffffff5,#f8fafcf0 55%,#f0fdfaeb);border-radius:var(--tb-radius-xl);border:1px solid var(--tb-border);box-shadow:0 24px 64px #0f172a1a,0 8px 24px #0f172a0d,inset 0 1px #ffffffe6;color:var(--tb-text);z-index:10000;overflow:hidden;opacity:0;backdrop-filter:blur(40px) saturate(1.35);-webkit-backdrop-filter:blur(40px) saturate(1.35);transition:opacity .28s ease,transform .28s ease}.thinking-bar--open[data-v-de0d91bb]{opacity:1}.thinking-bar--embedded[data-v-de0d91bb]{position:relative;right:auto;bottom:auto;width:100%;max-height:100%}.thinking-bar--centered[data-v-de0d91bb]{left:50%;top:50%;width:min(980px,calc(100vw - 56px));transform:translate(-50%,-50%) scale(.98);transform-origin:center}.thinking-bar--centered.thinking-bar--open[data-v-de0d91bb]{transform:translate(-50%,-50%) scale(1)}.thinking-bar--corner[data-v-de0d91bb]{right:24px;bottom:24px;width:min(520px,calc(100vw - 28px));max-height:min(76vh,calc(100vh - 36px));border-radius:20px;transform:scale(.98);transform-origin:right bottom}.thinking-bar--corner.thinking-bar--open[data-v-de0d91bb]{transform:scale(1)}.thinking-bar-grid[data-v-de0d91bb]{display:none}.thinking-bar-header[data-v-de0d91bb]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid var(--tb-border);flex-shrink:0}.thinking-bar-title-stack[data-v-de0d91bb]{display:grid;gap:2px;min-width:0}.thinking-bar-kicker[data-v-de0d91bb]{color:var(--tb-text-muted);font-size:12px;font-weight:600;letter-spacing:.02em}.thinking-bar-title[data-v-de0d91bb]{color:var(--tb-text);font-size:17px;font-weight:600;letter-spacing:-.02em;line-height:1.35;min-width:0}.thinking-bar-memory-badge[data-v-de0d91bb]{display:inline-flex;width:fit-content;margin-top:4px;padding:3px 8px;border-radius:999px;border:1px solid rgba(14,165,233,.28);background:#0ea5e91a;color:#0284c7;font-size:11px;font-weight:600}.thinking-bar-memory-refresh[data-v-de0d91bb]{display:inline-flex;align-items:center;justify-content:center;width:fit-content;max-width:100%;border:1px solid color-mix(in srgb,var(--spotlight-accent, #0f766e) 35%,transparent);border-radius:999px;padding:4px 9px;background:color-mix(in srgb,var(--spotlight-accent, #0f766e) 8%,transparent);color:inherit;font:inherit;font-size:12px;line-height:1.35;white-space:nowrap;cursor:pointer}.thinking-bar-memory-refresh[data-v-de0d91bb]:hover{background:color-mix(in srgb,var(--spotlight-accent, #0f766e) 16%,transparent)}.thinking-bar-memory-result[data-v-de0d91bb]{position:relative;display:flex;min-height:0;flex:1;flex-direction:column;gap:16px;padding:18px;overflow-x:hidden;overflow-y:auto;background:radial-gradient(circle at 8% 0%,rgba(20,184,166,.1),transparent 34%),#f8fafc8f}.thinking-bar-memory-result-intro[data-v-de0d91bb]{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border:1px solid rgba(20,184,166,.24);border-radius:var(--tb-radius-lg);background:#f0fdfad1}.thinking-bar-memory-result-icon[data-v-de0d91bb]{display:inline-flex;width:30px;height:30px;flex:0 0 30px;align-items:center;justify-content:center;border-radius:999px;background:var(--tb-accent);color:#fff;font-size:15px;font-weight:700;box-shadow:0 6px 14px #14b8a633}.thinking-bar-memory-result-copy[data-v-de0d91bb]{display:grid;min-width:0;gap:3px}.thinking-bar-memory-result-eyebrow[data-v-de0d91bb]{color:#0f766e;font-size:11px;font-weight:700;letter-spacing:.04em}.thinking-bar-memory-result-copy strong[data-v-de0d91bb]{color:var(--tb-text);font-size:15px;line-height:1.45}.thinking-bar-memory-result-copy p[data-v-de0d91bb]{margin:0;color:var(--tb-text-muted);font-size:12px;line-height:1.55}.thinking-bar-memory-result-answer[data-v-de0d91bb]{min-width:0;padding:18px 20px;border:1px solid var(--tb-border);border-radius:var(--tb-radius-lg);background:#ffffffe6;box-shadow:0 8px 24px #0f172a0a}.thinking-bar-memory-result-answer-label[data-v-de0d91bb]{margin-bottom:10px;color:var(--tb-text-muted);font-size:11px;font-weight:700;letter-spacing:.06em}.thinking-bar-memory-result-footer[data-v-de0d91bb]{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--tb-text-muted);font-size:11px;line-height:1.5}.thinking-bar-memory-result-refresh[data-v-de0d91bb]{flex:0 0 auto;padding:7px 12px;color:#0f766e;font-size:12px;font-weight:600}.thinking-bar-metrics[data-v-de0d91bb]{display:flex;align-items:center;gap:8px;margin-left:auto}.thinking-bar-metric[data-v-de0d91bb]{display:grid;min-width:58px;padding:7px 9px;border:1px solid var(--tb-border);border-radius:var(--tb-radius-sm);background:var(--tb-surface-inset);text-align:center}.thinking-bar-metric strong[data-v-de0d91bb]{color:var(--tb-text);font-size:15px;line-height:1.1}.thinking-bar-metric em[data-v-de0d91bb]{color:var(--tb-text-muted);font-size:10px;font-style:normal;line-height:1.2}.thinking-bar-close[data-v-de0d91bb]{flex-shrink:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;padding:0;border:1px solid var(--tb-border);border-radius:var(--tb-radius-sm);background:var(--tb-surface-inset);color:var(--tb-text-muted);font-size:20px;line-height:1;cursor:pointer;transition:background .15s ease,color .15s ease}.thinking-bar-close[data-v-de0d91bb]:hover{background:var(--tb-surface-soft);color:var(--tb-text)}.thinking-bar-steps[data-v-de0d91bb]{padding:14px 16px 16px;flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;display:flex;flex-direction:column;gap:10px;background:#f8fafc73}.thinking-bar-steps[data-v-de0d91bb],.thinking-bar-step-body[data-v-de0d91bb],.thinking-bar-tool-call-block[data-v-de0d91bb],.thinking-bar-tool-result-table-wrap[data-v-de0d91bb],.thinking-bar-file-tree-body[data-v-de0d91bb],.thinking-bar-file-preview-body[data-v-de0d91bb]{-ms-overflow-style:none;scrollbar-width:none}.thinking-bar-steps[data-v-de0d91bb]::-webkit-scrollbar,.thinking-bar-step-body[data-v-de0d91bb]::-webkit-scrollbar,.thinking-bar-tool-call-block[data-v-de0d91bb]::-webkit-scrollbar,.thinking-bar-tool-result-table-wrap[data-v-de0d91bb]::-webkit-scrollbar,.thinking-bar-file-tree-body[data-v-de0d91bb]::-webkit-scrollbar,.thinking-bar-file-preview-body[data-v-de0d91bb]::-webkit-scrollbar{display:none}.thinking-bar-step[data-v-de0d91bb]{position:relative;display:flex;flex-direction:column;flex:0 0 auto;min-width:0;padding:12px 14px;border-radius:var(--tb-radius-lg);border:1px solid var(--tb-border);background:var(--tb-surface-inset);box-shadow:0 1px 2px #0f172a0a;overflow:hidden}.thinking-bar-step.active[data-v-de0d91bb]{border-color:#14b8a661;box-shadow:0 0 0 1px #14b8a61f}.thinking-bar-step.done[data-v-de0d91bb]{border-color:#0ea5e947}.thinking-bar-step.error[data-v-de0d91bb]{border-color:#ef444452}.thinking-bar-step.pending[data-v-de0d91bb]{opacity:.72}.thinking-bar-step-inner[data-v-de0d91bb]{display:flex;align-items:flex-start;gap:12px;min-width:0}.thinking-bar-step-status[data-v-de0d91bb]{flex-shrink:0;width:10px;height:10px;margin-top:5px;border-radius:999px;background:var(--tb-text-faint)}.thinking-bar-step-status.is-active[data-v-de0d91bb]{background:var(--tb-accent);box-shadow:0 0 0 4px #14b8a62e}.thinking-bar-step-status.is-done[data-v-de0d91bb]{background:var(--tb-info)}.thinking-bar-step-status.is-error[data-v-de0d91bb]{background:var(--tb-error)}.thinking-bar-step-column[data-v-de0d91bb]{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}.thinking-bar-step-label[data-v-de0d91bb]{color:var(--tb-text);font-size:15px;font-weight:600;line-height:1.45}.thinking-bar-step.pending .thinking-bar-step-label[data-v-de0d91bb]{color:var(--tb-text-muted)}.thinking-bar-step-body[data-v-de0d91bb]{max-height:min(42vh,400px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.thinking-bar-step-text[data-v-de0d91bb]{margin:0;color:var(--tb-text-secondary);font-size:14px;line-height:1.65;white-space:pre-wrap;word-break:break-word}.thinking-bar-step-process[data-v-de0d91bb]{color:var(--tb-text-muted)}.thinking-bar-gather-process[data-v-de0d91bb]{display:flex;flex-direction:column;gap:8px}.thinking-bar-gather-headline[data-v-de0d91bb],.thinking-bar-gather-note[data-v-de0d91bb]{margin:0;color:var(--tb-text-secondary);font-size:14px;line-height:1.65}.thinking-bar-gather-note[data-v-de0d91bb]{color:var(--tb-text-muted)}.thinking-bar-source-list[data-v-de0d91bb]{margin:0;padding:0 0 0 1.35em;color:var(--tb-text);font-size:14px;line-height:1.55}.thinking-bar-source-list li+li[data-v-de0d91bb]{margin-top:6px}.thinking-bar-step-markdown[data-v-de0d91bb]{white-space:normal}.thinking-bar-md-preview[data-v-de0d91bb]{--md-theme-bg-color: transparent;--md-color: var(--tb-text-secondary);--md-bk-color: transparent;--md-border-color: var(--tb-border);--md-code-bg-color: rgba(241, 245, 249, .98);--md-code-color: #0f766e;--md-table-even-color: rgba(248, 250, 252, .98);--md-table-odd-color: rgba(255, 255, 255, .98);--md-table-header-bg-color: rgba(241, 245, 249, .98)}.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview-wrapper{padding:0}.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview,.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview p,.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview li,.thinking-bar-step-answer[data-v-de0d91bb] .md-editor-preview p,.thinking-bar-step-answer[data-v-de0d91bb] .md-editor-preview li{color:var(--tb-text-secondary);font-size:14px;line-height:1.65}.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview h1,.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview h2,.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview h3,.thinking-bar-step-answer[data-v-de0d91bb] .md-editor-preview h1,.thinking-bar-step-answer[data-v-de0d91bb] .md-editor-preview h2,.thinking-bar-step-answer[data-v-de0d91bb] .md-editor-preview h3{margin:8px 0 4px;color:var(--tb-text);font-size:14px;font-weight:600}.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview strong{color:var(--tb-text)}.thinking-bar-tool-step-flow[data-v-de0d91bb]{--thinking-detail-gap: 10px;display:flex;flex-direction:column;gap:var(--thinking-detail-gap)}.thinking-bar-step-answer-section[data-v-de0d91bb]{display:flex;flex-direction:column;gap:8px}.thinking-bar-step-section-label[data-v-de0d91bb]{color:var(--tb-text);font-size:13px;font-weight:600}.thinking-bar-execution-details[data-v-de0d91bb],.thinking-bar-tool-call[data-v-de0d91bb]{border:1px solid var(--tb-border);border-radius:var(--tb-radius-md);background:var(--tb-surface);overflow:hidden}.thinking-bar-tool-call--nested[data-v-de0d91bb]{border-style:dashed;background:#ffffffb8}.thinking-bar-execution-details-summary[data-v-de0d91bb],.thinking-bar-tool-call-head[data-v-de0d91bb]{display:flex;align-items:center;gap:10px;padding:10px 12px;cursor:pointer;list-style:none;background:var(--tb-surface-soft)}.thinking-bar-execution-details-summary[data-v-de0d91bb]::-webkit-details-marker,.thinking-bar-tool-call-head[data-v-de0d91bb]::-webkit-details-marker{display:none}.thinking-bar-tool-call-head-main[data-v-de0d91bb]{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.thinking-bar-tool-call-head-side[data-v-de0d91bb]{display:flex;align-items:center;gap:8px;flex-shrink:0}.thinking-bar-execution-details-title[data-v-de0d91bb],.thinking-bar-tool-call-name[data-v-de0d91bb],.thinking-bar-workspace-title[data-v-de0d91bb],.thinking-bar-nested-tools-label[data-v-de0d91bb]{color:var(--tb-text);font-size:13px;font-weight:600}.thinking-bar-execution-details-meta[data-v-de0d91bb]{margin-left:auto;padding:2px 8px;border-radius:999px;border:1px solid var(--tb-border);background:var(--tb-surface-inset);color:var(--tb-text-muted);font-size:11px;font-weight:600}.thinking-bar-execution-details-caret[data-v-de0d91bb],.thinking-bar-tool-call-caret[data-v-de0d91bb]{color:var(--tb-text-faint);font-size:12px;transition:transform .18s ease}.thinking-bar-execution-details[open] .thinking-bar-execution-details-caret[data-v-de0d91bb],.thinking-bar-tool-call[open] .thinking-bar-tool-call-caret[data-v-de0d91bb]{transform:rotate(180deg)}.thinking-bar-execution-details-body[data-v-de0d91bb],.thinking-bar-tool-call-body[data-v-de0d91bb]{display:grid;gap:var(--thinking-detail-gap, 10px);padding:12px;border-top:1px solid var(--tb-border);max-height:min(40vh,380px);overflow-y:auto}.thinking-bar-execution-planning[data-v-de0d91bb],.thinking-bar-tool-call-block[data-v-de0d91bb]{margin:0;padding:10px 12px;border-radius:var(--tb-radius-sm);border:1px solid var(--tb-border);background:#fffffff5;color:var(--tb-text-secondary);font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.thinking-bar-tool-call-block[data-v-de0d91bb]{display:flex;flex-direction:column;gap:8px;max-height:min(28vh,280px);overflow:auto}.thinking-bar-tool-call-block-title[data-v-de0d91bb]{margin:0;color:#0d9488;font-size:11px;font-weight:700;letter-spacing:.03em}.thinking-bar-tool-call-block--error[data-v-de0d91bb]{border-color:#ef444447}.thinking-bar-tool-call-block--error .thinking-bar-tool-call-block-title[data-v-de0d91bb]{color:#dc2626}.thinking-bar-tool-call-pre[data-v-de0d91bb],.thinking-bar-tool-trace-item[data-v-de0d91bb],.thinking-bar-tool-call-id[data-v-de0d91bb]{margin:0;color:var(--tb-text-secondary);font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.thinking-bar-tool-call-id[data-v-de0d91bb]{font-size:11px;color:var(--tb-text-faint)}.thinking-bar-tool-call-status[data-v-de0d91bb]{padding:3px 9px;border-radius:999px;border:1px solid var(--tb-border);background:var(--tb-surface-inset);color:var(--tb-text-muted);font-size:11px;font-weight:600}.thinking-bar-tool-call-status.is-running[data-v-de0d91bb]{background:#f59e0b1f;border-color:#f59e0b47;color:#b45309}.thinking-bar-tool-call-status.is-done[data-v-de0d91bb]{background:#10b9811f;border-color:#10b98147;color:#047857}.thinking-bar-tool-call-status.is-error[data-v-de0d91bb]{background:#ef44441a;border-color:#ef444447;color:#b91c1c}.thinking-bar-tool-result-table-wrap[data-v-de0d91bb]{overflow:auto;border-radius:var(--tb-radius-sm);border:1px solid var(--tb-border)}.thinking-bar-tool-result-table[data-v-de0d91bb]{width:100%;border-collapse:collapse;font-size:12px}.thinking-bar-tool-result-table th[data-v-de0d91bb],.thinking-bar-tool-result-table td[data-v-de0d91bb]{padding:8px 10px;text-align:left;border-bottom:1px solid var(--tb-border);white-space:pre-wrap;word-break:break-word}.thinking-bar-tool-result-table th[data-v-de0d91bb]{background:#f1f5f9fa;color:var(--tb-text);font-weight:600}.thinking-bar-tool-result-table td[data-v-de0d91bb]{color:var(--tb-text-secondary);background:#fff}.thinking-bar-tool-result-image-shell[data-v-de0d91bb]{padding:8px;border-radius:var(--tb-radius-sm);background:#f8fafcfa}.thinking-bar-attachments[data-v-de0d91bb]{display:flex;flex-direction:column;gap:10px}.thinking-bar-attachment[data-v-de0d91bb]{padding:10px;border-radius:var(--tb-radius-md);border:1px solid rgba(14,165,233,.22);background:var(--tb-surface);text-decoration:none;color:inherit}.thinking-bar-attachment-name[data-v-de0d91bb]{color:var(--tb-text);font-size:13px;font-weight:600}.thinking-bar-attachment-type[data-v-de0d91bb]{color:#0284c7;font-size:12px}.thinking-bar-workspace-shell[data-v-de0d91bb]{display:grid;grid-template-columns:minmax(210px,240px) minmax(0,1fr);gap:10px}.thinking-bar-file-tree-pane[data-v-de0d91bb],.thinking-bar-file-preview[data-v-de0d91bb]{border:1px solid var(--tb-border);border-radius:var(--tb-radius-md);background:var(--tb-surface);overflow:hidden}.thinking-bar-file-tree-head[data-v-de0d91bb],.thinking-bar-file-preview-head[data-v-de0d91bb]{padding:10px 12px;border-bottom:1px solid var(--tb-border);color:var(--tb-text-secondary);font-size:12px;font-weight:600}.thinking-bar-file-tree-body[data-v-de0d91bb]{max-height:min(200px,100%);overflow:auto;padding:6px 0}.thinking-bar-tree-row[data-v-de0d91bb]{width:100%;min-height:34px;display:flex;align-items:center;gap:6px;padding:0 10px;border:0;background:transparent;color:var(--tb-text-secondary);text-align:left;cursor:pointer}.thinking-bar-tree-row[data-v-de0d91bb]:hover{background:#f1f5f9f2}.thinking-bar-tree-row--file.active[data-v-de0d91bb]{background:#ccfbf1a6;color:#0f766e}.thinking-bar-file-preview-body[data-v-de0d91bb]{margin:0;padding:12px;color:var(--tb-text-secondary);font-size:12px;line-height:1.65;white-space:pre-wrap;word-break:break-word}.thinking-bar-preview-chip[data-v-de0d91bb]{padding:2px 8px;border-radius:999px;background:#0ea5e91a;color:#0284c7;font-size:11px;font-weight:600}.thinking-bar-empty-preview[data-v-de0d91bb]{padding:16px;color:var(--tb-text-muted);font-size:13px}.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview table{display:block;overflow:auto;border-radius:var(--tb-radius-sm)}.thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview thead th{position:static}.thinking-bar-step-answer[data-v-de0d91bb]{margin:0}.thinking-bar-chat-items[data-v-de0d91bb]{display:flex;flex-direction:column;gap:8px}.thinking-bar-chat-item[data-v-de0d91bb]{min-width:0}.thinking-bar-tool-trace-list[data-v-de0d91bb]{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px}.thinking-bar-tool-trace-item[data-v-de0d91bb]{color:var(--tb-text-secondary);line-height:1.5}.thinking-bar-tool-result-image[data-v-de0d91bb]{display:block;width:100%;max-height:320px;object-fit:contain;border-radius:var(--tb-radius-sm)}.thinking-bar-tool-result-html[data-v-de0d91bb]{width:100%;min-height:min(200px,22vh);border:none;border-radius:var(--tb-radius-sm);background:#fff}.thinking-bar-attachment[data-v-de0d91bb]{display:flex;flex-direction:column;gap:10px}.thinking-bar-attachment-image[data-v-de0d91bb]{width:100%;max-height:240px;object-fit:contain;border-radius:var(--tb-radius-sm);background:#f8fafcfa}.thinking-bar-attachment-meta[data-v-de0d91bb]{display:flex;align-items:center;justify-content:space-between;gap:12px}.thinking-bar-workspace[data-v-de0d91bb]{display:flex;flex-direction:column;gap:10px;margin-top:4px}.thinking-bar-tree-node[data-v-de0d91bb]{display:block}.thinking-bar-tree-row--directory[data-v-de0d91bb]{color:var(--tb-text)}.thinking-bar-tree-caret[data-v-de0d91bb],.thinking-bar-tree-icon[data-v-de0d91bb]{flex-shrink:0}.thinking-bar-tree-label[data-v-de0d91bb]{min-width:0;font-size:12px;line-height:1.5;word-break:break-word}.thinking-bar-file-preview[data-v-de0d91bb]{min-width:0;display:flex;flex-direction:column;min-height:0}.thinking-bar-file-preview-title[data-v-de0d91bb]{min-width:0;display:flex;align-items:center;gap:8px}.thinking-bar-image-shell[data-v-de0d91bb]{flex:1;display:flex;align-items:center;justify-content:center;padding:12px;background:#f8fafcfa}.thinking-bar-image-preview[data-v-de0d91bb]{max-width:100%;max-height:320px;object-fit:contain;border-radius:var(--tb-radius-sm)}.thinking-bar-html-preview[data-v-de0d91bb]{flex:1;min-height:min(200px,28vh);border:none;background:#fff}.thinking-bar--corner .thinking-bar-title[data-v-de0d91bb]{font-size:16px}.thinking-bar--corner .thinking-bar-step-label[data-v-de0d91bb]{font-size:14px}.thinking-bar--corner .thinking-bar-step-text[data-v-de0d91bb],.thinking-bar--corner .thinking-bar-step-markdown[data-v-de0d91bb] .md-editor-preview{font-size:13px}.thinking-bar--corner .thinking-bar-tool-call-body[data-v-de0d91bb]{max-height:min(36vh,300px)}.thinking-bar--corner .thinking-bar-tool-call-block[data-v-de0d91bb]{max-height:min(24vh,200px)}.thinking-bar--corner .thinking-bar-header[data-v-de0d91bb]{padding:14px 16px 12px}.thinking-bar--corner .thinking-bar-steps[data-v-de0d91bb]{padding:12px 14px 14px}@media(max-width:768px){.thinking-bar--centered[data-v-de0d91bb]{width:calc(100vw - 24px);max-height:72vh}.thinking-bar--corner[data-v-de0d91bb]{right:12px;bottom:12px;width:min(360px,calc(100vw - 24px))}.thinking-bar-header[data-v-de0d91bb]{align-items:flex-start;flex-wrap:wrap}.thinking-bar-metrics[data-v-de0d91bb]{display:none}.thinking-bar-workspace-shell[data-v-de0d91bb]{grid-template-columns:1fr}.thinking-bar-memory-result[data-v-de0d91bb]{padding:14px}.thinking-bar-memory-result-footer[data-v-de0d91bb]{align-items:flex-start;flex-direction:column}}@media(prefers-reduced-motion:reduce){.thinking-bar[data-v-de0d91bb],.thinking-bar-close[data-v-de0d91bb],.thinking-bar-execution-details-caret[data-v-de0d91bb],.thinking-bar-tool-call-caret[data-v-de0d91bb]{transition:none}}.live2d-panel-shell[data-v-ca5091e3]{position:fixed;right:220px;bottom:16px;z-index:5000;width:min(420px,42vw);height:min(560px,52vh);pointer-events:none}.live2d-panel[data-v-ca5091e3]{position:absolute;inset:0;pointer-events:auto;touch-action:none;background:transparent}.live2d-close[data-v-ca5091e3]{position:absolute;top:12px;right:12px;z-index:4;width:32px;height:32px;border:1px solid rgba(148,163,184,.35);border-radius:999px;background:#ffffffdb;color:#64748b;font:22px/1 system-ui,sans-serif;cursor:pointer;pointer-events:auto;box-shadow:0 8px 22px #0f172a1a}.live2d-voice-controls[data-v-ca5091e3]{position:absolute;left:50%;bottom:12px;z-index:5;display:flex;flex-direction:column;align-items:center;gap:6px;transform:translate(-50%);pointer-events:auto;-webkit-user-select:none;user-select:none}.live2d-voice-button[data-v-ca5091e3]{position:relative;display:grid;place-items:center;width:54px;height:54px;border:1px solid rgba(13,148,136,.34);border-radius:999px;background:linear-gradient(145deg,#fff,#ecfeff);color:#0f766e;cursor:pointer;touch-action:none;box-shadow:0 12px 28px #0d948833,inset 0 1px #ffffffe6;transition:transform .16s ease,box-shadow .16s ease}.live2d-voice-button[data-v-ca5091e3]:not(:disabled):hover{transform:translateY(-2px)}.live2d-voice-button.is-recording[data-v-ca5091e3]{background:linear-gradient(145deg,#fff1f2,#ffe4e6);color:#e11d48;box-shadow:0 0 0 8px #f43f5e1f,0 14px 30px #e11d483d;animation:voice-pulse-ca5091e3 1.1s ease-in-out infinite}.live2d-voice-ring[data-v-ca5091e3]{position:absolute;inset:-3px;border-radius:inherit;background:conic-gradient(from 0deg,#0ea5e914,#0ea5e9,#14b8a6,#0ea5e914 72%);opacity:0;pointer-events:none;-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2px));mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2px))}.live2d-voice-button.is-transcribing .live2d-voice-ring[data-v-ca5091e3]{opacity:1;animation:voice-ring-spin-ca5091e3 1.3s linear infinite}.live2d-voice-button[data-v-ca5091e3]:disabled{cursor:not-allowed;opacity:.56}.live2d-mic-icon[data-v-ca5091e3]{width:14px;height:22px;border:2px solid currentcolor;border-radius:8px}.live2d-mic-icon[data-v-ca5091e3]:before{content:"";position:absolute;left:50%;top:25px;width:22px;height:12px;border:2px solid currentcolor;border-top:0;border-radius:0 0 12px 12px;transform:translate(-50%)}.live2d-mic-icon[data-v-ca5091e3]:after{content:"";position:absolute;left:50%;top:37px;width:2px;height:7px;background:currentcolor;transform:translate(-50%)}.live2d-voice-label[data-v-ca5091e3]{padding:4px 9px;border:1px solid rgba(148,163,184,.28);border-radius:999px;background:#ffffffe6;color:#475569;font-size:12px;line-height:1.2;box-shadow:0 6px 16px #0f172a14}.live2d-voice-error[data-v-ca5091e3]{width:min(280px,64vw);padding:7px 10px;border:1px solid rgba(244,63,94,.32);border-radius:10px;background:#fff1f2f5;color:#be123c;font-size:12px;line-height:1.45;max-height:72px;overflow:auto;text-align:center;box-shadow:0 8px 18px #9f12391f}.live2d-speech-bubble[data-v-ca5091e3]{position:absolute;right:calc(100% - 36px);bottom:44%;width:min(360px,40vw);max-height:32vh;overflow:hidden auto;border-radius:20px;border:1px solid rgba(148,163,184,.35);background:linear-gradient(165deg,#fffffff5,#f0fdfaf0);box-shadow:0 18px 36px #0f172a1a,inset 0 1px #ffffffe6;color:#0f172a;padding:10px 12px;pointer-events:auto}.live2d-speech-bubble.is-speaking[data-v-ca5091e3]{border-color:#14b8a673;box-shadow:0 20px 40px #14b8a624,0 0 0 1px #0ea5e92e,inset 0 1px #ffffffe6}.live2d-speech-head[data-v-ca5091e3]{display:inline-flex;align-items:center;gap:8px;color:#0d9488;font-size:12px;line-height:1}.live2d-speech-dot[data-v-ca5091e3]{width:8px;height:8px;border-radius:999px;background:currentcolor;box-shadow:0 0 12px currentcolor}.live2d-speech-bubble.is-speaking .live2d-speech-dot[data-v-ca5091e3]{animation:speech-pulse-ca5091e3 1.1s ease-in-out infinite}.live2d-speech-text[data-v-ca5091e3]{margin:8px 0 0;white-space:pre-wrap;word-break:break-word;font-size:13px;line-height:1.55;color:#334155}.speech-bubble-enter-active[data-v-ca5091e3],.speech-bubble-leave-active[data-v-ca5091e3]{transition:all .28s ease}.speech-bubble-enter-from[data-v-ca5091e3],.speech-bubble-leave-to[data-v-ca5091e3]{opacity:0;transform:translate(10px) scale(.98)}@keyframes speech-pulse-ca5091e3{0%{opacity:.65;transform:scale(.95)}50%{opacity:1;transform:scale(1.12)}to{opacity:.65;transform:scale(.95)}}@keyframes voice-pulse-ca5091e3{50%{transform:scale(1.04)}}@keyframes voice-ring-spin-ca5091e3{to{transform:rotate(360deg)}}@media(max-width:720px){.live2d-panel-shell[data-v-ca5091e3]{right:0;bottom:8px;width:min(360px,96vw);height:min(500px,62vh)}.live2d-speech-bubble[data-v-ca5091e3]{right:16px;bottom:70%;width:min(320px,88vw)}}.spotlight-avatar-reopen[data-v-826535e7]{position:fixed;right:24px;bottom:24px;z-index:2147483001;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 13px 8px 10px;border:1px solid rgba(14,165,233,.32);border-radius:999px;background:#fffffff0;color:#0f766e;font:600 13px/1 system-ui,sans-serif;cursor:pointer;box-shadow:0 12px 30px #0f766e33;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);transition:transform .18s ease,box-shadow .18s ease}.spotlight-avatar-reopen[data-v-826535e7]:hover{transform:translateY(-2px);box-shadow:0 16px 36px #0f766e42}.spotlight-avatar-reopen__drop[data-v-826535e7]{position:relative;width:22px;height:22px;border-radius:55% 45% 60% 40%;background:linear-gradient(145deg,#38bdf8,#14b8a6);transform:rotate(45deg);box-shadow:inset 3px 3px 5px #ffffff6b}.spotlight-avatar-reopen__drop[data-v-826535e7]:after{content:"";position:absolute;top:4px;left:4px;width:5px;height:5px;border-radius:50%;background:#ffffffdb}.spotlight-avatar-reopen__label[data-v-826535e7]{letter-spacing:.04em}@media(max-width:720px){.spotlight-avatar-reopen[data-v-826535e7]{right:14px;bottom:14px}}
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { type WavEnvelope } from "../spine/spineLipSync.js";
|
|
2
|
+
/** 段与段之间追加的静音,避免下一段硬切进来。 */
|
|
3
|
+
export declare const TTS_CLIP_SILENCE_MS = 160;
|
|
4
|
+
export declare function getTtsPlaybackContext(): AudioContext;
|
|
5
|
+
export declare function ttsSilenceSampleCount(sampleRate: number, silenceMs?: number): number;
|
|
6
|
+
export declare function appendSilenceToAudioBuffer(ctx: AudioContext, buffer: AudioBuffer, silenceMs?: number): AudioBuffer;
|
|
7
|
+
export type DecodedTtsAudio = {
|
|
8
|
+
audioBuffer: AudioBuffer;
|
|
9
|
+
envelope: WavEnvelope;
|
|
10
|
+
};
|
|
11
|
+
export declare function decodeTtsAudioFromBlob(blob: Blob): Promise<DecodedTtsAudio>;
|
|
12
|
+
export declare function stopTtsBufferPlayback(): void;
|
|
13
|
+
export declare function playTtsAudioBuffer(audioBuffer: AudioBuffer, signal?: AbortSignal, options?: {
|
|
14
|
+
onStart?: (getElapsedMs: () => number) => void;
|
|
15
|
+
}): Promise<void>;
|
|
3
16
|
//# sourceMappingURL=live2dTtsPlayback.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live2dTtsPlayback.d.ts","sourceRoot":"","sources":["../../../src/avatar/speech/live2dTtsPlayback.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"live2dTtsPlayback.d.ts","sourceRoot":"","sources":["../../../src/avatar/speech/live2dTtsPlayback.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,KAAK,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAExF,4BAA4B;AAC5B,eAAO,MAAM,mBAAmB,MAAM,CAAC;AAiBvC,wBAAgB,qBAAqB,IAAI,YAAY,CAKpD;AAED,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,EAClB,SAAS,SAAsB,GAC9B,MAAM,CAER;AAED,wBAAgB,0BAA0B,CACxC,GAAG,EAAE,YAAY,EACjB,MAAM,EAAE,WAAW,EACnB,SAAS,SAAsB,GAC9B,WAAW,CAYb;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,WAAW,EAAE,WAAW,CAAC;IACzB,QAAQ,EAAE,WAAW,CAAC;CACvB,CAAC;AAEF,wBAAsB,sBAAsB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,eAAe,CAAC,CAUjF;AAED,wBAAgB,qBAAqB,IAAI,IAAI,CAe5C;AAED,wBAAsB,kBAAkB,CACtC,WAAW,EAAE,WAAW,EACxB,MAAM,CAAC,EAAE,WAAW,EACpB,OAAO,CAAC,EAAE;IACR,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,MAAM,KAAK,IAAI,CAAC;CAChD,GACA,OAAO,CAAC,IAAI,CAAC,CA6Df"}
|
|
@@ -1,23 +1,85 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { wavEnvelopeFromAudioBuffer as b } from "../spine/spineLipSync.js";
|
|
2
|
+
const h = 160;
|
|
3
|
+
let s = null, c = null;
|
|
4
|
+
function w() {
|
|
5
|
+
const e = globalThis.AudioContext ?? globalThis.webkitAudioContext;
|
|
6
|
+
if (!e)
|
|
7
|
+
throw new Error("当前浏览器不支持 Web Audio");
|
|
8
|
+
return e;
|
|
9
|
+
}
|
|
10
|
+
function p() {
|
|
11
|
+
return (!s || s.state === "closed") && (s = new (w())()), s;
|
|
12
|
+
}
|
|
13
|
+
function y(e, t = h) {
|
|
14
|
+
return Math.max(0, Math.round(Math.max(0, t) / 1e3 * e));
|
|
15
|
+
}
|
|
16
|
+
function E(e, t, r = h) {
|
|
17
|
+
const o = y(t.sampleRate, r);
|
|
18
|
+
if (o <= 0) return t;
|
|
19
|
+
const n = e.createBuffer(
|
|
20
|
+
t.numberOfChannels,
|
|
21
|
+
t.length + o,
|
|
22
|
+
t.sampleRate
|
|
23
|
+
);
|
|
24
|
+
for (let a = 0; a < t.numberOfChannels; a += 1)
|
|
25
|
+
n.getChannelData(a).set(t.getChannelData(a));
|
|
26
|
+
return n;
|
|
27
|
+
}
|
|
28
|
+
async function S(e) {
|
|
29
|
+
const t = p();
|
|
30
|
+
t.state === "suspended" && await t.resume();
|
|
31
|
+
const r = await t.decodeAudioData((await e.arrayBuffer()).slice(0));
|
|
32
|
+
return {
|
|
33
|
+
audioBuffer: r,
|
|
34
|
+
envelope: b(r)
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function m() {
|
|
38
|
+
const e = c;
|
|
39
|
+
if (c = null, !!e) {
|
|
40
|
+
e.onended = null;
|
|
41
|
+
try {
|
|
42
|
+
e.stop();
|
|
43
|
+
} catch {
|
|
44
|
+
}
|
|
45
|
+
try {
|
|
46
|
+
e.disconnect();
|
|
47
|
+
} catch {
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
async function M(e, t, r) {
|
|
52
|
+
const o = p();
|
|
53
|
+
o.state === "suspended" && await o.resume(), m();
|
|
54
|
+
const n = o.createBufferSource();
|
|
55
|
+
n.buffer = e, n.connect(o.destination), c = n;
|
|
56
|
+
const a = o.currentTime, C = () => Math.max(0, (o.currentTime - a) * 1e3);
|
|
57
|
+
return r?.onStart?.(C), new Promise((x, A) => {
|
|
58
|
+
let u = !1;
|
|
59
|
+
const T = () => {
|
|
60
|
+
u || (u = !0, f(), c === n && (c = null), x());
|
|
61
|
+
}, d = (l) => {
|
|
62
|
+
u || (u = !0, f(), c === n && m(), A(l));
|
|
63
|
+
}, i = () => d(new DOMException("Aborted", "AbortError")), f = () => {
|
|
64
|
+
n.onended = null, t?.removeEventListener("abort", i);
|
|
13
65
|
};
|
|
14
|
-
if (
|
|
66
|
+
if (n.onended = () => T(), t?.addEventListener("abort", i, { once: !0 }), t?.aborted) {
|
|
15
67
|
i();
|
|
16
68
|
return;
|
|
17
69
|
}
|
|
18
|
-
|
|
70
|
+
try {
|
|
71
|
+
n.start();
|
|
72
|
+
} catch (l) {
|
|
73
|
+
d(l);
|
|
74
|
+
}
|
|
19
75
|
});
|
|
20
76
|
}
|
|
21
77
|
export {
|
|
22
|
-
|
|
78
|
+
h as TTS_CLIP_SILENCE_MS,
|
|
79
|
+
E as appendSilenceToAudioBuffer,
|
|
80
|
+
S as decodeTtsAudioFromBlob,
|
|
81
|
+
p as getTtsPlaybackContext,
|
|
82
|
+
M as playTtsAudioBuffer,
|
|
83
|
+
m as stopTtsBufferPlayback,
|
|
84
|
+
y as ttsSilenceSampleCount
|
|
23
85
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spotlightSpeech.d.ts","sourceRoot":"","sources":["../../../src/avatar/speech/spotlightSpeech.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,OAAO,CAAC;CACd,CAAC;AAYF,wBAAgB,wBAAwB,IAAI,OAAO,CAKlD;AA2BD,8DAA8D;AAC9D,qBAAa,sBAAsB;IACjC,OAAO,CAAC,aAAa,CAA8B;IAEnD,OAAO,CAAC,WAAW,CAA4B;IAE/C,OAAO,CAAC,WAAW,CAAkB;IAErC,OAAO,CAAC,OAAO,CAAS;IAExB,IAAI,WAAW,IAAI,OAAO,CAGzB;IAEK,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"spotlightSpeech.d.ts","sourceRoot":"","sources":["../../../src/avatar/speech/spotlightSpeech.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,OAAO,CAAC;CACd,CAAC;AAYF,wBAAgB,wBAAwB,IAAI,OAAO,CAKlD;AA2BD,8DAA8D;AAC9D,qBAAa,sBAAsB;IACjC,OAAO,CAAC,aAAa,CAA8B;IAEnD,OAAO,CAAC,WAAW,CAA4B;IAE/C,OAAO,CAAC,WAAW,CAAkB;IAErC,OAAO,CAAC,OAAO,CAAS;IAExB,IAAI,WAAW,IAAI,OAAO,CAGzB;IAEK,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IA4B/B,iBAAiB,CACrB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,4BAA4B,CAAC;IAyDlC,UAAU,CACd,IAAI,EAAE,MAAM,EACZ,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC;IAS9C,MAAM,IAAI,IAAI;IAYd,OAAO,CAAC,UAAU;IAKlB,OAAO,CAAC,KAAK;IAMb,OAAO,CAAC,cAAc;CAMvB"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { spotlightTranscribeAudio as n, extractTranscriptionText as d, spotlightSynthesizeSpeech as c } from "../../remote/audio.js";
|
|
2
|
-
function
|
|
2
|
+
function l() {
|
|
3
3
|
return !1;
|
|
4
4
|
}
|
|
5
5
|
async function h(a) {
|
|
6
|
-
const e = await a.arrayBuffer(),
|
|
7
|
-
let
|
|
8
|
-
const
|
|
9
|
-
for (let
|
|
10
|
-
|
|
11
|
-
return btoa(
|
|
6
|
+
const e = await a.arrayBuffer(), r = new Uint8Array(e);
|
|
7
|
+
let i = "";
|
|
8
|
+
const o = 32768;
|
|
9
|
+
for (let t = 0; t < r.length; t += o)
|
|
10
|
+
i += String.fromCharCode(...r.subarray(t, t + o));
|
|
11
|
+
return btoa(i);
|
|
12
12
|
}
|
|
13
13
|
function u() {
|
|
14
14
|
if (typeof window < "u" && window.isSecureContext === !1)
|
|
@@ -20,7 +20,7 @@ function u() {
|
|
|
20
20
|
if (typeof MediaRecorder > "u")
|
|
21
21
|
throw new Error("当前浏览器不支持 MediaRecorder。");
|
|
22
22
|
}
|
|
23
|
-
class
|
|
23
|
+
class f {
|
|
24
24
|
mediaRecorder = null;
|
|
25
25
|
mediaStream = null;
|
|
26
26
|
audioChunks = [];
|
|
@@ -29,53 +29,61 @@ class m {
|
|
|
29
29
|
return this.mediaRecorder?.state === "recording";
|
|
30
30
|
}
|
|
31
31
|
async startRecording() {
|
|
32
|
-
this.isRecording
|
|
32
|
+
if (this.isRecording) return;
|
|
33
|
+
u(), this.audioChunks = [], this.mediaStream = await navigator.mediaDevices.getUserMedia({
|
|
33
34
|
audio: !0
|
|
34
|
-
})
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
});
|
|
36
|
+
const e = [
|
|
37
|
+
"audio/ogg;codecs=opus",
|
|
38
|
+
"audio/webm;codecs=opus",
|
|
39
|
+
"audio/webm",
|
|
40
|
+
"audio/mp4"
|
|
41
|
+
].find((r) => MediaRecorder.isTypeSupported(r));
|
|
42
|
+
this.mediaRecorder = e ? new MediaRecorder(this.mediaStream, { mimeType: e }) : new MediaRecorder(this.mediaStream), this.mediaRecorder.ondataavailable = (r) => {
|
|
43
|
+
r.data.size > 0 && this.audioChunks.push(r.data);
|
|
44
|
+
}, this.mediaRecorder.start(), this.started = !0;
|
|
37
45
|
}
|
|
38
46
|
async stopAndTranscribe(e) {
|
|
39
47
|
if (!this.started)
|
|
40
48
|
throw new Error("语音录制尚未开始。");
|
|
41
49
|
if (!this.mediaRecorder)
|
|
42
50
|
throw new Error("语音录制尚未开始。");
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
51
|
+
const r = this.mediaRecorder, i = await new Promise((t, s) => {
|
|
52
|
+
r.onerror = () => s(new Error("语音录制失败,请重试。")), r.onstop = () => {
|
|
53
|
+
t(
|
|
46
54
|
new Blob(this.audioChunks, {
|
|
47
|
-
type:
|
|
55
|
+
type: r.mimeType || "audio/webm"
|
|
48
56
|
})
|
|
49
57
|
);
|
|
50
|
-
},
|
|
58
|
+
}, r.stop();
|
|
51
59
|
});
|
|
52
|
-
if (this.stopTracks(),
|
|
60
|
+
if (this.stopTracks(), i.size <= 0)
|
|
53
61
|
throw new Error("未采集到语音内容,请重试。");
|
|
54
|
-
const
|
|
62
|
+
const o = `spotlight-recording.${this.resolveFileExt(i.type)}`;
|
|
55
63
|
try {
|
|
56
|
-
const
|
|
64
|
+
const t = await n(
|
|
57
65
|
{
|
|
58
|
-
file: await h(
|
|
59
|
-
mimeType:
|
|
60
|
-
filename:
|
|
66
|
+
file: await h(i),
|
|
67
|
+
mimeType: i.type || "audio/webm",
|
|
68
|
+
filename: o
|
|
61
69
|
},
|
|
62
70
|
e
|
|
63
|
-
),
|
|
64
|
-
if (!
|
|
65
|
-
return { text:
|
|
66
|
-
} catch (
|
|
67
|
-
const
|
|
68
|
-
throw new Error(`Spotlight STT failed: ${
|
|
71
|
+
), s = d(t);
|
|
72
|
+
if (!s) throw new Error("STT 返回为空,请重试。");
|
|
73
|
+
return { text: s, raw: t };
|
|
74
|
+
} catch (t) {
|
|
75
|
+
const s = t instanceof Error ? t.message : String(t);
|
|
76
|
+
throw new Error(`Spotlight STT failed: ${s}`);
|
|
69
77
|
} finally {
|
|
70
78
|
this.reset();
|
|
71
79
|
}
|
|
72
80
|
}
|
|
73
|
-
async synthesize(e,
|
|
81
|
+
async synthesize(e, r) {
|
|
74
82
|
try {
|
|
75
|
-
return await c(e,
|
|
76
|
-
} catch (
|
|
77
|
-
const
|
|
78
|
-
throw new Error(`Spotlight TTS failed: ${
|
|
83
|
+
return await c(e, r);
|
|
84
|
+
} catch (i) {
|
|
85
|
+
const o = i instanceof Error ? i.message : String(i);
|
|
86
|
+
throw new Error(`Spotlight TTS failed: ${o}`);
|
|
79
87
|
}
|
|
80
88
|
}
|
|
81
89
|
cancel() {
|
|
@@ -92,6 +100,6 @@ class m {
|
|
|
92
100
|
}
|
|
93
101
|
}
|
|
94
102
|
export {
|
|
95
|
-
|
|
96
|
-
|
|
103
|
+
f as SpotlightSpeechService,
|
|
104
|
+
l as hasSpotlightSpeechConfig
|
|
97
105
|
};
|
|
@@ -2,8 +2,11 @@ import { type WavEnvelope } from "./spineAvatar";
|
|
|
2
2
|
/** 数字人小滴(Spine / public/little-drop) */
|
|
3
3
|
export declare function startLive2dApp(): Promise<void>;
|
|
4
4
|
export declare function stopLive2dApp(): void;
|
|
5
|
+
export declare function bindLive2dLipSyncToClock(getElapsedMs: () => number, envelope: WavEnvelope): void;
|
|
5
6
|
export declare function bindLive2dLipSyncToAudio(audio: HTMLAudioElement, envelope: WavEnvelope): void;
|
|
6
7
|
export declare function bindLive2dLipSyncToAudioUrl(audio: HTMLAudioElement, audioUrl: string): Promise<void>;
|
|
8
|
+
export declare function bindLive2dLipSyncToMediaStream(stream: MediaStream): void;
|
|
9
|
+
export declare function resumeLive2dLipSyncAudio(): Promise<void>;
|
|
7
10
|
export declare function stopLive2dLipSync(): void;
|
|
8
11
|
export type { WavEnvelope };
|
|
9
12
|
/** 与开场招呼语 TTS 同步时播放一次 hello 挥手(仅身体,嘴型跟 audio) */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live2dApp.d.ts","sourceRoot":"","sources":["../../../src/avatar/spine/live2dApp.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"live2dApp.d.ts","sourceRoot":"","sources":["../../../src/avatar/spine/live2dApp.ts"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,WAAW,EACjB,MAAM,eAAe,CAAC;AAEvB,wCAAwC;AACxC,wBAAsB,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC,CAEpD;AAED,wBAAgB,aAAa,IAAI,IAAI,CAEpC;AAED,wBAAgB,wBAAwB,CACtC,YAAY,EAAE,MAAM,MAAM,EAC1B,QAAQ,EAAE,WAAW,GACpB,IAAI,CAEN;AAED,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,gBAAgB,EACvB,QAAQ,EAAE,WAAW,GACpB,IAAI,CAEN;AAED,wBAAsB,2BAA2B,CAC/C,KAAK,EAAE,gBAAgB,EACvB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC,CAEf;AAED,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAExE;AAED,wBAAsB,wBAAwB,IAAI,OAAO,CAAC,IAAI,CAAC,CAE9D;AAED,wBAAgB,iBAAiB,IAAI,IAAI,CAExC;AAED,YAAY,EAAE,WAAW,EAAE,CAAC;AAE5B,iDAAiD;AACjD,wBAAgB,eAAe,IAAI,IAAI,CAEtC"}
|
|
@@ -1,27 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
async function
|
|
3
|
-
await
|
|
1
|
+
import { bindSpineLipSyncToAudioUrl as o, resumeSpineLipSyncAudio as p, startSpineAvatar as e, stopSpineAvatar as c, bindSpineLipSyncToClock as t, bindSpineLipSyncToAudio as d, bindSpineLipSyncToMediaStream as S, stopSpineLipSync as a, playSpineHello as L } from "./spineAvatar.js";
|
|
2
|
+
async function y() {
|
|
3
|
+
await e();
|
|
4
4
|
}
|
|
5
|
-
function
|
|
6
|
-
|
|
5
|
+
function r() {
|
|
6
|
+
c();
|
|
7
7
|
}
|
|
8
|
-
function
|
|
9
|
-
|
|
8
|
+
function s(i, n) {
|
|
9
|
+
t(i, n);
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
function v(i, n) {
|
|
12
|
+
d(i, n);
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
async function f(i, n) {
|
|
15
|
+
await o(i, n);
|
|
16
|
+
}
|
|
17
|
+
function l(i) {
|
|
18
|
+
S(i);
|
|
19
|
+
}
|
|
20
|
+
async function A() {
|
|
21
|
+
await p();
|
|
22
|
+
}
|
|
23
|
+
function b() {
|
|
15
24
|
a();
|
|
16
25
|
}
|
|
17
|
-
function
|
|
18
|
-
|
|
26
|
+
function T() {
|
|
27
|
+
L();
|
|
19
28
|
}
|
|
20
29
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
30
|
+
v as bindLive2dLipSyncToAudio,
|
|
31
|
+
f as bindLive2dLipSyncToAudioUrl,
|
|
32
|
+
s as bindLive2dLipSyncToClock,
|
|
33
|
+
l as bindLive2dLipSyncToMediaStream,
|
|
34
|
+
T as playLive2dHello,
|
|
35
|
+
A as resumeLive2dLipSyncAudio,
|
|
36
|
+
y as startLive2dApp,
|
|
37
|
+
r as stopLive2dApp,
|
|
38
|
+
b as stopLive2dLipSync
|
|
27
39
|
};
|
|
@@ -6,8 +6,12 @@ export declare function configureSpineAvatar(config?: SpotlightAvatarConfig): vo
|
|
|
6
6
|
export declare function playSpineHello(): void;
|
|
7
7
|
export declare function startSpineAvatar(): Promise<void>;
|
|
8
8
|
export declare function stopSpineAvatar(): void;
|
|
9
|
+
/** 将口型与 TTS 播放时钟绑定(Web Audio 的 currentTime) */
|
|
10
|
+
export declare function bindSpineLipSyncToClock(getElapsedMs: () => number, envelope: WavEnvelope): void;
|
|
9
11
|
/** 将口型与指定 audio 元素绑定(须在 play() 前后均可,以 currentTime 为准) */
|
|
10
12
|
export declare function bindSpineLipSyncToAudio(audio: HTMLAudioElement, envelope: WavEnvelope): void;
|
|
13
|
+
export declare function bindSpineLipSyncToMediaStream(stream: MediaStream): void;
|
|
14
|
+
export declare function resumeSpineLipSyncAudio(): Promise<void>;
|
|
11
15
|
/** 从音频 URL 解析包络并绑定(与 bindSpineLipSyncToAudio 二选一) */
|
|
12
16
|
export declare function bindSpineLipSyncToAudioUrl(audio: HTMLAudioElement, audioUrl: string): Promise<void>;
|
|
13
17
|
export declare function stopSpineLipSync(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spineAvatar.d.ts","sourceRoot":"","sources":["../../../src/avatar/spine/spineAvatar.ts"],"names":[],"mappings":"AAEA,OAAO,EAKL,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,cAAc,CAAC;AAEtB,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AASrD,wBAAgB,oBAAoB,CAAC,MAAM,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAEzE;
|
|
1
|
+
{"version":3,"file":"spineAvatar.d.ts","sourceRoot":"","sources":["../../../src/avatar/spine/spineAvatar.ts"],"names":[],"mappings":"AAEA,OAAO,EAKL,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,cAAc,CAAC;AAEtB,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AASrD,wBAAgB,oBAAoB,CAAC,MAAM,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAEzE;AAwED,sDAAsD;AACtD,wBAAgB,cAAc,IAAI,IAAI,CAsBrC;AA4CD,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CAwBtD;AAED,wBAAgB,eAAe,IAAI,IAAI,CAqBtC;AAED,+CAA+C;AAC/C,wBAAgB,uBAAuB,CACrC,YAAY,EAAE,MAAM,MAAM,EAC1B,QAAQ,EAAE,WAAW,GACpB,IAAI,CAQN;AAED,yDAAyD;AACzD,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,gBAAgB,EACvB,QAAQ,EAAE,WAAW,GACpB,IAAI,CAEN;AAED,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAgBvE;AAED,wBAAsB,uBAAuB,IAAI,OAAO,CAAC,IAAI,CAAC,CAI7D;AAUD,qDAAqD;AACrD,wBAAsB,0BAA0B,CAC9C,KAAK,EAAE,gBAAgB,EACvB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC,CAGf;AAED,wBAAgB,gBAAgB,IAAI,IAAI,CAOvC"}
|