import { t as H, i as v } from "./style.DCsxnXO7.js"; import { u as T, p as S, q as f, s as _, d as k, t as D, v as E, w, x as G, y as X, z as b, A as F, f as B, B as K, E as J, G as q, H as Q, J as W, c as Y, F as Z, a as ee, K as ae, N as te, O as ne, Q as se, U as re, W as oe, X as ie, I as ce, Y as le, Z as me, _ as ue, $ as de, a0 as ge, L as Se, a1 as pe, a2 as ye, a3 as $e, a4 as Pe, a5 as ve, P as Te, h as fe, a6 as _e, a7 as be, a8 as Fe, a9 as Ve, aa as Oe, ab as Ne, ac as he, R as xe, j as Me, ad as je, ae as Ce, af as Ie, ag as Le, ah as ze, ai as Ue, aj as Re, k as r, ak as Ae, al as He, am as ke, an as De, ao as Ee, b as o, S as t, l as we, ap as Ge, aq as Xe, ar as Be, as as Ke, at as Je, V as qe, o as Qe, au as We, av as Ye, aw as Ze, ax as ea, ay as aa, az as ta, aA as na, aB as sa, aC as ra, aD as oa, aE as ia, aF as ca, aG as la, aH as ma } from "./VirtualKeyboard.x9bo5ETV.js"; import { u as c } from "./jsxRuntime.module.92xvPm7T.js"; import { y as V, t as ua, a7 as da, z as ga, v as Sa, a8 as pa } from "./index.B_XvPxIW.js"; import { u as O } from "./shallow.lfXlupDF.js"; import { i as N } from "./style.CU-7jY0u.js"; import { s as ya } from "./element-speaker.DuV-67Vf.js"; import { S as $a, c as Pa, d as va, e as Ta, n as fa, s as _a, t as ba, P as Fa, a as Va, b as Oa, f as Na, g as ha, h as xa, i as Ma } from "./store.D5MkcbeN.js"; import { C as ja, F as Ca, c as Ia, a as La, b as za, d as h, e as Ua, i as Ra } from "./index.Dlc3VA1f.js"; import { T as Aa, c as Ha, d as ka, e as Da, n as Ea, s as wa } from "./store.CIwOEmOM.js"; import { t as x } from "./tokens.CKbL8mrq.js"; const Ga = () => { const e = S(), a = f( O((i) => ({ searchText: i.searchText, setSearchText: i.setSearchText, isLoading: i.isLoading, contents: i.result })) ); V(() => () => { a.setSearchText(""); }, []); const n = e ? 150 : 30; return /* @__PURE__ */ c( _, { setSearchText: a.setSearchText, clearSearchText: () => a.setSearchText(""), definition: { isLoading: a.isLoading, contents: a.contents }, maxTextLength: n, searchingText: a.searchText } ); }, Xa = () => { const e = T(), a = S(); return !e && !a ? null : /* @__PURE__ */ c(Ga, {}); }, Ba = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, Dictionary: Xa, DictionaryVariant: k, componentParams: D, direct: E, eventParams: w, name: G, style: X, useDefinitionSearchStore: f, useIsUsingDictionary: T, useIsUsingPlainJapanese: S }, Symbol.toStringTag, { value: "Module" })), Ka = () => { const e = F( O((n) => ({ searchText: n.searchText, setSearchText: n.setSearchText, isLoading: n.isLoading, contents: n.result })) ); return V(() => () => { e.setSearchText(""); }, []), /* @__PURE__ */ c( _, { setSearchText: e.setSearchText, clearSearchText: () => e.setSearchText(""), maxTextLength: 30, definition: { isLoading: e.isLoading, contents: e.contents }, searchingText: e.searchText } ); }, Ja = () => b() ? /* @__PURE__ */ c(Ka, {}) : null, qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, Furigana: Ja, FuriganaVariant: B, componentParams: K, direct: J, eventParams: q, name: Q, style: W, useFuriganaSearchStore: F, useIsUsingFurigana: b }, Symbol.toStringTag, { value: "Module" })), M = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, CursorVariant: Y, Focus: Z, ReadingGuide: ee, componentParams: ae, direct: te, eventParams: ne, name: se, style: re, useCursorIsFocus: oe, useCursorIsReadingGuide: ie }, Symbol.toStringTag, { value: "Module" })), Qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, ImageHideVariant: ce, componentParams: le, direct: me, eventParams: ue, imgToTextStyle: N, name: de, style: ge }, Symbol.toStringTag, { value: "Module" })), Wa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, LargeDisplayVariant: Se, componentParams: pe, direct: ye, eventParams: $e, name: Pe, style: ve }, Symbol.toStringTag, { value: "Module" })), Ya = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, PageStructure: Te, PageStructureVariant: fe, componentParams: _e, direct: be, eventParams: Fe, name: Ve, style: Oe, useIsUsingPageStructure: Ne, useResetPageStructureState: he }, Symbol.toStringTag, { value: "Module" })), Za = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, ScreenReaderVariant: $a, componentParams: Pa, direct: va, eventParams: Ta, name: fa, style: _a, toggleScreenReaderByHotkey: ba }, Symbol.toStringTag, { value: "Module" })), et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, PartialScreenReaderVariant: Fa, componentParams: Va, direct: Oa, eventParams: Na, name: ha, style: xa, togglePartialScreenReaderByHotkey: Ma }, Symbol.toStringTag, { value: "Module" })), at = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, ReadingMode: xe, ReadingModeVariant: Me, componentParams: je, direct: Ce, eventParams: Ie, name: Le, style: ze, useIsUsingReadingMode: Ue, useResetReadingModeState: Re }, Symbol.toStringTag, { value: "Module" })), tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, SmartContrastVariant: r, componentParams: Ae, direct: He, eventParams: ke, name: De, style: Ee }, Symbol.toStringTag, { value: "Module" })), nt = { [t.FS1]: "saturate(0.5)", [t.FS2]: "saturate(3)", [t.FS3]: "saturate(0)", [r.FSMCONT1]: "hue-rotate(15deg)", [o.FCONT1]: "invert(1)" }, st = (...e) => `filter: ${e.map((a) => nt[a]).join(" ")}!important;`, s = (...e) => ` ${e.map((a) => `.${ja}${a}`).join("")} { ${st(...e)} } `, rt = ` ${s(t.FS1, o.FCONT1)} ${s(t.FS2, o.FCONT1)} ${s(t.FS3, o.FCONT1)} ${s(r.FSMCONT1, o.FCONT1)} ${s(r.FSMCONT1, t.FS1)} ${s(r.FSMCONT1, t.FS2)} ${s(r.FSMCONT1, t.FS3)} ${s(r.FSMCONT1, o.FCONT1, t.FS1)} ${s(r.FSMCONT1, o.FCONT1, t.FS2)} ${s(r.FSMCONT1, o.FCONT1, t.FS3)} `, ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, TextAlignVariant: we, componentParams: Ge, direct: Xe, eventParams: Be, name: Ke, style: Je }, Symbol.toStringTag, { value: "Module" })), j = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, TooltipVariant: Aa, componentParams: Ha, direct: ka, eventParams: Da, name: Ea, style: wa }, Symbol.toStringTag, { value: "Module" })), C = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, VirtualKeyboard: qe, VirtualKeyboardVariant: Qe, componentParams: We, direct: Ye, eventParams: Ze, name: ea, style: aa, useIsUsingVirtualKeyboard: ta }, Symbol.toStringTag, { value: "Module" })), d = { activate: async () => { const e = await P(); e == null || e.activate(); }, deactivate: async () => { const e = await P(); e == null || e.deactivate(); } }; let m; const P = async () => { if (m) return m; const [e, a] = await ua(() => import("./lazy.DDSNUkcP.js").then((n) => n.l))(); return e ? (console.error("Error loading VoiceNavigation:", e), null) : (m = a.VoiceNavigationController, m); }, l = Ca.VOICE_NAVIGATION, I = { FVNAV: "FVNAV" }, g = [ { titleToken: x.features.voiceNavigation, variant: I.FVNAV, icon: h.IconVoiceNavigation } ], it = H, ct = () => (e, a, n) => ({ ...da("feature-handle-voice-navigation", a, (i) => { var $; const R = Ra(a), y = i.variant, A = ($ = a()) == null ? void 0 : $.variant; return y === A ? {} : y === void 0 ? (d.deactivate(), {}) : (R ? setTimeout(() => { d.activate(); }, 1e3) : d.activate(), {}); }) }), u = La(l, [ Ua(l, g), ct() ]), p = Ia(u), L = () => u().use((e) => e.variant), lt = () => p.set, mt = { titleToken: x.features.voiceNavigation, icon: h.IconVoiceNavigation, steps: g, useVariant: () => u().use((e) => e.variant), useSetNextVariant: () => za(u, g) }, ut = { name: l, setVariant: p.set }, dt = ga(() => import("./VoiceNavigation.lazy.BHD6IZT_.js")), gt = () => !L() || !v ? null : /* @__PURE__ */ c(Sa, { fallback: null, children: /* @__PURE__ */ c(dt, {}) }), St = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, VoiceNavigation: gt, VoiceNavigationVariant: I, componentParams: mt, direct: p, eventParams: ut, name: l, style: it, useSetVoiceNavigationState: lt, useVoiceNavigationValue: L }, Symbol.toStringTag, { value: "Module" })), z = [ et, na, tt, sa, Wa, ra, oa, Qa, at, ia, M, j, Ya, ca, ot, la, ma, Ba, qa, C, Za, St ], pt = [M, j, C], yt = () => z.filter((e) => !(pa.isMobile && pt.some((n) => n.name === e.name) || e.name === l && !v)), U = yt(), ht = ` ${U.map((e) => e.style).join(` `)} ${rt} ${ya} ${N} `, xt = U.flatMap((e) => "headTags" in e ? e.headTags : []), Mt = () => { for (const e of z) e.direct.reset(); }; export { Xa as D, Ja as F, gt as V, xt as a, ht as b, U as f, Mt as r, lt as u };