@solidjs/start 0.4.1 → 0.4.3

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.
@@ -0,0 +1,277 @@
1
+ import ErrorStackParser from 'error-stack-parser';
2
+ import * as htmlToImage from 'html-to-image';
3
+ import type { JSX } from 'solid-js';
4
+ import { ErrorBoundary, For, Show, Suspense, createMemo, createSignal } from 'solid-js';
5
+ import { Portal } from 'solid-js/web';
6
+ import { Dialog, DialogOverlay, DialogPanel, Select, SelectOption } from 'terracotta';
7
+ import info from '../../package.json';
8
+ import { CodeView } from './CodeView';
9
+ import { StackFrameSource, createStackFrame } from './createStackFrame';
10
+ import download from './download';
11
+ import { ArrowLeftIcon, ArrowRightIcon, CameraIcon, DiscordIcon, GithubIcon, RefreshIcon, SolidStartIcon, ViewCompiledIcon, ViewOriginalIcon } from './icons';
12
+ import './styles.css';
13
+
14
+ export function classNames(...classes: (string | boolean | undefined)[]): string {
15
+ return classes.filter(Boolean).join(' ');
16
+ }
17
+
18
+ interface ErrorInfoProps {
19
+ error: unknown;
20
+ }
21
+
22
+ function ErrorInfo(props: ErrorInfoProps): JSX.Element {
23
+ return (
24
+ <Show when={props.error instanceof Error && props.error} keyed fallback={<span>{props.error.toString()}</span>}>
25
+ {(current) => (
26
+ <span class="dev-overlay-error-info">
27
+ <span class="dev-overlay-error-info-name">{current.name}</span>
28
+ <span class="dev-overlay-error-info-message">{current.message}</span>
29
+ </span>
30
+ )}
31
+ </Show>
32
+ );
33
+ }
34
+
35
+ interface StackFramesContentProps {
36
+ error: Error;
37
+ isCompiled: boolean;
38
+ }
39
+
40
+ function getFileName(source: string): string {
41
+ try {
42
+ const path = source.startsWith('/') ? new URL(source, 'file://') : new URL(source);
43
+ const paths = path.pathname.split('/');
44
+ return paths[paths.length - 1];
45
+ } catch (error) {
46
+ return getFileName(`/${source}`);
47
+ }
48
+ }
49
+
50
+ function getFilePath(source: StackFrameSource) {
51
+ const line = source.line ? `:${source.line}` : '';
52
+ const column = source.column ? `:${source.column}` : '';
53
+ return `${getFileName(source.source)}${line}${column}`;
54
+ }
55
+
56
+ function CodeFallback(): JSX.Element {
57
+ return <div class="dev-overlay-stack-frames-code-fallback">
58
+ <span>Source not available.</span>
59
+ </div>;
60
+ }
61
+
62
+ function StackFramesContent(props: StackFramesContentProps) {
63
+ const stackframes = ErrorStackParser.parse(props.error);
64
+
65
+ const [selectedFrame, setSelectedFrame] = createSignal(stackframes[0]);
66
+
67
+ return (
68
+ <div class="dev-overlay-stack-frames-content">
69
+ <div class="dev-overlay-stack-frames-code">
70
+ <ErrorBoundary fallback={null}>
71
+ {(() => {
72
+ const data = createStackFrame(selectedFrame(), () => props.isCompiled);
73
+ return (
74
+ <Suspense fallback={<CodeFallback />}>
75
+ <Show when={data()} keyed fallback={<CodeFallback />}>
76
+ {(source) => (
77
+ <>
78
+ <span class="dev-overlay-stack-frames-code-source">{source.source}</span>
79
+ <div class="dev-overlay-stack-frames-code-container">
80
+ <CodeView fileName={source.source} line={source.line} content={source.content} />
81
+ </div>
82
+ </>
83
+ )}
84
+ </Show>
85
+ </Suspense>
86
+ );
87
+ })()}
88
+ </ErrorBoundary>
89
+ </div>
90
+ <Select<ErrorStackParser.StackFrame>
91
+ class="dev-overlay-stack-frames"
92
+ value={selectedFrame()}
93
+ onChange={setSelectedFrame}
94
+ >
95
+ <For each={stackframes}>
96
+ {(current) => (
97
+ <ErrorBoundary fallback={(
98
+ <div class="dev-overlay-stack-frame">
99
+ <span class="dev-overlay-stack-frame-function">{current.functionName ?? '<anonymous>'}</span>
100
+ <span class="dev-overlay-stack-frame-file">{getFilePath({
101
+ source: current.getFileName(),
102
+ content: '',
103
+ line: current.getLineNumber(),
104
+ column: current.getColumnNumber(),
105
+ name: current.getFunctionName(),
106
+ })}</span>
107
+ </div>
108
+ )}>
109
+ {(() => {
110
+ const data = createStackFrame(current, () => props.isCompiled);
111
+ return (
112
+ <Suspense>
113
+ <Show when={data()} keyed>
114
+ {(source) => (
115
+ <SelectOption class="dev-overlay-stack-frame" value={current}>
116
+ <span class="dev-overlay-stack-frame-function">{source.name ?? '<anonymous>'}</span>
117
+ <span class="dev-overlay-stack-frame-file">{getFilePath(source)}</span>
118
+ </SelectOption>
119
+ )}
120
+ </Show>
121
+ </Suspense>
122
+ );
123
+ })()}
124
+ </ErrorBoundary>
125
+ )}
126
+ </For>
127
+ </Select>
128
+ </div>
129
+ );
130
+ }
131
+
132
+ interface StackFramesProps {
133
+ error: unknown;
134
+ isCompiled: boolean;
135
+ }
136
+
137
+ function StackFrames(props: StackFramesProps) {
138
+ return (
139
+ <Show when={props.error instanceof Error && props.error} keyed>
140
+ {(current) => (
141
+ <StackFramesContent error={current} isCompiled={props.isCompiled} />
142
+ )}
143
+ </Show>
144
+ );
145
+ }
146
+
147
+ interface DevOverlayDialogProps {
148
+ errors: any[];
149
+ resetError: () => void;
150
+ }
151
+
152
+ const ISSUE_THREAD = 'https://github.com/solidjs/solid-start/issues/new';
153
+ const DISCORD_INVITE = 'https://discord.com/invite/solidjs';
154
+
155
+ export default function DevOverlayDialog(props: DevOverlayDialogProps): JSX.Element {
156
+ const [currentPage, setCurrentPage] = createSignal(1);
157
+ const [isCompiled, setIsCompiled] = createSignal(false);
158
+ const length = createMemo(() => props.errors.length);
159
+
160
+ const truncated = createMemo(() => {
161
+ return Math.min(currentPage(), length());
162
+ });
163
+
164
+ function goPrev() {
165
+ setCurrentPage((c) => {
166
+ if (c > 1) {
167
+ return c - 1;
168
+ }
169
+ return length();
170
+ });
171
+ }
172
+
173
+ function goNext() {
174
+ setCurrentPage((c) => {
175
+ if (c < length()) {
176
+ return c + 1;
177
+ }
178
+ return 1;
179
+ });
180
+ }
181
+
182
+ function toggleIsCompiled() {
183
+ setIsCompiled((c) => !c);
184
+ }
185
+
186
+ const [panel, setPanel] = createSignal<HTMLElement>();
187
+
188
+ function downloadScreenshot() {
189
+ const current = panel();
190
+ if (current) {
191
+ htmlToImage.toPng(current, {
192
+ style: {
193
+ transform: 'scale(1)',
194
+ },
195
+ }).then((url) => {
196
+ download(url, 'start-screenshot.png');
197
+ });
198
+ }
199
+ }
200
+
201
+ function redirectToGithub() {
202
+ const url = new URL(ISSUE_THREAD);
203
+ url.searchParams.append('labels', 'bug');
204
+ url.searchParams.append('labels', 'needs+triage');
205
+ url.searchParams.append('template', 'bug.yml');
206
+ url.searchParams.append('title', `[Bug?]:` + props.errors[truncated() - 1].toString());
207
+ window.open(url, '_blank').focus();
208
+ }
209
+
210
+ function redirectToDiscord() {
211
+ window.open(DISCORD_INVITE, '_blank').focus();
212
+ }
213
+
214
+ return (
215
+ <Portal>
216
+ <Dialog class="dev-overlay" isOpen>
217
+ <div>
218
+ <DialogOverlay class="dev-overlay-background"/>
219
+ <DialogPanel ref={setPanel} class="dev-overlay-panel">
220
+ <div class="dev-overlay-navbar">
221
+ <div class="dev-overlay-navbar-left">
222
+ <div class="dev-overlay-version">
223
+ <div>
224
+ <SolidStartIcon title="Solid Start Version" />
225
+ </div>
226
+ <span>{info.version as string}</span>
227
+ </div>
228
+ <Show when={props.errors.length > 1}>
229
+ <div class="dev-overlay-pagination">
230
+ <button class="dev-overlay-button" onClick={goPrev} type="button">
231
+ <ArrowLeftIcon title="Go Previous" />
232
+ </button>
233
+ <div class="dev-overlay-page-counter">
234
+ {`${truncated()} of ${props.errors.length}`}
235
+ </div>
236
+ <button class="dev-overlay-button" onClick={goNext} type="button">
237
+ <ArrowRightIcon title="Go Next" />
238
+ </button>
239
+ </div>
240
+ </Show>
241
+ </div>
242
+ <div class="dev-overlay-controls">
243
+ <button class="dev-overlay-button" onClick={redirectToGithub} type="button">
244
+ <GithubIcon title="Create an issue thread on Github" />
245
+ </button>
246
+ <button class="dev-overlay-button" onClick={redirectToDiscord} type="button">
247
+ <DiscordIcon title="Join our Discord Channel" />
248
+ </button>
249
+ <button class="dev-overlay-button" onClick={downloadScreenshot} type="button">
250
+ <CameraIcon title="Capture Error Overlay" />
251
+ </button>
252
+ <button class="dev-overlay-button" onClick={toggleIsCompiled} type="button">
253
+ <Show when={isCompiled()} fallback={(
254
+ <ViewOriginalIcon title="View Original Source" />
255
+ )}>
256
+ <ViewCompiledIcon title="View Compiled Source" />
257
+ </Show>
258
+ </button>
259
+ <button class="dev-overlay-button" onClick={props.resetError} type="button">
260
+ <RefreshIcon title="Reset Error" />
261
+ </button>
262
+ </div>
263
+ </div>
264
+ <Show when={props.errors[truncated() - 1]} keyed>
265
+ {(current) => (
266
+ <div class="dev-overlay-content">
267
+ <ErrorInfo error={current} />
268
+ <StackFrames error={current} isCompiled={isCompiled()} />
269
+ </div>
270
+ )}
271
+ </Show>
272
+ </DialogPanel>
273
+ </div>
274
+ </Dialog>
275
+ </Portal>
276
+ );
277
+ }
@@ -0,0 +1,57 @@
1
+ import { Resource, createResource } from "solid-js";
2
+ import getSourceMap from "./get-source-map";
3
+
4
+ export interface StackFrameSource {
5
+ content: string;
6
+ source: string;
7
+ name?: string;
8
+ line: number;
9
+ column: number;
10
+ }
11
+
12
+ export function createStackFrame(
13
+ stackframe: StackFrame,
14
+ isCompiled: () => boolean,
15
+ ): Resource<StackFrameSource> {
16
+ const [data] = createResource(
17
+ () => ({
18
+ isCompiled: isCompiled(),
19
+ fileName: stackframe.fileName,
20
+ line: stackframe.lineNumber,
21
+ column: stackframe.columnNumber,
22
+ functionName: stackframe.functionName,
23
+ }),
24
+ async source => {
25
+ if (!source.fileName) {
26
+ return null;
27
+ }
28
+ const response = await fetch(source.fileName);
29
+ if (!response.ok) {
30
+ return null;
31
+ }
32
+ const content = await response.text();
33
+ const sourceMap = await getSourceMap(source.fileName, content);
34
+ if (!source.isCompiled && sourceMap && source.line && source.column) {
35
+ const result = sourceMap.originalPositionFor({
36
+ line: source.line,
37
+ column: source.column,
38
+ });
39
+
40
+ return {
41
+ ...result,
42
+ content: sourceMap.sourceContentFor(result.source),
43
+ };
44
+ }
45
+
46
+ return {
47
+ source: source.fileName,
48
+ line: source.line,
49
+ column: source.column,
50
+ name: source.functionName,
51
+ content,
52
+ };
53
+ },
54
+ );
55
+
56
+ return data;
57
+ }
@@ -0,0 +1,6 @@
1
+ export default function download(dataurl: string, filename: string) {
2
+ const link = document.createElement("a");
3
+ link.href = dataurl;
4
+ link.download = filename;
5
+ link.click();
6
+ }
@@ -0,0 +1,4 @@
1
+ declare module '*.json' {
2
+ const data: Record<string, unknown>;
3
+ export default data;
4
+ }
@@ -0,0 +1,35 @@
1
+ import { RawSourceMap, SourceMapConsumer } from 'source-map-js';
2
+
3
+ const INLINE_SOURCEMAP_REGEX = /^data:application\/json[^,]+base64,/;
4
+ const SOURCEMAP_REGEX =
5
+ /(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/;
6
+
7
+ export default async function getSourceMap(
8
+ url: string,
9
+ content: string,
10
+ ): Promise<SourceMapConsumer | null> {
11
+ const lines = content.split('\n');
12
+ let sourceMapUrl: string | undefined;
13
+ for (let i = lines.length - 1; i >= 0 && !sourceMapUrl; i--) {
14
+ const result = lines[i].match(SOURCEMAP_REGEX);
15
+ if (result) {
16
+ sourceMapUrl = result[1];
17
+ }
18
+ }
19
+
20
+ if (!sourceMapUrl) {
21
+ return null;
22
+ }
23
+
24
+ if (
25
+ !(INLINE_SOURCEMAP_REGEX.test(sourceMapUrl) || sourceMapUrl.startsWith('/'))
26
+ ) {
27
+ // Resolve path if it's a relative access
28
+ const parsedURL = url.split('/');
29
+ parsedURL[parsedURL.length - 1] = sourceMapUrl;
30
+ sourceMapUrl = parsedURL.join('/');
31
+ }
32
+ const response = await fetch(sourceMapUrl);
33
+ const rawSourceMap: RawSourceMap = await response.json();
34
+ return new SourceMapConsumer(rawSourceMap);
35
+ }
@@ -0,0 +1,287 @@
1
+ import type { JSX } from 'solid-js';
2
+
3
+ export function ArrowRightIcon(
4
+ props: JSX.IntrinsicElements['svg'] & { title: string },
5
+ ): JSX.Element {
6
+ return (
7
+ <svg
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ fill="none"
10
+ viewBox="0 0 24 24"
11
+ stroke="currentColor"
12
+ {...props}
13
+ >
14
+ <title>{props.title}</title>
15
+ <path
16
+ stroke-linecap="round"
17
+ stroke-linejoin="round"
18
+ stroke-width="2"
19
+ d="M14 5l7 7m0 0l-7 7m7-7H3"
20
+ />
21
+ </svg>
22
+ );
23
+ }
24
+
25
+ export function ArrowLeftIcon(
26
+ props: JSX.IntrinsicElements['svg'] & { title: string },
27
+ ): JSX.Element {
28
+ return (
29
+ <svg
30
+ xmlns="http://www.w3.org/2000/svg"
31
+ fill="none"
32
+ viewBox="0 0 24 24"
33
+ stroke="currentColor"
34
+ {...props}
35
+ >
36
+ <title>{props.title}</title>
37
+ <path
38
+ stroke-linecap="round"
39
+ stroke-linejoin="round"
40
+ stroke-width="2"
41
+ d="M10 19l-7-7m0 0l7-7m-7 7h18"
42
+ />
43
+ </svg>
44
+ );
45
+ }
46
+
47
+ export function RefreshIcon(
48
+ props: JSX.IntrinsicElements['svg'] & { title: string },
49
+ ): JSX.Element {
50
+ return (
51
+ <svg
52
+ xmlns="http://www.w3.org/2000/svg"
53
+ fill="none"
54
+ viewBox="0 0 24 24"
55
+ stroke="currentColor"
56
+ {...props}
57
+ >
58
+ <title>{props.title}</title>
59
+ <path
60
+ stroke-linecap="round"
61
+ stroke-linejoin="round"
62
+ stroke-width="2"
63
+ d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"
64
+ />
65
+ </svg>
66
+ );
67
+ }
68
+
69
+ export function ViewCompiledIcon(
70
+ props: JSX.IntrinsicElements['svg'] & { title: string },
71
+ ): JSX.Element {
72
+ return (
73
+ <svg
74
+ xmlns="http://www.w3.org/2000/svg"
75
+ fill="none"
76
+ viewBox="0 0 24 24"
77
+ stroke="currentColor"
78
+ {...props}
79
+ >
80
+ <title>{props.title}</title>
81
+ <path
82
+ stroke-linecap="round"
83
+ stroke-linejoin="round"
84
+ stroke-width="2"
85
+ d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"
86
+ />
87
+ <path
88
+ stroke-linecap="round"
89
+ stroke-linejoin="round"
90
+ stroke-width="2"
91
+ d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"
92
+ />
93
+ </svg>
94
+ );
95
+ }
96
+
97
+ export function ViewOriginalIcon(
98
+ props: JSX.IntrinsicElements['svg'] & { title: string },
99
+ ): JSX.Element {
100
+ return (
101
+ <svg
102
+ xmlns="http://www.w3.org/2000/svg"
103
+ fill="none"
104
+ viewBox="0 0 24 24"
105
+ stroke="currentColor"
106
+ {...props}
107
+ >
108
+ <title>{props.title}</title>
109
+ <path
110
+ stroke-linecap="round"
111
+ stroke-linejoin="round"
112
+ stroke-width="2"
113
+ d="M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"
114
+ />
115
+ </svg>
116
+ );
117
+ }
118
+
119
+ export function CameraIcon(
120
+ props: JSX.IntrinsicElements['svg'] & { title: string },
121
+ ): JSX.Element {
122
+ return (
123
+ <svg
124
+ xmlns="http://www.w3.org/2000/svg"
125
+ fill="currentColor"
126
+ viewBox="0 0 24 24"
127
+ stroke="none"
128
+ {...props}
129
+ >
130
+ <title>{props.title}</title>
131
+ <path
132
+ d="M12 9a3.75 3.75 0 1 0 0 7.5A3.75 3.75 0 0 0 12 9Z"
133
+ />
134
+ <path
135
+ fill-rule="evenodd"
136
+ d="M9.344 3.071a49.52 49.52 0 0 1 5.312 0c.967.052 1.83.585 2.332 1.39l.821 1.317c.24.383.645.643 1.11.71.386.054.77.113 1.152.177 1.432.239 2.429 1.493 2.429 2.909V18a3 3 0 0 1-3 3h-15a3 3 0 0 1-3-3V9.574c0-1.416.997-2.67 2.429-2.909.382-.064.766-.123 1.151-.178a1.56 1.56 0 0 0 1.11-.71l.822-1.315a2.942 2.942 0 0 1 2.332-1.39ZM6.75 12.75a5.25 5.25 0 1 1 10.5 0 5.25 5.25 0 0 1-10.5 0Zm12-1.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z"
137
+ clip-rule="evenodd"
138
+ />
139
+ </svg>
140
+ );
141
+ }
142
+
143
+
144
+ export function DiscordIcon(
145
+ props: JSX.IntrinsicElements['svg'] & { title: string },
146
+ ): JSX.Element {
147
+ return (
148
+ <svg
149
+ xmlns="http://www.w3.org/2000/svg"
150
+ fill="currentColor"
151
+ viewBox="0 0 24 24"
152
+ stroke="none"
153
+ {...props}
154
+ >
155
+ <title>{props.title}</title>
156
+ <path d="M14.82 4.26a10.14 10.14 0 0 0-.53 1.1 14.66 14.66 0 0 0-4.58 0 10.14 10.14 0 0 0-.53-1.1 16 16 0 0 0-4.13 1.3 17.33 17.33 0 0 0-3 11.59 16.6 16.6 0 0 0 5.07 2.59A12.89 12.89 0 0 0 8.23 18a9.65 9.65 0 0 1-1.71-.83 3.39 3.39 0 0 0 .42-.33 11.66 11.66 0 0 0 10.12 0q.21.18.42.33a10.84 10.84 0 0 1-1.71.84 12.41 12.41 0 0 0 1.08 1.78 16.44 16.44 0 0 0 5.06-2.59 17.22 17.22 0 0 0-3-11.59 16.09 16.09 0 0 0-4.09-1.35zM8.68 14.81a1.94 1.94 0 0 1-1.8-2 1.93 1.93 0 0 1 1.8-2 1.93 1.93 0 0 1 1.8 2 1.93 1.93 0 0 1-1.8 2zm6.64 0a1.94 1.94 0 0 1-1.8-2 1.93 1.93 0 0 1 1.8-2 1.92 1.92 0 0 1 1.8 2 1.92 1.92 0 0 1-1.8 2z"></path>
157
+ </svg>
158
+ );
159
+ }
160
+
161
+ export function GithubIcon(
162
+ props: JSX.IntrinsicElements['svg'] & { title: string },
163
+ ): JSX.Element {
164
+ return (
165
+ <svg
166
+ xmlns="http://www.w3.org/2000/svg"
167
+ fill="currentColor"
168
+ viewBox="0 0 24 24"
169
+ stroke="none"
170
+ {...props}
171
+ >
172
+ <title>{props.title}</title>
173
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M12.026 2c-5.509 0-9.974 4.465-9.974 9.974 0 4.406 2.857 8.145 6.821 9.465.499.09.679-.217.679-.481 0-.237-.008-.865-.011-1.696-2.775.602-3.361-1.338-3.361-1.338-.452-1.152-1.107-1.459-1.107-1.459-.905-.619.069-.605.069-.605 1.002.07 1.527 1.028 1.527 1.028.89 1.524 2.336 1.084 2.902.829.091-.645.351-1.085.635-1.334-2.214-.251-4.542-1.107-4.542-4.93 0-1.087.389-1.979 1.024-2.675-.101-.253-.446-1.268.099-2.64 0 0 .837-.269 2.742 1.021a9.582 9.582 0 0 1 2.496-.336 9.554 9.554 0 0 1 2.496.336c1.906-1.291 2.742-1.021 2.742-1.021.545 1.372.203 2.387.099 2.64.64.696 1.024 1.587 1.024 2.675 0 3.833-2.33 4.675-4.552 4.922.355.308.675.916.675 1.846 0 1.334-.012 2.41-.012 2.737 0 .267.178.577.687.479C19.146 20.115 22 16.379 22 11.974 22 6.465 17.535 2 12.026 2z"></path>
174
+ </svg>
175
+ );
176
+ }
177
+
178
+ export function SolidStartIcon(
179
+ props: JSX.IntrinsicElements['svg'] & { title: string },
180
+ ): JSX.Element {
181
+ return (
182
+ <svg
183
+ viewBox="0 0 701 701"
184
+ fill="none"
185
+ xmlns="http://www.w3.org/2000/svg"
186
+ {...props}
187
+ >
188
+ <title>{props.title}</title>
189
+ <g filter="url(#filter0_d_1_2)">
190
+ <rect width="693" height="693" transform="translate(4)" fill="white"/>
191
+ <mask id="mask0_1_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="323" y="556" width="174" height="72">
192
+ <path d="M323.508 627.978L435.81 619.384C435.81 619.384 474.315 613.168 496.842 576.082L417.413 556.809L323.508 627.978Z" fill="white"/>
193
+ </mask>
194
+ <g mask="url(#mask0_1_2)">
195
+ <path d="M510.734 559.645L490 661.769L309.658 625.183L330.349 523.018L510.734 559.645Z" fill="url(#paint0_linear_1_2)"/>
196
+ </g>
197
+ <mask id="mask1_1_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="73" y="364" width="424" height="220">
198
+ <path d="M168.488 364.785C135.031 366.371 73.2477 372.295 73.2477 372.295L342.489 567.989L403.813 583.341L496.884 576.124L225.974 380.096C225.974 380.096 204.072 364.66 172.91 364.66C171.491 364.66 169.989 364.702 168.488 364.785Z" fill="white"/>
199
+ </mask>
200
+ <g mask="url(#mask1_1_2)">
201
+ <path d="M192.016 773.57L-24.954 425.942L378.115 174.389L595.085 522.017L192.016 773.57Z" fill="url(#paint1_linear_1_2)"/>
202
+ </g>
203
+ <mask id="mask2_1_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="515" y="255" width="179" height="71">
204
+ <path d="M515.573 325.822L631.254 318.688C631.254 318.688 670.885 312.931 693.621 275.928L611.438 255.487L515.573 325.822Z" fill="white"/>
205
+ </mask>
206
+ <g mask="url(#mask2_1_2)">
207
+ <path d="M557.832 401.58L485.62 272.174L651.32 179.729L723.532 309.135L557.832 401.58Z" fill="url(#paint2_linear_1_2)"/>
208
+ </g>
209
+ <mask id="mask3_1_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="254" y="59" width="440" height="223">
210
+ <path d="M352.251 59.0417C317.751 60.1681 254.132 65.2993 254.132 65.2993L534.345 265.666L597.755 281.936L693.621 275.928L411.697 75.2279C411.697 75.2279 388.294 59 355.505 59C354.42 59 353.335 59 352.251 59.0417Z" fill="white"/>
211
+ </mask>
212
+ <g mask="url(#mask3_1_2)">
213
+ <path d="M623.161 -102.236L775.386 246.226L324.592 443.172L172.325 94.7097L623.161 -102.236Z" fill="url(#paint3_linear_1_2)"/>
214
+ </g>
215
+ <mask id="mask4_1_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="6" y="371" width="396" height="257">
216
+ <path d="M6.62575 415.555C6.41717 415.889 6.20858 416.264 6 416.64L79.6305 469.912L153.261 523.185L275.909 611.917C317.125 641.744 373.318 628.895 401.393 583.215L326.762 529.234L252.13 475.252L130.483 387.229C115.632 376.508 98.8203 371.377 82.1335 371.377C53.0567 371.335 24.272 386.895 6.62575 415.555Z" fill="white"/>
217
+ </mask>
218
+ <g mask="url(#mask4_1_2)">
219
+ <path d="M529.756 464.03L265.855 829.387L-122.321 549.008L141.538 183.65L529.756 464.03Z" fill="url(#paint4_linear_1_2)"/>
220
+ </g>
221
+ <mask id="mask5_1_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="187" y="64" width="411" height="263">
222
+ <path d="M188.47 108.101C188.261 108.476 188.053 108.81 187.844 109.186L264.478 163.751L341.112 218.317L468.725 309.177C511.61 339.714 569.388 327.532 597.755 281.977L520.078 226.661L442.401 171.386L315.832 81.2352C300.063 70.0133 282.25 64.6318 264.645 64.6318C235.026 64.6318 206.074 79.9002 188.47 108.101Z" fill="white"/>
223
+ </mask>
224
+ <g mask="url(#mask5_1_2)">
225
+ <path d="M685.945 96.6704L550.031 471.164L99.6544 307.675L235.527 -66.8184L685.945 96.6704Z" fill="url(#paint5_linear_1_2)"/>
226
+ </g>
227
+ <mask id="mask6_1_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="134" y="164" width="419" height="344">
228
+ <path d="M134.363 170.051L233.149 278.64C237.571 284.856 242.744 290.571 248.626 295.66L441.567 507.791L537.432 501.784C565.8 456.229 554.036 394.53 511.151 363.993L383.539 273.133L306.863 218.567L230.229 164.002L134.363 170.051Z" fill="white"/>
229
+ </mask>
230
+ <g mask="url(#mask6_1_2)">
231
+ <path d="M291.886 715.5L-31.1699 289.528L408.235 -43.7072L731.291 382.265L291.886 715.5Z" fill="url(#paint6_linear_1_2)"/>
232
+ </g>
233
+ <mask id="mask7_1_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="118" y="170" width="340" height="338">
234
+ <path d="M133.696 171.094C105.703 216.065 117.301 276.971 159.644 307.091L286.255 397.241L363.932 452.516L441.609 507.791C469.976 462.236 458.212 400.537 415.327 370L287.631 279.141L210.997 224.575L134.363 170.051C134.154 170.384 133.904 170.718 133.696 171.094Z" fill="white"/>
235
+ </mask>
236
+ <g mask="url(#mask7_1_2)">
237
+ <path d="M606.057 239.009L395.553 654.635L-30.4607 438.833L180.043 23.2069L606.057 239.009Z" fill="url(#paint7_linear_1_2)"/>
238
+ </g>
239
+ </g>
240
+ <defs>
241
+ <filter id="filter0_d_1_2" x="0" y="0" width="701" height="701" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
242
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
243
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
244
+ <feOffset dy="4"/>
245
+ <feGaussianBlur stdDeviation="2"/>
246
+ <feComposite in2="hardAlpha" operator="out"/>
247
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
248
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1_2"/>
249
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1_2" result="shape"/>
250
+ </filter>
251
+ <linearGradient id="paint0_linear_1_2" x1="522.269" y1="40.5341" x2="374.272" y2="769.949" gradientUnits="userSpaceOnUse">
252
+ <stop stop-color="#1593F5"/>
253
+ <stop offset="1" stop-color="#0084CE"/>
254
+ </linearGradient>
255
+ <linearGradient id="paint1_linear_1_2" x1="507.729" y1="830.625" x2="-112.45" y2="-163.072" gradientUnits="userSpaceOnUse">
256
+ <stop stop-color="#1593F5"/>
257
+ <stop offset="1" stop-color="#0084CE"/>
258
+ </linearGradient>
259
+ <linearGradient id="paint2_linear_1_2" x1="915.255" y1="847.35" x2="541.738" y2="177.838" gradientUnits="userSpaceOnUse">
260
+ <stop stop-color="white"/>
261
+ <stop offset="1" stop-color="#15ABFF"/>
262
+ </linearGradient>
263
+ <linearGradient id="paint3_linear_1_2" x1="254.189" y1="-332.587" x2="571.326" y2="393.304" gradientUnits="userSpaceOnUse">
264
+ <stop stop-color="white"/>
265
+ <stop offset="1" stop-color="#79CFFF"/>
266
+ </linearGradient>
267
+ <linearGradient id="paint4_linear_1_2" x1="610.213" y1="-56.2573" x2="106.317" y2="641.444" gradientUnits="userSpaceOnUse">
268
+ <stop stop-color="#0057E5"/>
269
+ <stop offset="1" stop-color="#0084CE"/>
270
+ </linearGradient>
271
+ <linearGradient id="paint5_linear_1_2" x1="496.212" y1="-82.6564" x2="337.643" y2="354.288" gradientUnits="userSpaceOnUse">
272
+ <stop stop-color="white"/>
273
+ <stop offset="1" stop-color="#15ABFF"/>
274
+ </linearGradient>
275
+ <linearGradient id="paint6_linear_1_2" x1="693.692" y1="789.133" x2="-102.675" y2="-260.944" gradientUnits="userSpaceOnUse">
276
+ <stop stop-color="white"/>
277
+ <stop offset="1" stop-color="#79CFFF"/>
278
+ </linearGradient>
279
+ <linearGradient id="paint7_linear_1_2" x1="555.118" y1="-188.777" x2="146.363" y2="618.161" gradientUnits="userSpaceOnUse">
280
+ <stop stop-color="white"/>
281
+ <stop offset="1" stop-color="#79CFFF"/>
282
+ </linearGradient>
283
+ </defs>
284
+ </svg>
285
+ );
286
+ }
287
+