@agent-native/toolkit 0.201.1 → 0.202.0-nightly-20261006033736
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/agent-native.eject.json +39 -12
- package/dist/app/agentkit/react/components.d.ts.map +1 -1
- package/dist/app/agentkit/react/components.js +292 -23
- package/dist/app/agentkit/react/components.js.map +1 -1
- package/dist/app/agentkit/react/context.d.ts +5 -0
- package/dist/app/agentkit/react/context.d.ts.map +1 -1
- package/dist/app/agentkit/react/context.js +5 -0
- package/dist/app/agentkit/react/context.js.map +1 -1
- package/dist/app/agentkit/react/styles.css +78 -3
- package/dist/app/auth/AuthPage.d.ts.map +1 -1
- package/dist/app/auth/AuthPage.js +7 -14
- package/dist/app/auth/AuthPage.js.map +1 -1
- package/dist/app/auth/server.d.ts +6 -0
- package/dist/app/auth/server.d.ts.map +1 -0
- package/dist/app/auth/server.js +19 -0
- package/dist/app/auth/server.js.map +1 -0
- package/dist/app/chat/AgentKitAssistantChat.d.ts.map +1 -1
- package/dist/app/chat/AgentKitAssistantChat.js +164 -83
- package/dist/app/chat/AgentKitAssistantChat.js.map +1 -1
- package/dist/app/chat/AgentSidebar.d.ts +2 -1
- package/dist/app/chat/AgentSidebar.d.ts.map +1 -1
- package/dist/app/chat/AgentSidebar.js +2 -2
- package/dist/app/chat/AgentSidebar.js.map +1 -1
- package/dist/app/chat/agentkit-chat/guided-questions.d.ts.map +1 -1
- package/dist/app/chat/agentkit-chat/guided-questions.js +13 -3
- package/dist/app/chat/agentkit-chat/guided-questions.js.map +1 -1
- package/dist/app/chat/chat/surface-types.d.ts +2 -0
- package/dist/app/chat/chat/surface-types.d.ts.map +1 -1
- package/dist/app/i18n/catalogs/ar-SA.d.ts.map +1 -1
- package/dist/app/i18n/catalogs/ar-SA.js +41 -0
- package/dist/app/i18n/catalogs/ar-SA.js.map +1 -1
- package/dist/app/i18n/catalogs/de-DE.d.ts.map +1 -1
- package/dist/app/i18n/catalogs/de-DE.js +41 -0
- package/dist/app/i18n/catalogs/de-DE.js.map +1 -1
- package/dist/app/i18n/catalogs/en-US.d.ts +41 -0
- package/dist/app/i18n/catalogs/en-US.d.ts.map +1 -1
- package/dist/app/i18n/catalogs/en-US.js +41 -0
- package/dist/app/i18n/catalogs/en-US.js.map +1 -1
- package/dist/app/i18n/catalogs/es-ES.d.ts.map +1 -1
- package/dist/app/i18n/catalogs/es-ES.js +41 -0
- package/dist/app/i18n/catalogs/es-ES.js.map +1 -1
- package/dist/app/i18n/catalogs/fr-FR.d.ts.map +1 -1
- package/dist/app/i18n/catalogs/fr-FR.js +41 -0
- package/dist/app/i18n/catalogs/fr-FR.js.map +1 -1
- package/dist/app/i18n/catalogs/hi-IN.d.ts.map +1 -1
- package/dist/app/i18n/catalogs/hi-IN.js +41 -0
- package/dist/app/i18n/catalogs/hi-IN.js.map +1 -1
- package/dist/app/i18n/catalogs/ja-JP.d.ts.map +1 -1
- package/dist/app/i18n/catalogs/ja-JP.js +41 -0
- package/dist/app/i18n/catalogs/ja-JP.js.map +1 -1
- package/dist/app/i18n/catalogs/ko-KR.d.ts.map +1 -1
- package/dist/app/i18n/catalogs/ko-KR.js +41 -0
- package/dist/app/i18n/catalogs/ko-KR.js.map +1 -1
- package/dist/app/i18n/catalogs/pt-BR.d.ts.map +1 -1
- package/dist/app/i18n/catalogs/pt-BR.js +41 -0
- package/dist/app/i18n/catalogs/pt-BR.js.map +1 -1
- package/dist/app/i18n/catalogs/zh-CN.d.ts.map +1 -1
- package/dist/app/i18n/catalogs/zh-CN.js +41 -0
- package/dist/app/i18n/catalogs/zh-CN.js.map +1 -1
- package/dist/app/i18n/catalogs/zh-TW.d.ts.map +1 -1
- package/dist/app/i18n/catalogs/zh-TW.js +41 -0
- package/dist/app/i18n/catalogs/zh-TW.js.map +1 -1
- package/dist/app/shared/StarfieldBackground.d.ts +1 -6
- package/dist/app/shared/StarfieldBackground.d.ts.map +1 -1
- package/dist/app/shared/StarfieldBackground.js +1 -368
- package/dist/app/shared/StarfieldBackground.js.map +1 -1
- package/dist/app/shared/WaveBackground.d.ts +5 -0
- package/dist/app/shared/WaveBackground.d.ts.map +1 -0
- package/dist/app/shared/WaveBackground.js +34 -0
- package/dist/app/shared/WaveBackground.js.map +1 -0
- package/dist/app/shared/WebGlWaveBackground.d.ts +9 -0
- package/dist/app/shared/WebGlWaveBackground.d.ts.map +1 -0
- package/dist/app/shared/WebGlWaveBackground.js +433 -0
- package/dist/app/shared/WebGlWaveBackground.js.map +1 -0
- package/dist/app/shared/index.d.ts +1 -0
- package/dist/app/shared/index.d.ts.map +1 -1
- package/dist/app/shared/index.js +1 -0
- package/dist/app/shared/index.js.map +1 -1
- package/dist/app/shared/ocean/bloom-blur.wgsl +43 -0
- package/dist/app/shared/ocean/bloom-blur.wgsl.js +1 -0
- package/dist/app/shared/ocean/bloom-bright.wgsl +21 -0
- package/dist/app/shared/ocean/bloom-bright.wgsl.js +1 -0
- package/dist/app/shared/ocean/bloom-composite.wgsl +40 -0
- package/dist/app/shared/ocean/bloom-composite.wgsl.js +1 -0
- package/dist/app/shared/ocean/brand-colors.d.ts +9 -0
- package/dist/app/shared/ocean/brand-colors.d.ts.map +1 -0
- package/dist/app/shared/ocean/brand-colors.js +45 -0
- package/dist/app/shared/ocean/brand-colors.js.map +1 -0
- package/dist/app/shared/ocean/camera.d.ts +5 -0
- package/dist/app/shared/ocean/camera.d.ts.map +1 -0
- package/dist/app/shared/ocean/camera.js +24 -0
- package/dist/app/shared/ocean/camera.js.map +1 -0
- package/dist/app/shared/ocean/hero-ocean-background.d.ts +8 -0
- package/dist/app/shared/ocean/hero-ocean-background.d.ts.map +1 -0
- package/dist/app/shared/ocean/hero-ocean-background.js +186 -0
- package/dist/app/shared/ocean/hero-ocean-background.js.map +1 -0
- package/dist/app/shared/ocean/ifft-stage.wgsl +36 -0
- package/dist/app/shared/ocean/ifft-stage.wgsl.js +1 -0
- package/dist/app/shared/ocean/initial-spectrum.wgsl +36 -0
- package/dist/app/shared/ocean/initial-spectrum.wgsl.js +1 -0
- package/dist/app/shared/ocean/noise.wgsl +24 -0
- package/dist/app/shared/ocean/noise.wgsl.js +1 -0
- package/dist/app/shared/ocean/normal-foam.wgsl +32 -0
- package/dist/app/shared/ocean/normal-foam.wgsl.js +1 -0
- package/dist/app/shared/ocean/ocean-colors.d.ts +6 -0
- package/dist/app/shared/ocean/ocean-colors.d.ts.map +1 -0
- package/dist/app/shared/ocean/ocean-colors.js +6 -0
- package/dist/app/shared/ocean/ocean-colors.js.map +1 -0
- package/dist/app/shared/ocean/ocean-common.wgsl +15 -0
- package/dist/app/shared/ocean/ocean-common.wgsl.js +1 -0
- package/dist/app/shared/ocean/ocean-graph.d.ts +12 -0
- package/dist/app/shared/ocean/ocean-graph.d.ts.map +1 -0
- package/dist/app/shared/ocean/ocean-graph.js +16 -0
- package/dist/app/shared/ocean/ocean-graph.js.map +1 -0
- package/dist/app/shared/ocean/particles.wgsl +139 -0
- package/dist/app/shared/ocean/particles.wgsl.js +1 -0
- package/dist/app/shared/ocean/present.wgsl +40 -0
- package/dist/app/shared/ocean/present.wgsl.js +1 -0
- package/dist/app/shared/ocean/renderer.d.ts +66 -0
- package/dist/app/shared/ocean/renderer.d.ts.map +1 -0
- package/dist/app/shared/ocean/renderer.js +535 -0
- package/dist/app/shared/ocean/renderer.js.map +1 -0
- package/dist/app/shared/ocean/spectrum.wgsl +35 -0
- package/dist/app/shared/ocean/spectrum.wgsl.js +1 -0
- package/dist/app/shared/ocean/tuning.d.ts +48 -0
- package/dist/app/shared/ocean/tuning.d.ts.map +1 -0
- package/dist/app/shared/ocean/tuning.js +74 -0
- package/dist/app/shared/ocean/tuning.js.map +1 -0
- package/dist/app/shared/ocean/webgpu-support.d.ts +3 -0
- package/dist/app/shared/ocean/webgpu-support.d.ts.map +1 -0
- package/dist/app/shared/ocean/webgpu-support.js +13 -0
- package/dist/app/shared/ocean/webgpu-support.js.map +1 -0
- package/dist/app/sharing/AccessRequestApprovalPage.d.ts +23 -0
- package/dist/app/sharing/AccessRequestApprovalPage.d.ts.map +1 -0
- package/dist/app/sharing/AccessRequestApprovalPage.js +95 -0
- package/dist/app/sharing/AccessRequestApprovalPage.js.map +1 -0
- package/dist/app/sharing/AccessRequestsSection.d.ts +5 -0
- package/dist/app/sharing/AccessRequestsSection.d.ts.map +1 -0
- package/dist/app/sharing/AccessRequestsSection.js +47 -0
- package/dist/app/sharing/AccessRequestsSection.js.map +1 -0
- package/dist/app/sharing/ResourceAccessScreen.d.ts +53 -0
- package/dist/app/sharing/ResourceAccessScreen.d.ts.map +1 -0
- package/dist/app/sharing/ResourceAccessScreen.js +132 -0
- package/dist/app/sharing/ResourceAccessScreen.js.map +1 -0
- package/dist/app/sharing/ShareButton.d.ts.map +1 -1
- package/dist/app/sharing/ShareButton.js +4 -2
- package/dist/app/sharing/ShareButton.js.map +1 -1
- package/dist/app/sharing/ShareDialog.d.ts.map +1 -1
- package/dist/app/sharing/ShareDialog.js +7 -5
- package/dist/app/sharing/ShareDialog.js.map +1 -1
- package/dist/app/sharing/index.d.ts +2 -0
- package/dist/app/sharing/index.d.ts.map +1 -1
- package/dist/app/sharing/index.js +2 -0
- package/dist/app/sharing/index.js.map +1 -1
- package/dist/app/styles/agent-native.css +21 -1
- package/dist/app/styles/tokens/agent-kit.css +3 -1
- package/dist/composer/AgentSuggestionBar.d.ts +1 -1
- package/dist/composer/AgentSuggestionBar.d.ts.map +1 -1
- package/dist/composer/AgentSuggestionBar.js +75 -6
- package/dist/composer/AgentSuggestionBar.js.map +1 -1
- package/package.json +14 -4
- package/src/app/agentkit/react/components.tsx +492 -60
- package/src/app/agentkit/react/context.tsx +10 -0
- package/src/app/agentkit/react/lifecycle.spec.tsx +487 -1
- package/src/app/agentkit/react/styles.css +78 -3
- package/src/app/auth/AuthPage.spec.tsx +11 -7
- package/src/app/auth/AuthPage.tsx +16 -35
- package/src/app/auth/server.spec.ts +68 -0
- package/src/app/auth/server.ts +29 -0
- package/src/app/chat/AgentKitAssistantChat.spec.tsx +287 -290
- package/src/app/chat/AgentKitAssistantChat.tsx +219 -116
- package/src/app/chat/AgentSidebar.tsx +3 -0
- package/src/app/chat/agentkit-chat/guided-questions.flow.spec.tsx +85 -0
- package/src/app/chat/agentkit-chat/guided-questions.tsx +12 -5
- package/src/app/chat/chat/surface-types.ts +2 -0
- package/src/app/i18n/catalogs/ar-SA.ts +44 -0
- package/src/app/i18n/catalogs/de-DE.ts +55 -0
- package/src/app/i18n/catalogs/en-US.ts +46 -0
- package/src/app/i18n/catalogs/es-ES.ts +53 -0
- package/src/app/i18n/catalogs/fr-FR.ts +53 -0
- package/src/app/i18n/catalogs/hi-IN.ts +47 -0
- package/src/app/i18n/catalogs/ja-JP.ts +54 -0
- package/src/app/i18n/catalogs/ko-KR.ts +50 -0
- package/src/app/i18n/catalogs/pt-BR.ts +52 -0
- package/src/app/i18n/catalogs/zh-CN.ts +42 -0
- package/src/app/i18n/catalogs/zh-TW.ts +43 -0
- package/src/app/shared/StarfieldBackground.tsx +4 -423
- package/src/app/shared/WaveBackground.spec.tsx +104 -0
- package/src/app/shared/WaveBackground.tsx +60 -0
- package/src/app/shared/WebGlWaveBackground.spec.tsx +106 -0
- package/src/app/shared/WebGlWaveBackground.tsx +499 -0
- package/src/app/shared/index.ts +1 -0
- package/src/app/shared/ocean/bloom-blur.wgsl +43 -0
- package/src/app/shared/ocean/bloom-bright.wgsl +21 -0
- package/src/app/shared/ocean/bloom-composite.wgsl +40 -0
- package/src/app/shared/ocean/brand-colors.ts +49 -0
- package/src/app/shared/ocean/camera.ts +28 -0
- package/src/app/shared/ocean/hero-ocean-background.spec.tsx +369 -0
- package/src/app/shared/ocean/hero-ocean-background.tsx +238 -0
- package/src/app/shared/ocean/ifft-stage.wgsl +36 -0
- package/src/app/shared/ocean/initial-spectrum.wgsl +36 -0
- package/src/app/shared/ocean/noise.wgsl +24 -0
- package/src/app/shared/ocean/normal-foam.wgsl +32 -0
- package/src/app/shared/ocean/ocean-colors.ts +11 -0
- package/src/app/shared/ocean/ocean-common.wgsl +15 -0
- package/src/app/shared/ocean/ocean-graph.ts +29 -0
- package/src/app/shared/ocean/particles.wgsl +139 -0
- package/src/app/shared/ocean/present.wgsl +40 -0
- package/src/app/shared/ocean/renderer.spec.ts +100 -0
- package/src/app/shared/ocean/renderer.ts +693 -0
- package/src/app/shared/ocean/spectrum.wgsl +35 -0
- package/src/app/shared/ocean/tuning.ts +131 -0
- package/src/app/shared/ocean/webgpu-support.ts +12 -0
- package/src/app/sharing/AccessRequestApprovalPage.spec.tsx +276 -0
- package/src/app/sharing/AccessRequestApprovalPage.tsx +307 -0
- package/src/app/sharing/AccessRequestsSection.tsx +163 -0
- package/src/app/sharing/ResourceAccessScreen.spec.tsx +235 -0
- package/src/app/sharing/ResourceAccessScreen.tsx +331 -0
- package/src/app/sharing/ShareButton.spec.tsx +171 -5
- package/src/app/sharing/ShareButton.tsx +15 -2
- package/src/app/sharing/ShareDialog.spec.tsx +71 -2
- package/src/app/sharing/ShareDialog.tsx +24 -2
- package/src/app/sharing/index.ts +2 -0
- package/src/app/styles/agent-native.css +21 -1
- package/src/app/styles/agent-native.spec.ts +16 -3
- package/src/app/styles/tokens/agent-kit.css +3 -1
- package/src/composer/AgentSuggestionBar.overflow.spec.tsx +277 -0
- package/src/composer/AgentSuggestionBar.tsx +113 -8
- package/src/wgsl-env.d.ts +6 -0
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useRef } from "react";
|
|
3
|
+
const vertexShader = `
|
|
4
|
+
attribute vec2 position;
|
|
5
|
+
void main() {
|
|
6
|
+
gl_Position = vec4(position, 0.0, 1.0);
|
|
7
|
+
}
|
|
8
|
+
`;
|
|
9
|
+
const fragmentShader = `
|
|
10
|
+
precision highp float;
|
|
11
|
+
|
|
12
|
+
uniform float iTime;
|
|
13
|
+
uniform vec2 iResolution;
|
|
14
|
+
uniform vec3 uPointer;
|
|
15
|
+
uniform vec3 uFgColor;
|
|
16
|
+
uniform vec3 uBgColor;
|
|
17
|
+
uniform float uBrightness;
|
|
18
|
+
uniform float uTransparent;
|
|
19
|
+
|
|
20
|
+
#define S(a, b, t) smoothstep(a, b, t)
|
|
21
|
+
|
|
22
|
+
const float WAVE_COUNT = 5.;
|
|
23
|
+
const float WAVE_SCALE = 5.5;
|
|
24
|
+
const float FLOW_ANGLE = 119.;
|
|
25
|
+
const float WARP = 0.35;
|
|
26
|
+
const float SPEED = 0.65;
|
|
27
|
+
const float FOCUS_FOLLOW = 0.65;
|
|
28
|
+
const vec2 FOCUS = vec2(0., -0.05);
|
|
29
|
+
const float SPREAD = 1.2;
|
|
30
|
+
const float DOT_DENSITY = 131.;
|
|
31
|
+
const float DOT_SCALE = 1.35;
|
|
32
|
+
const float GLOW = 1.;
|
|
33
|
+
const float SEED = 56.;
|
|
34
|
+
const float VIGNETTE = 1.7;
|
|
35
|
+
const float TONE_GAMMA = 2.6;
|
|
36
|
+
const float FADE_IN_SECONDS = 0.7;
|
|
37
|
+
|
|
38
|
+
float N21(vec2 p) {
|
|
39
|
+
p += SEED;
|
|
40
|
+
vec3 a = fract(vec3(p.xyx) * vec3(213.897, 653.453, 253.098));
|
|
41
|
+
a += dot(a, a.yzx + 79.76);
|
|
42
|
+
return fract((a.x + a.y) * a.z);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
float valueNoise(vec2 p) {
|
|
46
|
+
vec2 cell = floor(p);
|
|
47
|
+
vec2 f = fract(p);
|
|
48
|
+
float a = N21(cell);
|
|
49
|
+
float b = N21(cell + vec2(1., 0.));
|
|
50
|
+
float c = N21(cell + vec2(0., 1.));
|
|
51
|
+
float d = N21(cell + vec2(1., 1.));
|
|
52
|
+
vec2 u = f * f * (3. - 2. * f);
|
|
53
|
+
return mix(a, b, u.x) + (c - a) * u.y * (1. - u.x) + (d - b) * u.x * u.y;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
float waveField(vec2 p, float t) {
|
|
57
|
+
float angle = radians(FLOW_ANGLE);
|
|
58
|
+
vec2 dir = vec2(cos(angle), sin(angle));
|
|
59
|
+
vec2 perp = vec2(-dir.y, dir.x);
|
|
60
|
+
vec2 warpUv = p * 1.1 + vec2(t * 0.14, t * 0.1);
|
|
61
|
+
float n1 = valueNoise(warpUv);
|
|
62
|
+
float n2 = valueNoise(warpUv + 5.2);
|
|
63
|
+
vec2 warped = p + (vec2(n1, n2) - 0.5) * WARP;
|
|
64
|
+
float along = dot(warped, dir);
|
|
65
|
+
float across = dot(warped, perp);
|
|
66
|
+
float field = 0.;
|
|
67
|
+
float weight = 0.;
|
|
68
|
+
for (float i = 0.; i < WAVE_COUNT; i += 1.) {
|
|
69
|
+
float amp = 1. / (1. + i * 0.8);
|
|
70
|
+
float freq = WAVE_SCALE * (1. + i * 0.55);
|
|
71
|
+
float drift = t * (1. + i * 0.23) + i * 2.399963;
|
|
72
|
+
float cross = sin(across * freq * 0.45 - drift * 0.7);
|
|
73
|
+
field += amp * sin(along * freq + drift + cross * 1.3);
|
|
74
|
+
weight += amp;
|
|
75
|
+
}
|
|
76
|
+
return clamp(field / max(weight, 0.001) * 0.5 + 0.5, 0., 1.);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
|
|
80
|
+
vec2 uv = (fragCoord - iResolution.xy * .5) / iResolution.y;
|
|
81
|
+
vec2 pointerUv = (uPointer.xy - iResolution.xy * .5) / iResolution.y;
|
|
82
|
+
float t = iTime * SPEED;
|
|
83
|
+
float cellSize = 1. / DOT_DENSITY;
|
|
84
|
+
vec2 cell = floor(uv / cellSize);
|
|
85
|
+
vec2 cellCenter = (cell + 0.5) * cellSize;
|
|
86
|
+
vec2 cellUv = (uv - cellCenter) / cellSize;
|
|
87
|
+
float tone = waveField(cellCenter, t);
|
|
88
|
+
vec2 focus = FOCUS + (pointerUv - FOCUS) * FOCUS_FOLLOW * uPointer.z;
|
|
89
|
+
float distFromFocus = length(cellCenter - focus) / SPREAD;
|
|
90
|
+
tone *= exp(-1.6 * distFromFocus * distFromFocus);
|
|
91
|
+
tone = pow(clamp(tone, 0., 1.), TONE_GAMMA);
|
|
92
|
+
float radius = sqrt(tone) * 0.5 * DOT_SCALE;
|
|
93
|
+
float px = (1. / iResolution.y) / cellSize;
|
|
94
|
+
float edge = max(px * 1.2, 0.004);
|
|
95
|
+
float dist = length(cellUv);
|
|
96
|
+
float dotMask = step(0.0001, tone) * (1. - S(radius - edge, radius + edge, dist));
|
|
97
|
+
float glowTerm = (1. - S(radius, radius + GLOW * 0.9, dist)) * GLOW * tone;
|
|
98
|
+
float value = clamp(dotMask + glowTerm * 0.6, 0., 1.);
|
|
99
|
+
value *= clamp(1. - dot(uv, uv) * VIGNETTE, 0., 1.);
|
|
100
|
+
value *= S(0., FADE_IN_SECONDS, iTime);
|
|
101
|
+
vec3 lit = mix(uBgColor, uFgColor, value);
|
|
102
|
+
lit += (uFgColor - uBgColor) * value * tone * (uBrightness - 1.);
|
|
103
|
+
if (uTransparent > 0.5) {
|
|
104
|
+
float alpha = clamp(value, 0., 1.);
|
|
105
|
+
vec3 waveColor = uBgColor + (uFgColor - uBgColor) * (1. + tone * (uBrightness - 1.));
|
|
106
|
+
fragColor = vec4(clamp(waveColor, 0., 1.) * alpha, alpha);
|
|
107
|
+
} else {
|
|
108
|
+
fragColor = vec4(clamp(lit, 0., 1.), 1.);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
void main() {
|
|
113
|
+
mainImage(gl_FragColor, gl_FragCoord.xy);
|
|
114
|
+
}
|
|
115
|
+
`;
|
|
116
|
+
let shaderEpoch = 0;
|
|
117
|
+
function hexToRgb01(hex) {
|
|
118
|
+
const normalized = hex.trim().replace(/^#/, "");
|
|
119
|
+
if (!/^(?:[\da-f]{3}|[\da-f]{6})$/i.test(normalized))
|
|
120
|
+
return null;
|
|
121
|
+
const full = normalized.length === 3
|
|
122
|
+
? normalized
|
|
123
|
+
.split("")
|
|
124
|
+
.map((part) => `${part}${part}`)
|
|
125
|
+
.join("")
|
|
126
|
+
: normalized;
|
|
127
|
+
const value = Number.parseInt(full, 16);
|
|
128
|
+
return [
|
|
129
|
+
((value >> 16) & 255) / 255,
|
|
130
|
+
((value >> 8) & 255) / 255,
|
|
131
|
+
(value & 255) / 255,
|
|
132
|
+
];
|
|
133
|
+
}
|
|
134
|
+
export function WebGlWaveBackground({ className = "", frameRate = 30, transparent = false, style, }) {
|
|
135
|
+
const containerRef = useRef(null);
|
|
136
|
+
const canvasRef = useRef(null);
|
|
137
|
+
const rafRef = useRef(0);
|
|
138
|
+
useEffect(() => {
|
|
139
|
+
const canvasRaw = canvasRef.current;
|
|
140
|
+
const containerRaw = containerRef.current;
|
|
141
|
+
if (!canvasRaw || !containerRaw)
|
|
142
|
+
return;
|
|
143
|
+
const canvas = canvasRaw;
|
|
144
|
+
const container = containerRaw;
|
|
145
|
+
const glRaw = canvas.getContext("webgl", {
|
|
146
|
+
alpha: transparent,
|
|
147
|
+
antialias: false,
|
|
148
|
+
preserveDrawingBuffer: false,
|
|
149
|
+
});
|
|
150
|
+
if (!glRaw)
|
|
151
|
+
return;
|
|
152
|
+
const gl = glRaw;
|
|
153
|
+
function compileShader(type, src) {
|
|
154
|
+
const shader = gl.createShader(type);
|
|
155
|
+
if (!shader)
|
|
156
|
+
return null;
|
|
157
|
+
gl.shaderSource(shader, src);
|
|
158
|
+
gl.compileShader(shader);
|
|
159
|
+
if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) {
|
|
160
|
+
console.error(gl.getShaderInfoLog(shader));
|
|
161
|
+
gl.deleteShader(shader);
|
|
162
|
+
return null;
|
|
163
|
+
}
|
|
164
|
+
return shader;
|
|
165
|
+
}
|
|
166
|
+
const vs = compileShader(gl.VERTEX_SHADER, vertexShader);
|
|
167
|
+
const fs = compileShader(gl.FRAGMENT_SHADER, fragmentShader);
|
|
168
|
+
if (!vs || !fs)
|
|
169
|
+
return;
|
|
170
|
+
const program = gl.createProgram();
|
|
171
|
+
if (!program)
|
|
172
|
+
return;
|
|
173
|
+
gl.attachShader(program, vs);
|
|
174
|
+
gl.attachShader(program, fs);
|
|
175
|
+
gl.linkProgram(program);
|
|
176
|
+
if (!gl.getProgramParameter(program, gl.LINK_STATUS)) {
|
|
177
|
+
console.error(gl.getProgramInfoLog(program));
|
|
178
|
+
gl.deleteProgram(program);
|
|
179
|
+
gl.deleteShader(vs);
|
|
180
|
+
gl.deleteShader(fs);
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
gl.useProgram(program);
|
|
184
|
+
const buf = gl.createBuffer();
|
|
185
|
+
if (!buf) {
|
|
186
|
+
gl.deleteProgram(program);
|
|
187
|
+
gl.deleteShader(vs);
|
|
188
|
+
gl.deleteShader(fs);
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
gl.bindBuffer(gl.ARRAY_BUFFER, buf);
|
|
192
|
+
gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([-1, -1, 1, -1, -1, 1, -1, 1, 1, -1, 1, 1]), gl.STATIC_DRAW);
|
|
193
|
+
const pos = gl.getAttribLocation(program, "position");
|
|
194
|
+
gl.enableVertexAttribArray(pos);
|
|
195
|
+
gl.vertexAttribPointer(pos, 2, gl.FLOAT, false, 0, 0);
|
|
196
|
+
const uTime = gl.getUniformLocation(program, "iTime");
|
|
197
|
+
const uRes = gl.getUniformLocation(program, "iResolution");
|
|
198
|
+
const uPointer = gl.getUniformLocation(program, "uPointer");
|
|
199
|
+
const uFgColor = gl.getUniformLocation(program, "uFgColor");
|
|
200
|
+
const uBgColor = gl.getUniformLocation(program, "uBgColor");
|
|
201
|
+
const uBrightness = gl.getUniformLocation(program, "uBrightness");
|
|
202
|
+
const uTransparent = gl.getUniformLocation(program, "uTransparent");
|
|
203
|
+
const reducedMotionQuery = typeof window.matchMedia === "function"
|
|
204
|
+
? window.matchMedia("(prefers-reduced-motion: reduce)")
|
|
205
|
+
: null;
|
|
206
|
+
let reducedMotion = reducedMotionQuery?.matches ?? false;
|
|
207
|
+
let dpr = 1;
|
|
208
|
+
let isVisible = false;
|
|
209
|
+
let visibilityObserver = null;
|
|
210
|
+
let hasPointer = false;
|
|
211
|
+
let pointerX = 0;
|
|
212
|
+
let pointerY = 0;
|
|
213
|
+
let pointerStrength = 0;
|
|
214
|
+
let targetX = 0;
|
|
215
|
+
let targetY = 0;
|
|
216
|
+
let targetStrength = 0;
|
|
217
|
+
function readDarkMode() {
|
|
218
|
+
const root = document.documentElement;
|
|
219
|
+
if (root.classList.contains("dark"))
|
|
220
|
+
return true;
|
|
221
|
+
if (root.classList.contains("light"))
|
|
222
|
+
return false;
|
|
223
|
+
const dataTheme = root.getAttribute("data-theme");
|
|
224
|
+
if (dataTheme === "dark")
|
|
225
|
+
return true;
|
|
226
|
+
if (dataTheme === "light")
|
|
227
|
+
return false;
|
|
228
|
+
return (window.matchMedia?.("(prefers-color-scheme: dark)").matches ?? false);
|
|
229
|
+
}
|
|
230
|
+
function readTheme() {
|
|
231
|
+
const dark = readDarkMode();
|
|
232
|
+
const fallback = dark
|
|
233
|
+
? {
|
|
234
|
+
bg: [10 / 255, 10 / 255, 10 / 255],
|
|
235
|
+
fg: [174 / 255, 173 / 255, 172 / 255],
|
|
236
|
+
brightness: 3,
|
|
237
|
+
}
|
|
238
|
+
: {
|
|
239
|
+
bg: [250 / 255, 249 / 255, 245 / 255],
|
|
240
|
+
fg: [0, 103 / 255, 127 / 255],
|
|
241
|
+
brightness: 1.15,
|
|
242
|
+
};
|
|
243
|
+
const styles = window.getComputedStyle(container);
|
|
244
|
+
const customBg = hexToRgb01(styles.getPropertyValue("--b-bg-page"));
|
|
245
|
+
const customFg = hexToRgb01(styles.getPropertyValue("--b-hero-shader-fg"));
|
|
246
|
+
const customBrightness = Number.parseFloat(styles.getPropertyValue("--b-hero-shader-brightness"));
|
|
247
|
+
return {
|
|
248
|
+
bg: customBg ?? fallback.bg,
|
|
249
|
+
fg: customFg ?? fallback.fg,
|
|
250
|
+
brightness: Number.isFinite(customBrightness)
|
|
251
|
+
? customBrightness
|
|
252
|
+
: fallback.brightness,
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
let theme = readTheme();
|
|
256
|
+
function easePointer(allowPointer) {
|
|
257
|
+
if (!allowPointer) {
|
|
258
|
+
pointerStrength = 0;
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
pointerX += (targetX - pointerX) * 0.12;
|
|
262
|
+
pointerY += (targetY - pointerY) * 0.12;
|
|
263
|
+
pointerStrength += (targetStrength - pointerStrength) * 0.08;
|
|
264
|
+
if (pointerStrength < 0.001 && targetStrength === 0) {
|
|
265
|
+
pointerStrength = 0;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
function draw(timeSeconds, allowPointer = !reducedMotion) {
|
|
269
|
+
easePointer(allowPointer);
|
|
270
|
+
gl.uniform1f(uTime, timeSeconds);
|
|
271
|
+
gl.uniform2f(uRes, canvas.width, canvas.height);
|
|
272
|
+
gl.uniform3f(uPointer, pointerX, pointerY, pointerStrength);
|
|
273
|
+
gl.uniform3f(uFgColor, theme.fg[0], theme.fg[1], theme.fg[2]);
|
|
274
|
+
gl.uniform3f(uBgColor, theme.bg[0], theme.bg[1], theme.bg[2]);
|
|
275
|
+
gl.uniform1f(uBrightness, theme.brightness);
|
|
276
|
+
gl.uniform1f(uTransparent, transparent ? 1 : 0);
|
|
277
|
+
gl.drawArrays(gl.TRIANGLES, 0, 6);
|
|
278
|
+
}
|
|
279
|
+
function resize() {
|
|
280
|
+
const w = container.clientWidth;
|
|
281
|
+
const h = container.clientHeight;
|
|
282
|
+
dpr = Math.min(window.devicePixelRatio, 1.5);
|
|
283
|
+
canvas.width = w * dpr;
|
|
284
|
+
canvas.height = h * dpr;
|
|
285
|
+
canvas.style.width = w + "px";
|
|
286
|
+
canvas.style.height = h + "px";
|
|
287
|
+
gl.viewport(0, 0, canvas.width, canvas.height);
|
|
288
|
+
if (!hasPointer) {
|
|
289
|
+
pointerX = targetX = canvas.width * 0.5;
|
|
290
|
+
pointerY = targetY = canvas.height * 0.5;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
function handlePointerMove(event) {
|
|
294
|
+
const rect = container.getBoundingClientRect();
|
|
295
|
+
if (rect.width <= 0 || rect.height <= 0)
|
|
296
|
+
return;
|
|
297
|
+
const x = event.clientX - rect.left;
|
|
298
|
+
const y = event.clientY - rect.top;
|
|
299
|
+
const inside = x >= 0 && x <= rect.width && y >= 0 && y <= rect.height;
|
|
300
|
+
hasPointer = true;
|
|
301
|
+
targetX = x * dpr;
|
|
302
|
+
targetY = (rect.height - y) * dpr;
|
|
303
|
+
targetStrength = inside ? 1 : 0;
|
|
304
|
+
}
|
|
305
|
+
function fadePointer() {
|
|
306
|
+
targetStrength = 0;
|
|
307
|
+
}
|
|
308
|
+
resize();
|
|
309
|
+
window.addEventListener("resize", resize);
|
|
310
|
+
const resizeObserver = typeof ResizeObserver === "undefined" ? null : new ResizeObserver(resize);
|
|
311
|
+
resizeObserver?.observe(container);
|
|
312
|
+
window.addEventListener("pointermove", handlePointerMove, {
|
|
313
|
+
passive: true,
|
|
314
|
+
});
|
|
315
|
+
window.addEventListener("mousemove", handlePointerMove, {
|
|
316
|
+
passive: true,
|
|
317
|
+
});
|
|
318
|
+
document.addEventListener("pointerleave", fadePointer, {
|
|
319
|
+
passive: true,
|
|
320
|
+
});
|
|
321
|
+
window.addEventListener("blur", fadePointer);
|
|
322
|
+
const observer = new MutationObserver(() => {
|
|
323
|
+
theme = readTheme();
|
|
324
|
+
if (reducedMotion)
|
|
325
|
+
draw(20, false);
|
|
326
|
+
});
|
|
327
|
+
observer.observe(document.documentElement, {
|
|
328
|
+
attributes: true,
|
|
329
|
+
attributeFilter: ["class", "data-theme"],
|
|
330
|
+
});
|
|
331
|
+
if (!shaderEpoch)
|
|
332
|
+
shaderEpoch = performance.now();
|
|
333
|
+
const startTime = shaderEpoch;
|
|
334
|
+
let lastFrame = 0;
|
|
335
|
+
const frameBudget = 1000 / Math.max(1, frameRate);
|
|
336
|
+
const reducedMotionStaticTime = 20;
|
|
337
|
+
function render(now) {
|
|
338
|
+
rafRef.current = 0;
|
|
339
|
+
if (reducedMotion || !isVisible)
|
|
340
|
+
return;
|
|
341
|
+
if (now - lastFrame >= frameBudget) {
|
|
342
|
+
lastFrame = now;
|
|
343
|
+
draw((now - startTime) * 0.001);
|
|
344
|
+
}
|
|
345
|
+
if (isVisible && !reducedMotion) {
|
|
346
|
+
rafRef.current = requestAnimationFrame(render);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
function startAnimation() {
|
|
350
|
+
if (!reducedMotion && isVisible && !rafRef.current) {
|
|
351
|
+
rafRef.current = requestAnimationFrame(render);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
function stopAnimation() {
|
|
355
|
+
if (rafRef.current) {
|
|
356
|
+
cancelAnimationFrame(rafRef.current);
|
|
357
|
+
rafRef.current = 0;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
function updateVisibility(visible) {
|
|
361
|
+
isVisible = visible;
|
|
362
|
+
if (visible)
|
|
363
|
+
startAnimation();
|
|
364
|
+
else
|
|
365
|
+
stopAnimation();
|
|
366
|
+
}
|
|
367
|
+
function checkViewport() {
|
|
368
|
+
const rect = container.getBoundingClientRect();
|
|
369
|
+
updateVisibility(rect.bottom >= 0 && rect.top <= window.innerHeight);
|
|
370
|
+
}
|
|
371
|
+
if (typeof IntersectionObserver === "undefined") {
|
|
372
|
+
window.addEventListener("scroll", checkViewport, {
|
|
373
|
+
capture: true,
|
|
374
|
+
passive: true,
|
|
375
|
+
});
|
|
376
|
+
window.addEventListener("resize", checkViewport);
|
|
377
|
+
checkViewport();
|
|
378
|
+
}
|
|
379
|
+
else {
|
|
380
|
+
visibilityObserver = new IntersectionObserver(([entry]) => updateVisibility(entry?.isIntersecting ?? false), { threshold: 0 });
|
|
381
|
+
visibilityObserver.observe(container);
|
|
382
|
+
}
|
|
383
|
+
function handleReducedMotionChange() {
|
|
384
|
+
reducedMotion = reducedMotionQuery?.matches ?? false;
|
|
385
|
+
if (reducedMotion) {
|
|
386
|
+
stopAnimation();
|
|
387
|
+
lastFrame = 0;
|
|
388
|
+
draw(reducedMotionStaticTime, false);
|
|
389
|
+
}
|
|
390
|
+
else {
|
|
391
|
+
startAnimation();
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
draw(reducedMotion
|
|
395
|
+
? reducedMotionStaticTime
|
|
396
|
+
: (performance.now() - startTime) * 0.001, !reducedMotion);
|
|
397
|
+
if (reducedMotionQuery) {
|
|
398
|
+
reducedMotionQuery.addEventListener("change", handleReducedMotionChange);
|
|
399
|
+
}
|
|
400
|
+
if (!reducedMotion)
|
|
401
|
+
startAnimation();
|
|
402
|
+
return () => {
|
|
403
|
+
stopAnimation();
|
|
404
|
+
if (reducedMotionQuery) {
|
|
405
|
+
reducedMotionQuery.removeEventListener("change", handleReducedMotionChange);
|
|
406
|
+
}
|
|
407
|
+
observer.disconnect();
|
|
408
|
+
resizeObserver?.disconnect();
|
|
409
|
+
visibilityObserver?.disconnect();
|
|
410
|
+
if (!visibilityObserver) {
|
|
411
|
+
window.removeEventListener("scroll", checkViewport, true);
|
|
412
|
+
window.removeEventListener("resize", checkViewport);
|
|
413
|
+
}
|
|
414
|
+
window.removeEventListener("resize", resize);
|
|
415
|
+
window.removeEventListener("pointermove", handlePointerMove);
|
|
416
|
+
window.removeEventListener("mousemove", handlePointerMove);
|
|
417
|
+
document.removeEventListener("pointerleave", fadePointer);
|
|
418
|
+
window.removeEventListener("blur", fadePointer);
|
|
419
|
+
gl.deleteProgram(program);
|
|
420
|
+
gl.deleteShader(vs);
|
|
421
|
+
gl.deleteShader(fs);
|
|
422
|
+
gl.deleteBuffer(buf);
|
|
423
|
+
gl.getExtension("WEBGL_lose_context")?.loseContext();
|
|
424
|
+
};
|
|
425
|
+
}, [frameRate, transparent]);
|
|
426
|
+
return (_jsx("div", { ref: containerRef, "aria-hidden": "true", className: className, style: {
|
|
427
|
+
width: "100%",
|
|
428
|
+
height: "100%",
|
|
429
|
+
pointerEvents: "none",
|
|
430
|
+
...style,
|
|
431
|
+
}, "data-agent-native-wave": true, "data-agent-native-starfield": true, "data-agent-native-wave-transparent": transparent ? "true" : undefined, "data-agent-native-starfield-transparent": transparent ? "true" : undefined, children: _jsx("canvas", { ref: canvasRef, style: { display: "block", width: "100%", height: "100%" } }) }));
|
|
432
|
+
}
|
|
433
|
+
//# sourceMappingURL=WebGlWaveBackground.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebGlWaveBackground.js","sourceRoot":"","sources":["../../../src/app/shared/WebGlWaveBackground.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAG1C,MAAM,YAAY,GAAG;;;;;CAKpB,CAAC;AAEF,MAAM,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0GtB,CAAC;AAEF,IAAI,WAAW,GAAG,CAAC,CAAC;AASpB,SAAS,UAAU,CAAC,GAAW;IAC7B,MAAM,UAAU,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAChD,IAAI,CAAC,8BAA8B,CAAC,IAAI,CAAC,UAAU,CAAC;QAAE,OAAO,IAAI,CAAC;IAClE,MAAM,IAAI,GACR,UAAU,CAAC,MAAM,KAAK,CAAC;QACrB,CAAC,CAAC,UAAU;aACP,KAAK,CAAC,EAAE,CAAC;aACT,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,IAAI,GAAG,IAAI,EAAE,CAAC;aAC/B,IAAI,CAAC,EAAE,CAAC;QACb,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,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;YAC1B,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;YACpB,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;YACpB,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;YACrB,EAAE,CAAC,YAAY,CAAC,oBAAoB,CAAC,EAAE,WAAW,EAAE,CAAC;QACvD,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC;IAE7B,OAAO,CACL,cACE,GAAG,EAAE,YAAY,iBACL,MAAM,EAClB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE;YACL,KAAK,EAAE,MAAM;YACb,MAAM,EAAE,MAAM;YACd,aAAa,EAAE,MAAM;YACrB,GAAG,KAAK;SACT,6GAGmC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,6CAC3B,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,YAEzE,iBACE,GAAG,EAAE,SAAS,EACd,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAC1D,GACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -16,5 +16,6 @@ export * from "./PrimitiveButton.js";
|
|
|
16
16
|
export * from "./RouteTransitionIndicator.js";
|
|
17
17
|
export * from "./RuntimeConfigNotice.js";
|
|
18
18
|
export * from "./StarfieldBackground.js";
|
|
19
|
+
export * from "./WaveBackground.js";
|
|
19
20
|
export * from "./Turnstile.js";
|
|
20
21
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/app/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/app/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC"}
|
package/dist/app/shared/index.js
CHANGED
|
@@ -16,5 +16,6 @@ export * from "./PrimitiveButton.js";
|
|
|
16
16
|
export * from "./RouteTransitionIndicator.js";
|
|
17
17
|
export * from "./RuntimeConfigNotice.js";
|
|
18
18
|
export * from "./StarfieldBackground.js";
|
|
19
|
+
export * from "./WaveBackground.js";
|
|
19
20
|
export * from "./Turnstile.js";
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/app/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/app/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
const KERNEL_RADIUS: u32 = 22u;
|
|
4
|
+
struct BlurUniforms {
|
|
5
|
+
direction: vec2f,
|
|
6
|
+
invSize: vec2f,
|
|
7
|
+
gaussianCoefficients0: vec4f,
|
|
8
|
+
gaussianCoefficients1: vec4f,
|
|
9
|
+
gaussianCoefficients2: vec4f,
|
|
10
|
+
gaussianCoefficients3: vec4f,
|
|
11
|
+
gaussianCoefficients4: vec4f,
|
|
12
|
+
gaussianCoefficients5: vec4f,
|
|
13
|
+
};
|
|
14
|
+
@group(0) @binding(0) var<uniform> uniforms: BlurUniforms;
|
|
15
|
+
@group(0) @binding(1) var colorTexture: texture_2d<f32>;
|
|
16
|
+
@group(0) @binding(2) var linearSampler: sampler;
|
|
17
|
+
|
|
18
|
+
fn coefficient(i: u32) -> f32 {
|
|
19
|
+
let packed = array<vec4f, 6>(
|
|
20
|
+
uniforms.gaussianCoefficients0,
|
|
21
|
+
uniforms.gaussianCoefficients1,
|
|
22
|
+
uniforms.gaussianCoefficients2,
|
|
23
|
+
uniforms.gaussianCoefficients3,
|
|
24
|
+
uniforms.gaussianCoefficients4,
|
|
25
|
+
uniforms.gaussianCoefficients5
|
|
26
|
+
);
|
|
27
|
+
return packed[i / 4u][i % 4u];
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@fragment fn fs_main(@location(0) uv: vec2f) -> @location(0) vec4f {
|
|
31
|
+
|
|
32
|
+
var weightSum = coefficient(0u);
|
|
33
|
+
var diffuseSum = textureSample(colorTexture, linearSampler, uv).rgb * weightSum;
|
|
34
|
+
for (var i = 1u; i < KERNEL_RADIUS; i = i + 1u) {
|
|
35
|
+
let x = f32(i);
|
|
36
|
+
let w = coefficient(i);
|
|
37
|
+
let uvOffset = uniforms.direction * uniforms.invSize * x;
|
|
38
|
+
let sample1 = textureSample(colorTexture, linearSampler, uv + uvOffset).rgb;
|
|
39
|
+
let sample2 = textureSample(colorTexture, linearSampler, uv - uvOffset).rgb;
|
|
40
|
+
diffuseSum = diffuseSum + (sample1 + sample2) * w;
|
|
41
|
+
}
|
|
42
|
+
return vec4f(diffuseSum, 1.0);
|
|
43
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "\n\nconst KERNEL_RADIUS: u32 = 22u;\nstruct BlurUniforms {\n direction: vec2f,\n invSize: vec2f,\n gaussianCoefficients0: vec4f,\n gaussianCoefficients1: vec4f,\n gaussianCoefficients2: vec4f,\n gaussianCoefficients3: vec4f,\n gaussianCoefficients4: vec4f,\n gaussianCoefficients5: vec4f,\n};\n@group(0) @binding(0) var<uniform> uniforms: BlurUniforms;\n@group(0) @binding(1) var colorTexture: texture_2d<f32>;\n@group(0) @binding(2) var linearSampler: sampler;\n\nfn coefficient(i: u32) -> f32 {\n let packed = array<vec4f, 6>(\n uniforms.gaussianCoefficients0,\n uniforms.gaussianCoefficients1,\n uniforms.gaussianCoefficients2,\n uniforms.gaussianCoefficients3,\n uniforms.gaussianCoefficients4,\n uniforms.gaussianCoefficients5\n );\n return packed[i / 4u][i % 4u];\n}\n\n@fragment fn fs_main(@location(0) uv: vec2f) -> @location(0) vec4f {\n\n var weightSum = coefficient(0u);\n var diffuseSum = textureSample(colorTexture, linearSampler, uv).rgb * weightSum;\n for (var i = 1u; i < KERNEL_RADIUS; i = i + 1u) {\n let x = f32(i);\n let w = coefficient(i);\n let uvOffset = uniforms.direction * uniforms.invSize * x;\n let sample1 = textureSample(colorTexture, linearSampler, uv + uvOffset).rgb;\n let sample2 = textureSample(colorTexture, linearSampler, uv - uvOffset).rgb;\n diffuseSum = diffuseSum + (sample1 + sample2) * w;\n }\n return vec4f(diffuseSum, 1.0);\n}\n";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
struct BrightUniforms {
|
|
2
|
+
luminosityThreshold: f32,
|
|
3
|
+
smoothWidth: f32,
|
|
4
|
+
_pad0: vec2f,
|
|
5
|
+
};
|
|
6
|
+
@group(0) @binding(0) var<uniform> uniforms: BrightUniforms;
|
|
7
|
+
@group(0) @binding(1) var tDiffuse: texture_2d<f32>;
|
|
8
|
+
@group(0) @binding(2) var linearSampler: sampler;
|
|
9
|
+
|
|
10
|
+
fn luminance(rgb: vec3f) -> f32 {
|
|
11
|
+
return dot(rgb, vec3f(0.299, 0.587, 0.114));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@fragment fn fs_main(@location(0) uv: vec2f) -> @location(0) vec4f {
|
|
15
|
+
|
|
16
|
+
let texel = textureSample(tDiffuse, linearSampler, uv);
|
|
17
|
+
let v = luminance(texel.xyz);
|
|
18
|
+
let outputColor = vec4f(vec3f(0.0), 0.0);
|
|
19
|
+
let alpha = smoothstep(uniforms.luminosityThreshold, uniforms.luminosityThreshold + uniforms.smoothWidth, v);
|
|
20
|
+
return mix(outputColor, texel, alpha);
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "struct BrightUniforms {\n luminosityThreshold: f32,\n smoothWidth: f32,\n _pad0: vec2f,\n};\n@group(0) @binding(0) var<uniform> uniforms: BrightUniforms;\n@group(0) @binding(1) var tDiffuse: texture_2d<f32>;\n@group(0) @binding(2) var linearSampler: sampler;\n\nfn luminance(rgb: vec3f) -> f32 {\n return dot(rgb, vec3f(0.299, 0.587, 0.114));\n}\n\n@fragment fn fs_main(@location(0) uv: vec2f) -> @location(0) vec4f {\n\n let texel = textureSample(tDiffuse, linearSampler, uv);\n let v = luminance(texel.xyz);\n let outputColor = vec4f(vec3f(0.0), 0.0);\n let alpha = smoothstep(uniforms.luminosityThreshold, uniforms.luminosityThreshold + uniforms.smoothWidth, v);\n return mix(outputColor, texel, alpha);\n}\n";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
struct CompositeUniforms {
|
|
2
|
+
bloomStrength: f32,
|
|
3
|
+
bloomRadius: f32,
|
|
4
|
+
_pad0: vec2f,
|
|
5
|
+
bloomFactors0: vec4f,
|
|
6
|
+
bloomFactors1: vec4f,
|
|
7
|
+
};
|
|
8
|
+
@group(0) @binding(0) var<uniform> uniforms: CompositeUniforms;
|
|
9
|
+
@group(0) @binding(1) var blurTexture1: texture_2d<f32>;
|
|
10
|
+
@group(0) @binding(2) var blurTexture2: texture_2d<f32>;
|
|
11
|
+
@group(0) @binding(3) var blurTexture3: texture_2d<f32>;
|
|
12
|
+
@group(0) @binding(4) var blurTexture4: texture_2d<f32>;
|
|
13
|
+
@group(0) @binding(5) var blurTexture5: texture_2d<f32>;
|
|
14
|
+
@group(0) @binding(6) var linearSampler: sampler;
|
|
15
|
+
|
|
16
|
+
fn factor(i: u32) -> f32 {
|
|
17
|
+
let v = array<f32, 8>(
|
|
18
|
+
uniforms.bloomFactors0.x, uniforms.bloomFactors0.y, uniforms.bloomFactors0.z, uniforms.bloomFactors0.w,
|
|
19
|
+
uniforms.bloomFactors1.x, uniforms.bloomFactors1.y, uniforms.bloomFactors1.z, uniforms.bloomFactors1.w
|
|
20
|
+
);
|
|
21
|
+
return v[i];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
fn lerpBloomFactor(f: f32) -> f32 {
|
|
25
|
+
let mirrorFactor = 1.2 - f;
|
|
26
|
+
return mix(f, mirrorFactor, uniforms.bloomRadius);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@fragment fn fs_main(@location(0) uv: vec2f) -> @location(0) vec4f {
|
|
30
|
+
|
|
31
|
+
let bloom = 3.0 * uniforms.bloomStrength * (
|
|
32
|
+
lerpBloomFactor(factor(0u)) * textureSample(blurTexture1, linearSampler, uv).rgb +
|
|
33
|
+
lerpBloomFactor(factor(1u)) * textureSample(blurTexture2, linearSampler, uv).rgb +
|
|
34
|
+
lerpBloomFactor(factor(2u)) * textureSample(blurTexture3, linearSampler, uv).rgb +
|
|
35
|
+
lerpBloomFactor(factor(3u)) * textureSample(blurTexture4, linearSampler, uv).rgb +
|
|
36
|
+
lerpBloomFactor(factor(4u)) * textureSample(blurTexture5, linearSampler, uv).rgb
|
|
37
|
+
);
|
|
38
|
+
let bloomAlpha = max(bloom.r, max(bloom.g, bloom.b));
|
|
39
|
+
return vec4f(bloom, bloomAlpha);
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "struct CompositeUniforms {\n bloomStrength: f32,\n bloomRadius: f32,\n _pad0: vec2f,\n bloomFactors0: vec4f,\n bloomFactors1: vec4f,\n};\n@group(0) @binding(0) var<uniform> uniforms: CompositeUniforms;\n@group(0) @binding(1) var blurTexture1: texture_2d<f32>;\n@group(0) @binding(2) var blurTexture2: texture_2d<f32>;\n@group(0) @binding(3) var blurTexture3: texture_2d<f32>;\n@group(0) @binding(4) var blurTexture4: texture_2d<f32>;\n@group(0) @binding(5) var blurTexture5: texture_2d<f32>;\n@group(0) @binding(6) var linearSampler: sampler;\n\nfn factor(i: u32) -> f32 {\n let v = array<f32, 8>(\n uniforms.bloomFactors0.x, uniforms.bloomFactors0.y, uniforms.bloomFactors0.z, uniforms.bloomFactors0.w,\n uniforms.bloomFactors1.x, uniforms.bloomFactors1.y, uniforms.bloomFactors1.z, uniforms.bloomFactors1.w\n );\n return v[i];\n}\n\nfn lerpBloomFactor(f: f32) -> f32 {\n let mirrorFactor = 1.2 - f;\n return mix(f, mirrorFactor, uniforms.bloomRadius);\n}\n\n@fragment fn fs_main(@location(0) uv: vec2f) -> @location(0) vec4f {\n\n let bloom = 3.0 * uniforms.bloomStrength * (\n lerpBloomFactor(factor(0u)) * textureSample(blurTexture1, linearSampler, uv).rgb +\n lerpBloomFactor(factor(1u)) * textureSample(blurTexture2, linearSampler, uv).rgb +\n lerpBloomFactor(factor(2u)) * textureSample(blurTexture3, linearSampler, uv).rgb +\n lerpBloomFactor(factor(3u)) * textureSample(blurTexture4, linearSampler, uv).rgb +\n lerpBloomFactor(factor(4u)) * textureSample(blurTexture5, linearSampler, uv).rgb\n );\n let bloomAlpha = max(bloom.r, max(bloom.g, bloom.b));\n return vec4f(bloom, bloomAlpha);\n}\n";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type OceanColors } from "./ocean-colors.js";
|
|
2
|
+
/**
|
|
3
|
+
* Returns null for anything that is not a full six-digit hex. Callers fall back
|
|
4
|
+
* to the packaged defaults -- an unreadable token and a legitimately dark token
|
|
5
|
+
* must not produce the same silent black.
|
|
6
|
+
*/
|
|
7
|
+
export declare function hexToLinearRgb(hex: string): readonly [number, number, number] | null;
|
|
8
|
+
export declare function readOceanColors(element: Element): OceanColors;
|
|
9
|
+
//# sourceMappingURL=brand-colors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brand-colors.d.ts","sourceRoot":"","sources":["../../../../src/app/shared/ocean/brand-colors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAO3E;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,GAAG,EAAE,MAAM,GACV,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAS1C;AAQD,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,CAiB7D"}
|