1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
id="visual"
viewBox="0 0 4096 4096"
width="4096"
height="4096"
version="1.1"
sodipodi:docname="blobs-l.svg"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
inkscape:export-filename="adwaita-l.webp"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview25045"
pagecolor="#505050"
bordercolor="#ffffff"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="1"
inkscape:deskcolor="#505050"
showgrid="false"
inkscape:current-layer="layer1" />
<defs
id="defs24901">
<linearGradient
inkscape:collect="always"
id="linearGradient18394">
<stop
style="stop-color:#9f9f9f;stop-opacity:1;"
offset="0"
id="stop18390" />
<stop
style="stop-color:#c2c2c2;stop-opacity:1;"
offset="1"
id="stop18392" />
</linearGradient>
<linearGradient
id="grad1_0"
x1="0%"
y1="0%"
x2="100%"
y2="100%">
<stop
offset="30%"
stop-color="#813d9c"
stop-opacity="1"
id="stop24896" />
<stop
offset="70%"
stop-color="#813d9c"
stop-opacity="1"
id="stop24898" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient18394"
id="linearGradient18396"
x1="127.83051"
y1="3977.8901"
x2="4096"
y2="9.7206497"
gradientUnits="userSpaceOnUse" />
</defs>
<defs
id="defs24908">
<linearGradient
id="grad1_1"
x1="0%"
y1="0%"
x2="100%"
y2="100%">
<stop
offset="30%"
stop-color="#813d9c"
stop-opacity="1"
id="stop24903" />
<stop
offset="70%"
stop-color="#515cc0"
stop-opacity="1"
id="stop24905" />
</linearGradient>
</defs>
<defs
id="defs24915">
<linearGradient
id="grad1_2"
x1="0%"
y1="0%"
x2="100%"
y2="100%">
<stop
offset="30%"
stop-color="#0076d6"
stop-opacity="1"
id="stop24910" />
<stop
offset="70%"
stop-color="#515cc0"
stop-opacity="1"
id="stop24912" />
</linearGradient>
</defs>
<defs
id="defs24922">
<linearGradient
id="grad1_3"
x1="0%"
y1="0%"
x2="100%"
y2="100%">
<stop
offset="30%"
stop-color="#0076d6"
stop-opacity="1"
id="stop24917" />
<stop
offset="70%"
stop-color="#008bdb"
stop-opacity="1"
id="stop24919" />
</linearGradient>
</defs>
<defs
id="defs24929">
<linearGradient
id="grad1_4"
x1="0%"
y1="0%"
x2="100%"
y2="100%">
<stop
offset="30%"
stop-color="#009dd0"
stop-opacity="1"
id="stop24924" />
<stop
offset="70%"
stop-color="#008bdb"
stop-opacity="1"
id="stop24926" />
</linearGradient>
</defs>
<defs
id="defs24936">
<linearGradient
id="grad1_5"
x1="0%"
y1="0%"
x2="100%"
y2="100%">
<stop
offset="30%"
stop-color="#009dd0"
stop-opacity="1"
id="stop24931" />
<stop
offset="70%"
stop-color="#00acba"
stop-opacity="1"
id="stop24933" />
</linearGradient>
</defs>
<defs
id="defs24943">
<linearGradient
id="grad1_6"
x1="0%"
y1="0%"
x2="100%"
y2="100%">
<stop
offset="30%"
stop-color="#00b89c"
stop-opacity="1"
id="stop24938" />
<stop
offset="70%"
stop-color="#00acba"
stop-opacity="1"
id="stop24940" />
</linearGradient>
</defs>
<defs
id="defs24950">
<linearGradient
id="grad1_7"
x1="0%"
y1="0%"
x2="100%"
y2="100%">
<stop
offset="30%"
stop-color="#00b89c"
stop-opacity="1"
id="stop24945" />
<stop
offset="70%"
stop-color="#2ec27e"
stop-opacity="1"
id="stop24947" />
</linearGradient>
</defs>
<defs
id="defs24957">
<linearGradient
id="grad2_0"
x1="0%"
y1="0%"
x2="100%"
y2="100%">
<stop
offset="30%"
stop-color="#813d9c"
stop-opacity="1"
id="stop24952" />
<stop
offset="70%"
stop-color="#813d9c"
stop-opacity="1"
id="stop24954" />
</linearGradient>
</defs>
<defs
id="defs24964">
<linearGradient
id="grad2_1"
x1="0%"
y1="0%"
x2="100%"
y2="100%">
<stop
offset="30%"
stop-color="#515cc0"
stop-opacity="1"
id="stop24959" />
<stop
offset="70%"
stop-color="#813d9c"
stop-opacity="1"
id="stop24961" />
</linearGradient>
</defs>
<defs
id="defs24971">
<linearGradient
id="grad2_2"
x1="0%"
y1="0%"
x2="100%"
y2="100%">
<stop
offset="30%"
stop-color="#515cc0"
stop-opacity="1"
id="stop24966" />
<stop
offset="70%"
stop-color="#0076d6"
stop-opacity="1"
id="stop24968" />
</linearGradient>
</defs>
<defs
id="defs24978">
<linearGradient
id="grad2_3"
x1="0%"
y1="0%"
x2="100%"
y2="100%">
<stop
offset="30%"
stop-color="#008bdb"
stop-opacity="1"
id="stop24973" />
<stop
offset="70%"
stop-color="#0076d6"
stop-opacity="1"
id="stop24975" />
</linearGradient>
</defs>
<defs
id="defs24985">
<linearGradient
id="grad2_4"
x1="0%"
y1="0%"
x2="100%"
y2="100%">
<stop
offset="30%"
stop-color="#008bdb"
stop-opacity="1"
id="stop24980" />
<stop
offset="70%"
stop-color="#009dd0"
stop-opacity="1"
id="stop24982" />
</linearGradient>
</defs>
<defs
id="defs24992">
<linearGradient
id="grad2_5"
x1="0%"
y1="0%"
x2="100%"
y2="100%">
<stop
offset="30%"
stop-color="#00acba"
stop-opacity="1"
id="stop24987" />
<stop
offset="70%"
stop-color="#009dd0"
stop-opacity="1"
id="stop24989" />
</linearGradient>
</defs>
<defs
id="defs24999">
<linearGradient
id="grad2_6"
x1="0%"
y1="0%"
x2="100%"
y2="100%">
<stop
offset="30%"
stop-color="#00acba"
stop-opacity="1"
id="stop24994" />
<stop
offset="70%"
stop-color="#00b89c"
stop-opacity="1"
id="stop24996" />
</linearGradient>
</defs>
<defs
id="defs25006">
<linearGradient
id="grad2_7"
x1="0%"
y1="0%"
x2="100%"
y2="100%">
<stop
offset="30%"
stop-color="#2ec27e"
stop-opacity="1"
id="stop25001" />
<stop
offset="70%"
stop-color="#00b89c"
stop-opacity="1"
id="stop25003" />
</linearGradient>
</defs>
<g
inkscape:groupmode="layer"
id="layer1"
inkscape:label="shapes"
style="display:inline">
<rect
x="0"
y="0"
width="4096"
height="4096"
fill="#2ec27e"
id="rect24894"
style="font-variation-settings:normal;vector-effect:none;fill:#241f31;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;-inkscape-stroke:none;stop-color:#000000" />
<path
d="m 4096,2896.3 c -244.6,-26.2 -489.2,-52.4 -749.6,-98.7 -260.5,-46.3 -536.8,-112.7 -693.4,-298.3 -156.6,-185.5 -193.3,-490.1 -396.2,-660.1 -202.9,-170 -571.8,-205.4 -666.2,-392.7 -94.4,-187.3 85.8,-526.6 66.4,-793 C 1637.7,387.1 1418.7,193.6 1199.7,0 H 4096 Z"
fill="#00be8d"
id="path25008"
style="font-variation-settings:normal;vector-effect:none;fill:#30223b;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;-inkscape-stroke:none;stop-color:#000000" />
<path
d="m 4096,2534.3 c -214,-22.9 -428,-45.9 -655.9,-86.4 -227.9,-40.5 -469.7,-98.6 -606.7,-261 -137,-162.3 -169.2,-428.9 -346.7,-577.6 -177.5,-148.8 -500.4,-179.7 -582.9,-343.6 -82.6,-163.9 75.1,-460.8 58.1,-693.9 C 1944.9,338.7 1753.3,169.4 1561.7,0 H 4096 Z"
fill="#00b2ab"
id="path25010"
style="font-variation-settings:normal;vector-effect:none;fill:#4e254a;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;-inkscape-stroke:none;stop-color:#000000" />
<path
d="m 4096,2172.2 c -183.4,-19.6 -366.9,-39.3 -562.2,-74 -195.4,-34.7 -402.6,-84.5 -520,-223.7 -117.5,-139.1 -145,-367.6 -297.2,-495.1 -152.1,-127.5 -428.9,-154 -499.7,-294.5 -70.7,-140.5 64.4,-395 49.9,-594.8 C 2252.2,290.3 2088,145.2 1923.8,0 H 4096 Z"
fill="#00a5c6"
id="path25012"
style="font-variation-settings:normal;vector-effect:none;fill:#70234e;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;-inkscape-stroke:none;stop-color:#000000" />
<path
d="m 4096,1810.2 c -152.9,-16.4 -305.7,-32.7 -468.5,-61.7 -162.8,-28.9 -335.5,-70.4 -433.4,-186.4 -97.8,-116 -120.8,-306.4 -247.6,-412.6 C 2819.7,1043.2 2589.1,1021.1 2530.1,904.1 2471.1,787 2583.8,575 2571.6,408.4 2559.5,241.9 2422.7,121 2285.8,0 H 4096 Z"
fill="#0095d8"
id="path25014"
style="font-variation-settings:normal;vector-effect:none;fill:#921f48;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;-inkscape-stroke:none;stop-color:#000000" />
<path
d="m 4096,1448.15 c -122.3,-13.1 -244.6,-26.2 -374.8,-49.4 -130.2,-23.1 -268.4,-56.4 -346.7,-149.1 -78.3,-92.8 -96.7,-245.1 -198.1,-330.1 -101.4,-85 -285.9,-102.7 -333.1,-196.3 -47.2,-93.7 42.9,-263.3 33.2,-396.5 -9.7,-133.2 -119.2,-230 -228.7,-326.8 H 4096 Z"
fill="#0081db"
id="path25016"
style="font-variation-settings:normal;vector-effect:none;fill:#af2438;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;-inkscape-stroke:none;stop-color:#000000" />
<path
d="m 4096,1086.1 c -91.7,-9.8 -183.4,-19.6 -281.1,-37 -97.7,-17.4 -201.3,-42.3 -260,-111.8 -58.7,-69.6 -72.5,-183.9 -148.6,-247.6 -76.1,-63.8 -214.4,-77 -249.8,-147.3 -35.4,-70.2 32.2,-197.4 24.9,-297.3 C 3174.1,145.2 3092,72.6 3009.9,0 H 4096 Z"
fill="#1569cd"
id="path25018"
style="font-variation-settings:normal;vector-effect:none;fill:#c1381d;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;-inkscape-stroke:none;stop-color:#000000" />
<path
d="m 4096,724.1 c -61.1,-6.6 -122.3,-13.1 -187.4,-24.7 -65.1,-11.6 -134.2,-28.2 -173.3,-74.6 -39.2,-46.3 -48.4,-122.5 -99.1,-165 -50.7,-42.5 -143,-51.3 -166.6,-98.2 -23.5,-46.8 21.5,-131.6 16.7,-198.2 C 3481.4,96.8 3426.7,48.4 3371.9,0 H 4096 Z"
fill="#6e4daf"
id="path25020"
style="font-variation-settings:normal;vector-effect:none;fill:#c64600;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;-inkscape-stroke:none;stop-color:#000000" />
<path
d="m 4096,362 c -30.6,-3.2 -61.1,-6.5 -93.7,-12.3 -32.6,-5.8 -67.1,-14.1 -86.7,-37.3 -19.5,-23.2 -24.1,-61.3 -49.5,-82.5 -25.4,-21.3 -71.5,-25.7 -83.3,-49.1 -11.8,-23.4 10.8,-65.8 8.3,-99.1 C 3788.7,48.4 3761.3,24.2 3734,0 h 362 z"
fill="#813d9c"
id="path25022"
style="fill:#e66100" />
<path
d="m 0,1199.7 c 200.5,189.8 401,379.6 669.3,398.4 268.3,18.9 604.4,-133.2 778.9,-10.4 174.4,122.9 187.2,520.6 312.5,747.6 125.3,227 363,283.3 555.1,423.7 192,140.4 338.3,365.1 427.4,602 89.2,236.8 121.1,485.9 153.1,735 H 0 Z"
style="fill:#30223b;fill-opacity:1;stroke-width:1px;stroke-opacity:1;stop-color:#000000"
id="path26767" />
<path
d="m 0,1561.7 c 175.4,166.1 350.9,332.2 585.6,348.7 234.8,16.4 528.9,-116.6 681.5,-9.1 152.7,107.4 163.9,455.5 273.5,654.1 109.6,198.6 317.7,247.8 485.7,370.7 168,122.9 296,319.5 374,526.7 78,207.3 106,425.2 134,643.2 H 0 Z"
style="fill:#4e254a;fill-opacity:1;stroke-width:1px;stroke-opacity:1;stop-color:#000000"
id="path26773" />
<path
d="m 0,1561.7 c 175.4,166.1 350.9,332.2 585.6,348.7 234.8,16.4 528.9,-116.6 681.5,-9.1 152.7,107.4 163.9,455.5 273.5,654.1 109.6,198.6 317.7,247.8 485.7,370.7 168,122.9 296,319.5 374,526.7 78,207.3 106,425.2 134,643.2 H 0 Z"
fill="#00b2ab"
id="path25028"
style="font-variation-settings:normal;vector-effect:none;fill:#4e254a;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;-inkscape-stroke:none;stop-color:#000000" />
<path
d="m 0,1923.8 c 150.4,142.3 300.8,284.6 502,298.8 201.2,14.1 453.3,-99.9 584.1,-7.8 130.9,92.1 140.5,390.4 234.4,560.7 94,170.2 272.3,212.4 416.3,317.7 144,105.4 253.8,273.9 320.6,451.5 66.9,177.7 90.9,364.5 114.8,551.3 H 0 Z"
fill="#00a5c6"
id="path25030"
style="font-variation-settings:normal;vector-effect:none;fill:#70234e;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;-inkscape-stroke:none;stop-color:#000000" />
<path
d="m 0,2172.2 c 122.83471,137.7048 269.09943,249.544 433.42352,263.2854 164.3241,13.6447 370.21925,-96.674 477.04625,-7.5481 106.90873,89.1259 91.31913,225.4038 168.00923,390.2044 76.7716,164.7039 222.3929,205.5412 340.0006,307.4408 117.6076,101.9964 207.2835,265.0552 261.8404,436.9201 54.6387,171.9617 74.2399,352.7296 93.7595,533.4974 H 0 Z"
style="fill:#af2438;fill-opacity:0.63887;stroke-width:0.91868px;stroke-opacity:1;stop-color:#000000"
id="path27067"
sodipodi:nodetypes="ccccccccc" />
<path
d="m 0,2647.8 c 100.3,94.9 200.5,189.8 334.7,199.3 134.1,9.4 302.2,-66.7 389.4,-5.2 87.2,61.4 93.6,260.3 156.2,373.8 62.7,113.5 181.6,141.6 277.6,211.8 96,70.2 169.1,182.5 213.7,301 44.6,118.4 60.6,243 76.6,367.5 H 0 Z"
style="fill:#af2438;fill-opacity:1;stroke-width:1px;stroke-opacity:1;stop-color:#000000"
id="path27938" />
<path
d="m 0,3009.9 c 75.2,71.2 150.4,142.3 251,149.4 100.6,7.1 226.6,-50 292.1,-3.9 65.4,46.1 70.2,195.2 117.2,280.3 46.9,85.2 136.1,106.3 208.1,158.9 72,52.7 126.9,136.9 160.3,225.8 33.4,88.8 45.4,182.2 57.4,275.6 H 0 Z"
style="fill:#c1381d;fill-opacity:1;stroke-width:1px;stroke-opacity:1;stop-color:#000000"
id="path27946" />
<path
d="m 0,3371.9 c 50.1,47.5 100.3,94.9 167.3,99.6 67.1,4.7 151.1,-33.3 194.7,-2.6 43.7,30.7 46.9,130.2 78.2,186.9 31.3,56.8 90.7,70.8 138.7,105.9 48,35.2 84.6,91.3 106.9,150.5 22.3,59.3 30.3,121.5 38.3,183.8 H 0 Z"
fill="#6e4daf"
id="path25038"
style="font-variation-settings:normal;vector-effect:none;fill:#c64600;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;-inkscape-stroke:none;stop-color:#000000" />
<path
d="m 0,3734 c 25.1,23.7 50.1,47.4 83.7,49.8 33.5,2.3 75.5,-16.7 97.3,-1.3 21.8,15.3 23.4,65 39.1,93.4 15.6,28.4 45.4,35.4 69.4,53 24,17.5 42.3,45.6 53.4,75.2 11.1,29.6 15.1,60.8 19.1,91.9 H 0 Z"
fill="#813d9c"
id="path25040"
style="fill:#e66100" />
<path
d="m 0,3371.9 c 50.1,47.5 100.3,94.9 167.3,99.6 67.1,4.7 151.1,-33.3 194.7,-2.6 43.7,30.7 46.9,130.2 78.2,186.9 31.3,56.8 90.7,70.8 138.7,105.9 48,35.2 84.6,91.3 106.9,150.5 22.3,59.3 30.3,121.5 38.3,183.8 H 0 Z"
style="fill:#c64600;fill-opacity:1;stroke-width:1px;stroke-opacity:1;stop-color:#000000"
id="path27705" />
<path
d="m 0,3734 c 25.1,23.7 50.1,47.4 83.7,49.8 33.5,2.3 75.5,-16.7 97.3,-1.3 21.8,15.3 23.4,65 39.1,93.4 15.6,28.4 45.4,35.4 69.4,53 24,17.5 42.3,45.6 53.4,75.2 11.1,29.6 15.1,60.8 19.1,91.9 H 0 Z"
style="fill:#e66100;fill-opacity:1;stroke-width:1px;stroke-opacity:1;stop-color:#000000"
id="path27719" />
</g>
<g
inkscape:groupmode="layer"
id="layer2"
inkscape:label="colors"
style="display:inline;opacity:0.692723;mix-blend-mode:overlay;fill:url(#linearGradient18396);fill-opacity:1;stroke:none">
<rect
style="display:inline;fill:url(#linearGradient18396);fill-opacity:1;stroke:none;stroke-width:0.851851;-inkscape-stroke:none;stop-color:#000000"
id="rect12758"
width="4096"
height="4096.0498"
x="5.6843419e-14"
y="-0.050000001" />
</g>
<script
id="mesh_polyfill"
type="text/javascript">
!function(){const t="http://www.w3.org/2000/svg",e="http://www.w3.org/1999/xlink",s="http://www.w3.org/1999/xhtml",r=2;if(document.createElementNS(t,"meshgradient").x)return;const n=(t,e,s,r)=>{let n=new x(.5*(e.x+s.x),.5*(e.y+s.y)),o=new x(.5*(t.x+e.x),.5*(t.y+e.y)),i=new x(.5*(s.x+r.x),.5*(s.y+r.y)),a=new x(.5*(n.x+o.x),.5*(n.y+o.y)),h=new x(.5*(n.x+i.x),.5*(n.y+i.y)),l=new x(.5*(a.x+h.x),.5*(a.y+h.y));return[[t,o,a,l],[l,h,i,r]]},o=t=>{let e=t[0].distSquared(t[1]),s=t[2].distSquared(t[3]),r=.25*t[0].distSquared(t[2]),n=.25*t[1].distSquared(t[3]),o=e>s?e:s,i=r>n?r:n;return 18*(o>i?o:i)},i=(t,e)=>Math.sqrt(t.distSquared(e)),a=(t,e)=>t.scale(2/3).add(e.scale(1/3)),h=t=>{let e,s,r,n,o,i,a,h=new g;return t.match(/(\w+\(\s*[^)]+\))+/g).forEach(t=>{let l=t.match(/[\w.-]+/g),d=l.shift();switch(d){case"translate":2===l.length?e=new g(1,0,0,1,l[0],l[1]):(console.error("mesh.js: translate does not have 2 arguments!"),e=new g(1,0,0,1,0,0)),h=h.append(e);break;case"scale":1===l.length?s=new g(l[0],0,0,l[0],0,0):2===l.length?s=new g(l[0],0,0,l[1],0,0):(console.error("mesh.js: scale does not have 1 or 2 arguments!"),s=new g(1,0,0,1,0,0)),h=h.append(s);break;case"rotate":if(3===l.length&&(e=new g(1,0,0,1,l[1],l[2]),h=h.append(e)),l[0]){r=l[0]*Math.PI/180;let t=Math.cos(r),e=Math.sin(r);Math.abs(t)<1e-16&&(t=0),Math.abs(e)<1e-16&&(e=0),a=new g(t,e,-e,t,0,0),h=h.append(a)}else console.error("math.js: No argument to rotate transform!");3===l.length&&(e=new g(1,0,0,1,-l[1],-l[2]),h=h.append(e));break;case"skewX":l[0]?(r=l[0]*Math.PI/180,n=Math.tan(r),o=new g(1,0,n,1,0,0),h=h.append(o)):console.error("math.js: No argument to skewX transform!");break;case"skewY":l[0]?(r=l[0]*Math.PI/180,n=Math.tan(r),i=new g(1,n,0,1,0,0),h=h.append(i)):console.error("math.js: No argument to skewY transform!");break;case"matrix":6===l.length?h=h.append(new g(...l)):console.error("math.js: Incorrect number of arguments for matrix!");break;default:console.error("mesh.js: Unhandled transform type: "+d)}}),h},l=t=>{let e=[],s=t.split(/[ ,]+/);for(let t=0,r=s.length-1;t<r;t+=2)e.push(new x(parseFloat(s[t]),parseFloat(s[t+1])));return e},d=(t,e)=>{for(let s in e)t.setAttribute(s,e[s])},c=(t,e,s,r,n)=>{let o,i,a=[0,0,0,0];for(let h=0;h<3;++h)e[h]<t[h]&&e[h]<s[h]||t[h]<e[h]&&s[h]<e[h]?a[h]=0:(a[h]=.5*((e[h]-t[h])/r+(s[h]-e[h])/n),o=Math.abs(3*(e[h]-t[h])/r),i=Math.abs(3*(s[h]-e[h])/n),a[h]>o?a[h]=o:a[h]>i&&(a[h]=i));return a},u=[[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0],[-3,3,0,0,-2,-1,0,0,0,0,0,0,0,0,0,0],[2,-2,0,0,1,1,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0],[0,0,0,0,0,0,0,0,-3,3,0,0,-2,-1,0,0],[0,0,0,0,0,0,0,0,2,-2,0,0,1,1,0,0],[-3,0,3,0,0,0,0,0,-2,0,-1,0,0,0,0,0],[0,0,0,0,-3,0,3,0,0,0,0,0,-2,0,-1,0],[9,-9,-9,9,6,3,-6,-3,6,-6,3,-3,4,2,2,1],[-6,6,6,-6,-3,-3,3,3,-4,4,-2,2,-2,-2,-1,-1],[2,0,-2,0,0,0,0,0,1,0,1,0,0,0,0,0],[0,0,0,0,2,0,-2,0,0,0,0,0,1,0,1,0],[-6,6,6,-6,-4,-2,4,2,-3,3,-3,3,-2,-1,-2,-1],[4,-4,-4,4,2,2,-2,-2,2,-2,2,-2,1,1,1,1]],f=t=>{let e=[];for(let s=0;s<16;++s){e[s]=0;for(let r=0;r<16;++r)e[s]+=u[s][r]*t[r]}return e},p=(t,e,s)=>{const r=e*e,n=s*s,o=e*e*e,i=s*s*s;return t[0]+t[1]*e+t[2]*r+t[3]*o+t[4]*s+t[5]*s*e+t[6]*s*r+t[7]*s*o+t[8]*n+t[9]*n*e+t[10]*n*r+t[11]*n*o+t[12]*i+t[13]*i*e+t[14]*i*r+t[15]*i*o},y=t=>{let e=[],s=[],r=[];for(let s=0;s<4;++s)e[s]=[],e[s][0]=n(t[0][s],t[1][s],t[2][s],t[3][s]),e[s][1]=[],e[s][1].push(...n(...e[s][0][0])),e[s][1].push(...n(...e[s][0][1])),e[s][2]=[],e[s][2].push(...n(...e[s][1][0])),e[s][2].push(...n(...e[s][1][1])),e[s][2].push(...n(...e[s][1][2])),e[s][2].push(...n(...e[s][1][3]));for(let t=0;t<8;++t){s[t]=[];for(let r=0;r<4;++r)s[t][r]=[],s[t][r][0]=n(e[0][2][t][r],e[1][2][t][r],e[2][2][t][r],e[3][2][t][r]),s[t][r][1]=[],s[t][r][1].push(...n(...s[t][r][0][0])),s[t][r][1].push(...n(...s[t][r][0][1])),s[t][r][2]=[],s[t][r][2].push(...n(...s[t][r][1][0])),s[t][r][2].push(...n(...s[t][r][1][1])),s[t][r][2].push(...n(...s[t][r][1][2])),s[t][r][2].push(...n(...s[t][r][1][3]))}for(let t=0;t<8;++t){r[t]=[];for(let e=0;e<8;++e)r[t][e]=[],r[t][e][0]=s[t][0][2][e],r[t][e][1]=s[t][1][2][e],r[t][e][2]=s[t][2][2][e],r[t][e][3]=s[t][3][2][e]}return r};class x{constructor(t,e){this.x=t||0,this.y=e||0}toString(){return`(x=${this.x}, y=${this.y})`}clone(){return new x(this.x,this.y)}add(t){return new x(this.x+t.x,this.y+t.y)}scale(t){return void 0===t.x?new x(this.x*t,this.y*t):new x(this.x*t.x,this.y*t.y)}distSquared(t){let e=this.x-t.x,s=this.y-t.y;return e*e+s*s}transform(t){let e=this.x*t.a+this.y*t.c+t.e,s=this.x*t.b+this.y*t.d+t.f;return new x(e,s)}}class g{constructor(t,e,s,r,n,o){void 0===t?(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0):(this.a=t,this.b=e,this.c=s,this.d=r,this.e=n,this.f=o)}toString(){return`affine: ${this.a} ${this.c} ${this.e} \n ${this.b} ${this.d} ${this.f}`}append(t){t instanceof g||console.error("mesh.js: argument to Affine.append is not affine!");let e=this.a*t.a+this.c*t.b,s=this.b*t.a+this.d*t.b,r=this.a*t.c+this.c*t.d,n=this.b*t.c+this.d*t.d,o=this.a*t.e+this.c*t.f+this.e,i=this.b*t.e+this.d*t.f+this.f;return new g(e,s,r,n,o,i)}}class w{constructor(t,e){this.nodes=t,this.colors=e}paintCurve(t,e){if(o(this.nodes)>r){const s=n(...this.nodes);let r=[[],[]],o=[[],[]];for(let t=0;t<4;++t)r[0][t]=this.colors[0][t],r[1][t]=(this.colors[0][t]+this.colors[1][t])/2,o[0][t]=r[1][t],o[1][t]=this.colors[1][t];let i=new w(s[0],r),a=new w(s[1],o);i.paintCurve(t,e),a.paintCurve(t,e)}else{let s=Math.round(this.nodes[0].x);if(s>=0&&s<e){let r=4*(~~this.nodes[0].y*e+s);t[r]=Math.round(this.colors[0][0]),t[r+1]=Math.round(this.colors[0][1]),t[r+2]=Math.round(this.colors[0][2]),t[r+3]=Math.round(this.colors[0][3])}}}}class m{constructor(t,e){this.nodes=t,this.colors=e}split(){let t=[[],[],[],[]],e=[[],[],[],[]],s=[[[],[]],[[],[]]],r=[[[],[]],[[],[]]];for(let s=0;s<4;++s){const r=n(this.nodes[0][s],this.nodes[1][s],this.nodes[2][s],this.nodes[3][s]);t[0][s]=r[0][0],t[1][s]=r[0][1],t[2][s]=r[0][2],t[3][s]=r[0][3],e[0][s]=r[1][0],e[1][s]=r[1][1],e[2][s]=r[1][2],e[3][s]=r[1][3]}for(let t=0;t<4;++t)s[0][0][t]=this.colors[0][0][t],s[0][1][t]=this.colors[0][1][t],s[1][0][t]=(this.colors[0][0][t]+this.colors[1][0][t])/2,s[1][1][t]=(this.colors[0][1][t]+this.colors[1][1][t])/2,r[0][0][t]=s[1][0][t],r[0][1][t]=s[1][1][t],r[1][0][t]=this.colors[1][0][t],r[1][1][t]=this.colors[1][1][t];return[new m(t,s),new m(e,r)]}paint(t,e){let s,n=!1;for(let t=0;t<4;++t)if((s=o([this.nodes[0][t],this.nodes[1][t],this.nodes[2][t],this.nodes[3][t]]))>r){n=!0;break}if(n){let s=this.split();s[0].paint(t,e),s[1].paint(t,e)}else{new w([...this.nodes[0]],[...this.colors[0]]).paintCurve(t,e)}}}class b{constructor(t){this.readMesh(t),this.type=t.getAttribute("type")||"bilinear"}readMesh(t){let e=[[]],s=[[]],r=Number(t.getAttribute("x")),n=Number(t.getAttribute("y"));e[0][0]=new x(r,n);let o=t.children;for(let t=0,r=o.length;t<r;++t){e[3*t+1]=[],e[3*t+2]=[],e[3*t+3]=[],s[t+1]=[];let r=o[t].children;for(let n=0,o=r.length;n<o;++n){let o=r[n].children;for(let r=0,i=o.length;r<i;++r){let i=r;0!==t&&++i;let h,d=o[r].getAttribute("path"),c="l";null!=d&&(c=(h=d.match(/\s*([lLcC])\s*(.*)/))[1]);let u=l(h[2]);switch(c){case"l":0===i?(e[3*t][3*n+3]=u[0].add(e[3*t][3*n]),e[3*t][3*n+1]=a(e[3*t][3*n],e[3*t][3*n+3]),e[3*t][3*n+2]=a(e[3*t][3*n+3],e[3*t][3*n])):1===i?(e[3*t+3][3*n+3]=u[0].add(e[3*t][3*n+3]),e[3*t+1][3*n+3]=a(e[3*t][3*n+3],e[3*t+3][3*n+3]),e[3*t+2][3*n+3]=a(e[3*t+3][3*n+3],e[3*t][3*n+3])):2===i?(0===n&&(e[3*t+3][3*n+0]=u[0].add(e[3*t+3][3*n+3])),e[3*t+3][3*n+1]=a(e[3*t+3][3*n],e[3*t+3][3*n+3]),e[3*t+3][3*n+2]=a(e[3*t+3][3*n+3],e[3*t+3][3*n])):(e[3*t+1][3*n]=a(e[3*t][3*n],e[3*t+3][3*n]),e[3*t+2][3*n]=a(e[3*t+3][3*n],e[3*t][3*n]));break;case"L":0===i?(e[3*t][3*n+3]=u[0],e[3*t][3*n+1]=a(e[3*t][3*n],e[3*t][3*n+3]),e[3*t][3*n+2]=a(e[3*t][3*n+3],e[3*t][3*n])):1===i?(e[3*t+3][3*n+3]=u[0],e[3*t+1][3*n+3]=a(e[3*t][3*n+3],e[3*t+3][3*n+3]),e[3*t+2][3*n+3]=a(e[3*t+3][3*n+3],e[3*t][3*n+3])):2===i?(0===n&&(e[3*t+3][3*n+0]=u[0]),e[3*t+3][3*n+1]=a(e[3*t+3][3*n],e[3*t+3][3*n+3]),e[3*t+3][3*n+2]=a(e[3*t+3][3*n+3],e[3*t+3][3*n])):(e[3*t+1][3*n]=a(e[3*t][3*n],e[3*t+3][3*n]),e[3*t+2][3*n]=a(e[3*t+3][3*n],e[3*t][3*n]));break;case"c":0===i?(e[3*t][3*n+1]=u[0].add(e[3*t][3*n]),e[3*t][3*n+2]=u[1].add(e[3*t][3*n]),e[3*t][3*n+3]=u[2].add(e[3*t][3*n])):1===i?(e[3*t+1][3*n+3]=u[0].add(e[3*t][3*n+3]),e[3*t+2][3*n+3]=u[1].add(e[3*t][3*n+3]),e[3*t+3][3*n+3]=u[2].add(e[3*t][3*n+3])):2===i?(e[3*t+3][3*n+2]=u[0].add(e[3*t+3][3*n+3]),e[3*t+3][3*n+1]=u[1].add(e[3*t+3][3*n+3]),0===n&&(e[3*t+3][3*n+0]=u[2].add(e[3*t+3][3*n+3]))):(e[3*t+2][3*n]=u[0].add(e[3*t+3][3*n]),e[3*t+1][3*n]=u[1].add(e[3*t+3][3*n]));break;case"C":0===i?(e[3*t][3*n+1]=u[0],e[3*t][3*n+2]=u[1],e[3*t][3*n+3]=u[2]):1===i?(e[3*t+1][3*n+3]=u[0],e[3*t+2][3*n+3]=u[1],e[3*t+3][3*n+3]=u[2]):2===i?(e[3*t+3][3*n+2]=u[0],e[3*t+3][3*n+1]=u[1],0===n&&(e[3*t+3][3*n+0]=u[2])):(e[3*t+2][3*n]=u[0],e[3*t+1][3*n]=u[1]);break;default:console.error("mesh.js: "+c+" invalid path type.")}if(0===t&&0===n||r>0){let e=window.getComputedStyle(o[r]).stopColor.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),a=window.getComputedStyle(o[r]).stopOpacity,h=255;a&&(h=Math.floor(255*a)),e&&(0===i?(s[t][n]=[],s[t][n][0]=Math.floor(e[1]),s[t][n][1]=Math.floor(e[2]),s[t][n][2]=Math.floor(e[3]),s[t][n][3]=h):1===i?(s[t][n+1]=[],s[t][n+1][0]=Math.floor(e[1]),s[t][n+1][1]=Math.floor(e[2]),s[t][n+1][2]=Math.floor(e[3]),s[t][n+1][3]=h):2===i?(s[t+1][n+1]=[],s[t+1][n+1][0]=Math.floor(e[1]),s[t+1][n+1][1]=Math.floor(e[2]),s[t+1][n+1][2]=Math.floor(e[3]),s[t+1][n+1][3]=h):3===i&&(s[t+1][n]=[],s[t+1][n][0]=Math.floor(e[1]),s[t+1][n][1]=Math.floor(e[2]),s[t+1][n][2]=Math.floor(e[3]),s[t+1][n][3]=h))}}e[3*t+1][3*n+1]=new x,e[3*t+1][3*n+2]=new x,e[3*t+2][3*n+1]=new x,e[3*t+2][3*n+2]=new x,e[3*t+1][3*n+1].x=(-4*e[3*t][3*n].x+6*(e[3*t][3*n+1].x+e[3*t+1][3*n].x)+-2*(e[3*t][3*n+3].x+e[3*t+3][3*n].x)+3*(e[3*t+3][3*n+1].x+e[3*t+1][3*n+3].x)+-1*e[3*t+3][3*n+3].x)/9,e[3*t+1][3*n+2].x=(-4*e[3*t][3*n+3].x+6*(e[3*t][3*n+2].x+e[3*t+1][3*n+3].x)+-2*(e[3*t][3*n].x+e[3*t+3][3*n+3].x)+3*(e[3*t+3][3*n+2].x+e[3*t+1][3*n].x)+-1*e[3*t+3][3*n].x)/9,e[3*t+2][3*n+1].x=(-4*e[3*t+3][3*n].x+6*(e[3*t+3][3*n+1].x+e[3*t+2][3*n].x)+-2*(e[3*t+3][3*n+3].x+e[3*t][3*n].x)+3*(e[3*t][3*n+1].x+e[3*t+2][3*n+3].x)+-1*e[3*t][3*n+3].x)/9,e[3*t+2][3*n+2].x=(-4*e[3*t+3][3*n+3].x+6*(e[3*t+3][3*n+2].x+e[3*t+2][3*n+3].x)+-2*(e[3*t+3][3*n].x+e[3*t][3*n+3].x)+3*(e[3*t][3*n+2].x+e[3*t+2][3*n].x)+-1*e[3*t][3*n].x)/9,e[3*t+1][3*n+1].y=(-4*e[3*t][3*n].y+6*(e[3*t][3*n+1].y+e[3*t+1][3*n].y)+-2*(e[3*t][3*n+3].y+e[3*t+3][3*n].y)+3*(e[3*t+3][3*n+1].y+e[3*t+1][3*n+3].y)+-1*e[3*t+3][3*n+3].y)/9,e[3*t+1][3*n+2].y=(-4*e[3*t][3*n+3].y+6*(e[3*t][3*n+2].y+e[3*t+1][3*n+3].y)+-2*(e[3*t][3*n].y+e[3*t+3][3*n+3].y)+3*(e[3*t+3][3*n+2].y+e[3*t+1][3*n].y)+-1*e[3*t+3][3*n].y)/9,e[3*t+2][3*n+1].y=(-4*e[3*t+3][3*n].y+6*(e[3*t+3][3*n+1].y+e[3*t+2][3*n].y)+-2*(e[3*t+3][3*n+3].y+e[3*t][3*n].y)+3*(e[3*t][3*n+1].y+e[3*t+2][3*n+3].y)+-1*e[3*t][3*n+3].y)/9,e[3*t+2][3*n+2].y=(-4*e[3*t+3][3*n+3].y+6*(e[3*t+3][3*n+2].y+e[3*t+2][3*n+3].y)+-2*(e[3*t+3][3*n].y+e[3*t][3*n+3].y)+3*(e[3*t][3*n+2].y+e[3*t+2][3*n].y)+-1*e[3*t][3*n].y)/9}}this.nodes=e,this.colors=s}paintMesh(t,e){let s=(this.nodes.length-1)/3,r=(this.nodes[0].length-1)/3;if("bilinear"===this.type||s<2||r<2){let n;for(let o=0;o<s;++o)for(let s=0;s<r;++s){let r=[];for(let t=3*o,e=3*o+4;t<e;++t)r.push(this.nodes[t].slice(3*s,3*s+4));let i=[];i.push(this.colors[o].slice(s,s+2)),i.push(this.colors[o+1].slice(s,s+2)),(n=new m(r,i)).paint(t,e)}}else{let n,o,a,h,l,d,u;const x=s,g=r;s++,r++;let w=new Array(s);for(let t=0;t<s;++t){w[t]=new Array(r);for(let e=0;e<r;++e)w[t][e]=[],w[t][e][0]=this.nodes[3*t][3*e],w[t][e][1]=this.colors[t][e]}for(let t=0;t<s;++t)for(let e=0;e<r;++e)0!==t&&t!==x&&(n=i(w[t-1][e][0],w[t][e][0]),o=i(w[t+1][e][0],w[t][e][0]),w[t][e][2]=c(w[t-1][e][1],w[t][e][1],w[t+1][e][1],n,o)),0!==e&&e!==g&&(n=i(w[t][e-1][0],w[t][e][0]),o=i(w[t][e+1][0],w[t][e][0]),w[t][e][3]=c(w[t][e-1][1],w[t][e][1],w[t][e+1][1],n,o));for(let t=0;t<r;++t){w[0][t][2]=[],w[x][t][2]=[];for(let e=0;e<4;++e)n=i(w[1][t][0],w[0][t][0]),o=i(w[x][t][0],w[x-1][t][0]),w[0][t][2][e]=n>0?2*(w[1][t][1][e]-w[0][t][1][e])/n-w[1][t][2][e]:0,w[x][t][2][e]=o>0?2*(w[x][t][1][e]-w[x-1][t][1][e])/o-w[x-1][t][2][e]:0}for(let t=0;t<s;++t){w[t][0][3]=[],w[t][g][3]=[];for(let e=0;e<4;++e)n=i(w[t][1][0],w[t][0][0]),o=i(w[t][g][0],w[t][g-1][0]),w[t][0][3][e]=n>0?2*(w[t][1][1][e]-w[t][0][1][e])/n-w[t][1][3][e]:0,w[t][g][3][e]=o>0?2*(w[t][g][1][e]-w[t][g-1][1][e])/o-w[t][g-1][3][e]:0}for(let s=0;s<x;++s)for(let r=0;r<g;++r){let n=i(w[s][r][0],w[s+1][r][0]),o=i(w[s][r+1][0],w[s+1][r+1][0]),c=i(w[s][r][0],w[s][r+1][0]),x=i(w[s+1][r][0],w[s+1][r+1][0]),g=[[],[],[],[]];for(let t=0;t<4;++t){(d=[])[0]=w[s][r][1][t],d[1]=w[s+1][r][1][t],d[2]=w[s][r+1][1][t],d[3]=w[s+1][r+1][1][t],d[4]=w[s][r][2][t]*n,d[5]=w[s+1][r][2][t]*n,d[6]=w[s][r+1][2][t]*o,d[7]=w[s+1][r+1][2][t]*o,d[8]=w[s][r][3][t]*c,d[9]=w[s+1][r][3][t]*x,d[10]=w[s][r+1][3][t]*c,d[11]=w[s+1][r+1][3][t]*x,d[12]=0,d[13]=0,d[14]=0,d[15]=0,u=f(d);for(let e=0;e<9;++e){g[t][e]=[];for(let s=0;s<9;++s)g[t][e][s]=p(u,e/8,s/8),g[t][e][s]>255?g[t][e][s]=255:g[t][e][s]<0&&(g[t][e][s]=0)}}h=[];for(let t=3*s,e=3*s+4;t<e;++t)h.push(this.nodes[t].slice(3*r,3*r+4));l=y(h);for(let s=0;s<8;++s)for(let r=0;r<8;++r)(a=new m(l[s][r],[[[g[0][s][r],g[1][s][r],g[2][s][r],g[3][s][r]],[g[0][s][r+1],g[1][s][r+1],g[2][s][r+1],g[3][s][r+1]]],[[g[0][s+1][r],g[1][s+1][r],g[2][s+1][r],g[3][s+1][r]],[g[0][s+1][r+1],g[1][s+1][r+1],g[2][s+1][r+1],g[3][s+1][r+1]]]])).paint(t,e)}}}transform(t){if(t instanceof x)for(let e=0,s=this.nodes.length;e<s;++e)for(let s=0,r=this.nodes[0].length;s<r;++s)this.nodes[e][s]=this.nodes[e][s].add(t);else if(t instanceof g)for(let e=0,s=this.nodes.length;e<s;++e)for(let s=0,r=this.nodes[0].length;s<r;++s)this.nodes[e][s]=this.nodes[e][s].transform(t)}scale(t){for(let e=0,s=this.nodes.length;e<s;++e)for(let s=0,r=this.nodes[0].length;s<r;++s)this.nodes[e][s]=this.nodes[e][s].scale(t)}}document.querySelectorAll("rect,circle,ellipse,path,text").forEach((r,n)=>{let o=r.getAttribute("id");o||(o="patchjs_shape"+n,r.setAttribute("id",o));const i=r.style.fill.match(/^url\(\s*"?\s*#([^\s"]+)"?\s*\)/),a=r.style.stroke.match(/^url\(\s*"?\s*#([^\s"]+)"?\s*\)/);if(i&&i[1]){const a=document.getElementById(i[1]);if(a&&"meshgradient"===a.nodeName){const i=r.getBBox();let l=document.createElementNS(s,"canvas");d(l,{width:i.width,height:i.height});const c=l.getContext("2d");let u=c.createImageData(i.width,i.height);const f=new b(a);"objectBoundingBox"===a.getAttribute("gradientUnits")&&f.scale(new x(i.width,i.height));const p=a.getAttribute("gradientTransform");null!=p&&f.transform(h(p)),"userSpaceOnUse"===a.getAttribute("gradientUnits")&&f.transform(new x(-i.x,-i.y)),f.paintMesh(u.data,l.width),c.putImageData(u,0,0);const y=document.createElementNS(t,"image");d(y,{width:i.width,height:i.height,x:i.x,y:i.y});let g=l.toDataURL();y.setAttributeNS(e,"xlink:href",g),r.parentNode.insertBefore(y,r),r.style.fill="none";const w=document.createElementNS(t,"use");w.setAttributeNS(e,"xlink:href","#"+o);const m="patchjs_clip"+n,M=document.createElementNS(t,"clipPath");M.setAttribute("id",m),M.appendChild(w),r.parentElement.insertBefore(M,r),y.setAttribute("clip-path","url(#"+m+")"),u=null,l=null,g=null}}if(a&&a[1]){const o=document.getElementById(a[1]);if(o&&"meshgradient"===o.nodeName){const i=parseFloat(r.style.strokeWidth.slice(0,-2))*(parseFloat(r.style.strokeMiterlimit)||parseFloat(r.getAttribute("stroke-miterlimit"))||1),a=r.getBBox(),l=Math.trunc(a.width+i),c=Math.trunc(a.height+i),u=Math.trunc(a.x-i/2),f=Math.trunc(a.y-i/2);let p=document.createElementNS(s,"canvas");d(p,{width:l,height:c});const y=p.getContext("2d");let g=y.createImageData(l,c);const w=new b(o);"objectBoundingBox"===o.getAttribute("gradientUnits")&&w.scale(new x(l,c));const m=o.getAttribute("gradientTransform");null!=m&&w.transform(h(m)),"userSpaceOnUse"===o.getAttribute("gradientUnits")&&w.transform(new x(-u,-f)),w.paintMesh(g.data,p.width),y.putImageData(g,0,0);const M=document.createElementNS(t,"image");d(M,{width:l,height:c,x:0,y:0});let S=p.toDataURL();M.setAttributeNS(e,"xlink:href",S);const k="pattern_clip"+n,A=document.createElementNS(t,"pattern");d(A,{id:k,patternUnits:"userSpaceOnUse",width:l,height:c,x:u,y:f}),A.appendChild(M),o.parentNode.appendChild(A),r.style.stroke="url(#"+k+")",g=null,p=null,S=null}}})}();
</script>
</svg>
|