@wix/himalaya-cli 0.1872.0 → 0.1873.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/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{ab91dfb9c348c8c78f942a5b88ba90df456c5b436e135d97791d5dd95d6a40dc.bin → a9d34f09c807f1cde9ab000737f0f7b849670c37908aa47cb77889b7e01d34cb.bin} +1 -1
- package/dist/browser-plane/sw.js +9 -9
- package/dist/cli.mjs +417 -284
- package/dist/preview-assets.generated.bin +0 -0
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -21680,6 +21680,249 @@ var init_a11y_contract = __esm({
|
|
|
21680
21680
|
}
|
|
21681
21681
|
});
|
|
21682
21682
|
|
|
21683
|
+
// ../../core/ts/src/brand-color-math.ts
|
|
21684
|
+
function channel(hex2, offset) {
|
|
21685
|
+
return Number.parseInt(hex2.slice(offset, offset + 2), 16);
|
|
21686
|
+
}
|
|
21687
|
+
function toHex(r3, g2, b3) {
|
|
21688
|
+
return `#${[r3, g2, b3].map((value2) => Math.round(value2).toString(16).padStart(2, "0")).join("")}`.toUpperCase();
|
|
21689
|
+
}
|
|
21690
|
+
function mix(color, background, colorWeight) {
|
|
21691
|
+
const values = [1, 3, 5].map((offset) => channel(color, offset) * colorWeight + channel(background, offset) * (1 - colorWeight));
|
|
21692
|
+
return toHex(values[0], values[1], values[2]);
|
|
21693
|
+
}
|
|
21694
|
+
function relativeLuminance(color) {
|
|
21695
|
+
const linear = [1, 3, 5].map((offset) => {
|
|
21696
|
+
const value2 = channel(color, offset) / 255;
|
|
21697
|
+
return value2 <= 0.03928 ? value2 / 12.92 : ((value2 + 0.055) / 1.055) ** 2.4;
|
|
21698
|
+
});
|
|
21699
|
+
return 0.2126 * linear[0] + 0.7152 * linear[1] + 0.0722 * linear[2];
|
|
21700
|
+
}
|
|
21701
|
+
function contrastRatio(a3, b3) {
|
|
21702
|
+
const la2 = relativeLuminance(a3);
|
|
21703
|
+
const lb = relativeLuminance(b3);
|
|
21704
|
+
return (Math.max(la2, lb) + 0.05) / (Math.min(la2, lb) + 0.05);
|
|
21705
|
+
}
|
|
21706
|
+
function lstar(color) {
|
|
21707
|
+
const y2 = relativeLuminance(color);
|
|
21708
|
+
return y2 <= 8856e-6 ? y2 * 903.3 : 116 * Math.cbrt(y2) - 16;
|
|
21709
|
+
}
|
|
21710
|
+
function deriveAccentSurface(accent, surface, weight2) {
|
|
21711
|
+
const tint = mix(accent, surface, weight2);
|
|
21712
|
+
if (contrastRatio(tint, surface) >= ACCENT_SURFACE_MIN_DELTA) return tint;
|
|
21713
|
+
const away = relativeLuminance(surface) < 0.5 ? "#FFFFFF" : "#000000";
|
|
21714
|
+
for (let w2 = 0.02; w2 <= 0.5; w2 += 0.02) {
|
|
21715
|
+
const candidate = mix(away, surface, w2);
|
|
21716
|
+
if (contrastRatio(candidate, surface) >= ACCENT_SURFACE_MIN_DELTA) return candidate;
|
|
21717
|
+
}
|
|
21718
|
+
return tint;
|
|
21719
|
+
}
|
|
21720
|
+
function deriveSecondaryAccent(primary) {
|
|
21721
|
+
const shade2 = mix(primary, "#000000", SECONDARY_SHADE_WEIGHT);
|
|
21722
|
+
if (lstar(shade2) >= SECONDARY_MIN_LSTAR) return shade2;
|
|
21723
|
+
return mix(primary, "#FFFFFF", SECONDARY_SHADE_WEIGHT);
|
|
21724
|
+
}
|
|
21725
|
+
function textOn(color) {
|
|
21726
|
+
const luminance2 = relativeLuminance(color);
|
|
21727
|
+
const whiteContrast = 1.05 / (luminance2 + 0.05);
|
|
21728
|
+
const blackContrast = (luminance2 + 0.05) / 0.05;
|
|
21729
|
+
return whiteContrast >= blackContrast ? "#FFFFFF" : "#000000";
|
|
21730
|
+
}
|
|
21731
|
+
function tuneDarkAccent(brand, darkSurface2, lightSurface) {
|
|
21732
|
+
const kitInherentlyDark = lstar(lightSurface) < 50;
|
|
21733
|
+
if (kitInherentlyDark && contrastRatio(brand, darkSurface2) >= DARK_ARM_TARGET_CONTRAST && lstar(brand) <= DARK_ARM_LSTAR_CAP) {
|
|
21734
|
+
return brand;
|
|
21735
|
+
}
|
|
21736
|
+
let lift = DARK_ARM_MIN_LIFT;
|
|
21737
|
+
let candidate = mix(brand, "#FFFFFF", 1 - lift);
|
|
21738
|
+
while (contrastRatio(candidate, darkSurface2) < DARK_ARM_TARGET_CONTRAST && lift < 0.6) {
|
|
21739
|
+
lift += 0.04;
|
|
21740
|
+
candidate = mix(brand, "#FFFFFF", 1 - lift);
|
|
21741
|
+
}
|
|
21742
|
+
while (lstar(candidate) > DARK_ARM_LSTAR_CAP) {
|
|
21743
|
+
const darker = mix(candidate, "#000000", 0.94);
|
|
21744
|
+
if (contrastRatio(darker, darkSurface2) < DARK_ARM_FLOOR_CONTRAST) break;
|
|
21745
|
+
candidate = darker;
|
|
21746
|
+
}
|
|
21747
|
+
return candidate;
|
|
21748
|
+
}
|
|
21749
|
+
function textOnArm(accent) {
|
|
21750
|
+
return contrastRatio("#FFFFFF", accent) >= 4.5 ? "#FFFFFF" : textOn(accent);
|
|
21751
|
+
}
|
|
21752
|
+
function tuneHighContrastAccent(brand, surface) {
|
|
21753
|
+
const towards = relativeLuminance(surface) < 0.5 ? "#FFFFFF" : "#000000";
|
|
21754
|
+
let candidate = brand;
|
|
21755
|
+
for (let lift = 0; lift <= 0.9 && contrastRatio(candidate, surface) < HIGH_CONTRAST_TARGET; lift += 0.04) {
|
|
21756
|
+
candidate = mix(brand, towards, 1 - lift);
|
|
21757
|
+
}
|
|
21758
|
+
return candidate;
|
|
21759
|
+
}
|
|
21760
|
+
function deriveAccentText(accent, surfaces) {
|
|
21761
|
+
const all = (typeof surfaces === "string" ? [surfaces] : [...surfaces]).map((s5) => s5.slice(0, 7));
|
|
21762
|
+
const page = all[0];
|
|
21763
|
+
const worst2 = (color) => Math.min(...all.map((s5) => contrastRatio(color, s5)));
|
|
21764
|
+
const opaque2 = accent.length === 9 ? mix(accent.slice(0, 7), page, channel(accent, 7) / 255) : accent;
|
|
21765
|
+
if (worst2(opaque2) >= ACCENT_TEXT_MIN_CONTRAST) return opaque2;
|
|
21766
|
+
const pole = worst2("#FFFFFF") >= worst2("#000000") ? "#FFFFFF" : "#000000";
|
|
21767
|
+
for (let step = 1; step <= 100; step++) {
|
|
21768
|
+
const candidate = mix(pole, opaque2, step / 100);
|
|
21769
|
+
if (worst2(candidate) >= ACCENT_TEXT_MIN_CONTRAST) return candidate;
|
|
21770
|
+
}
|
|
21771
|
+
if (all.length > 1) {
|
|
21772
|
+
const side2 = (hex2) => relativeLuminance(hex2) > MID_GREY_LUMINANCE;
|
|
21773
|
+
const sameSide = all.filter((s5) => side2(s5) === side2(page));
|
|
21774
|
+
return deriveAccentText(accent, sameSide.length < all.length ? sameSide : [page]);
|
|
21775
|
+
}
|
|
21776
|
+
return pole;
|
|
21777
|
+
}
|
|
21778
|
+
function textSurfacesOf(colors) {
|
|
21779
|
+
const out2 = { light: [], dark: [], highContrast: [] };
|
|
21780
|
+
for (const name of TEXT_BACKDROP_TOKENS) {
|
|
21781
|
+
const value2 = colors[name];
|
|
21782
|
+
for (const arm of ["light", "dark", "highContrast"]) {
|
|
21783
|
+
const hex2 = typeof value2 === "string" ? value2 : value2 && typeof value2 === "object" && !Array.isArray(value2) ? value2[arm] ?? value2.light : void 0;
|
|
21784
|
+
if (typeof hex2 === "string" && hex2.startsWith("#") && hex2.length >= 7) out2[arm].push(hex2);
|
|
21785
|
+
}
|
|
21786
|
+
}
|
|
21787
|
+
return out2;
|
|
21788
|
+
}
|
|
21789
|
+
function stripBrandFromIdiom(tokens2) {
|
|
21790
|
+
const idiom = tokens2.idiom;
|
|
21791
|
+
if (!idiom || typeof idiom !== "object" || Array.isArray(idiom)) return;
|
|
21792
|
+
for (const overlay of Object.values(idiom)) {
|
|
21793
|
+
if (!overlay || typeof overlay !== "object" || Array.isArray(overlay)) continue;
|
|
21794
|
+
const o2 = overlay;
|
|
21795
|
+
const colors = o2.colors;
|
|
21796
|
+
if (colors && typeof colors === "object" && !Array.isArray(colors)) {
|
|
21797
|
+
for (const key4 of BRAND_COLOR_TOKENS) delete colors[key4];
|
|
21798
|
+
if (Object.keys(colors).length === 0) delete o2.colors;
|
|
21799
|
+
}
|
|
21800
|
+
const shadows2 = o2.shadows;
|
|
21801
|
+
const glow = shadows2 && typeof shadows2 === "object" && !Array.isArray(shadows2) ? shadows2[BRAND_GLOW_SHADOW] : void 0;
|
|
21802
|
+
if (glow && typeof glow === "object" && !Array.isArray(glow) && "color" in glow) {
|
|
21803
|
+
delete glow.color;
|
|
21804
|
+
if (Object.keys(glow).length === 0) delete shadows2[BRAND_GLOW_SHADOW];
|
|
21805
|
+
if (Object.keys(shadows2).length === 0) delete o2.shadows;
|
|
21806
|
+
}
|
|
21807
|
+
}
|
|
21808
|
+
}
|
|
21809
|
+
function deriveAccentFamily(primary, secondary, surfaces, textSurfaces = {}) {
|
|
21810
|
+
const primaryDark = tuneDarkAccent(primary, surfaces.dark, surfaces.light);
|
|
21811
|
+
const secondaryDark = tuneDarkAccent(secondary, surfaces.dark, surfaces.light);
|
|
21812
|
+
const primaryHigh = tuneHighContrastAccent(primary, surfaces.highContrast);
|
|
21813
|
+
const secondaryHigh = tuneHighContrastAccent(secondary, surfaces.highContrast);
|
|
21814
|
+
return {
|
|
21815
|
+
accentPrimary: { light: primary, dark: primaryDark, highContrast: primaryHigh },
|
|
21816
|
+
accentSecondary: { light: secondary, dark: secondaryDark, highContrast: secondaryHigh },
|
|
21817
|
+
accentSurface: {
|
|
21818
|
+
light: deriveAccentSurface(primary, surfaces.light, ACCENT_SURFACE_LIGHT_WEIGHT),
|
|
21819
|
+
dark: deriveAccentSurface(primaryDark, surfaces.dark, 0.24),
|
|
21820
|
+
highContrast: deriveAccentSurface(primaryHigh, surfaces.highContrast, 0.24)
|
|
21821
|
+
},
|
|
21822
|
+
textOnAccent: {
|
|
21823
|
+
light: textOnArm(primary),
|
|
21824
|
+
dark: textOnArm(primaryDark),
|
|
21825
|
+
highContrast: textOn(primaryHigh)
|
|
21826
|
+
},
|
|
21827
|
+
accentText: {
|
|
21828
|
+
light: deriveAccentText(primary, [surfaces.light, ...textSurfaces.light ?? []]),
|
|
21829
|
+
dark: deriveAccentText(primaryDark, [surfaces.dark, ...textSurfaces.dark ?? []]),
|
|
21830
|
+
highContrast: deriveAccentText(primaryHigh, [surfaces.highContrast, ...textSurfaces.highContrast ?? []])
|
|
21831
|
+
}
|
|
21832
|
+
};
|
|
21833
|
+
}
|
|
21834
|
+
var ACCENT_SURFACE_MIN_DELTA, ACCENT_SURFACE_LIGHT_WEIGHT, SECONDARY_SHADE_WEIGHT, SECONDARY_MIN_LSTAR, DARK_ARM_MIN_LIFT, DARK_ARM_TARGET_CONTRAST, DARK_ARM_FLOOR_CONTRAST, DARK_ARM_LSTAR_CAP, HIGH_CONTRAST_TARGET, ACCENT_TEXT_MIN_CONTRAST, MID_GREY_LUMINANCE, TEXT_BACKDROP_TOKENS, BRAND_COLOR_TOKENS, BRAND_GLOW_SHADOW;
|
|
21835
|
+
var init_brand_color_math = __esm({
|
|
21836
|
+
"../../core/ts/src/brand-color-math.ts"() {
|
|
21837
|
+
init_define_HHP_CATALOG();
|
|
21838
|
+
ACCENT_SURFACE_MIN_DELTA = 1.08;
|
|
21839
|
+
ACCENT_SURFACE_LIGHT_WEIGHT = 0.12;
|
|
21840
|
+
SECONDARY_SHADE_WEIGHT = 0.72;
|
|
21841
|
+
SECONDARY_MIN_LSTAR = 22;
|
|
21842
|
+
DARK_ARM_MIN_LIFT = 0.08;
|
|
21843
|
+
DARK_ARM_TARGET_CONTRAST = 3.4;
|
|
21844
|
+
DARK_ARM_FLOOR_CONTRAST = 3;
|
|
21845
|
+
DARK_ARM_LSTAR_CAP = 80;
|
|
21846
|
+
HIGH_CONTRAST_TARGET = 8.5;
|
|
21847
|
+
ACCENT_TEXT_MIN_CONTRAST = 4.5;
|
|
21848
|
+
MID_GREY_LUMINANCE = 0.179;
|
|
21849
|
+
TEXT_BACKDROP_TOKENS = ["surfaceSecondary", "surfaceElevated", "surfaceSubtle", "surfaceTertiary"];
|
|
21850
|
+
BRAND_COLOR_TOKENS = ["accentPrimary", "accentSecondary", "accentSurface", "textOnAccent", "accentText"];
|
|
21851
|
+
BRAND_GLOW_SHADOW = "glow";
|
|
21852
|
+
}
|
|
21853
|
+
});
|
|
21854
|
+
|
|
21855
|
+
// ../../core/ts/src/top-bar-fill.ts
|
|
21856
|
+
function topBarFill(color) {
|
|
21857
|
+
const fill2 = color.slice(0, 7).toUpperCase();
|
|
21858
|
+
const light = contrastRatio(fill2, TOP_BAR_LIGHT_FOREGROUND);
|
|
21859
|
+
const dark = contrastRatio(fill2, TOP_BAR_DARK_FOREGROUND);
|
|
21860
|
+
const foreground = light >= dark ? TOP_BAR_LIGHT_FOREGROUND : TOP_BAR_DARK_FOREGROUND;
|
|
21861
|
+
const drawn = deriveAccentText(fill2, foreground);
|
|
21862
|
+
return {
|
|
21863
|
+
fill: fill2,
|
|
21864
|
+
foreground,
|
|
21865
|
+
ratio: round2(Math.max(light, dark)),
|
|
21866
|
+
drawn,
|
|
21867
|
+
drawnRatio: round2(contrastRatio(drawn, foreground)),
|
|
21868
|
+
nudged: drawn !== fill2
|
|
21869
|
+
};
|
|
21870
|
+
}
|
|
21871
|
+
var TOP_BAR_DARK_FOREGROUND, TOP_BAR_LIGHT_FOREGROUND, round2;
|
|
21872
|
+
var init_top_bar_fill = __esm({
|
|
21873
|
+
"../../core/ts/src/top-bar-fill.ts"() {
|
|
21874
|
+
init_define_HHP_CATALOG();
|
|
21875
|
+
init_brand_color_math();
|
|
21876
|
+
TOP_BAR_DARK_FOREGROUND = "#1A1B20";
|
|
21877
|
+
TOP_BAR_LIGHT_FOREGROUND = "#FFFFFF";
|
|
21878
|
+
round2 = (n2) => Math.round(n2 * 100) / 100;
|
|
21879
|
+
}
|
|
21880
|
+
});
|
|
21881
|
+
|
|
21882
|
+
// ../../core/ts/src/scroll-past.ts
|
|
21883
|
+
function isScrollExpr(raw) {
|
|
21884
|
+
return typeof raw === "string" && raw.startsWith(SCROLL_SENTINEL);
|
|
21885
|
+
}
|
|
21886
|
+
function parseScrollExpr(raw) {
|
|
21887
|
+
if (!isScrollExpr(raw)) return null;
|
|
21888
|
+
let rest = raw.slice(SCROLL_SENTINEL.length);
|
|
21889
|
+
let op;
|
|
21890
|
+
let operand;
|
|
21891
|
+
for (const o2 of ["==", "!="]) {
|
|
21892
|
+
const i2 = rest.indexOf(o2);
|
|
21893
|
+
if (i2 >= 0) {
|
|
21894
|
+
op = o2;
|
|
21895
|
+
operand = rest.slice(i2 + o2.length).trim();
|
|
21896
|
+
rest = rest.slice(0, i2);
|
|
21897
|
+
break;
|
|
21898
|
+
}
|
|
21899
|
+
}
|
|
21900
|
+
rest = rest.trim();
|
|
21901
|
+
const dot = rest.lastIndexOf(".");
|
|
21902
|
+
if (dot <= 0) return null;
|
|
21903
|
+
const nodeId = rest.slice(0, dot);
|
|
21904
|
+
const key4 = rest.slice(dot + 1);
|
|
21905
|
+
if (key4 !== SCROLL_PAST_KEY) return null;
|
|
21906
|
+
return op ? { nodeId, key: key4, op, operand } : { nodeId, key: key4 };
|
|
21907
|
+
}
|
|
21908
|
+
function evalScrollExpr(raw, past) {
|
|
21909
|
+
const parsed = parseScrollExpr(raw);
|
|
21910
|
+
if (!parsed) return void 0;
|
|
21911
|
+
const value2 = past(parsed.nodeId) ? "true" : "false";
|
|
21912
|
+
if (!parsed.op) return value2;
|
|
21913
|
+
const equal = value2 === (parsed.operand ?? "").toLowerCase();
|
|
21914
|
+
return (parsed.op === "==" ? equal : !equal) ? "true" : "false";
|
|
21915
|
+
}
|
|
21916
|
+
var SCROLL_SENTINEL, SCROLL_PAST_KEY;
|
|
21917
|
+
var init_scroll_past = __esm({
|
|
21918
|
+
"../../core/ts/src/scroll-past.ts"() {
|
|
21919
|
+
init_define_HHP_CATALOG();
|
|
21920
|
+
init_top_bar_fill();
|
|
21921
|
+
SCROLL_SENTINEL = "$scroll:";
|
|
21922
|
+
SCROLL_PAST_KEY = "past";
|
|
21923
|
+
}
|
|
21924
|
+
});
|
|
21925
|
+
|
|
21683
21926
|
// ../../core/ts/src/shell-nav.ts
|
|
21684
21927
|
function applySurfaceDestinations(items, surfaceNav) {
|
|
21685
21928
|
const wanted = surfaceNav.destinations;
|
|
@@ -22523,6 +22766,7 @@ __export(validate_descriptor_core_exports, {
|
|
|
22523
22766
|
resolveBootEvaluator: () => resolveBootEvaluator,
|
|
22524
22767
|
resolveEvaluator: () => resolveEvaluator,
|
|
22525
22768
|
screenDepthFindings: () => screenDepthFindings,
|
|
22769
|
+
scrollBindingFindings: () => scrollBindingFindings,
|
|
22526
22770
|
serviceOnlyBindingValues: () => serviceOnlyBindingValues,
|
|
22527
22771
|
setActionEvaluator: () => setActionEvaluator,
|
|
22528
22772
|
setBootEvaluator: () => setBootEvaluator,
|
|
@@ -24563,6 +24807,36 @@ function topBarFindings(descriptor) {
|
|
|
24563
24807
|
out2.push({ path: `${at2}.onLoadingTimeout`, ruleCode: "top_bar_loading_timeout_no_loading_path", message: "`onLoadingTimeout` is set on an item with no `loadingPath`. The 30-second timer runs only while `loadingPath` is truthy, so it never fires. Bind `loadingPath` to the busy flag of this item's own action (the save, the delete)" });
|
|
24564
24808
|
}
|
|
24565
24809
|
}
|
|
24810
|
+
if (sel) {
|
|
24811
|
+
const bulk = (Array.isArray(sel.items) ? sel.items : []).map((raw, idx) => raw && typeof raw === "object" ? [`topBar.selection.items[${idx}]`, raw] : null).filter((e2) => e2 !== null);
|
|
24812
|
+
const all = block(sel.selectAll);
|
|
24813
|
+
if (bulk.length > TOP_BAR_TRAILING_LIMIT) {
|
|
24814
|
+
out2.push({ path: "topBar.selection.items", ruleCode: "top_bar_selection_items_over_slots", message: `The selection mode declares ${bulk.length} bulk items. Android shows the first two as icons and moves the other ${bulk.length - TOP_BAR_TRAILING_LIMIT} into More Actions in authored order (RFC 0066 amendment R2, M-SELECT); iOS draws all of them in the bottom toolbar. Put the two most used actions first` });
|
|
24815
|
+
}
|
|
24816
|
+
const inMenu = [
|
|
24817
|
+
...bulk.slice(TOP_BAR_TRAILING_LIMIT).map(([at2, i2]) => [at2, i2, "moved there on Android because the selection has more than two bulk items (R2)"]),
|
|
24818
|
+
...all ? [["topBar.selection.selectAll", all, "Android always draws Select all there"]] : []
|
|
24819
|
+
];
|
|
24820
|
+
const menuOwned = new Set(inMenu.map(([, i2]) => i2));
|
|
24821
|
+
for (const [at2, i2] of [...bulk, ...all ? [["topBar.selection.selectAll", all]] : []]) {
|
|
24822
|
+
if (i2.onLongPress == null) continue;
|
|
24823
|
+
if (menuOwned.has(i2)) {
|
|
24824
|
+
const why = inMenu.find(([, m2]) => m2 === i2)?.[2] ?? "";
|
|
24825
|
+
out2.push({ path: `${at2}.onLongPress`, ruleCode: "top_bar_long_press_in_menu", message: `An item in More Actions (${why}) has no long press: the menu row only taps, so \`onLongPress\` never fires there. Move the action to its own item, or keep the item among the first two` });
|
|
24826
|
+
} else if (Array.isArray(i2.menu) && i2.menu.length > 0) {
|
|
24827
|
+
out2.push({ path: `${at2}.onLongPress`, ruleCode: "top_bar_long_press_with_menu", message: "An item with a `menu` ignores `onLongPress`: the menu owns the press. Add the action to the menu, or remove the menu" });
|
|
24828
|
+
}
|
|
24829
|
+
}
|
|
24830
|
+
for (const [at2, i2, why] of inMenu) {
|
|
24831
|
+
if (i2.badge != null) {
|
|
24832
|
+
out2.push({ path: `${at2}.badge`, ruleCode: "top_bar_badge_on_overflow", message: `An item in More Actions (${why}) has a \`badge\`, and the menu row draws none. Move the item among the first two, or put the count in its \`label\`` });
|
|
24833
|
+
}
|
|
24834
|
+
}
|
|
24835
|
+
const avatars = [...bulk, ...all ? [["topBar.selection.selectAll", all]] : []].filter(([, i2]) => i2.avatar != null);
|
|
24836
|
+
if (avatars.length > 1) {
|
|
24837
|
+
out2.push({ path: `${avatars[1][0]}.avatar`, ruleCode: "top_bar_two_avatars", message: `The selection mode declares ${avatars.length} avatar items. The guideline shows one avatar in a bar, and the shell draws all of them. Keep one and make the others plain icon items` });
|
|
24838
|
+
}
|
|
24839
|
+
}
|
|
24566
24840
|
const notHttps = (v2) => {
|
|
24567
24841
|
if (typeof v2 !== "string" || v2 === "") return false;
|
|
24568
24842
|
if (!/^https:\/\/[^/?#\s]/i.test(v2)) return true;
|
|
@@ -24618,13 +24892,6 @@ function topBarFindings(descriptor) {
|
|
|
24618
24892
|
if (!hasTopBarSearchGate(stickyHeader) && !(stickyHeader == null && hasGatedContentSearchField(payload))) {
|
|
24619
24893
|
out2.push({ path: "topBar.searchable", ruleCode: "top_bar_search_no_fallback", message: `No usable fallback search field is gated on \`hiddenPath: "${TOP_BAR_SEARCH_GATE}"\`. Gate the root of \`stickyHeader\` so the whole band hides, or (with no sticky header) gate an in-content SearchField or TextField as the embed host does` });
|
|
24620
24894
|
}
|
|
24621
|
-
const suggestionKeys = ["suggestions", "suggestionsPath", "onSuggestionTap"].filter((k3) => {
|
|
24622
|
-
const v2 = s5[k3];
|
|
24623
|
-
return Array.isArray(v2) ? v2.length > 0 : v2 !== void 0 && v2 !== null && v2 !== "";
|
|
24624
|
-
});
|
|
24625
|
-
if (suggestionKeys.length > 0) {
|
|
24626
|
-
out2.push({ path: `topBar.searchable.${suggestionKeys[0]}`, ruleCode: "top_bar_search_suggestions_not_drawn", message: `\`${suggestionKeys.join("`, `")}\` ${suggestionKeys.length > 1 ? "are" : "is"} on the wire for a later release: no shell draws search suggestions yet (RFC 0010, decision 11). Draw recent searches and suggestions as the screen's own content` });
|
|
24627
|
-
}
|
|
24628
24895
|
const scopeKeys = ["scopes", "scopePath", "onScopeChange"].filter((k3) => {
|
|
24629
24896
|
const v2 = s5[k3];
|
|
24630
24897
|
return Array.isArray(v2) ? v2.length > 0 : v2 !== void 0 && v2 !== null && v2 !== "";
|
|
@@ -24651,6 +24918,31 @@ function topBarFindings(descriptor) {
|
|
|
24651
24918
|
}
|
|
24652
24919
|
return out2;
|
|
24653
24920
|
}
|
|
24921
|
+
function scrollBindingFindings(descriptor) {
|
|
24922
|
+
const out2 = [];
|
|
24923
|
+
let ids2 = null;
|
|
24924
|
+
const walk5 = (v2, at2) => {
|
|
24925
|
+
if (typeof v2 === "string") {
|
|
24926
|
+
if (!isScrollExpr(v2)) return;
|
|
24927
|
+
const parsed = parseScrollExpr(v2);
|
|
24928
|
+
if (!parsed) {
|
|
24929
|
+
out2.push({ path: at2, ruleCode: "scroll_binding_malformed", message: `${JSON.stringify(v2)} is not a \`$scroll:\` expression, so every shell resolves it to nothing. Write \`$scroll:<nodeId>.past\`, optionally with \`==true\` / \`==false\`` });
|
|
24930
|
+
return;
|
|
24931
|
+
}
|
|
24932
|
+
if (parsed.nodeId.includes("$")) return;
|
|
24933
|
+
ids2 ??= new Set(componentNodes(descriptor).map((n2) => n2.node.id).filter((id) => typeof id === "string"));
|
|
24934
|
+
if (!ids2.has(parsed.nodeId)) {
|
|
24935
|
+
out2.push({ path: at2, ruleCode: "scroll_binding_unknown_node", message: `\`$scroll:${parsed.nodeId}.past\` names no component on this screen, so it is never past and the screen keeps its resting state. Give the node it should follow (the hero, the header) this \`id\`` });
|
|
24936
|
+
}
|
|
24937
|
+
} else if (Array.isArray(v2)) {
|
|
24938
|
+
v2.forEach((x2, i2) => walk5(x2, `${at2}[${i2}]`));
|
|
24939
|
+
} else if (v2 && typeof v2 === "object") {
|
|
24940
|
+
for (const [k3, x2] of Object.entries(v2)) walk5(x2, at2 ? `${at2}.${k3}` : k3);
|
|
24941
|
+
}
|
|
24942
|
+
};
|
|
24943
|
+
walk5(descriptor, "");
|
|
24944
|
+
return out2;
|
|
24945
|
+
}
|
|
24654
24946
|
function deadTopBarFindings(descriptor) {
|
|
24655
24947
|
const out2 = [];
|
|
24656
24948
|
const bar = descriptor?.topBar;
|
|
@@ -25208,6 +25500,9 @@ function validateScreenDescriptor(screenId, served, opts = {}) {
|
|
|
25208
25500
|
for (const finding2 of topBarFindings(descriptor)) {
|
|
25209
25501
|
issues.push({ severity: "warning", pass: "top-bar", path: finding2.path, message: finding2.message, ...finding2.ruleCode ? { ruleCode: finding2.ruleCode } : {} });
|
|
25210
25502
|
}
|
|
25503
|
+
for (const finding2 of scrollBindingFindings(descriptor)) {
|
|
25504
|
+
issues.push({ severity: "warning", pass: "scroll-binding", path: finding2.path, message: finding2.message, ruleCode: finding2.ruleCode });
|
|
25505
|
+
}
|
|
25211
25506
|
for (const finding2 of deadTopBarFindings(descriptor)) {
|
|
25212
25507
|
issues.push({ severity: "error", pass: "dead-control", path: finding2.path, message: finding2.message, ruleCode: finding2.ruleCode });
|
|
25213
25508
|
}
|
|
@@ -25899,6 +26194,7 @@ var init_validate_descriptor_core = __esm({
|
|
|
25899
26194
|
init_l10n_strings();
|
|
25900
26195
|
init_a11y_contract();
|
|
25901
26196
|
init_bindings();
|
|
26197
|
+
init_scroll_past();
|
|
25902
26198
|
init_app_services_gate();
|
|
25903
26199
|
init_app_services_lint();
|
|
25904
26200
|
init_app_services_lint();
|
|
@@ -29612,7 +29908,7 @@ function luminance([r3, g2, b3]) {
|
|
|
29612
29908
|
});
|
|
29613
29909
|
return 0.2126 * lin[0] + 0.7152 * lin[1] + 0.0722 * lin[2];
|
|
29614
29910
|
}
|
|
29615
|
-
function
|
|
29911
|
+
function contrastRatio2(a3, b3) {
|
|
29616
29912
|
const [hi2, lo2] = [luminance(a3), luminance(b3)].sort((x2, y2) => y2 - x2);
|
|
29617
29913
|
return (hi2 + 0.05) / (lo2 + 0.05);
|
|
29618
29914
|
}
|
|
@@ -29621,11 +29917,11 @@ async function contrastingBackdrop(mark, requested) {
|
|
|
29621
29917
|
const { dominant } = await sharp(mark, { limitInputPixels: ICON_INPUT_PIXEL_LIMIT }).stats();
|
|
29622
29918
|
const ink = [dominant.r, dominant.g, dominant.b];
|
|
29623
29919
|
const want = hexToRgb(requested);
|
|
29624
|
-
if (!want ||
|
|
29920
|
+
if (!want || contrastRatio2(ink, want) >= MIN_BACKDROP_CONTRAST) return requested;
|
|
29625
29921
|
const towardsWhite = luminance(ink) < 0.5;
|
|
29626
29922
|
for (const amount of [0.35, 0.55, 0.75, 0.9]) {
|
|
29627
|
-
const candidate =
|
|
29628
|
-
if (
|
|
29923
|
+
const candidate = mix2(want, towardsWhite ? [255, 255, 255] : [0, 0, 0], amount);
|
|
29924
|
+
if (contrastRatio2(ink, candidate) >= MIN_BACKDROP_CONTRAST) return rgbToHex(candidate);
|
|
29629
29925
|
}
|
|
29630
29926
|
return towardsWhite ? "#FFFFFF" : "#000000";
|
|
29631
29927
|
}
|
|
@@ -29635,7 +29931,7 @@ function hexToRgb(hex2) {
|
|
|
29635
29931
|
const n2 = parseInt(m2[1], 16);
|
|
29636
29932
|
return [n2 >> 16 & 255, n2 >> 8 & 255, n2 & 255];
|
|
29637
29933
|
}
|
|
29638
|
-
function
|
|
29934
|
+
function mix2(a3, b3, t2) {
|
|
29639
29935
|
return [0, 1, 2].map((i2) => Math.round(a3[i2] + (b3[i2] - a3[i2]) * t2));
|
|
29640
29936
|
}
|
|
29641
29937
|
function rgbToHex([r3, g2, b3]) {
|
|
@@ -30469,6 +30765,7 @@ __export(validate_descriptor_exports, {
|
|
|
30469
30765
|
resolveBootEvaluator: () => resolveBootEvaluator,
|
|
30470
30766
|
resolveEvaluator: () => resolveEvaluator,
|
|
30471
30767
|
screenDepthFindings: () => screenDepthFindings,
|
|
30768
|
+
scrollBindingFindings: () => scrollBindingFindings,
|
|
30472
30769
|
serviceOnlyBindingValues: () => serviceOnlyBindingValues,
|
|
30473
30770
|
setActionEvaluator: () => setActionEvaluator,
|
|
30474
30771
|
setBootEvaluator: () => setBootEvaluator,
|
|
@@ -50153,6 +50450,27 @@ var init_form_bag = __esm({
|
|
|
50153
50450
|
}
|
|
50154
50451
|
});
|
|
50155
50452
|
|
|
50453
|
+
// ../../core/web-renderer/src/scrollPast.ts
|
|
50454
|
+
import { useCallback, useSyncExternalStore as useSyncExternalStore2 } from "react";
|
|
50455
|
+
function useScrollPast(source2, raw) {
|
|
50456
|
+
const parsed = raw !== "" && isScrollExpr(raw) ? parseScrollExpr(raw) : null;
|
|
50457
|
+
const nodeId = parsed?.nodeId ?? "";
|
|
50458
|
+
const subscribe = useCallback((cb) => source2 && nodeId ? source2.subscribe(nodeId, cb) : NEVER(), [source2, nodeId]);
|
|
50459
|
+
const past = useSyncExternalStore2(subscribe, () => source2 && nodeId ? source2.past(nodeId) : false, () => false);
|
|
50460
|
+
if (!parsed) return void 0;
|
|
50461
|
+
return evalScrollExpr(raw, () => past);
|
|
50462
|
+
}
|
|
50463
|
+
var NEVER;
|
|
50464
|
+
var init_scrollPast = __esm({
|
|
50465
|
+
"../../core/web-renderer/src/scrollPast.ts"() {
|
|
50466
|
+
init_define_HHP_CATALOG();
|
|
50467
|
+
init_scroll_past();
|
|
50468
|
+
init_scroll_past();
|
|
50469
|
+
NEVER = () => () => {
|
|
50470
|
+
};
|
|
50471
|
+
}
|
|
50472
|
+
});
|
|
50473
|
+
|
|
50156
50474
|
// ../../core/ts/src/ambient-motion.ts
|
|
50157
50475
|
function ambientKind(m2) {
|
|
50158
50476
|
const k3 = m2?.kind;
|
|
@@ -56799,7 +57117,7 @@ function HSLToRGB(hsl, output) {
|
|
|
56799
57117
|
function computeLuminance(x2) {
|
|
56800
57118
|
return x2 <= 0.03928 ? x2 / 12.92 : ((x2 + 0.055) / 1.055) ** 2.4;
|
|
56801
57119
|
}
|
|
56802
|
-
function
|
|
57120
|
+
function contrastRatio3(hsl1, hsl2, output) {
|
|
56803
57121
|
HSLToRGB(hsl1, output);
|
|
56804
57122
|
output.map(computeLuminance);
|
|
56805
57123
|
const lum1 = 0.2126 * output[0] + 0.7152 * output[1] + 0.0722 * output[2];
|
|
@@ -56823,7 +57141,7 @@ function findContrastColor(baseColor, fixedColor) {
|
|
|
56823
57141
|
const isFixedColorDark = fixedHSL[2] < 0.5;
|
|
56824
57142
|
const minContrast = isFixedColorDark ? 12 : 4.5;
|
|
56825
57143
|
baseHSL[2] = isFixedColorDark ? Math.sqrt(baseHSL[2]) : 1 - Math.sqrt(1 - baseHSL[2]);
|
|
56826
|
-
if (
|
|
57144
|
+
if (contrastRatio3(baseHSL, fixedHSL, output) < minContrast) {
|
|
56827
57145
|
let start2, end2;
|
|
56828
57146
|
if (isFixedColorDark) {
|
|
56829
57147
|
start2 = baseHSL[2];
|
|
@@ -56835,7 +57153,7 @@ function findContrastColor(baseColor, fixedColor) {
|
|
|
56835
57153
|
const PRECISION = 5e-3;
|
|
56836
57154
|
while (end2 - start2 > PRECISION) {
|
|
56837
57155
|
const mid = baseHSL[2] = (start2 + end2) / 2;
|
|
56838
|
-
if (isFixedColorDark ===
|
|
57156
|
+
if (isFixedColorDark === contrastRatio3(baseHSL, fixedHSL, output) < minContrast) {
|
|
56839
57157
|
start2 = mid;
|
|
56840
57158
|
} else {
|
|
56841
57159
|
end2 = mid;
|
|
@@ -136957,6 +137275,7 @@ function makeCtx(tokens2, scheme = "light", opts = {}) {
|
|
|
136957
137275
|
isRTL: opts.isRTL,
|
|
136958
137276
|
keyboardVisible: opts.keyboardVisible,
|
|
136959
137277
|
topBarSearch: opts.topBarSearch,
|
|
137278
|
+
scrollPast: opts.scrollPast,
|
|
136960
137279
|
liveAudioLevel: opts.liveAudioLevel,
|
|
136961
137280
|
containerWidth: opts.containerWidth,
|
|
136962
137281
|
modStyle: makeModStyle(tk, () => ambientIsRTL(opts.isRTL), isIOSGlassPreview(opts.idiomContext), scheme),
|
|
@@ -137855,6 +138174,7 @@ function visibilityDelegates(node4, ctx) {
|
|
|
137855
138174
|
const lit = typeof hp === "string" ? hp.trim().toLowerCase() : void 0;
|
|
137856
138175
|
const litPath = lit === "true" || lit === "1" || lit === "false" || lit === "0";
|
|
137857
138176
|
if ((typeof mods?.hidden === "boolean" || litPath) && exitSpecFor(mods, ctx)) return true;
|
|
138177
|
+
if (typeof hp === "string" && isScrollExpr(hp) && parseScrollExpr(hp)) return true;
|
|
137858
138178
|
return typeof hp === "string" && isEnvExpr(hp) && !!exitSpecFor(mods, ctx);
|
|
137859
138179
|
}
|
|
137860
138180
|
function useBoundTransformMotion(node4, ctx) {
|
|
@@ -139413,7 +139733,12 @@ function renderNodeInner(node4, ctx, boundMotion) {
|
|
|
139413
139733
|
if (typeof hp === "string" && hp) {
|
|
139414
139734
|
const low = hp.trim().toLowerCase();
|
|
139415
139735
|
if (low === "true" || low === "1") return null;
|
|
139416
|
-
if (
|
|
139736
|
+
if (isScrollExpr(hp)) {
|
|
139737
|
+
if (parseScrollExpr(hp)) {
|
|
139738
|
+
const bare = { ...node4, modifiers: { ...node4.modifiers, hiddenPath: void 0, hidden_path: void 0 } };
|
|
139739
|
+
return /* @__PURE__ */ jsx15(ScrollPastGate, { ctx, expr: hp, exit: exitSpecFor(node4.modifiers, ctx), children: renderNode(bare, ctx) });
|
|
139740
|
+
}
|
|
139741
|
+
} else if (isEnvExpr(hp)) {
|
|
139417
139742
|
const envHide = envHidden(hp, ctxEnv(ctx)) === true;
|
|
139418
139743
|
const exit = exitSpecFor(node4.modifiers, ctx);
|
|
139419
139744
|
if (exit) {
|
|
@@ -140678,7 +141003,7 @@ function listSeparatorStyle(separator, horizontal) {
|
|
|
140678
141003
|
const insetLeading = Math.max(0, Number(s5.insetLeading ?? s5.inset_leading ?? 0) || 0);
|
|
140679
141004
|
return { token, thickness, insetLeading };
|
|
140680
141005
|
}
|
|
140681
|
-
var MOTION_WRAPPER_ATTRS, AppearanceActionContext, rowValue, loadPdfFetch, WebViewBridgeHost2, useIsomorphicLayoutEffect3, GridColumnsContext, GridBoundList, GRID_SPAN_ALL, ResponsiveGrid, MasonryCells, SPLIT_EXPANDED_MIN_WIDTH, SPLIT_COLUMN_GAP, ResponsiveSplitView, appearKeyframesInjected, valueSwapKeyframesInjected, NUMERIC_TEXT, shimmerKeyframesInjected, APPEAR_KEYFRAMES, linkedEntranceKeyframesInjected, pressStylesInjected, REVEAL_ON_FOCUS_ATTR, FOCUS_RING_CSS, focusStylesInjected, HLIST_CHILD_CSS, hListStylesInjected, listAnimateRuntimeInstalled, transitionKeyframesInjected, ENTER_KEYFRAMES, ENTRANCE_KEYFRAMES_CSS, countUpRuntimeInjected, MEASURE_PREFIX, measureRuntimeInjected, revealRuntimeInjected, AMBIENT_HOST_STYLE, AmbientMotionBox, vectorAnimStylesInjected, scrollProgressRuntimeInjected, scrollLinkedRuntime, confettiRuntimeInjected, lottieRuntimeInjected, lottieAssetHeaders, LOTTIE_RUNTIME_ATTRIBUTES, lottieAnims, riveRuntimeInjected, gradientKeyframesInjected, parallaxRuntimeInjected, spinKeyframesInjected, marqueeKeyframesInjected, alignItems, zJustifyItems, fillsZLayer, presentsFromOwnSurface, zLayerIndex, ZFILL_CSS, zFillStylesInjected, hAlignItems, bodyFont, kids2, columnKids, PLACED_TYPES, unplaced, columnPlaceStyle, rowKidCtx, rowKids, staggeredKids, asTextL10n, asFinalTextL10n, asBoundText, useBoundString, asBoundCopy, useBoundCopy, InterpolatedTextView, txt, oneLineDir, txtRaw, selectFragmentCase, fragmentValueHash, fragmentSlotContent, FragmentSlotNode, RichContentEditorNode, MediaFieldNode, WorkerSubtreeNode, RichContentNode, substituteItemDeep, resolveItemDeep2, resolveRowAction2, resolveSwipeActions, resolveModBindings, resolvedComponentId, directServiceBindings, withRootStyle, InScreenMorphHost, ReactiveDirectScalars, resolveNodeBoundTransforms, HiddenGate, ExitPresence, StatefulSectionNode, KEYBOARD_INPUT_MODES, AUTOCAPITALIZE_VALUES, ENTER_KEY_HINTS, AUTOCOMPLETE_TOKENS, AUTOGROW_CEILING, EditableField, MENU_ANCHOR_CONTROL, MenuNode, MENU_LONG_PRESS_MS, menuOpensOnLongPress, LoadMoreSentinel, FieldErrorNode, FormView, MediaSlotProvider, MEDIA_ITEM_BINDABLE, MediaPlayerView, VideoNode, PdfDocumentCanvas, PdfViewNode, WebViewNode, InteractivePicker, InteractiveDatePicker, InteractiveSearchField, InteractiveStepper, NODE_EXTRAS_TARGET, SYNTHETIC_TAP_ROLE, SYNTHETIC_TABINDEX, INFERRED_DECORATIVE, SELF_RENDERED_LEAF, ROLE_WHEN_NAMED, AUTHORED_ROLE, PENDING_RANGE, RANGE_ROLES, NODE_A11Y_ATTRS, INTERACTIVE_ROLES, ALWAYS_INTERACTIVE_COMPONENT_TYPES, TAP_ACTIVATOR_ATTR, TAP_GROUP_ATTR, NESTED_CONTROL_SELECTOR, VISUALLY_HIDDEN, NAME_SKIP_SELECTOR, activatorNameObservers, ACTIVATOR_STATE_ATTRS, controlNode, ToggleNode, SliderNode, SelectionControlNode, TabsNode, SegmentedControlNode, DisclosureGroupNode, GridNode, SplitViewNode, REVEAL_RELEASE_MS, REVEAL_FADE_MS, REVEAL_BUFFER, revealProgress, countWords, RevealText, TextNode, ImageNode, ANIMATION_LEAF, LottieNode, RiveNode, AvatarNode, IconNode, EMPTY_STATE_SPACING, EmptyStateNode, ERROR_STATE_VARIANTS, ERROR_STATE_SPACING, ErrorStateNode, ButtonNode, OtpInputNode, ProgressBarNode, SnackbarNode, ACTIVITY_DEFAULT_NAME, ACTIVITY_RING_ARC, ActivityIndicatorNode, NATIVELY_TABBABLE, BottomSheetNode, BOTTOM_DRAWER_HOST_STACK_EVENT, ModalBottomSheetNode, BottomDrawerNode, PRESENTED_OVERLAY_ATTR, TooltipNode, PopoverNode, ChipsInputNode, ChipNode, TableNode, GaugeRing, GaugeNode, RATING_METRICS, ratingMetrics, RatingNode, AVATAR_RING_INSET, AVATAR_BORDER_INSET, AvatarStripNode, CHART_STROKE_CYCLE, chartStrokeAt, chartBarCenter, ChartNode, donutSliceOpacity, DonutChartNode, QrCodeNode, ShapeNode, LegendMarker, LegendNode, cellAlign, dataTableProbe, DataTableNode, voiceNoteState, voiceNoteDelivery, VOICE_NOTE_DEFAULT_BARS, clampBarCount, VoiceNoteNode, LiveWaveformNode, PageControlNode, TimelineNode, ECHO_WINDOW_MS, heldPageIndex, LiveWindowMeasured, LiveWindowPage, PagingNode, WheelPickerNode, ColorPickerNode, FilterChipsNode, TILE_PX, MAX_MERCATOR_LAT, DEFAULT_TILE_MAX_ZOOM, CIRCLE_SEGMENTS, METRES_PER_DEG_LAT, MARKER_HIT_RADIUS, SHAPE_HIT_RADIUS, MapNode, CAROUSEL_SETTLE_MS, railScrollLeft, carouselScrollLeft, scrollCarouselTo, carouselDotsDrawn, CarouselNode, BannerNode, CollapsingHeaderNode, UnsupportedOnSurface, ptrCopy, CALENDAR_DATE_ONLY_RE, CAL_DEFAULT_MAX_DOTS, CAL_AGENDA_INITIAL_DAYS, CAL_AGENDA_PAGE_DAYS, CAL_DEFAULT_SNAP_MINUTES, CAL_UNASSIGNED_LANE_ID, MonthCalendarNode, TimeGridNode, AgendaNode, ARIA_ROLE, initialFocusScheduled, PRESENTED_SCOPE, focusRoots, A11yHintDescription, rowRenderers, railRowFrame, renderRailRow, RowAnchors, reportedUnknownComponents, UnknownComponentNode, WebRenderer, ScrollIntoViewNode;
|
|
141006
|
+
var MOTION_WRAPPER_ATTRS, AppearanceActionContext, rowValue, loadPdfFetch, WebViewBridgeHost2, useIsomorphicLayoutEffect3, GridColumnsContext, GridBoundList, GRID_SPAN_ALL, ResponsiveGrid, MasonryCells, SPLIT_EXPANDED_MIN_WIDTH, SPLIT_COLUMN_GAP, ResponsiveSplitView, appearKeyframesInjected, valueSwapKeyframesInjected, NUMERIC_TEXT, shimmerKeyframesInjected, APPEAR_KEYFRAMES, linkedEntranceKeyframesInjected, pressStylesInjected, REVEAL_ON_FOCUS_ATTR, FOCUS_RING_CSS, focusStylesInjected, HLIST_CHILD_CSS, hListStylesInjected, listAnimateRuntimeInstalled, transitionKeyframesInjected, ENTER_KEYFRAMES, ENTRANCE_KEYFRAMES_CSS, countUpRuntimeInjected, MEASURE_PREFIX, measureRuntimeInjected, revealRuntimeInjected, AMBIENT_HOST_STYLE, AmbientMotionBox, vectorAnimStylesInjected, scrollProgressRuntimeInjected, scrollLinkedRuntime, confettiRuntimeInjected, lottieRuntimeInjected, lottieAssetHeaders, LOTTIE_RUNTIME_ATTRIBUTES, lottieAnims, riveRuntimeInjected, gradientKeyframesInjected, parallaxRuntimeInjected, spinKeyframesInjected, marqueeKeyframesInjected, alignItems, zJustifyItems, fillsZLayer, presentsFromOwnSurface, zLayerIndex, ZFILL_CSS, zFillStylesInjected, hAlignItems, bodyFont, kids2, columnKids, PLACED_TYPES, unplaced, columnPlaceStyle, rowKidCtx, rowKids, staggeredKids, asTextL10n, asFinalTextL10n, asBoundText, useBoundString, asBoundCopy, useBoundCopy, InterpolatedTextView, txt, oneLineDir, txtRaw, selectFragmentCase, fragmentValueHash, fragmentSlotContent, FragmentSlotNode, RichContentEditorNode, MediaFieldNode, WorkerSubtreeNode, RichContentNode, substituteItemDeep, resolveItemDeep2, resolveRowAction2, resolveSwipeActions, resolveModBindings, resolvedComponentId, directServiceBindings, withRootStyle, InScreenMorphHost, ReactiveDirectScalars, resolveNodeBoundTransforms, HiddenGate, ScrollPastGate, ExitPresence, StatefulSectionNode, KEYBOARD_INPUT_MODES, AUTOCAPITALIZE_VALUES, ENTER_KEY_HINTS, AUTOCOMPLETE_TOKENS, AUTOGROW_CEILING, EditableField, MENU_ANCHOR_CONTROL, MenuNode, MENU_LONG_PRESS_MS, menuOpensOnLongPress, LoadMoreSentinel, FieldErrorNode, FormView, MediaSlotProvider, MEDIA_ITEM_BINDABLE, MediaPlayerView, VideoNode, PdfDocumentCanvas, PdfViewNode, WebViewNode, InteractivePicker, InteractiveDatePicker, InteractiveSearchField, InteractiveStepper, NODE_EXTRAS_TARGET, SYNTHETIC_TAP_ROLE, SYNTHETIC_TABINDEX, INFERRED_DECORATIVE, SELF_RENDERED_LEAF, ROLE_WHEN_NAMED, AUTHORED_ROLE, PENDING_RANGE, RANGE_ROLES, NODE_A11Y_ATTRS, INTERACTIVE_ROLES, ALWAYS_INTERACTIVE_COMPONENT_TYPES, TAP_ACTIVATOR_ATTR, TAP_GROUP_ATTR, NESTED_CONTROL_SELECTOR, VISUALLY_HIDDEN, NAME_SKIP_SELECTOR, activatorNameObservers, ACTIVATOR_STATE_ATTRS, controlNode, ToggleNode, SliderNode, SelectionControlNode, TabsNode, SegmentedControlNode, DisclosureGroupNode, GridNode, SplitViewNode, REVEAL_RELEASE_MS, REVEAL_FADE_MS, REVEAL_BUFFER, revealProgress, countWords, RevealText, TextNode, ImageNode, ANIMATION_LEAF, LottieNode, RiveNode, AvatarNode, IconNode, EMPTY_STATE_SPACING, EmptyStateNode, ERROR_STATE_VARIANTS, ERROR_STATE_SPACING, ErrorStateNode, ButtonNode, OtpInputNode, ProgressBarNode, SnackbarNode, ACTIVITY_DEFAULT_NAME, ACTIVITY_RING_ARC, ActivityIndicatorNode, NATIVELY_TABBABLE, BottomSheetNode, BOTTOM_DRAWER_HOST_STACK_EVENT, ModalBottomSheetNode, BottomDrawerNode, PRESENTED_OVERLAY_ATTR, TooltipNode, PopoverNode, ChipsInputNode, ChipNode, TableNode, GaugeRing, GaugeNode, RATING_METRICS, ratingMetrics, RatingNode, AVATAR_RING_INSET, AVATAR_BORDER_INSET, AvatarStripNode, CHART_STROKE_CYCLE, chartStrokeAt, chartBarCenter, ChartNode, donutSliceOpacity, DonutChartNode, QrCodeNode, ShapeNode, LegendMarker, LegendNode, cellAlign, dataTableProbe, DataTableNode, voiceNoteState, voiceNoteDelivery, VOICE_NOTE_DEFAULT_BARS, clampBarCount, VoiceNoteNode, LiveWaveformNode, PageControlNode, TimelineNode, ECHO_WINDOW_MS, heldPageIndex, LiveWindowMeasured, LiveWindowPage, PagingNode, WheelPickerNode, ColorPickerNode, FilterChipsNode, TILE_PX, MAX_MERCATOR_LAT, DEFAULT_TILE_MAX_ZOOM, CIRCLE_SEGMENTS, METRES_PER_DEG_LAT, MARKER_HIT_RADIUS, SHAPE_HIT_RADIUS, MapNode, CAROUSEL_SETTLE_MS, railScrollLeft, carouselScrollLeft, scrollCarouselTo, carouselDotsDrawn, CarouselNode, BannerNode, CollapsingHeaderNode, UnsupportedOnSurface, ptrCopy, CALENDAR_DATE_ONLY_RE, CAL_DEFAULT_MAX_DOTS, CAL_AGENDA_INITIAL_DAYS, CAL_AGENDA_PAGE_DAYS, CAL_DEFAULT_SNAP_MINUTES, CAL_UNASSIGNED_LANE_ID, MonthCalendarNode, TimeGridNode, AgendaNode, ARIA_ROLE, initialFocusScheduled, PRESENTED_SCOPE, focusRoots, A11yHintDescription, rowRenderers, railRowFrame, renderRailRow, RowAnchors, reportedUnknownComponents, UnknownComponentNode, WebRenderer, ScrollIntoViewNode;
|
|
140682
141007
|
var init_renderNode = __esm({
|
|
140683
141008
|
"../../core/web-renderer/src/renderNode.tsx"() {
|
|
140684
141009
|
"use strict";
|
|
@@ -140716,6 +141041,7 @@ var init_renderNode = __esm({
|
|
|
140716
141041
|
init_formBag();
|
|
140717
141042
|
init_form_bag();
|
|
140718
141043
|
init_env();
|
|
141044
|
+
init_scrollPast();
|
|
140719
141045
|
init_ambient_motion();
|
|
140720
141046
|
init_actionParams();
|
|
140721
141047
|
init_workerTapBusy();
|
|
@@ -141143,7 +141469,9 @@ var init_renderNode = __esm({
|
|
|
141143
141469
|
const casePath = props2.casePath ?? props2.case_path;
|
|
141144
141470
|
const isService = typeof casePath === "string" && isStateBinding(casePath);
|
|
141145
141471
|
const bound2 = useBoundValue(ctx, isService ? casePath : "");
|
|
141146
|
-
const
|
|
141472
|
+
const isScroll = typeof casePath === "string" && isScrollExpr(casePath);
|
|
141473
|
+
const scrolled = useScrollPast(ctx.scrollPast, isScroll ? casePath : "");
|
|
141474
|
+
const discriminator = isService ? bound2 : isScroll ? scrolled : isEnvExpr(casePath) ? evalEnvExpr(casePath, ctxEnv(ctx)) : resolveScalarStatic(casePath, ctx);
|
|
141147
141475
|
return fragmentSlotContent({ props: props2, ctx, discriminator, slotId: nodeId, extra: wrap });
|
|
141148
141476
|
});
|
|
141149
141477
|
RichContentEditorNode = withExtras("RichContentEditorNode", ({ props: props2, ctx, wrap, nodeId }) => /* @__PURE__ */ jsx15(RichContentEditorView, { props: props2, ctx, wrap, nodeId, renderChild: (n2) => renderNode(n2, ctx) }));
|
|
@@ -141456,6 +141784,10 @@ var init_renderNode = __esm({
|
|
|
141456
141784
|
const v2 = useBoundValue(ctx, binding2);
|
|
141457
141785
|
return /* @__PURE__ */ jsx15(ExitPresence, { hidden: gateHidden(v2, unresolvedHidden), exit: exit ?? null, children: children2 });
|
|
141458
141786
|
};
|
|
141787
|
+
ScrollPastGate = ({ ctx, expr, exit, children: children2 }) => {
|
|
141788
|
+
const v2 = useScrollPast(ctx.scrollPast, expr);
|
|
141789
|
+
return /* @__PURE__ */ jsx15(ExitPresence, { hidden: v2 === "true", exit: exit ?? null, children: children2 });
|
|
141790
|
+
};
|
|
141459
141791
|
ExitPresence = ({ hidden, exit, children: children2 }) => {
|
|
141460
141792
|
const [prevHidden, setPrevHidden] = React22.useState(hidden);
|
|
141461
141793
|
const [exiting, setExiting] = React22.useState(false);
|
|
@@ -178517,7 +178849,7 @@ var init_velo = __esm({
|
|
|
178517
178849
|
function isCanonicalHex(value2) {
|
|
178518
178850
|
return CANONICAL_HEX.test(value2.trim());
|
|
178519
178851
|
}
|
|
178520
|
-
function
|
|
178852
|
+
function channel2(raw) {
|
|
178521
178853
|
if (!/^\d{1,3}$/.test(raw)) return void 0;
|
|
178522
178854
|
const n2 = Number(raw);
|
|
178523
178855
|
return n2 <= 255 ? n2 : void 0;
|
|
@@ -178537,7 +178869,7 @@ function canonicalHex(value2) {
|
|
|
178537
178869
|
const wantsAlpha = fn2[1].toLowerCase() === "rgba";
|
|
178538
178870
|
const parts = fn2[2].split(",").map((p2) => p2.trim());
|
|
178539
178871
|
if (parts.length !== (wantsAlpha ? 4 : 3)) return void 0;
|
|
178540
|
-
const [r3, g2, b3] = [
|
|
178872
|
+
const [r3, g2, b3] = [channel2(parts[0]), channel2(parts[1]), channel2(parts[2])];
|
|
178541
178873
|
if (r3 === void 0 || g2 === void 0 || b3 === void 0) return void 0;
|
|
178542
178874
|
if (!wantsAlpha) return `#${byte(r3)}${byte(g2)}${byte(b3)}`;
|
|
178543
178875
|
const a3 = alpha(parts[3]);
|
|
@@ -178559,13 +178891,13 @@ function tokenColorProblems(colors) {
|
|
|
178559
178891
|
}
|
|
178560
178892
|
return problems;
|
|
178561
178893
|
}
|
|
178562
|
-
function
|
|
178894
|
+
function relativeLuminance2(hex2) {
|
|
178563
178895
|
const lin = [1, 3, 5].map((i2) => parseInt(hex2.slice(i2, i2 + 2), 16) / 255).map((v2) => v2 <= 0.03928 ? v2 / 12.92 : ((v2 + 0.055) / 1.055) ** 2.4);
|
|
178564
178896
|
return 0.2126 * lin[0] + 0.7152 * lin[1] + 0.0722 * lin[2];
|
|
178565
178897
|
}
|
|
178566
|
-
function
|
|
178567
|
-
const la2 =
|
|
178568
|
-
const lb =
|
|
178898
|
+
function contrastRatio4(a3, b3) {
|
|
178899
|
+
const la2 = relativeLuminance2(a3);
|
|
178900
|
+
const lb = relativeLuminance2(b3);
|
|
178569
178901
|
return (Math.max(la2, lb) + 0.05) / (Math.min(la2, lb) + 0.05);
|
|
178570
178902
|
}
|
|
178571
178903
|
var CANONICAL_HEX, byte;
|
|
@@ -178651,9 +178983,9 @@ function tokensFromWst(wst) {
|
|
|
178651
178983
|
if (surface2) colors.surfaceSecondary = { light: surface2 };
|
|
178652
178984
|
const opaque2 = (c2) => c2 && c2.length === 7 ? c2 : void 0;
|
|
178653
178985
|
const surface = opaque2(usableCssColor(wst["--wst-color-fill-base-1"]));
|
|
178654
|
-
const ramp = !surface ? [] : ["--wst-color-fill-base-shade-1", "--wst-color-fill-base-shade-2", "--wst-color-fill-base-shade-3"].map((v2) => opaque2(usableCssColor(wst[v2]))).filter((c2) => !!c2).map((c2) => ({ c: c2, ratio:
|
|
178986
|
+
const ramp = !surface ? [] : ["--wst-color-fill-base-shade-1", "--wst-color-fill-base-shade-2", "--wst-color-fill-base-shade-3"].map((v2) => opaque2(usableCssColor(wst[v2]))).filter((c2) => !!c2).map((c2) => ({ c: c2, ratio: contrastRatio4(c2, surface) }));
|
|
178655
178987
|
const primary = surface ? opaque2(usableCssColor(wst["--wst-color-text-primary"])) : void 0;
|
|
178656
|
-
const primaryRatio = primary && surface ?
|
|
178988
|
+
const primaryRatio = primary && surface ? contrastRatio4(primary, surface) : void 0;
|
|
178657
178989
|
const tertiary = primaryRatio === void 0 ? void 0 : ramp.filter((x2) => x2.ratio >= 4.5 && x2.ratio < primaryRatio).sort((a3, b3) => a3.ratio - b3.ratio)[0];
|
|
178658
178990
|
if (tertiary) colors.textTertiary = { light: tertiary.c };
|
|
178659
178991
|
const border = ramp.filter((x2) => x2.ratio >= 1.3 && x2.ratio <= 3).sort((a3, b3) => a3.ratio - b3.ratio)[0];
|
|
@@ -180400,178 +180732,6 @@ var init_notify_setup = __esm({
|
|
|
180400
180732
|
}
|
|
180401
180733
|
});
|
|
180402
180734
|
|
|
180403
|
-
// ../../core/ts/src/brand-color-math.ts
|
|
180404
|
-
function channel2(hex2, offset) {
|
|
180405
|
-
return Number.parseInt(hex2.slice(offset, offset + 2), 16);
|
|
180406
|
-
}
|
|
180407
|
-
function toHex(r3, g2, b3) {
|
|
180408
|
-
return `#${[r3, g2, b3].map((value2) => Math.round(value2).toString(16).padStart(2, "0")).join("")}`.toUpperCase();
|
|
180409
|
-
}
|
|
180410
|
-
function mix2(color, background, colorWeight) {
|
|
180411
|
-
const values = [1, 3, 5].map((offset) => channel2(color, offset) * colorWeight + channel2(background, offset) * (1 - colorWeight));
|
|
180412
|
-
return toHex(values[0], values[1], values[2]);
|
|
180413
|
-
}
|
|
180414
|
-
function relativeLuminance2(color) {
|
|
180415
|
-
const linear = [1, 3, 5].map((offset) => {
|
|
180416
|
-
const value2 = channel2(color, offset) / 255;
|
|
180417
|
-
return value2 <= 0.03928 ? value2 / 12.92 : ((value2 + 0.055) / 1.055) ** 2.4;
|
|
180418
|
-
});
|
|
180419
|
-
return 0.2126 * linear[0] + 0.7152 * linear[1] + 0.0722 * linear[2];
|
|
180420
|
-
}
|
|
180421
|
-
function contrastRatio4(a3, b3) {
|
|
180422
|
-
const la2 = relativeLuminance2(a3);
|
|
180423
|
-
const lb = relativeLuminance2(b3);
|
|
180424
|
-
return (Math.max(la2, lb) + 0.05) / (Math.min(la2, lb) + 0.05);
|
|
180425
|
-
}
|
|
180426
|
-
function lstar(color) {
|
|
180427
|
-
const y2 = relativeLuminance2(color);
|
|
180428
|
-
return y2 <= 8856e-6 ? y2 * 903.3 : 116 * Math.cbrt(y2) - 16;
|
|
180429
|
-
}
|
|
180430
|
-
function deriveAccentSurface(accent, surface, weight2) {
|
|
180431
|
-
const tint = mix2(accent, surface, weight2);
|
|
180432
|
-
if (contrastRatio4(tint, surface) >= ACCENT_SURFACE_MIN_DELTA) return tint;
|
|
180433
|
-
const away = relativeLuminance2(surface) < 0.5 ? "#FFFFFF" : "#000000";
|
|
180434
|
-
for (let w2 = 0.02; w2 <= 0.5; w2 += 0.02) {
|
|
180435
|
-
const candidate = mix2(away, surface, w2);
|
|
180436
|
-
if (contrastRatio4(candidate, surface) >= ACCENT_SURFACE_MIN_DELTA) return candidate;
|
|
180437
|
-
}
|
|
180438
|
-
return tint;
|
|
180439
|
-
}
|
|
180440
|
-
function deriveSecondaryAccent(primary) {
|
|
180441
|
-
const shade2 = mix2(primary, "#000000", SECONDARY_SHADE_WEIGHT);
|
|
180442
|
-
if (lstar(shade2) >= SECONDARY_MIN_LSTAR) return shade2;
|
|
180443
|
-
return mix2(primary, "#FFFFFF", SECONDARY_SHADE_WEIGHT);
|
|
180444
|
-
}
|
|
180445
|
-
function textOn(color) {
|
|
180446
|
-
const luminance2 = relativeLuminance2(color);
|
|
180447
|
-
const whiteContrast = 1.05 / (luminance2 + 0.05);
|
|
180448
|
-
const blackContrast = (luminance2 + 0.05) / 0.05;
|
|
180449
|
-
return whiteContrast >= blackContrast ? "#FFFFFF" : "#000000";
|
|
180450
|
-
}
|
|
180451
|
-
function tuneDarkAccent(brand, darkSurface2, lightSurface) {
|
|
180452
|
-
const kitInherentlyDark = lstar(lightSurface) < 50;
|
|
180453
|
-
if (kitInherentlyDark && contrastRatio4(brand, darkSurface2) >= DARK_ARM_TARGET_CONTRAST && lstar(brand) <= DARK_ARM_LSTAR_CAP) {
|
|
180454
|
-
return brand;
|
|
180455
|
-
}
|
|
180456
|
-
let lift = DARK_ARM_MIN_LIFT;
|
|
180457
|
-
let candidate = mix2(brand, "#FFFFFF", 1 - lift);
|
|
180458
|
-
while (contrastRatio4(candidate, darkSurface2) < DARK_ARM_TARGET_CONTRAST && lift < 0.6) {
|
|
180459
|
-
lift += 0.04;
|
|
180460
|
-
candidate = mix2(brand, "#FFFFFF", 1 - lift);
|
|
180461
|
-
}
|
|
180462
|
-
while (lstar(candidate) > DARK_ARM_LSTAR_CAP) {
|
|
180463
|
-
const darker = mix2(candidate, "#000000", 0.94);
|
|
180464
|
-
if (contrastRatio4(darker, darkSurface2) < DARK_ARM_FLOOR_CONTRAST) break;
|
|
180465
|
-
candidate = darker;
|
|
180466
|
-
}
|
|
180467
|
-
return candidate;
|
|
180468
|
-
}
|
|
180469
|
-
function textOnArm(accent) {
|
|
180470
|
-
return contrastRatio4("#FFFFFF", accent) >= 4.5 ? "#FFFFFF" : textOn(accent);
|
|
180471
|
-
}
|
|
180472
|
-
function tuneHighContrastAccent(brand, surface) {
|
|
180473
|
-
const towards = relativeLuminance2(surface) < 0.5 ? "#FFFFFF" : "#000000";
|
|
180474
|
-
let candidate = brand;
|
|
180475
|
-
for (let lift = 0; lift <= 0.9 && contrastRatio4(candidate, surface) < HIGH_CONTRAST_TARGET; lift += 0.04) {
|
|
180476
|
-
candidate = mix2(brand, towards, 1 - lift);
|
|
180477
|
-
}
|
|
180478
|
-
return candidate;
|
|
180479
|
-
}
|
|
180480
|
-
function deriveAccentText(accent, surfaces) {
|
|
180481
|
-
const all = (typeof surfaces === "string" ? [surfaces] : [...surfaces]).map((s5) => s5.slice(0, 7));
|
|
180482
|
-
const page = all[0];
|
|
180483
|
-
const worst2 = (color) => Math.min(...all.map((s5) => contrastRatio4(color, s5)));
|
|
180484
|
-
const opaque2 = accent.length === 9 ? mix2(accent.slice(0, 7), page, channel2(accent, 7) / 255) : accent;
|
|
180485
|
-
if (worst2(opaque2) >= ACCENT_TEXT_MIN_CONTRAST) return opaque2;
|
|
180486
|
-
const pole = worst2("#FFFFFF") >= worst2("#000000") ? "#FFFFFF" : "#000000";
|
|
180487
|
-
for (let step = 1; step <= 100; step++) {
|
|
180488
|
-
const candidate = mix2(pole, opaque2, step / 100);
|
|
180489
|
-
if (worst2(candidate) >= ACCENT_TEXT_MIN_CONTRAST) return candidate;
|
|
180490
|
-
}
|
|
180491
|
-
if (all.length > 1) {
|
|
180492
|
-
const side2 = (hex2) => relativeLuminance2(hex2) > MID_GREY_LUMINANCE;
|
|
180493
|
-
const sameSide = all.filter((s5) => side2(s5) === side2(page));
|
|
180494
|
-
return deriveAccentText(accent, sameSide.length < all.length ? sameSide : [page]);
|
|
180495
|
-
}
|
|
180496
|
-
return pole;
|
|
180497
|
-
}
|
|
180498
|
-
function textSurfacesOf(colors) {
|
|
180499
|
-
const out2 = { light: [], dark: [], highContrast: [] };
|
|
180500
|
-
for (const name of TEXT_BACKDROP_TOKENS) {
|
|
180501
|
-
const value2 = colors[name];
|
|
180502
|
-
for (const arm of ["light", "dark", "highContrast"]) {
|
|
180503
|
-
const hex2 = typeof value2 === "string" ? value2 : value2 && typeof value2 === "object" && !Array.isArray(value2) ? value2[arm] ?? value2.light : void 0;
|
|
180504
|
-
if (typeof hex2 === "string" && hex2.startsWith("#") && hex2.length >= 7) out2[arm].push(hex2);
|
|
180505
|
-
}
|
|
180506
|
-
}
|
|
180507
|
-
return out2;
|
|
180508
|
-
}
|
|
180509
|
-
function stripBrandFromIdiom(tokens2) {
|
|
180510
|
-
const idiom = tokens2.idiom;
|
|
180511
|
-
if (!idiom || typeof idiom !== "object" || Array.isArray(idiom)) return;
|
|
180512
|
-
for (const overlay of Object.values(idiom)) {
|
|
180513
|
-
if (!overlay || typeof overlay !== "object" || Array.isArray(overlay)) continue;
|
|
180514
|
-
const o2 = overlay;
|
|
180515
|
-
const colors = o2.colors;
|
|
180516
|
-
if (colors && typeof colors === "object" && !Array.isArray(colors)) {
|
|
180517
|
-
for (const key4 of BRAND_COLOR_TOKENS) delete colors[key4];
|
|
180518
|
-
if (Object.keys(colors).length === 0) delete o2.colors;
|
|
180519
|
-
}
|
|
180520
|
-
const shadows2 = o2.shadows;
|
|
180521
|
-
const glow = shadows2 && typeof shadows2 === "object" && !Array.isArray(shadows2) ? shadows2[BRAND_GLOW_SHADOW] : void 0;
|
|
180522
|
-
if (glow && typeof glow === "object" && !Array.isArray(glow) && "color" in glow) {
|
|
180523
|
-
delete glow.color;
|
|
180524
|
-
if (Object.keys(glow).length === 0) delete shadows2[BRAND_GLOW_SHADOW];
|
|
180525
|
-
if (Object.keys(shadows2).length === 0) delete o2.shadows;
|
|
180526
|
-
}
|
|
180527
|
-
}
|
|
180528
|
-
}
|
|
180529
|
-
function deriveAccentFamily(primary, secondary, surfaces, textSurfaces = {}) {
|
|
180530
|
-
const primaryDark = tuneDarkAccent(primary, surfaces.dark, surfaces.light);
|
|
180531
|
-
const secondaryDark = tuneDarkAccent(secondary, surfaces.dark, surfaces.light);
|
|
180532
|
-
const primaryHigh = tuneHighContrastAccent(primary, surfaces.highContrast);
|
|
180533
|
-
const secondaryHigh = tuneHighContrastAccent(secondary, surfaces.highContrast);
|
|
180534
|
-
return {
|
|
180535
|
-
accentPrimary: { light: primary, dark: primaryDark, highContrast: primaryHigh },
|
|
180536
|
-
accentSecondary: { light: secondary, dark: secondaryDark, highContrast: secondaryHigh },
|
|
180537
|
-
accentSurface: {
|
|
180538
|
-
light: deriveAccentSurface(primary, surfaces.light, ACCENT_SURFACE_LIGHT_WEIGHT),
|
|
180539
|
-
dark: deriveAccentSurface(primaryDark, surfaces.dark, 0.24),
|
|
180540
|
-
highContrast: deriveAccentSurface(primaryHigh, surfaces.highContrast, 0.24)
|
|
180541
|
-
},
|
|
180542
|
-
textOnAccent: {
|
|
180543
|
-
light: textOnArm(primary),
|
|
180544
|
-
dark: textOnArm(primaryDark),
|
|
180545
|
-
highContrast: textOn(primaryHigh)
|
|
180546
|
-
},
|
|
180547
|
-
accentText: {
|
|
180548
|
-
light: deriveAccentText(primary, [surfaces.light, ...textSurfaces.light ?? []]),
|
|
180549
|
-
dark: deriveAccentText(primaryDark, [surfaces.dark, ...textSurfaces.dark ?? []]),
|
|
180550
|
-
highContrast: deriveAccentText(primaryHigh, [surfaces.highContrast, ...textSurfaces.highContrast ?? []])
|
|
180551
|
-
}
|
|
180552
|
-
};
|
|
180553
|
-
}
|
|
180554
|
-
var ACCENT_SURFACE_MIN_DELTA, ACCENT_SURFACE_LIGHT_WEIGHT, SECONDARY_SHADE_WEIGHT, SECONDARY_MIN_LSTAR, DARK_ARM_MIN_LIFT, DARK_ARM_TARGET_CONTRAST, DARK_ARM_FLOOR_CONTRAST, DARK_ARM_LSTAR_CAP, HIGH_CONTRAST_TARGET, ACCENT_TEXT_MIN_CONTRAST, MID_GREY_LUMINANCE, TEXT_BACKDROP_TOKENS, BRAND_COLOR_TOKENS, BRAND_GLOW_SHADOW;
|
|
180555
|
-
var init_brand_color_math = __esm({
|
|
180556
|
-
"../../core/ts/src/brand-color-math.ts"() {
|
|
180557
|
-
init_define_HHP_CATALOG();
|
|
180558
|
-
ACCENT_SURFACE_MIN_DELTA = 1.08;
|
|
180559
|
-
ACCENT_SURFACE_LIGHT_WEIGHT = 0.12;
|
|
180560
|
-
SECONDARY_SHADE_WEIGHT = 0.72;
|
|
180561
|
-
SECONDARY_MIN_LSTAR = 22;
|
|
180562
|
-
DARK_ARM_MIN_LIFT = 0.08;
|
|
180563
|
-
DARK_ARM_TARGET_CONTRAST = 3.4;
|
|
180564
|
-
DARK_ARM_FLOOR_CONTRAST = 3;
|
|
180565
|
-
DARK_ARM_LSTAR_CAP = 80;
|
|
180566
|
-
HIGH_CONTRAST_TARGET = 8.5;
|
|
180567
|
-
ACCENT_TEXT_MIN_CONTRAST = 4.5;
|
|
180568
|
-
MID_GREY_LUMINANCE = 0.179;
|
|
180569
|
-
TEXT_BACKDROP_TOKENS = ["surfaceSecondary", "surfaceElevated", "surfaceSubtle", "surfaceTertiary"];
|
|
180570
|
-
BRAND_COLOR_TOKENS = ["accentPrimary", "accentSecondary", "accentSurface", "textOnAccent", "accentText"];
|
|
180571
|
-
BRAND_GLOW_SHADOW = "glow";
|
|
180572
|
-
}
|
|
180573
|
-
});
|
|
180574
|
-
|
|
180575
180735
|
// src/site-analyze/branding-derive.ts
|
|
180576
180736
|
function secondBrandColour(wst) {
|
|
180577
180737
|
for (const name of ["--wst-color-fill-accent-2", "--wst-color-fill-accent-3"]) {
|
|
@@ -183627,33 +183787,6 @@ var init_surface_lint = __esm({
|
|
|
183627
183787
|
}
|
|
183628
183788
|
});
|
|
183629
183789
|
|
|
183630
|
-
// ../../core/ts/src/top-bar-fill.ts
|
|
183631
|
-
function topBarFill(color) {
|
|
183632
|
-
const fill2 = color.slice(0, 7).toUpperCase();
|
|
183633
|
-
const light = contrastRatio4(fill2, TOP_BAR_LIGHT_FOREGROUND);
|
|
183634
|
-
const dark = contrastRatio4(fill2, TOP_BAR_DARK_FOREGROUND);
|
|
183635
|
-
const foreground = light >= dark ? TOP_BAR_LIGHT_FOREGROUND : TOP_BAR_DARK_FOREGROUND;
|
|
183636
|
-
const drawn = deriveAccentText(fill2, foreground);
|
|
183637
|
-
return {
|
|
183638
|
-
fill: fill2,
|
|
183639
|
-
foreground,
|
|
183640
|
-
ratio: round2(Math.max(light, dark)),
|
|
183641
|
-
drawn,
|
|
183642
|
-
drawnRatio: round2(contrastRatio4(drawn, foreground)),
|
|
183643
|
-
nudged: drawn !== fill2
|
|
183644
|
-
};
|
|
183645
|
-
}
|
|
183646
|
-
var TOP_BAR_DARK_FOREGROUND, TOP_BAR_LIGHT_FOREGROUND, round2;
|
|
183647
|
-
var init_top_bar_fill = __esm({
|
|
183648
|
-
"../../core/ts/src/top-bar-fill.ts"() {
|
|
183649
|
-
init_define_HHP_CATALOG();
|
|
183650
|
-
init_brand_color_math();
|
|
183651
|
-
TOP_BAR_DARK_FOREGROUND = "#1A1B20";
|
|
183652
|
-
TOP_BAR_LIGHT_FOREGROUND = "#FFFFFF";
|
|
183653
|
-
round2 = (n2) => Math.round(n2 * 100) / 100;
|
|
183654
|
-
}
|
|
183655
|
-
});
|
|
183656
|
-
|
|
183657
183790
|
// src/token-lint.ts
|
|
183658
183791
|
import { existsSync as existsSync68, readFileSync as readFileSync74 } from "node:fs";
|
|
183659
183792
|
import { join as join64 } from "node:path";
|
|
@@ -183949,10 +184082,10 @@ function paintedOver(fg, bg) {
|
|
|
183949
184082
|
function sameHueForContrast(fg, bg, target = AA_TEXT) {
|
|
183950
184083
|
const base2 = fg.slice(0, 7);
|
|
183951
184084
|
const opaqueBg = bg.slice(0, 7);
|
|
183952
|
-
const pole =
|
|
184085
|
+
const pole = contrastRatio4("#000000", opaqueBg) >= contrastRatio4("#FFFFFF", opaqueBg) ? "#000000" : "#FFFFFF";
|
|
183953
184086
|
for (let step = 0; step <= 100; step++) {
|
|
183954
184087
|
const candidate = mixHex(base2, pole, 1 - step / 100);
|
|
183955
|
-
if (
|
|
184088
|
+
if (contrastRatio4(candidate, opaqueBg) >= target) return candidate;
|
|
183956
184089
|
}
|
|
183957
184090
|
return void 0;
|
|
183958
184091
|
}
|
|
@@ -183974,7 +184107,7 @@ function contrastFindings(colors) {
|
|
|
183974
184107
|
const painted2 = paintedOver(fg, bg);
|
|
183975
184108
|
if (!painted2) continue;
|
|
183976
184109
|
const opaqueBg = bg.slice(0, 7);
|
|
183977
|
-
const ratio =
|
|
184110
|
+
const ratio = contrastRatio4(painted2, opaqueBg);
|
|
183978
184111
|
if (ratio >= AA_TEXT) continue;
|
|
183979
184112
|
const key4 = `${fgName}|${pair.bg}|${fg}|${bg}`;
|
|
183980
184113
|
const same6 = findings.get(key4);
|
|
@@ -183982,10 +184115,10 @@ function contrastFindings(colors) {
|
|
|
183982
184115
|
same6.schemes.push(scheme);
|
|
183983
184116
|
continue;
|
|
183984
184117
|
}
|
|
183985
|
-
const darker =
|
|
184118
|
+
const darker = contrastRatio4("#000000", opaqueBg) >= contrastRatio4("#FFFFFF", opaqueBg);
|
|
183986
184119
|
const ink = darker ? "#000000" : "#FFFFFF";
|
|
183987
|
-
const suggestion = pair.suggest === "same-hue" ? sameHueForContrast(painted2, opaqueBg) : pair.suggest === "ink" &&
|
|
183988
|
-
const fix = !suggestion ? ` Pick a ${fgName} that clears ${AA_TEXT}:1 against ${pair.bg}.` : pair.suggest === "same-hue" ? ` A ${darker ? "darker" : "lighter"} ${fgName} of the same hue that clears it is ${suggestion} (${
|
|
184120
|
+
const suggestion = pair.suggest === "same-hue" ? sameHueForContrast(painted2, opaqueBg) : pair.suggest === "ink" && contrastRatio4(ink, opaqueBg) >= AA_TEXT ? ink : void 0;
|
|
184121
|
+
const fix = !suggestion ? ` Pick a ${fgName} that clears ${AA_TEXT}:1 against ${pair.bg}.` : pair.suggest === "same-hue" ? ` A ${darker ? "darker" : "lighter"} ${fgName} of the same hue that clears it is ${suggestion} (${contrastRatio4(suggestion, opaqueBg).toFixed(2)}:1).` : ` ${suggestion} clears it (${contrastRatio4(suggestion, opaqueBg).toFixed(2)}:1).`;
|
|
183989
184122
|
findings.set(key4, {
|
|
183990
184123
|
key: key4,
|
|
183991
184124
|
schemes: [scheme],
|
|
@@ -184006,7 +184139,7 @@ function sameHueClearingAll(fg, bgs, target = AA_TEXT) {
|
|
|
184006
184139
|
for (let step = 0; step <= 100; step++) {
|
|
184007
184140
|
for (const pole of poles) {
|
|
184008
184141
|
const candidate = mixHex(base2, pole, 1 - step / 100);
|
|
184009
|
-
if (bgs.every((bg) =>
|
|
184142
|
+
if (bgs.every((bg) => contrastRatio4(candidate, bg) >= target)) return candidate;
|
|
184010
184143
|
}
|
|
184011
184144
|
}
|
|
184012
184145
|
return void 0;
|
|
@@ -184027,10 +184160,10 @@ function textOnSurfaces(colors, declared, findings) {
|
|
|
184027
184160
|
const page = pageRaw && paintedOver(fg, pageRaw) ? pageRaw.slice(0, 7) : void 0;
|
|
184028
184161
|
const opaqueBg = bg.slice(0, 7);
|
|
184029
184162
|
if (page === opaqueBg) continue;
|
|
184030
|
-
const ratio =
|
|
184163
|
+
const ratio = contrastRatio4(painted2, opaqueBg);
|
|
184031
184164
|
if (ratio >= AA_TEXT) continue;
|
|
184032
184165
|
const invisible = ratio < INVISIBLE_TEXT;
|
|
184033
|
-
if (!invisible && page &&
|
|
184166
|
+
if (!invisible && page && contrastRatio4(paintedOver(fg, pageRaw), page) < AA_TEXT) continue;
|
|
184034
184167
|
const key4 = `${fgName}|${surface}|${fg}|${bg}|${page ?? ""}`;
|
|
184035
184168
|
const same6 = findings.get(key4);
|
|
184036
184169
|
if (same6) {
|
|
@@ -184038,10 +184171,10 @@ function textOnSurfaces(colors, declared, findings) {
|
|
|
184038
184171
|
continue;
|
|
184039
184172
|
}
|
|
184040
184173
|
const opposite = page !== void 0 && onLightSide(page) !== onLightSide(opaqueBg);
|
|
184041
|
-
const noSingle = page !== void 0 && opposite &&
|
|
184174
|
+
const noSingle = page !== void 0 && opposite && contrastRatio4(page, opaqueBg) < AA_TEXT * AA_TEXT;
|
|
184042
184175
|
const suggestion = noSingle ? void 0 : sameHueClearingAll(painted2, page ? [page, opaqueBg] : [opaqueBg]);
|
|
184043
184176
|
const restructure = ` Move ${surface} to the page's side of mid-grey (a ${page && onLightSide(page) ? "light" : "dark"} ${surface} on this page), or scope that section's text colour with \`modifiers.theme\` (e.g. { "colors": { "${fgName}": "#RRGGBB" } } on the card).`;
|
|
184044
|
-
const fix = noSingle ? ` surfacePrimary (${page}) and ${surface} (${opaqueBg}) sit on opposite sides of mid-grey, so no single ${fgName} can clear ${AA_TEXT}:1 on both.${restructure}` : suggestion ? ` A ${fgName} that clears it${page ? " and the page" : ""} is ${suggestion} (${
|
|
184177
|
+
const fix = noSingle ? ` surfacePrimary (${page}) and ${surface} (${opaqueBg}) sit on opposite sides of mid-grey, so no single ${fgName} can clear ${AA_TEXT}:1 on both.${restructure}` : suggestion ? ` A ${fgName} that clears it${page ? " and the page" : ""} is ${suggestion} (${contrastRatio4(suggestion, opaqueBg).toFixed(2)}:1 on ${surface}).` + (opposite ? restructure : "") : ` No ${fgName} of this hue clears ${AA_TEXT}:1 on ${surface}${page ? " and the page" : ""}.` + (opposite ? restructure : "");
|
|
184045
184178
|
findings.set(key4, {
|
|
184046
184179
|
key: key4,
|
|
184047
184180
|
schemes: [scheme],
|
|
@@ -184074,8 +184207,8 @@ function accentOnSurfacesFor(fgName, role, colors, declared, findings) {
|
|
|
184074
184207
|
const page = pageRaw && paintedOver(fg, pageRaw) ? pageRaw.slice(0, 7) : void 0;
|
|
184075
184208
|
const opaqueBg = bg.slice(0, 7);
|
|
184076
184209
|
if (page === opaqueBg) continue;
|
|
184077
|
-
if (page &&
|
|
184078
|
-
const ratio =
|
|
184210
|
+
if (page && contrastRatio4(paintedOver(fg, pageRaw), page) < AA_TEXT) continue;
|
|
184211
|
+
const ratio = contrastRatio4(painted2, opaqueBg);
|
|
184079
184212
|
if (ratio >= AA_TEXT) continue;
|
|
184080
184213
|
const key4 = `${fgName}|${surface}|${fg}|${bg}|${page ?? ""}`;
|
|
184081
184214
|
const same6 = findings.get(key4);
|
|
@@ -184084,9 +184217,9 @@ function accentOnSurfacesFor(fgName, role, colors, declared, findings) {
|
|
|
184084
184217
|
continue;
|
|
184085
184218
|
}
|
|
184086
184219
|
const opposite = page !== void 0 && onLightSide(page) !== onLightSide(opaqueBg);
|
|
184087
|
-
const noSingle = page !== void 0 && opposite &&
|
|
184220
|
+
const noSingle = page !== void 0 && opposite && contrastRatio4(page, opaqueBg) < AA_TEXT * AA_TEXT;
|
|
184088
184221
|
const suggestion = noSingle ? void 0 : sameHueClearingAll(painted2, page ? [page, opaqueBg] : [opaqueBg]);
|
|
184089
|
-
const measured = (c2) => page ? `${
|
|
184222
|
+
const measured = (c2) => page ? `${contrastRatio4(c2, opaqueBg).toFixed(2)}:1 on ${surface}, ${contrastRatio4(c2, page).toFixed(2)}:1 on surfacePrimary` : `${contrastRatio4(c2, opaqueBg).toFixed(2)}:1`;
|
|
184090
184223
|
const restructure = ` Move ${surface} to the page's side of mid-grey (a ${page && onLightSide(page) ? "light" : "dark"} ${surface} on this page), or scope an explicit accent for that section with \`modifiers.theme\` (e.g. { "colors": { "accentText": "#RRGGBB" } } on the card).`;
|
|
184091
184224
|
const fix = noSingle ? ` surfacePrimary (${page}) and ${surface} (${opaqueBg}) sit on opposite sides of mid-grey, so no single accent text colour can clear ${AA_TEXT}:1 on both.${restructure}` : suggestion ? ` A same-hue ${fgName} that clears it${page ? " and the page" : ""} is ${suggestion} (${measured(suggestion)}).` + (opposite ? ` The page and ${surface} sit on opposite sides of mid-grey, so only a narrow mid-tone clears both.${restructure}` : "") : ` No ${fgName} of this hue clears ${AA_TEXT}:1 on ${surface}${page ? " and the page" : ""}.` + (opposite ? restructure : "");
|
|
184092
184225
|
findings.set(key4, {
|
|
@@ -184134,7 +184267,7 @@ var init_token_lint = __esm({
|
|
|
184134
184267
|
const [ca2, cb] = [channels3(a3), channels3(b3)];
|
|
184135
184268
|
return toHex2(ca2.map((c2, i2) => c2 * w2 + cb[i2] * (1 - w2)));
|
|
184136
184269
|
};
|
|
184137
|
-
onLightSide = (hex2) =>
|
|
184270
|
+
onLightSide = (hex2) => contrastRatio4("#000000", hex2) >= contrastRatio4("#FFFFFF", hex2);
|
|
184138
184271
|
SURFACE_TEXT_USE = {
|
|
184139
184272
|
surfaceSecondary: "cards, sheets and list rows paint their titles and labels on surfaceSecondary",
|
|
184140
184273
|
surfaceElevated: "cards, sheets and list rows paint their titles and labels on surfaceElevated",
|
|
@@ -257569,9 +257702,9 @@ function contrastRow(field, tokens2, base2) {
|
|
|
257569
257702
|
const neutral = isFill ? [] : (textSurfacesOf(obj19(tokens2.colors) ?? {}).light ?? []).map((value2) => opaque(value2));
|
|
257570
257703
|
if (neutral.some((value2) => !value2)) return { ...base2, status: "unresolved", note: "Accent text contrast requires opaque neutral surface tokens." };
|
|
257571
257704
|
const surfaces = [background, ...neutral];
|
|
257572
|
-
const desired = isFill ?
|
|
257573
|
-
const ratio = target ? Math.min(...surfaces.map((surface) =>
|
|
257574
|
-
if (ratio < 4.5 && surfaces.some((surface) =>
|
|
257705
|
+
const desired = isFill ? contrastRatio4("#FFFFFF", accent) >= 4.5 ? "#FFFFFF" : "#000000" : deriveAccentText(accent, surfaces);
|
|
257706
|
+
const ratio = target ? Math.min(...surfaces.map((surface) => contrastRatio4(target, surface))) : 0;
|
|
257707
|
+
if (ratio < 4.5 && surfaces.some((surface) => contrastRatio4(desired, surface) < 4.5)) {
|
|
257575
257708
|
return { ...base2, status: "unresolved", note: "No single derived accent text shade reaches 4.5:1 on every neutral surface; author separate local text roles for the conflicting backdrops." };
|
|
257576
257709
|
}
|
|
257577
257710
|
return {
|
|
@@ -261906,53 +262039,53 @@ var init_preview_assets_generated = __esm({
|
|
|
261906
262039
|
init_define_HHP_CATALOG();
|
|
261907
262040
|
init_preview_assets_format();
|
|
261908
262041
|
PREVIEW_ASSET_MANIFEST = [
|
|
261909
|
-
{ key: "assets/DashboardHost-
|
|
261910
|
-
{ key: "assets/DevDrawer-
|
|
261911
|
-
{ key: "assets/IdiomCompare-
|
|
261912
|
-
{ key: "assets/LightboxViewer-
|
|
261913
|
-
{ key: "assets/OfflineReadingBar-
|
|
261914
|
-
{ key: "assets/PhonePreviewControl-
|
|
261915
|
-
{ key: "assets/SchemeCompare-
|
|
261916
|
-
{ key: "assets/TopBarSearchStates-
|
|
261917
|
-
{ key: "assets/WixFrogTelemetrySink-
|
|
262042
|
+
{ key: "assets/DashboardHost-sAWh0-1q.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "893dad4f33995ca2ab0625d199aca978b744e0e883d4a3a1b5712e8ca2811be6" },
|
|
262043
|
+
{ key: "assets/DevDrawer-c2GlRNOg.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "441809f9fb5b942c1e70c820ef5323328c70d72e865269335b7121d562b68606" },
|
|
262044
|
+
{ key: "assets/IdiomCompare-BRl9nqfI.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "fd32f5a519698492b74baa1ff3e9161aa300acf5f23b9855cc944cd860be027a" },
|
|
262045
|
+
{ key: "assets/LightboxViewer-D15b4fIx.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 15926, sha256: "59a6e143c1a39949499a6a07acae1dcffb51bba68f81f0814f449e56988fcdf4" },
|
|
262046
|
+
{ key: "assets/OfflineReadingBar-BPRgp4fV.js", contentType: "application/javascript; charset=utf-8", offset: 37628, length: 1695, sha256: "ba7be6486acb93e5450fdd8123958788ec57bf378b2251a6bebcf19db1d98509" },
|
|
262047
|
+
{ key: "assets/PhonePreviewControl-lR8mpG2q.js", contentType: "application/javascript; charset=utf-8", offset: 39323, length: 37851, sha256: "41cf6cbc710de7bf26968ab894663e027771f8850d99d49188260f81a2ea1f75" },
|
|
262048
|
+
{ key: "assets/SchemeCompare-DM2ZkL1t.js", contentType: "application/javascript; charset=utf-8", offset: 77174, length: 1858, sha256: "ebdc55d17191d4e188c3cb20699e284dfa761b3d5b88725787043c8ebc487d9a" },
|
|
262049
|
+
{ key: "assets/TopBarSearchStates-BLmbqpMF.js", contentType: "application/javascript; charset=utf-8", offset: 79032, length: 4068, sha256: "53b7e4e047273e38b755818f69fa4df4183655bbbaed18d2fcc0030dcc3c9a15" },
|
|
262050
|
+
{ key: "assets/WixFrogTelemetrySink-pc6BR-0m.js", contentType: "application/javascript; charset=utf-8", offset: 83100, length: 3515, sha256: "4798144f4664eaa54492c7e788124d6b82326d2a963251aae086b63722517260" },
|
|
261918
262051
|
{ key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 86615, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
|
|
261919
262052
|
{ key: "assets/catalog-B4UJpy5D.js", contentType: "application/javascript; charset=utf-8", offset: 88807, length: 35626, sha256: "90111ffcf2d13eff399836acafd1f2b387859440a29dcd4a0afd8370915992cb" },
|
|
261920
|
-
{ key: "assets/catalogFontFaces-
|
|
262053
|
+
{ key: "assets/catalogFontFaces-DYZy_4kP.js", contentType: "application/javascript; charset=utf-8", offset: 124433, length: 1111, sha256: "2db26fab3978ba4284cd47d13928428baeff42657de713a3888996e92984f4ac" },
|
|
261921
262054
|
{ key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 125544, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
|
|
261922
|
-
{ key: "assets/files-transfer-
|
|
262055
|
+
{ key: "assets/files-transfer-Dgyvb8sx.js", contentType: "application/javascript; charset=utf-8", offset: 128111, length: 6446, sha256: "e4f255d0bbb3a175d55e42ff7eed6e3f08c5b4d60c2b273291881ea3169aed87" },
|
|
261923
262056
|
{ key: "assets/frogActionMap-CTMe3Bz1.js", contentType: "application/javascript; charset=utf-8", offset: 134557, length: 1172, sha256: "9f1ce4c70a680dfb902949e1f482c7e47500b69c3350cd091b1b51d674032d53" },
|
|
261924
|
-
{ key: "assets/frogApiRules
|
|
262057
|
+
{ key: "assets/frogApiRules-CTcot4dC.js", contentType: "application/javascript; charset=utf-8", offset: 135729, length: 2207, sha256: "472a60ab051f220f9d1cde8cdbe99388b579dc9a676e03e1365f5c22e5976ee5" },
|
|
261925
262058
|
{ key: "assets/frogScreenMap-S_IRnz20.js", contentType: "application/javascript; charset=utf-8", offset: 137936, length: 1067, sha256: "22b2f71e1b06df8f1e79b890d47fe42e983d37865c2cc9be753e4121764c91e1" },
|
|
261926
262059
|
{ key: "assets/glassPreviewBrowser-DONaOehd.js", contentType: "application/javascript; charset=utf-8", offset: 139003, length: 6578, sha256: "4402c4cddd2a564e7466cdf1e12a0e0277c0400b288e1e5eda1d23e797599d31" },
|
|
261927
262060
|
{ key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 145581, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
|
|
261928
|
-
{ key: "assets/index-
|
|
261929
|
-
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
261930
|
-
{ key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
261931
|
-
{ key: "assets/pdf-
|
|
261932
|
-
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
261933
|
-
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset:
|
|
261934
|
-
{ key: "assets/pdfDocument-
|
|
261935
|
-
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
261936
|
-
{ key: "assets/scrollLinkedRuntime-
|
|
261937
|
-
{ key: "assets/webviewBridgeHost-
|
|
261938
|
-
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset:
|
|
261939
|
-
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset:
|
|
261940
|
-
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset:
|
|
261941
|
-
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
261942
|
-
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset:
|
|
261943
|
-
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset:
|
|
261944
|
-
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
261945
|
-
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset:
|
|
261946
|
-
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
261947
|
-
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset:
|
|
261948
|
-
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset:
|
|
261949
|
-
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
261950
|
-
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
261951
|
-
{ key: "index.html", contentType: "text/html; charset=utf-8", offset:
|
|
261952
|
-
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset:
|
|
261953
|
-
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset:
|
|
261954
|
-
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
261955
|
-
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
262061
|
+
{ key: "assets/index-BYRnEs7o.js", contentType: "application/javascript; charset=utf-8", offset: 148285, length: 1702404, sha256: "c619af38c643dfe606bdb337218d5b0ffe78aeeab1c50a268d27de097b9ddbaa" },
|
|
262062
|
+
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1850689, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
|
|
262063
|
+
{ key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1858440, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
|
|
262064
|
+
{ key: "assets/pdf-D3P79Ebu.js", contentType: "application/javascript; charset=utf-8", offset: 1868971, length: 488215, sha256: "a9d34f09c807f1cde9ab000737f0f7b849670c37908aa47cb77889b7e01d34cb" },
|
|
262065
|
+
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2357186, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
|
|
262066
|
+
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2357276, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
|
|
262067
|
+
{ key: "assets/pdfDocument-xerYdbpw.js", contentType: "application/javascript; charset=utf-8", offset: 3674310, length: 3836, sha256: "98b081e0cc2ed01250e89565270d45c77b8773d9d4f9422082df82752e6f110f" },
|
|
262068
|
+
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3678146, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
|
|
262069
|
+
{ key: "assets/scrollLinkedRuntime-BOHZMdXQ.js", contentType: "application/javascript; charset=utf-8", offset: 3680412, length: 2278, sha256: "7cff5cf26f2fad210b56cb65a441ec54b8bdaba0a832d7e392be8e67ce0c845a" },
|
|
262070
|
+
{ key: "assets/webviewBridgeHost-BcqhkkRT.js", contentType: "application/javascript; charset=utf-8", offset: 3682690, length: 9889, sha256: "c41cdbf1ce4ed16e4ce6dd9783d54f0e17e543709e419d40635e5daab6f6eb42" },
|
|
262071
|
+
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3692579, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
|
|
262072
|
+
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3697189, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
|
|
262073
|
+
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4185773, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
|
|
262074
|
+
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4276697, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
|
|
262075
|
+
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4367681, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
|
|
262076
|
+
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4458661, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
|
|
262077
|
+
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4549533, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
|
|
262078
|
+
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4640513, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
|
|
262079
|
+
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4749149, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
|
|
262080
|
+
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4858233, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
|
|
262081
|
+
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4967281, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
|
|
262082
|
+
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 5074981, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
|
|
262083
|
+
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5163089, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
|
|
262084
|
+
{ key: "index.html", contentType: "text/html; charset=utf-8", offset: 5169907, length: 4924, sha256: "0c62f8849ce24d4b83b2eff2ddbf48323539b49b9b373cb8005ca44d73d87024" },
|
|
262085
|
+
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5174831, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
|
|
262086
|
+
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5186288, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
|
|
262087
|
+
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5187459, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
|
|
262088
|
+
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5211762, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
|
|
261956
262089
|
];
|
|
261957
262090
|
}
|
|
261958
262091
|
});
|