lew-ui 1.1.22 → 1.1.24

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,71 @@
1
+ pre code.hljs {
2
+ display: block;
3
+ overflow-x: auto;
4
+ padding: 1em;
5
+ }
6
+ code.hljs {
7
+ padding: 3px 5px;
8
+ }
9
+ .hljs {
10
+ color: #abb2bf;
11
+ background: #282c34;
12
+ }
13
+ .hljs-comment,
14
+ .hljs-quote {
15
+ color: #5c6370;
16
+ font-style: italic;
17
+ }
18
+ .hljs-doctag,
19
+ .hljs-formula,
20
+ .hljs-keyword {
21
+ color: #c678dd;
22
+ }
23
+ .hljs-deletion,
24
+ .hljs-name,
25
+ .hljs-section,
26
+ .hljs-selector-tag,
27
+ .hljs-subst {
28
+ color: #e06c75;
29
+ }
30
+ .hljs-literal {
31
+ color: #56b6c2;
32
+ }
33
+ .hljs-addition,
34
+ .hljs-attribute,
35
+ .hljs-meta .hljs-string,
36
+ .hljs-regexp,
37
+ .hljs-string {
38
+ color: #98c379;
39
+ }
40
+ .hljs-attr,
41
+ .hljs-number,
42
+ .hljs-selector-attr,
43
+ .hljs-selector-class,
44
+ .hljs-selector-pseudo,
45
+ .hljs-template-variable,
46
+ .hljs-type,
47
+ .hljs-variable {
48
+ color: #d19a66;
49
+ }
50
+ .hljs-bullet,
51
+ .hljs-link,
52
+ .hljs-meta,
53
+ .hljs-selector-id,
54
+ .hljs-symbol,
55
+ .hljs-title {
56
+ color: #61aeee;
57
+ }
58
+ .hljs-built_in,
59
+ .hljs-class .hljs-title,
60
+ .hljs-title.class_ {
61
+ color: #e6c07b;
62
+ }
63
+ .hljs-emphasis {
64
+ font-style: italic;
65
+ }
66
+ .hljs-strong {
67
+ font-weight: 700;
68
+ }
69
+ .hljs-link {
70
+ text-decoration: underline;
71
+ }
Binary file
@@ -0,0 +1,540 @@
1
+ /**
2
+ * Minified by jsDelivr using Terser v5.10.0.
3
+ * Original file: /npm/canvas-confetti@1.5.1/dist/confetti.browser.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ !(function(t, e) {
8
+ !(function t(e, n, a, i) {
9
+ var o = !!(
10
+ e.Worker &&
11
+ e.Blob &&
12
+ e.Promise &&
13
+ e.OffscreenCanvas &&
14
+ e.OffscreenCanvasRenderingContext2D &&
15
+ e.HTMLCanvasElement &&
16
+ e.HTMLCanvasElement.prototype.transferControlToOffscreen &&
17
+ e.URL &&
18
+ e.URL.createObjectURL
19
+ );
20
+
21
+ function r() {}
22
+
23
+ function l(t) {
24
+ var a = n.exports.Promise,
25
+ i = void 0 !== a ? a : e.Promise;
26
+ return 'function' === typeof i ? new i(t) : (t(r, r), null);
27
+ }
28
+ var c,
29
+ s,
30
+ u,
31
+ d,
32
+ f,
33
+ h,
34
+ m,
35
+ g,
36
+ b,
37
+ v =
38
+ ((u = Math.floor(1e3 / 60)),
39
+ (d = {}),
40
+ (f = 0),
41
+ 'function' === typeof requestAnimationFrame &&
42
+ 'function' === typeof cancelAnimationFrame ?
43
+ ((c = function(t) {
44
+ var e = Math.random();
45
+ return (
46
+ (d[e] = requestAnimationFrame(function n(a) {
47
+ f === a || f + u - 1 < a ?
48
+ ((f = a), delete d[e], t()) :
49
+ (d[e] = requestAnimationFrame(n));
50
+ })),
51
+ e
52
+ );
53
+ }),
54
+ (s = function(t) {
55
+ d[t] && cancelAnimationFrame(d[t]);
56
+ })) :
57
+ ((c = function(t) {
58
+ return setTimeout(t, u);
59
+ }),
60
+ (s = function(t) {
61
+ return clearTimeout(t);
62
+ })), { frame: c, cancel: s }),
63
+ p =
64
+ ((g = {}),
65
+ function() {
66
+ if (h) return h;
67
+ if (!a && o) {
68
+ var e = [
69
+ 'var CONFETTI, SIZE = {}, module = {};',
70
+ '(' + t.toString() + ')(this, module, true, SIZE);',
71
+ 'onmessage = function(msg) {',
72
+ ' if (msg.data.options) {',
73
+ ' CONFETTI(msg.data.options).then(function () {',
74
+ ' if (msg.data.callback) {',
75
+ ' postMessage({ callback: msg.data.callback });',
76
+ ' }',
77
+ ' });',
78
+ ' } else if (msg.data.reset) {',
79
+ ' CONFETTI.reset();',
80
+ ' } else if (msg.data.resize) {',
81
+ ' SIZE.width = msg.data.resize.width;',
82
+ ' SIZE.height = msg.data.resize.height;',
83
+ ' } else if (msg.data.canvas) {',
84
+ ' SIZE.width = msg.data.canvas.width;',
85
+ ' SIZE.height = msg.data.canvas.height;',
86
+ ' CONFETTI = module.exports.create(msg.data.canvas);',
87
+ ' }',
88
+ '}',
89
+ ].join('\n');
90
+ try {
91
+ h = new Worker(URL.createObjectURL(new Blob([e])));
92
+ } catch (t) {
93
+ return (
94
+ void 0 !== typeof console &&
95
+ 'function' === typeof console.warn &&
96
+ console.warn('🎊 Could not load worker', t),
97
+ null
98
+ );
99
+ }!(function(t) {
100
+ function e(e, n) {
101
+ t.postMessage({
102
+ options: e || {},
103
+ callback: n,
104
+ });
105
+ }
106
+ (t.init = function(e) {
107
+ var n = e.transferControlToOffscreen();
108
+ t.postMessage({ canvas: n }, [n]);
109
+ }),
110
+ (t.fire = function(n, a, i) {
111
+ if (m) return e(n, null), m;
112
+ var o = Math.random().toString(36).slice(2);
113
+ return (m = l(function(a) {
114
+ function r(e) {
115
+ e.data.callback === o &&
116
+ (delete g[o],
117
+ t.removeEventListener(
118
+ 'message',
119
+ r
120
+ ),
121
+ (m = null),
122
+ i(),
123
+ a());
124
+ }
125
+ t.addEventListener('message', r),
126
+ e(n, o),
127
+ (g[o] = r.bind(null, {
128
+ data: { callback: o },
129
+ }));
130
+ }));
131
+ }),
132
+ (t.reset = function() {
133
+ for (var e in (t.postMessage({ reset: !0 }),
134
+ g))
135
+ g[e](), delete g[e];
136
+ });
137
+ })(h);
138
+ }
139
+ return h;
140
+ }),
141
+ y = {
142
+ particleCount: 50,
143
+ angle: 90,
144
+ spread: 45,
145
+ startVelocity: 45,
146
+ decay: 0.9,
147
+ gravity: 1,
148
+ drift: 0,
149
+ ticks: 200,
150
+ x: 0.5,
151
+ y: 0.5,
152
+ shapes: ['square', 'circle'],
153
+ zIndex: 100,
154
+ colors: [
155
+ '#26ccff',
156
+ '#a25afd',
157
+ '#ff5e7e',
158
+ '#88ff5a',
159
+ '#fcff42',
160
+ '#ffa62d',
161
+ '#ff36ff',
162
+ ],
163
+ disableForReducedMotion: !1,
164
+ scalar: 1,
165
+ };
166
+
167
+ function M(t, e, n) {
168
+ return (function(t, e) {
169
+ return e ? e(t) : t;
170
+ })(t && null != t[e] ? t[e] : y[e], n);
171
+ }
172
+
173
+ function w(t) {
174
+ return t < 0 ? 0 : Math.floor(t);
175
+ }
176
+
177
+ function x(t) {
178
+ return parseInt(t, 16);
179
+ }
180
+
181
+ function C(t) {
182
+ return t.map(k);
183
+ }
184
+
185
+ function k(t) {
186
+ var e = String(t).replace(/[^0-9a-f]/gi, '');
187
+ return (
188
+ e.length < 6 && (e = e[0] + e[0] + e[1] + e[1] + e[2] + e[2]), {
189
+ r: x(e.substring(0, 2)),
190
+ g: x(e.substring(2, 4)),
191
+ b: x(e.substring(4, 6)),
192
+ }
193
+ );
194
+ }
195
+
196
+ function I(t) {
197
+ (t.width = document.documentElement.clientWidth),
198
+ (t.height = document.documentElement.clientHeight);
199
+ }
200
+
201
+ function S(t) {
202
+ var e = t.getBoundingClientRect();
203
+ (t.width = e.width), (t.height = e.height);
204
+ }
205
+
206
+ function T(t, e, n, o, r) {
207
+ var c,
208
+ s,
209
+ u = e.slice(),
210
+ d = t.getContext('2d'),
211
+ f = l(function(e) {
212
+ function l() {
213
+ (c = s = null),
214
+ d.clearRect(0, 0, o.width, o.height),
215
+ r(),
216
+ e();
217
+ }
218
+ (c = v.frame(function e() {
219
+ !a ||
220
+ (o.width === i.width && o.height === i.height) ||
221
+ ((o.width = t.width = i.width),
222
+ (o.height = t.height = i.height)),
223
+ o.width ||
224
+ o.height ||
225
+ (n(t),
226
+ (o.width = t.width),
227
+ (o.height = t.height)),
228
+ d.clearRect(0, 0, o.width, o.height),
229
+ (u = u.filter(function(t) {
230
+ return (function(t, e) {
231
+ (e.x +=
232
+ Math.cos(e.angle2D) * e.velocity +
233
+ e.drift),
234
+ (e.y +=
235
+ Math.sin(e.angle2D) * e.velocity +
236
+ e.gravity),
237
+ (e.wobble += e.wobbleSpeed),
238
+ (e.velocity *= e.decay),
239
+ (e.tiltAngle += 0.1),
240
+ (e.tiltSin = Math.sin(e.tiltAngle)),
241
+ (e.tiltCos = Math.cos(e.tiltAngle)),
242
+ (e.random = Math.random() + 2),
243
+ (e.wobbleX =
244
+ e.x +
245
+ 10 * e.scalar * Math.cos(e.wobble)),
246
+ (e.wobbleY =
247
+ e.y +
248
+ 10 * e.scalar * Math.sin(e.wobble));
249
+ var n = e.tick++/ e.totalTicks,
250
+ a = e.x + e.random * e.tiltCos,
251
+ i = e.y + e.random * e.tiltSin,
252
+ o = e.wobbleX + e.random * e.tiltCos,
253
+ r = e.wobbleY + e.random * e.tiltSin;
254
+ return (
255
+ (t.fillStyle =
256
+ 'rgba(' +
257
+ e.color.r +
258
+ ', ' +
259
+ e.color.g +
260
+ ', ' +
261
+ e.color.b +
262
+ ', ' +
263
+ (1 - n) +
264
+ ')'),
265
+ t.beginPath(),
266
+ 'circle' === e.shape ?
267
+ t.ellipse ?
268
+ t.ellipse(
269
+ e.x,
270
+ e.y,
271
+ Math.abs(o - a) *
272
+ e.ovalScalar,
273
+ Math.abs(r - i) *
274
+ e.ovalScalar,
275
+ (Math.PI / 10) * e.wobble,
276
+ 0,
277
+ 2 * Math.PI
278
+ ) :
279
+ (function(
280
+ t,
281
+ e,
282
+ n,
283
+ a,
284
+ i,
285
+ o,
286
+ r,
287
+ l,
288
+ c
289
+ ) {
290
+ t.save(),
291
+ t.translate(e, n),
292
+ t.rotate(o),
293
+ t.scale(a, i),
294
+ t.arc(
295
+ 0,
296
+ 0,
297
+ 1,
298
+ r,
299
+ l,
300
+ c
301
+ ),
302
+ t.restore();
303
+ })(
304
+ t,
305
+ e.x,
306
+ e.y,
307
+ Math.abs(o - a) *
308
+ e.ovalScalar,
309
+ Math.abs(r - i) *
310
+ e.ovalScalar,
311
+ (Math.PI / 10) * e.wobble,
312
+ 0,
313
+ 2 * Math.PI
314
+ ) :
315
+ (t.moveTo(
316
+ Math.floor(e.x),
317
+ Math.floor(e.y)
318
+ ),
319
+ t.lineTo(
320
+ Math.floor(e.wobbleX),
321
+ Math.floor(i)
322
+ ),
323
+ t.lineTo(
324
+ Math.floor(o),
325
+ Math.floor(r)
326
+ ),
327
+ t.lineTo(
328
+ Math.floor(a),
329
+ Math.floor(e.wobbleY)
330
+ )),
331
+ t.closePath(),
332
+ t.fill(),
333
+ e.tick < e.totalTicks
334
+ );
335
+ })(d, t);
336
+ })),
337
+ u.length ? (c = v.frame(e)) : l();
338
+ })),
339
+ (s = l);
340
+ });
341
+ return {
342
+ addFettis: function(t) {
343
+ return (u = u.concat(t)), f;
344
+ },
345
+ canvas: t,
346
+ promise: f,
347
+ reset: function() {
348
+ c && v.cancel(c), s && s();
349
+ },
350
+ };
351
+ }
352
+
353
+ function E(t, n) {
354
+ var a,
355
+ i = !t,
356
+ r = !!M(n || {}, 'resize'),
357
+ c = M(n, 'disableForReducedMotion', Boolean),
358
+ s = o && !!M(n || {}, 'useWorker') ? p() : null,
359
+ u = i ? I : S,
360
+ d = !(!t || !s) && !!t.__confetti_initialized,
361
+ f =
362
+ 'function' === typeof matchMedia &&
363
+ matchMedia('(prefers-reduced-motion)').matches;
364
+
365
+ function h(e, n, i) {
366
+ for (
367
+ var o,
368
+ r,
369
+ l,
370
+ c,
371
+ s,
372
+ d = M(e, 'particleCount', w),
373
+ f = M(e, 'angle', Number),
374
+ h = M(e, 'spread', Number),
375
+ m = M(e, 'startVelocity', Number),
376
+ g = M(e, 'decay', Number),
377
+ b = M(e, 'gravity', Number),
378
+ v = M(e, 'drift', Number),
379
+ p = M(e, 'colors', C),
380
+ y = M(e, 'ticks', Number),
381
+ x = M(e, 'shapes'),
382
+ k = M(e, 'scalar'),
383
+ I = (function(t) {
384
+ var e = M(t, 'origin', Object);
385
+ return (
386
+ (e.x = M(e, 'x', Number)),
387
+ (e.y = M(e, 'y', Number)),
388
+ e
389
+ );
390
+ })(e),
391
+ S = d,
392
+ E = [],
393
+ F = t.width * I.x,
394
+ N = t.height * I.y; S--;
395
+
396
+ )
397
+ E.push(
398
+ ((o = {
399
+ x: F,
400
+ y: N,
401
+ angle: f,
402
+ spread: h,
403
+ startVelocity: m,
404
+ color: p[S % p.length],
405
+ shape: x[
406
+ ((c = 0),
407
+ (s = x.length),
408
+ Math.floor(Math.random() * (s - c)) + c)
409
+ ],
410
+ ticks: y,
411
+ decay: g,
412
+ gravity: b,
413
+ drift: v,
414
+ scalar: k,
415
+ }),
416
+ (r = void 0),
417
+ (l = void 0),
418
+ (r = o.angle * (Math.PI / 180)),
419
+ (l = o.spread * (Math.PI / 180)), {
420
+ x: o.x,
421
+ y: o.y,
422
+ wobble: 10 * Math.random(),
423
+ wobbleSpeed: Math.min(
424
+ 0.11,
425
+ 0.1 * Math.random() + 0.05
426
+ ),
427
+ velocity: 0.5 * o.startVelocity +
428
+ Math.random() * o.startVelocity,
429
+ angle2D: -r + (0.5 * l - Math.random() * l),
430
+ tiltAngle: (0.5 * Math.random() + 0.25) * Math.PI,
431
+ color: o.color,
432
+ shape: o.shape,
433
+ tick: 0,
434
+ totalTicks: o.ticks,
435
+ decay: o.decay,
436
+ drift: o.drift,
437
+ random: Math.random() + 2,
438
+ tiltSin: 0,
439
+ tiltCos: 0,
440
+ wobbleX: 0,
441
+ wobbleY: 0,
442
+ gravity: 3 * o.gravity,
443
+ ovalScalar: 0.6,
444
+ scalar: o.scalar,
445
+ })
446
+ );
447
+ return a ? a.addFettis(E) : (a = T(t, E, u, n, i)).promise;
448
+ }
449
+
450
+ function m(n) {
451
+ var o = c || M(n, 'disableForReducedMotion', Boolean),
452
+ m = M(n, 'zIndex', Number);
453
+ if (o && f)
454
+ return l(function(t) {
455
+ t();
456
+ });
457
+ i && a ?
458
+ (t = a.canvas) :
459
+ i &&
460
+ !t &&
461
+ ((t = (function(t) {
462
+ var e = document.createElement('canvas');
463
+ return (
464
+ (e.style.position = 'fixed'),
465
+ (e.style.top = '0px'),
466
+ (e.style.left = '0px'),
467
+ (e.style.pointerEvents = 'none'),
468
+ (e.style.zIndex = t),
469
+ e
470
+ );
471
+ })(m)),
472
+ document.body.appendChild(t)),
473
+ r && !d && u(t);
474
+ var g = { width: t.width, height: t.height };
475
+
476
+ function b() {
477
+ if (s) {
478
+ var e = {
479
+ getBoundingClientRect: function() {
480
+ if (!i) return t.getBoundingClientRect();
481
+ },
482
+ };
483
+ return (
484
+ u(e),
485
+ void s.postMessage({
486
+ resize: { width: e.width, height: e.height },
487
+ })
488
+ );
489
+ }
490
+ g.width = g.height = null;
491
+ }
492
+
493
+ function v() {
494
+ (a = null),
495
+ r && e.removeEventListener('resize', b),
496
+ i &&
497
+ t &&
498
+ (document.body.removeChild(t),
499
+ (t = null),
500
+ (d = !1));
501
+ }
502
+ return (
503
+ s && !d && s.init(t),
504
+ (d = !0),
505
+ s && (t.__confetti_initialized = !0),
506
+ r && e.addEventListener('resize', b, !1),
507
+ s ? s.fire(n, g, v) : h(n, g, v)
508
+ );
509
+ }
510
+ return (
511
+ (m.reset = function() {
512
+ s && s.reset(), a && a.reset();
513
+ }),
514
+ m
515
+ );
516
+ }
517
+
518
+ function F() {
519
+ return b || (b = E(null, { useWorker: !0, resize: !0 })), b;
520
+ }
521
+ (n.exports = function() {
522
+ return F().apply(this, arguments);
523
+ }),
524
+ (n.exports.reset = function() {
525
+ F().reset();
526
+ }),
527
+ (n.exports.create = E);
528
+ })(
529
+ (function() {
530
+ return void 0 !== t ?
531
+ t :
532
+ 'undefined' != typeof self ?
533
+ self :
534
+ this || {};
535
+ })(),
536
+ e, !1
537
+ ),
538
+ (t.confetti = e.exports);
539
+ })(window, {});
540
+ //# sourceMappingURL=/sm/ab60d7fb9bf5b5ded42c77782b65b071de85f56c21da42948364d6b2b1961762.map
Binary file