@starasia/progress 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1174 @@
1
+ import Sr from "react";
2
+ var Q = { exports: {} }, I = {};
3
+ /**
4
+ * @license React
5
+ * react-jsx-runtime.development.js
6
+ *
7
+ * Copyright (c) Facebook, Inc. and its affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
12
+ var Tr;
13
+ function da() {
14
+ return Tr || (Tr = 1, process.env.NODE_ENV !== "production" && function() {
15
+ var m = Sr, b = Symbol.for("react.element"), h = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), Y = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), E = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), O = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), L = Symbol.for("react.offscreen"), rr = Symbol.iterator, xr = "@@iterator";
16
+ function Pr(r) {
17
+ if (r === null || typeof r != "object")
18
+ return null;
19
+ var a = rr && r[rr] || r[xr];
20
+ return typeof a == "function" ? a : null;
21
+ }
22
+ var S = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
23
+ function c(r) {
24
+ {
25
+ for (var a = arguments.length, o = new Array(a > 1 ? a - 1 : 0), e = 1; e < a; e++)
26
+ o[e - 1] = arguments[e];
27
+ jr("error", r, o);
28
+ }
29
+ }
30
+ function jr(r, a, o) {
31
+ {
32
+ var e = S.ReactDebugCurrentFrame, t = e.getStackAddendum();
33
+ t !== "" && (a += "%s", o = o.concat([t]));
34
+ var i = o.map(function(s) {
35
+ return String(s);
36
+ });
37
+ i.unshift("Warning: " + a), Function.prototype.apply.call(console[r], console, i);
38
+ }
39
+ }
40
+ var Ar = !1, Dr = !1, Fr = !1, Ir = !1, $r = !1, ar;
41
+ ar = Symbol.for("react.module.reference");
42
+ function Wr(r) {
43
+ return !!(typeof r == "string" || typeof r == "function" || r === w || r === Y || $r || r === C || r === O || r === p || Ir || r === L || Ar || Dr || Fr || typeof r == "object" && r !== null && (r.$$typeof === R || r.$$typeof === k || r.$$typeof === j || r.$$typeof === E || r.$$typeof === g || // This needs to include all possible module reference object
44
+ // types supported by any Flight configuration anywhere since
45
+ // we don't know which Flight build this will end up being used
46
+ // with.
47
+ r.$$typeof === ar || r.getModuleId !== void 0));
48
+ }
49
+ function Yr(r, a, o) {
50
+ var e = r.displayName;
51
+ if (e)
52
+ return e;
53
+ var t = a.displayName || a.name || "";
54
+ return t !== "" ? o + "(" + t + ")" : o;
55
+ }
56
+ function or(r) {
57
+ return r.displayName || "Context";
58
+ }
59
+ function y(r) {
60
+ if (r == null)
61
+ return null;
62
+ if (typeof r.tag == "number" && c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
63
+ return r.displayName || r.name || null;
64
+ if (typeof r == "string")
65
+ return r;
66
+ switch (r) {
67
+ case w:
68
+ return "Fragment";
69
+ case h:
70
+ return "Portal";
71
+ case Y:
72
+ return "Profiler";
73
+ case C:
74
+ return "StrictMode";
75
+ case O:
76
+ return "Suspense";
77
+ case p:
78
+ return "SuspenseList";
79
+ }
80
+ if (typeof r == "object")
81
+ switch (r.$$typeof) {
82
+ case E:
83
+ var a = r;
84
+ return or(a) + ".Consumer";
85
+ case j:
86
+ var o = r;
87
+ return or(o._context) + ".Provider";
88
+ case g:
89
+ return Yr(r, r.render, "ForwardRef");
90
+ case k:
91
+ var e = r.displayName || null;
92
+ return e !== null ? e : y(r.type) || "Memo";
93
+ case R: {
94
+ var t = r, i = t._payload, s = t._init;
95
+ try {
96
+ return y(s(i));
97
+ } catch {
98
+ return null;
99
+ }
100
+ }
101
+ }
102
+ return null;
103
+ }
104
+ var _ = Object.assign, A = 0, er, nr, sr, tr, ir, ur, lr;
105
+ function cr() {
106
+ }
107
+ cr.__reactDisabledLog = !0;
108
+ function Lr() {
109
+ {
110
+ if (A === 0) {
111
+ er = console.log, nr = console.info, sr = console.warn, tr = console.error, ir = console.group, ur = console.groupCollapsed, lr = console.groupEnd;
112
+ var r = {
113
+ configurable: !0,
114
+ enumerable: !0,
115
+ value: cr,
116
+ writable: !0
117
+ };
118
+ Object.defineProperties(console, {
119
+ info: r,
120
+ log: r,
121
+ warn: r,
122
+ error: r,
123
+ group: r,
124
+ groupCollapsed: r,
125
+ groupEnd: r
126
+ });
127
+ }
128
+ A++;
129
+ }
130
+ }
131
+ function Nr() {
132
+ {
133
+ if (A--, A === 0) {
134
+ var r = {
135
+ configurable: !0,
136
+ enumerable: !0,
137
+ writable: !0
138
+ };
139
+ Object.defineProperties(console, {
140
+ log: _({}, r, {
141
+ value: er
142
+ }),
143
+ info: _({}, r, {
144
+ value: nr
145
+ }),
146
+ warn: _({}, r, {
147
+ value: sr
148
+ }),
149
+ error: _({}, r, {
150
+ value: tr
151
+ }),
152
+ group: _({}, r, {
153
+ value: ir
154
+ }),
155
+ groupCollapsed: _({}, r, {
156
+ value: ur
157
+ }),
158
+ groupEnd: _({}, r, {
159
+ value: lr
160
+ })
161
+ });
162
+ }
163
+ A < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
164
+ }
165
+ }
166
+ var B = S.ReactCurrentDispatcher, J;
167
+ function N(r, a, o) {
168
+ {
169
+ if (J === void 0)
170
+ try {
171
+ throw Error();
172
+ } catch (t) {
173
+ var e = t.stack.trim().match(/\n( *(at )?)/);
174
+ J = e && e[1] || "";
175
+ }
176
+ return `
177
+ ` + J + r;
178
+ }
179
+ }
180
+ var q = !1, V;
181
+ {
182
+ var Vr = typeof WeakMap == "function" ? WeakMap : Map;
183
+ V = new Vr();
184
+ }
185
+ function gr(r, a) {
186
+ if (!r || q)
187
+ return "";
188
+ {
189
+ var o = V.get(r);
190
+ if (o !== void 0)
191
+ return o;
192
+ }
193
+ var e;
194
+ q = !0;
195
+ var t = Error.prepareStackTrace;
196
+ Error.prepareStackTrace = void 0;
197
+ var i;
198
+ i = B.current, B.current = null, Lr();
199
+ try {
200
+ if (a) {
201
+ var s = function() {
202
+ throw Error();
203
+ };
204
+ if (Object.defineProperty(s.prototype, "props", {
205
+ set: function() {
206
+ throw Error();
207
+ }
208
+ }), typeof Reflect == "object" && Reflect.construct) {
209
+ try {
210
+ Reflect.construct(s, []);
211
+ } catch (f) {
212
+ e = f;
213
+ }
214
+ Reflect.construct(r, [], s);
215
+ } else {
216
+ try {
217
+ s.call();
218
+ } catch (f) {
219
+ e = f;
220
+ }
221
+ r.call(s.prototype);
222
+ }
223
+ } else {
224
+ try {
225
+ throw Error();
226
+ } catch (f) {
227
+ e = f;
228
+ }
229
+ r();
230
+ }
231
+ } catch (f) {
232
+ if (f && e && typeof f.stack == "string") {
233
+ for (var n = f.stack.split(`
234
+ `), d = e.stack.split(`
235
+ `), u = n.length - 1, l = d.length - 1; u >= 1 && l >= 0 && n[u] !== d[l]; )
236
+ l--;
237
+ for (; u >= 1 && l >= 0; u--, l--)
238
+ if (n[u] !== d[l]) {
239
+ if (u !== 1 || l !== 1)
240
+ do
241
+ if (u--, l--, l < 0 || n[u] !== d[l]) {
242
+ var v = `
243
+ ` + n[u].replace(" at new ", " at ");
244
+ return r.displayName && v.includes("<anonymous>") && (v = v.replace("<anonymous>", r.displayName)), typeof r == "function" && V.set(r, v), v;
245
+ }
246
+ while (u >= 1 && l >= 0);
247
+ break;
248
+ }
249
+ }
250
+ } finally {
251
+ q = !1, B.current = i, Nr(), Error.prepareStackTrace = t;
252
+ }
253
+ var P = r ? r.displayName || r.name : "", T = P ? N(P) : "";
254
+ return typeof r == "function" && V.set(r, T), T;
255
+ }
256
+ function Mr(r, a, o) {
257
+ return gr(r, !1);
258
+ }
259
+ function Ur(r) {
260
+ var a = r.prototype;
261
+ return !!(a && a.isReactComponent);
262
+ }
263
+ function M(r, a, o) {
264
+ if (r == null)
265
+ return "";
266
+ if (typeof r == "function")
267
+ return gr(r, Ur(r));
268
+ if (typeof r == "string")
269
+ return N(r);
270
+ switch (r) {
271
+ case O:
272
+ return N("Suspense");
273
+ case p:
274
+ return N("SuspenseList");
275
+ }
276
+ if (typeof r == "object")
277
+ switch (r.$$typeof) {
278
+ case g:
279
+ return Mr(r.render);
280
+ case k:
281
+ return M(r.type, a, o);
282
+ case R: {
283
+ var e = r, t = e._payload, i = e._init;
284
+ try {
285
+ return M(i(t), a, o);
286
+ } catch {
287
+ }
288
+ }
289
+ }
290
+ return "";
291
+ }
292
+ var D = Object.prototype.hasOwnProperty, dr = {}, fr = S.ReactDebugCurrentFrame;
293
+ function U(r) {
294
+ if (r) {
295
+ var a = r._owner, o = M(r.type, r._source, a ? a.type : null);
296
+ fr.setExtraStackFrame(o);
297
+ } else
298
+ fr.setExtraStackFrame(null);
299
+ }
300
+ function Br(r, a, o, e, t) {
301
+ {
302
+ var i = Function.call.bind(D);
303
+ for (var s in r)
304
+ if (i(r, s)) {
305
+ var n = void 0;
306
+ try {
307
+ if (typeof r[s] != "function") {
308
+ var d = Error((e || "React class") + ": " + o + " type `" + s + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[s] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
309
+ throw d.name = "Invariant Violation", d;
310
+ }
311
+ n = r[s](a, s, e, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
312
+ } catch (u) {
313
+ n = u;
314
+ }
315
+ n && !(n instanceof Error) && (U(t), c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", e || "React class", o, s, typeof n), U(null)), n instanceof Error && !(n.message in dr) && (dr[n.message] = !0, U(t), c("Failed %s type: %s", o, n.message), U(null));
316
+ }
317
+ }
318
+ }
319
+ var Jr = Array.isArray;
320
+ function K(r) {
321
+ return Jr(r);
322
+ }
323
+ function qr(r) {
324
+ {
325
+ var a = typeof Symbol == "function" && Symbol.toStringTag, o = a && r[Symbol.toStringTag] || r.constructor.name || "Object";
326
+ return o;
327
+ }
328
+ }
329
+ function Kr(r) {
330
+ try {
331
+ return pr(r), !1;
332
+ } catch {
333
+ return !0;
334
+ }
335
+ }
336
+ function pr(r) {
337
+ return "" + r;
338
+ }
339
+ function br(r) {
340
+ if (Kr(r))
341
+ return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qr(r)), pr(r);
342
+ }
343
+ var F = S.ReactCurrentOwner, zr = {
344
+ key: !0,
345
+ ref: !0,
346
+ __self: !0,
347
+ __source: !0
348
+ }, vr, yr, z;
349
+ z = {};
350
+ function Gr(r) {
351
+ if (D.call(r, "ref")) {
352
+ var a = Object.getOwnPropertyDescriptor(r, "ref").get;
353
+ if (a && a.isReactWarning)
354
+ return !1;
355
+ }
356
+ return r.ref !== void 0;
357
+ }
358
+ function Xr(r) {
359
+ if (D.call(r, "key")) {
360
+ var a = Object.getOwnPropertyDescriptor(r, "key").get;
361
+ if (a && a.isReactWarning)
362
+ return !1;
363
+ }
364
+ return r.key !== void 0;
365
+ }
366
+ function Hr(r, a) {
367
+ if (typeof r.ref == "string" && F.current && a && F.current.stateNode !== a) {
368
+ var o = y(F.current.type);
369
+ z[o] || (c('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', y(F.current.type), r.ref), z[o] = !0);
370
+ }
371
+ }
372
+ function Zr(r, a) {
373
+ {
374
+ var o = function() {
375
+ vr || (vr = !0, c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
376
+ };
377
+ o.isReactWarning = !0, Object.defineProperty(r, "key", {
378
+ get: o,
379
+ configurable: !0
380
+ });
381
+ }
382
+ }
383
+ function Qr(r, a) {
384
+ {
385
+ var o = function() {
386
+ yr || (yr = !0, c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
387
+ };
388
+ o.isReactWarning = !0, Object.defineProperty(r, "ref", {
389
+ get: o,
390
+ configurable: !0
391
+ });
392
+ }
393
+ }
394
+ var ra = function(r, a, o, e, t, i, s) {
395
+ var n = {
396
+ // This tag allows us to uniquely identify this as a React Element
397
+ $$typeof: b,
398
+ // Built-in properties that belong on the element
399
+ type: r,
400
+ key: a,
401
+ ref: o,
402
+ props: s,
403
+ // Record the component responsible for creating this element.
404
+ _owner: i
405
+ };
406
+ return n._store = {}, Object.defineProperty(n._store, "validated", {
407
+ configurable: !1,
408
+ enumerable: !1,
409
+ writable: !0,
410
+ value: !1
411
+ }), Object.defineProperty(n, "_self", {
412
+ configurable: !1,
413
+ enumerable: !1,
414
+ writable: !1,
415
+ value: e
416
+ }), Object.defineProperty(n, "_source", {
417
+ configurable: !1,
418
+ enumerable: !1,
419
+ writable: !1,
420
+ value: t
421
+ }), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
422
+ };
423
+ function aa(r, a, o, e, t) {
424
+ {
425
+ var i, s = {}, n = null, d = null;
426
+ o !== void 0 && (br(o), n = "" + o), Xr(a) && (br(a.key), n = "" + a.key), Gr(a) && (d = a.ref, Hr(a, t));
427
+ for (i in a)
428
+ D.call(a, i) && !zr.hasOwnProperty(i) && (s[i] = a[i]);
429
+ if (r && r.defaultProps) {
430
+ var u = r.defaultProps;
431
+ for (i in u)
432
+ s[i] === void 0 && (s[i] = u[i]);
433
+ }
434
+ if (n || d) {
435
+ var l = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
436
+ n && Zr(s, l), d && Qr(s, l);
437
+ }
438
+ return ra(r, n, d, t, e, F.current, s);
439
+ }
440
+ }
441
+ var G = S.ReactCurrentOwner, mr = S.ReactDebugCurrentFrame;
442
+ function x(r) {
443
+ if (r) {
444
+ var a = r._owner, o = M(r.type, r._source, a ? a.type : null);
445
+ mr.setExtraStackFrame(o);
446
+ } else
447
+ mr.setExtraStackFrame(null);
448
+ }
449
+ var X;
450
+ X = !1;
451
+ function H(r) {
452
+ return typeof r == "object" && r !== null && r.$$typeof === b;
453
+ }
454
+ function kr() {
455
+ {
456
+ if (G.current) {
457
+ var r = y(G.current.type);
458
+ if (r)
459
+ return `
460
+
461
+ Check the render method of \`` + r + "`.";
462
+ }
463
+ return "";
464
+ }
465
+ }
466
+ function oa(r) {
467
+ {
468
+ if (r !== void 0) {
469
+ var a = r.fileName.replace(/^.*[\\\/]/, ""), o = r.lineNumber;
470
+ return `
471
+
472
+ Check your code at ` + a + ":" + o + ".";
473
+ }
474
+ return "";
475
+ }
476
+ }
477
+ var hr = {};
478
+ function ea(r) {
479
+ {
480
+ var a = kr();
481
+ if (!a) {
482
+ var o = typeof r == "string" ? r : r.displayName || r.name;
483
+ o && (a = `
484
+
485
+ Check the top-level render call using <` + o + ">.");
486
+ }
487
+ return a;
488
+ }
489
+ }
490
+ function wr(r, a) {
491
+ {
492
+ if (!r._store || r._store.validated || r.key != null)
493
+ return;
494
+ r._store.validated = !0;
495
+ var o = ea(a);
496
+ if (hr[o])
497
+ return;
498
+ hr[o] = !0;
499
+ var e = "";
500
+ r && r._owner && r._owner !== G.current && (e = " It was passed a child from " + y(r._owner.type) + "."), x(r), c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', o, e), x(null);
501
+ }
502
+ }
503
+ function Er(r, a) {
504
+ {
505
+ if (typeof r != "object")
506
+ return;
507
+ if (K(r))
508
+ for (var o = 0; o < r.length; o++) {
509
+ var e = r[o];
510
+ H(e) && wr(e, a);
511
+ }
512
+ else if (H(r))
513
+ r._store && (r._store.validated = !0);
514
+ else if (r) {
515
+ var t = Pr(r);
516
+ if (typeof t == "function" && t !== r.entries)
517
+ for (var i = t.call(r), s; !(s = i.next()).done; )
518
+ H(s.value) && wr(s.value, a);
519
+ }
520
+ }
521
+ }
522
+ function na(r) {
523
+ {
524
+ var a = r.type;
525
+ if (a == null || typeof a == "string")
526
+ return;
527
+ var o;
528
+ if (typeof a == "function")
529
+ o = a.propTypes;
530
+ else if (typeof a == "object" && (a.$$typeof === g || // Note: Memo only checks outer props here.
531
+ // Inner props are checked in the reconciler.
532
+ a.$$typeof === k))
533
+ o = a.propTypes;
534
+ else
535
+ return;
536
+ if (o) {
537
+ var e = y(a);
538
+ Br(o, r.props, "prop", e, r);
539
+ } else if (a.PropTypes !== void 0 && !X) {
540
+ X = !0;
541
+ var t = y(a);
542
+ c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", t || "Unknown");
543
+ }
544
+ typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
545
+ }
546
+ }
547
+ function sa(r) {
548
+ {
549
+ for (var a = Object.keys(r.props), o = 0; o < a.length; o++) {
550
+ var e = a[o];
551
+ if (e !== "children" && e !== "key") {
552
+ x(r), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", e), x(null);
553
+ break;
554
+ }
555
+ }
556
+ r.ref !== null && (x(r), c("Invalid attribute `ref` supplied to `React.Fragment`."), x(null));
557
+ }
558
+ }
559
+ var Rr = {};
560
+ function _r(r, a, o, e, t, i) {
561
+ {
562
+ var s = Wr(r);
563
+ if (!s) {
564
+ var n = "";
565
+ (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (n += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
566
+ var d = oa(t);
567
+ d ? n += d : n += kr();
568
+ var u;
569
+ r === null ? u = "null" : K(r) ? u = "array" : r !== void 0 && r.$$typeof === b ? (u = "<" + (y(r.type) || "Unknown") + " />", n = " Did you accidentally export a JSX literal instead of a component?") : u = typeof r, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", u, n);
570
+ }
571
+ var l = aa(r, a, o, t, i);
572
+ if (l == null)
573
+ return l;
574
+ if (s) {
575
+ var v = a.children;
576
+ if (v !== void 0)
577
+ if (e)
578
+ if (K(v)) {
579
+ for (var P = 0; P < v.length; P++)
580
+ Er(v[P], r);
581
+ Object.freeze && Object.freeze(v);
582
+ } else
583
+ c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
584
+ else
585
+ Er(v, r);
586
+ }
587
+ if (D.call(a, "key")) {
588
+ var T = y(r), f = Object.keys(a).filter(function(ga) {
589
+ return ga !== "key";
590
+ }), Z = f.length > 0 ? "{key: someKey, " + f.join(": ..., ") + ": ...}" : "{key: someKey}";
591
+ if (!Rr[T + Z]) {
592
+ var ca = f.length > 0 ? "{" + f.join(": ..., ") + ": ...}" : "{}";
593
+ c(`A props object containing a "key" prop is being spread into JSX:
594
+ let props = %s;
595
+ <%s {...props} />
596
+ React keys must be passed directly to JSX without using spread:
597
+ let props = %s;
598
+ <%s key={someKey} {...props} />`, Z, T, ca, T), Rr[T + Z] = !0;
599
+ }
600
+ }
601
+ return r === w ? sa(l) : na(l), l;
602
+ }
603
+ }
604
+ function ta(r, a, o) {
605
+ return _r(r, a, o, !0);
606
+ }
607
+ function ia(r, a, o) {
608
+ return _r(r, a, o, !1);
609
+ }
610
+ var ua = ia, la = ta;
611
+ I.Fragment = w, I.jsx = ua, I.jsxs = la;
612
+ }()), I;
613
+ }
614
+ var $ = {};
615
+ /**
616
+ * @license React
617
+ * react-jsx-runtime.production.min.js
618
+ *
619
+ * Copyright (c) Facebook, Inc. and its affiliates.
620
+ *
621
+ * This source code is licensed under the MIT license found in the
622
+ * LICENSE file in the root directory of this source tree.
623
+ */
624
+ var Cr;
625
+ function fa() {
626
+ if (Cr)
627
+ return $;
628
+ Cr = 1;
629
+ var m = Sr, b = Symbol.for("react.element"), h = Symbol.for("react.fragment"), w = Object.prototype.hasOwnProperty, C = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, Y = { key: !0, ref: !0, __self: !0, __source: !0 };
630
+ function j(E, g, O) {
631
+ var p, k = {}, R = null, L = null;
632
+ O !== void 0 && (R = "" + O), g.key !== void 0 && (R = "" + g.key), g.ref !== void 0 && (L = g.ref);
633
+ for (p in g)
634
+ w.call(g, p) && !Y.hasOwnProperty(p) && (k[p] = g[p]);
635
+ if (E && E.defaultProps)
636
+ for (p in g = E.defaultProps, g)
637
+ k[p] === void 0 && (k[p] = g[p]);
638
+ return { $$typeof: b, type: E, key: R, ref: L, props: k, _owner: C.current };
639
+ }
640
+ return $.Fragment = h, $.jsx = j, $.jsxs = j, $;
641
+ }
642
+ process.env.NODE_ENV === "production" ? Q.exports = fa() : Q.exports = da();
643
+ var W = Q.exports;
644
+ const pa = `@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
645
+
646
+ :root {
647
+ /* gray */
648
+ --starasia-ui-color-gray-50: #f9fafb;
649
+ --starasia-ui-color-gray-100: #f3f4f6;
650
+ --starasia-ui-color-gray-200: #e5e7eb;
651
+ --starasia-ui-color-gray-300: #d1d5db;
652
+ --starasia-ui-color-gray-400: #9ca3af;
653
+ --starasia-ui-color-gray-500: #6b7280;
654
+ --starasia-ui-color-gray-600: #4b5563;
655
+ --starasia-ui-color-gray-700: #374151;
656
+ --starasia-ui-color-gray-800: #1f2937;
657
+ --starasia-ui-color-gray-900: #111827;
658
+ --starasia-ui-color-gray-950: #030712;
659
+
660
+ /* red */
661
+ --starasia-ui-color-red-50: #fef2f2;
662
+ --starasia-ui-color-red-100: #fee2e2;
663
+ --starasia-ui-color-red-200: #fecaca;
664
+ --starasia-ui-color-red-300: #fca5a5;
665
+ --starasia-ui-color-red-400: #f87171;
666
+ --starasia-ui-color-red-500: #ef4444;
667
+ --starasia-ui-color-red-600: rgb(220, 38, 38);
668
+ --starasia-ui-color-red-700: #b91c1c;
669
+ --starasia-ui-color-red-800: #991b1b;
670
+ --starasia-ui-color-red-900: #7f1d1d;
671
+ --starasia-ui-color-red-950: #450a0a;
672
+
673
+ /* orange */
674
+ --starasia-ui-color-orange-50: #fff7ed;
675
+ --starasia-ui-color-orange-100: #ffedd5;
676
+ --starasia-ui-color-orange-200: #fed7aa;
677
+ --starasia-ui-color-orange-300: #fdba74;
678
+ --starasia-ui-color-orange-400: #fb923c;
679
+ --starasia-ui-color-orange-500: #f97316;
680
+ --starasia-ui-color-orange-600: #ea580c;
681
+ --starasia-ui-color-orange-700: #c2410c;
682
+ --starasia-ui-color-orange-800: #9a3412;
683
+ --starasia-ui-color-orange-900: #7c2d12;
684
+ --starasia-ui-color-orange-950: #431407;
685
+
686
+ /* yellow */
687
+ --starasia-ui-color-yellow-50: #fefce8;
688
+ --starasia-ui-color-yellow-100: #fef9c3;
689
+ --starasia-ui-color-yellow-200: #fef08a;
690
+ --starasia-ui-color-yellow-300: #fde047;
691
+ --starasia-ui-color-yellow-400: #facc15;
692
+ --starasia-ui-color-yellow-500: #eab308;
693
+ --starasia-ui-color-yellow-600: rgb(202, 138, 4);
694
+ --starasia-ui-color-yellow-700: #a16207;
695
+ --starasia-ui-color-yellow-800: #854d0e;
696
+ --starasia-ui-color-yellow-900: #713f12;
697
+ --starasia-ui-color-yellow-950: #422006;
698
+
699
+ /* green */
700
+ --starasia-ui-color-green-50: #f0fdf4;
701
+ --starasia-ui-color-green-100: #dcfce7;
702
+ --starasia-ui-color-green-200: #bbf7d0;
703
+ --starasia-ui-color-green-300: #86efac;
704
+ --starasia-ui-color-green-400: #4ade80;
705
+ --starasia-ui-color-green-500: #22c55e;
706
+ --starasia-ui-color-green-600: #16a34a;
707
+ --starasia-ui-color-green-700: #15803d;
708
+ --starasia-ui-color-green-800: #166534;
709
+ --starasia-ui-color-green-900: #14532d;
710
+ --starasia-ui-color-green-950: #052e16;
711
+
712
+ /* blue */
713
+ --starasia-ui-color-blue-50: #eff6ff;
714
+ --starasia-ui-color-blue-100: #dbeafe;
715
+ --starasia-ui-color-blue-200: #bfdbfe;
716
+ --starasia-ui-color-blue-300: #93c5fd;
717
+ --starasia-ui-color-blue-400: #60a5fa;
718
+ --starasia-ui-color-blue-500: #3b82f6;
719
+ --starasia-ui-color-blue-600: #2563eb;
720
+ --starasia-ui-color-blue-700: #1d4ed8;
721
+ --starasia-ui-color-blue-800: #1e40af;
722
+ --starasia-ui-color-blue-900: #1e3a8a;
723
+ --starasia-ui-color-blue-950: #172554;
724
+
725
+ /* purple */
726
+ --starasia-ui-color-purple-50: #f5f3ff;
727
+ --starasia-ui-color-purple-100: #f3e8ff;
728
+ --starasia-ui-color-purple-200: #e9d5ff;
729
+ --starasia-ui-color-purple-300: #d8b4fe;
730
+ --starasia-ui-color-purple-400: #c084fc;
731
+ --starasia-ui-color-purple-500: #a855f7;
732
+ --starasia-ui-color-purple-600: #9333ea;
733
+ --starasia-ui-color-purple-700: #7e22ce;
734
+ --starasia-ui-color-purple-800: #6b21a8;
735
+ --starasia-ui-color-purple-900: #581c87;
736
+ --starasia-ui-color-purple-950: #3b0764;
737
+
738
+ /* height */
739
+ --starasia-ui-h-1: 0.25rem; /* 4px */
740
+ --starasia-ui-h-2: 0.5rem; /* 8px */
741
+
742
+ /* radius */
743
+ --starasia-ui-radii-lg: 0.5rem; /* 8px */
744
+ }
745
+
746
+ .starasia-progress-border {
747
+ background-color: var(--starasia-ui-color-blue-100);
748
+ width: 100%;
749
+ border-radius: var(--starasia-ui-radii-lg);
750
+ overflow: hidden;
751
+ }
752
+ .starasia-progress-border-sm {
753
+ height: var(--starasia-ui-h-1);
754
+ }
755
+ .starasia-progress-border-md {
756
+ height: var(--starasia-ui-h-2);
757
+ }
758
+ .starasia-progress-value {
759
+ height: 100%;
760
+ background-color: var(--starasia-ui-color-blue-800);
761
+ }
762
+
763
+ .starasia-progress-label {
764
+ font-family: "Poppins", serif;
765
+ font-size: var(--starasia-ui-fontSizes-md, 14px);
766
+ font-style: normal;
767
+ font-weight: var(--starasia-ui-fontWeights-medium, 400);
768
+ line-height: normal;
769
+ letter-spacing: 0.21px;
770
+ margin-top: var(--starasia-ui-spacing-xs, 4px);
771
+ color: var(--starasia-ui-color-gray-500);
772
+ }
773
+
774
+ /* starasia progress COLOR */
775
+ .starasia-progress-background-gray-50 {
776
+ background-color: var(--starasia-ui-color-gray-50) !important;
777
+ }
778
+ .starasia-progress-background-gray-100 {
779
+ background-color: var(--starasia-ui-color-gray-100) !important;
780
+ }
781
+ .starasia-progress-background-gray-200 {
782
+ background-color: var(--starasia-ui-color-gray-200) !important;
783
+ }
784
+ .starasia-progress-background-gray-300 {
785
+ background-color: var(--starasia-ui-color-gray-300) !important;
786
+ }
787
+ .starasia-progress-background-gray-400 {
788
+ background-color: var(--starasia-ui-color-gray-400) !important;
789
+ }
790
+ .starasia-progress-background-gray-500 {
791
+ background-color: var(--starasia-ui-color-gray-500) !important;
792
+ }
793
+ .starasia-progress-background-gray-600 {
794
+ background-color: var(--starasia-ui-color-gray-600) !important;
795
+ }
796
+ .starasia-progress-background-gray-700 {
797
+ background-color: var(--starasia-ui-color-gray-700) !important;
798
+ }
799
+ .starasia-progress-background-gray-800 {
800
+ background-color: var(--starasia-ui-color-gray-800) !important;
801
+ }
802
+ .starasia-progress-background-gray-900 {
803
+ background-color: var(--starasia-ui-color-gray-900) !important;
804
+ }
805
+ .starasia-progress-background-gray-950 {
806
+ background-color: var(--starasia-ui-color-gray-950) !important;
807
+ }
808
+
809
+ .starasia-progress-background-red-50 {
810
+ background-color: var(--starasia-ui-color-red-50) !important;
811
+ }
812
+ .starasia-progress-background-red-100 {
813
+ background-color: var(--starasia-ui-color-red-100) !important;
814
+ }
815
+ .starasia-progress-background-red-200 {
816
+ background-color: var(--starasia-ui-color-red-200) !important;
817
+ }
818
+ .starasia-progress-background-red-300 {
819
+ background-color: var(--starasia-ui-color-red-300) !important;
820
+ }
821
+ .starasia-progress-background-red-400 {
822
+ background-color: var(--starasia-ui-color-red-400) !important;
823
+ }
824
+ .starasia-progress-background-red-500 {
825
+ background-color: var(--starasia-ui-color-red-500) !important;
826
+ }
827
+ .starasia-progress-background-red-600 {
828
+ background-color: var(--starasia-ui-color-red-600) !important;
829
+ }
830
+ .starasia-progress-background-red-700 {
831
+ background-color: var(--starasia-ui-color-red-700) !important;
832
+ }
833
+ .starasia-progress-background-red-800 {
834
+ background-color: var(--starasia-ui-color-red-800) !important;
835
+ }
836
+ .starasia-progress-background-red-900 {
837
+ background-color: var(--starasia-ui-color-red-900) !important;
838
+ }
839
+ .starasia-progress-background-red-950 {
840
+ background-color: var(--starasia-ui-color-red-950) !important;
841
+ }
842
+
843
+ .starasia-progress-background-orange-50 {
844
+ background-color: var(--starasia-ui-color-orange-50) !important;
845
+ }
846
+ .starasia-progress-background-orange-100 {
847
+ background-color: var(--starasia-ui-color-orange-100) !important;
848
+ }
849
+ .starasia-progress-background-orange-200 {
850
+ background-color: var(--starasia-ui-color-orange-200) !important;
851
+ }
852
+ .starasia-progress-background-orange-300 {
853
+ background-color: var(--starasia-ui-color-orange-300) !important;
854
+ }
855
+ .starasia-progress-background-orange-400 {
856
+ background-color: var(--starasia-ui-color-orange-400) !important;
857
+ }
858
+ .starasia-progress-background-orange-500 {
859
+ background-color: var(--starasia-ui-color-orange-500) !important;
860
+ }
861
+ .starasia-progress-background-orange-600 {
862
+ background-color: var(--starasia-ui-color-orange-600) !important;
863
+ }
864
+ .starasia-progress-background-orange-700 {
865
+ background-color: var(--starasia-ui-color-orange-700) !important;
866
+ }
867
+ .starasia-progress-background-orange-800 {
868
+ background-color: var(--starasia-ui-color-orange-800) !important;
869
+ }
870
+ .starasia-progress-background-orange-900 {
871
+ background-color: var(--starasia-ui-color-orange-900) !important;
872
+ }
873
+ .starasia-progress-background-orange-950 {
874
+ background-color: var(--starasia-ui-color-orange-950) !important;
875
+ }
876
+
877
+ .starasia-progress-background-yellow-50 {
878
+ background-color: var(--starasia-ui-color-yellow-50) !important;
879
+ }
880
+ .starasia-progress-background-yellow-100 {
881
+ background-color: var(--starasia-ui-color-yellow-100) !important;
882
+ }
883
+ .starasia-progress-background-yellow-200 {
884
+ background-color: var(--starasia-ui-color-yellow-200) !important;
885
+ }
886
+ .starasia-progress-background-yellow-300 {
887
+ background-color: var(--starasia-ui-color-yellow-300) !important;
888
+ }
889
+ .starasia-progress-background-yellow-400 {
890
+ background-color: var(--starasia-ui-color-yellow-400) !important;
891
+ }
892
+ .starasia-progress-background-yellow-500 {
893
+ background-color: var(--starasia-ui-color-yellow-500) !important;
894
+ }
895
+ .starasia-progress-background-yellow-600 {
896
+ background-color: var(--starasia-ui-color-yellow-600) !important;
897
+ }
898
+ .starasia-progress-background-yellow-700 {
899
+ background-color: var(--starasia-ui-color-yellow-700) !important;
900
+ }
901
+ .starasia-progress-background-yellow-800 {
902
+ background-color: var(--starasia-ui-color-yellow-800) !important;
903
+ }
904
+ .starasia-progress-background-yellow-900 {
905
+ background-color: var(--starasia-ui-color-yellow-900) !important;
906
+ }
907
+ .starasia-progress-background-yellow-950 {
908
+ background-color: var(--starasia-ui-color-yellow-950) !important;
909
+ }
910
+
911
+ .starasia-progress-background-green-50 {
912
+ background-color: var(--starasia-ui-color-green-50) !important;
913
+ }
914
+ .starasia-progress-background-green-100 {
915
+ background-color: var(--starasia-ui-color-green-100) !important;
916
+ }
917
+ .starasia-progress-background-green-200 {
918
+ background-color: var(--starasia-ui-color-green-200) !important;
919
+ }
920
+ .starasia-progress-background-green-300 {
921
+ background-color: var(--starasia-ui-color-green-300) !important;
922
+ }
923
+ .starasia-progress-background-green-400 {
924
+ background-color: var(--starasia-ui-color-green-400) !important;
925
+ }
926
+ .starasia-progress-background-green-500 {
927
+ background-color: var(--starasia-ui-color-green-500) !important;
928
+ }
929
+ .starasia-progress-background-green-600 {
930
+ background-color: var(--starasia-ui-color-green-600) !important;
931
+ }
932
+ .starasia-progress-background-green-700 {
933
+ background-color: var(--starasia-ui-color-green-700) !important;
934
+ }
935
+ .starasia-progress-background-green-800 {
936
+ background-color: var(--starasia-ui-color-green-800) !important;
937
+ }
938
+ .starasia-progress-background-green-900 {
939
+ background-color: var(--starasia-ui-color-green-900) !important;
940
+ }
941
+ .starasia-progress-background-green-950 {
942
+ background-color: var(--starasia-ui-color-green-950) !important;
943
+ }
944
+
945
+ .starasia-progress-background-blue-50 {
946
+ background-color: var(--starasia-ui-color-blue-50) !important;
947
+ }
948
+ .starasia-progress-background-blue-100 {
949
+ background-color: var(--starasia-ui-color-blue-100) !important;
950
+ }
951
+ .starasia-progress-background-blue-200 {
952
+ background-color: var(--starasia-ui-color-blue-200) !important;
953
+ }
954
+ .starasia-progress-background-blue-300 {
955
+ background-color: var(--starasia-ui-color-blue-300) !important;
956
+ }
957
+ .starasia-progress-background-blue-400 {
958
+ background-color: var(--starasia-ui-color-blue-400) !important;
959
+ }
960
+ .starasia-progress-background-blue-500 {
961
+ background-color: var(--starasia-ui-color-blue-500) !important;
962
+ }
963
+ .starasia-progress-background-blue-600 {
964
+ background-color: var(--starasia-ui-color-blue-600) !important;
965
+ }
966
+ .starasia-progress-background-blue-700 {
967
+ background-color: var(--starasia-ui-color-blue-700) !important;
968
+ }
969
+ .starasia-progress-background-blue-800 {
970
+ background-color: var(--starasia-ui-color-blue-800) !important;
971
+ }
972
+ .starasia-progress-background-blue-900 {
973
+ background-color: var(--starasia-ui-color-blue-900) !important;
974
+ }
975
+ .starasia-progress-background-blue-950 {
976
+ background-color: var(--starasia-ui-color-blue-950) !important;
977
+ }
978
+
979
+ .starasia-progress-background-purple-50 {
980
+ background-color: var(--starasia-ui-color-purple-50) !important;
981
+ }
982
+ .starasia-progress-background-purple-100 {
983
+ background-color: var(--starasia-ui-color-purple-100) !important;
984
+ }
985
+ .starasia-progress-background-purple-200 {
986
+ background-color: var(--starasia-ui-color-purple-200) !important;
987
+ }
988
+ .starasia-progress-background-purple-300 {
989
+ background-color: var(--starasia-ui-color-purple-300) !important;
990
+ }
991
+ .starasia-progress-background-purple-400 {
992
+ background-color: var(--starasia-ui-color-purple-400) !important;
993
+ }
994
+ .starasia-progress-background-purple-500 {
995
+ background-color: var(--starasia-ui-color-purple-500) !important;
996
+ }
997
+ .starasia-progress-background-purple-600 {
998
+ background-color: var(--starasia-ui-color-purple-600) !important;
999
+ }
1000
+ .starasia-progress-background-purple-700 {
1001
+ background-color: var(--starasia-ui-color-purple-700) !important;
1002
+ }
1003
+ .starasia-progress-background-purple-800 {
1004
+ background-color: var(--starasia-ui-color-purple-800) !important;
1005
+ }
1006
+ .starasia-progress-background-purple-900 {
1007
+ background-color: var(--starasia-ui-color-purple-900) !important;
1008
+ }
1009
+ .starasia-progress-background-purple-950 {
1010
+ background-color: var(--starasia-ui-color-purple-950) !important;
1011
+ }
1012
+ `, Or = "starasia-progress-styles", ba = (m) => {
1013
+ if (!document.getElementById(Or)) {
1014
+ const b = document.createElement("style");
1015
+ b.id = Or, b.textContent = m, document.head.appendChild(b);
1016
+ }
1017
+ };
1018
+ ba(pa);
1019
+ const ma = ({
1020
+ value: m = "10%",
1021
+ labelPosition: b = "left",
1022
+ label: h,
1023
+ color: w,
1024
+ size: C = "md"
1025
+ }) => /* @__PURE__ */ W.jsxs("div", { children: [
1026
+ /* @__PURE__ */ W.jsx(
1027
+ "div",
1028
+ {
1029
+ className: `starasia-progress-border ${C === "md" ? "starasia-progress-border-md" : "starasia-progress-border-sm"}`,
1030
+ children: /* @__PURE__ */ W.jsx(
1031
+ "div",
1032
+ {
1033
+ className: `starasia-progress-value starasia-progress-background-${w}`,
1034
+ style: { width: m, backgroundColor: "" }
1035
+ }
1036
+ )
1037
+ }
1038
+ ),
1039
+ h ? typeof h == "string" ? /* @__PURE__ */ W.jsx(
1040
+ "p",
1041
+ {
1042
+ className: "starasia-progress-label",
1043
+ style: { textAlign: b },
1044
+ children: h
1045
+ }
1046
+ ) : /* @__PURE__ */ W.jsx(
1047
+ "div",
1048
+ {
1049
+ className: "starasia-progress-label",
1050
+ style: { textAlign: b },
1051
+ children: h
1052
+ }
1053
+ ) : null
1054
+ ] }), va = [
1055
+ {
1056
+ name: "gray",
1057
+ colors: [
1058
+ "gray-50",
1059
+ "gray-100",
1060
+ "gray-200",
1061
+ "gray-300",
1062
+ "gray-400",
1063
+ "gray-500",
1064
+ "gray-600",
1065
+ "gray-700",
1066
+ "gray-800",
1067
+ "gray-900",
1068
+ "gray-950"
1069
+ ]
1070
+ },
1071
+ {
1072
+ name: "red",
1073
+ colors: [
1074
+ "red-50",
1075
+ "red-100",
1076
+ "red-200",
1077
+ "red-300",
1078
+ "red-400",
1079
+ "red-500",
1080
+ "red-600",
1081
+ "red-700",
1082
+ "red-800",
1083
+ "red-900",
1084
+ "red-950"
1085
+ ]
1086
+ },
1087
+ {
1088
+ name: "orange",
1089
+ colors: [
1090
+ "orange-50",
1091
+ "orange-100",
1092
+ "orange-200",
1093
+ "orange-300",
1094
+ "orange-400",
1095
+ "orange-500",
1096
+ "orange-600",
1097
+ "orange-700",
1098
+ "orange-800",
1099
+ "orange-900",
1100
+ "orange-950"
1101
+ ]
1102
+ },
1103
+ {
1104
+ name: "yellow",
1105
+ colors: [
1106
+ "yellow-50",
1107
+ "yellow-100",
1108
+ "yellow-200",
1109
+ "yellow-300",
1110
+ "yellow-400",
1111
+ "yellow-500",
1112
+ "yellow-600",
1113
+ "yellow-700",
1114
+ "yellow-800",
1115
+ "yellow-900",
1116
+ "yellow-950"
1117
+ ]
1118
+ },
1119
+ {
1120
+ name: "green",
1121
+ colors: [
1122
+ "green-50",
1123
+ "green-100",
1124
+ "green-200",
1125
+ "green-300",
1126
+ "green-400",
1127
+ "green-500",
1128
+ "green-600",
1129
+ "green-700",
1130
+ "green-800",
1131
+ "green-900",
1132
+ "green-950"
1133
+ ]
1134
+ },
1135
+ {
1136
+ name: "blue",
1137
+ colors: [
1138
+ "blue-50",
1139
+ "blue-100",
1140
+ "blue-200",
1141
+ "blue-300",
1142
+ "blue-400",
1143
+ "blue-500",
1144
+ "blue-600",
1145
+ "blue-700",
1146
+ "blue-800",
1147
+ "blue-900",
1148
+ "blue-950"
1149
+ ]
1150
+ },
1151
+ {
1152
+ name: "purple",
1153
+ colors: [
1154
+ "purple-50",
1155
+ "purple-100",
1156
+ "purple-200",
1157
+ "purple-300",
1158
+ "purple-400",
1159
+ "purple-500",
1160
+ "purple-600",
1161
+ "purple-700",
1162
+ "purple-800",
1163
+ "purple-900",
1164
+ "purple-950"
1165
+ ]
1166
+ }
1167
+ ], ka = va.map(
1168
+ (m) => m.colors
1169
+ ).flat();
1170
+ export {
1171
+ ka as ColorConstProgress,
1172
+ va as ColorSchemeGeneratorProgress,
1173
+ ma as Progress
1174
+ };