@slashid/jump-page 0.0.12-next.0 → 0.0.12-next.2

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.
Files changed (34) hide show
  1. package/package/astro.config.d.mts +2 -0
  2. package/package/dist/_astro/app.54413f1a.d.ts +2 -0
  3. package/package/dist/_astro/client.4ae44ca9.d.ts +7 -0
  4. package/package/dist/_astro/index.8afb8bf6.d.ts +5 -0
  5. package/package/favicon.png +0 -0
  6. package/package/main.js +2752 -0
  7. package/package/main.js.map +1 -0
  8. package/package/src/components/app/app.component.d.ts +1 -0
  9. package/package/src/components/app/app.context.d.ts +22 -0
  10. package/package/src/components/app/app.css.d.ts +1 -0
  11. package/package/src/components/app/index.d.ts +1 -0
  12. package/package/src/components/card/card.component.d.ts +10 -0
  13. package/package/src/components/card/card.css.d.ts +4 -0
  14. package/package/src/components/card/index.d.ts +1 -0
  15. package/package/src/components/flow/flow.component.d.ts +1 -0
  16. package/package/src/components/flow/flow.css.d.ts +3 -0
  17. package/package/src/components/flow/flow.error.d.ts +7 -0
  18. package/package/src/components/flow/flow.loading.d.ts +1 -0
  19. package/package/src/components/flow/flow.progress.d.ts +11 -0
  20. package/package/src/components/flow/flow.recover.d.ts +1 -0
  21. package/package/src/components/flow/flow.success.d.ts +3 -0
  22. package/package/src/components/flow/flow.types.d.ts +38 -0
  23. package/package/src/components/flow/flow.util.d.ts +2 -0
  24. package/package/src/components/flow/index.d.ts +3 -0
  25. package/package/src/components/text/index.d.ts +1 -0
  26. package/package/src/components/text/text.component.d.ts +6 -0
  27. package/package/src/components/text/use-i18n.d.ts +1 -0
  28. package/package/src/config.d.ts +4 -0
  29. package/package/src/domain/errors.d.ts +2 -0
  30. package/package/src/domain/i18n.d.ts +47 -0
  31. package/package/src/main.d.ts +8 -0
  32. package/package/style.css +1 -0
  33. package/package/vite.config.d.ts +2 -0
  34. package/package.json +4 -4
@@ -0,0 +1,2752 @@
1
+ import we, { useLayoutEffect as ct, forwardRef as br, useCallback as gr, useState as ue, createContext as zt, useMemo as Et, useContext as xr, useEffect as St } from "react";
2
+ import { Errors as vr, errors as mr } from "@slashid/slashid";
3
+ var Fe = { exports: {} }, ie = {};
4
+ /**
5
+ * @license React
6
+ * react-jsx-runtime.production.min.js
7
+ *
8
+ * Copyright (c) Facebook, Inc. and its affiliates.
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE file in the root directory of this source tree.
12
+ */
13
+ var dt;
14
+ function Cr() {
15
+ if (dt)
16
+ return ie;
17
+ dt = 1;
18
+ var t = we, e = Symbol.for("react.element"), r = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, n = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
19
+ function c(f, d, b) {
20
+ var x, y = {}, M = null, S = null;
21
+ b !== void 0 && (M = "" + b), d.key !== void 0 && (M = "" + d.key), d.ref !== void 0 && (S = d.ref);
22
+ for (x in d)
23
+ s.call(d, x) && !u.hasOwnProperty(x) && (y[x] = d[x]);
24
+ if (f && f.defaultProps)
25
+ for (x in d = f.defaultProps, d)
26
+ y[x] === void 0 && (y[x] = d[x]);
27
+ return { $$typeof: e, type: f, key: M, ref: S, props: y, _owner: n.current };
28
+ }
29
+ return ie.Fragment = r, ie.jsx = c, ie.jsxs = c, ie;
30
+ }
31
+ var le = {};
32
+ /**
33
+ * @license React
34
+ * react-jsx-runtime.development.js
35
+ *
36
+ * Copyright (c) Facebook, Inc. and its affiliates.
37
+ *
38
+ * This source code is licensed under the MIT license found in the
39
+ * LICENSE file in the root directory of this source tree.
40
+ */
41
+ var ft;
42
+ function wr() {
43
+ return ft || (ft = 1, process.env.NODE_ENV !== "production" && function() {
44
+ var t = we, e = Symbol.for("react.element"), r = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), f = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), x = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), B = Symbol.iterator, je = "@@iterator";
45
+ function se(a) {
46
+ if (a === null || typeof a != "object")
47
+ return null;
48
+ var i = B && a[B] || a[je];
49
+ return typeof i == "function" ? i : null;
50
+ }
51
+ var A = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
52
+ function j(a) {
53
+ {
54
+ for (var i = arguments.length, l = new Array(i > 1 ? i - 1 : 0), h = 1; h < i; h++)
55
+ l[h - 1] = arguments[h];
56
+ O("error", a, l);
57
+ }
58
+ }
59
+ function O(a, i, l) {
60
+ {
61
+ var h = A.ReactDebugCurrentFrame, g = h.getStackAddendum();
62
+ g !== "" && (i += "%s", l = l.concat([g]));
63
+ var v = l.map(function(p) {
64
+ return String(p);
65
+ });
66
+ v.unshift("Warning: " + i), Function.prototype.apply.call(console[a], console, v);
67
+ }
68
+ }
69
+ var Re = !1, Je = !1, w = !1, m = !1, K = !1, Z;
70
+ Z = Symbol.for("react.module.reference");
71
+ function ce(a) {
72
+ return !!(typeof a == "string" || typeof a == "function" || a === s || a === u || K || a === n || a === b || a === x || m || a === S || Re || Je || w || typeof a == "object" && a !== null && (a.$$typeof === M || a.$$typeof === y || a.$$typeof === c || a.$$typeof === f || a.$$typeof === d || // This needs to include all possible module reference object
73
+ // types supported by any Flight configuration anywhere since
74
+ // we don't know which Flight build this will end up being used
75
+ // with.
76
+ a.$$typeof === Z || a.getModuleId !== void 0));
77
+ }
78
+ function ae(a, i, l) {
79
+ var h = a.displayName;
80
+ if (h)
81
+ return h;
82
+ var g = i.displayName || i.name || "";
83
+ return g !== "" ? l + "(" + g + ")" : l;
84
+ }
85
+ function Q(a) {
86
+ return a.displayName || "Context";
87
+ }
88
+ function R(a) {
89
+ if (a == null)
90
+ return null;
91
+ if (typeof a.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof a == "function")
92
+ return a.displayName || a.name || null;
93
+ if (typeof a == "string")
94
+ return a;
95
+ switch (a) {
96
+ case s:
97
+ return "Fragment";
98
+ case r:
99
+ return "Portal";
100
+ case u:
101
+ return "Profiler";
102
+ case n:
103
+ return "StrictMode";
104
+ case b:
105
+ return "Suspense";
106
+ case x:
107
+ return "SuspenseList";
108
+ }
109
+ if (typeof a == "object")
110
+ switch (a.$$typeof) {
111
+ case f:
112
+ var i = a;
113
+ return Q(i) + ".Consumer";
114
+ case c:
115
+ var l = a;
116
+ return Q(l._context) + ".Provider";
117
+ case d:
118
+ return ae(a, a.render, "ForwardRef");
119
+ case y:
120
+ var h = a.displayName || null;
121
+ return h !== null ? h : R(a.type) || "Memo";
122
+ case M: {
123
+ var g = a, v = g._payload, p = g._init;
124
+ try {
125
+ return R(p(v));
126
+ } catch {
127
+ return null;
128
+ }
129
+ }
130
+ }
131
+ return null;
132
+ }
133
+ var P = Object.assign, V = 0, ne, X, Y, de, I, F, ee;
134
+ function fe() {
135
+ }
136
+ fe.__reactDisabledLog = !0;
137
+ function $t() {
138
+ {
139
+ if (V === 0) {
140
+ ne = console.log, X = console.info, Y = console.warn, de = console.error, I = console.group, F = console.groupCollapsed, ee = console.groupEnd;
141
+ var a = {
142
+ configurable: !0,
143
+ enumerable: !0,
144
+ value: fe,
145
+ writable: !0
146
+ };
147
+ Object.defineProperties(console, {
148
+ info: a,
149
+ log: a,
150
+ warn: a,
151
+ error: a,
152
+ group: a,
153
+ groupCollapsed: a,
154
+ groupEnd: a
155
+ });
156
+ }
157
+ V++;
158
+ }
159
+ }
160
+ function Ht() {
161
+ {
162
+ if (V--, V === 0) {
163
+ var a = {
164
+ configurable: !0,
165
+ enumerable: !0,
166
+ writable: !0
167
+ };
168
+ Object.defineProperties(console, {
169
+ log: P({}, a, {
170
+ value: ne
171
+ }),
172
+ info: P({}, a, {
173
+ value: X
174
+ }),
175
+ warn: P({}, a, {
176
+ value: Y
177
+ }),
178
+ error: P({}, a, {
179
+ value: de
180
+ }),
181
+ group: P({}, a, {
182
+ value: I
183
+ }),
184
+ groupCollapsed: P({}, a, {
185
+ value: F
186
+ }),
187
+ groupEnd: P({}, a, {
188
+ value: ee
189
+ })
190
+ });
191
+ }
192
+ V < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
193
+ }
194
+ }
195
+ var Te = A.ReactCurrentDispatcher, Me;
196
+ function he(a, i, l) {
197
+ {
198
+ if (Me === void 0)
199
+ try {
200
+ throw Error();
201
+ } catch (g) {
202
+ var h = g.stack.trim().match(/\n( *(at )?)/);
203
+ Me = h && h[1] || "";
204
+ }
205
+ return `
206
+ ` + Me + a;
207
+ }
208
+ }
209
+ var Oe = !1, _e;
210
+ {
211
+ var Gt = typeof WeakMap == "function" ? WeakMap : Map;
212
+ _e = new Gt();
213
+ }
214
+ function Ke(a, i) {
215
+ if (!a || Oe)
216
+ return "";
217
+ {
218
+ var l = _e.get(a);
219
+ if (l !== void 0)
220
+ return l;
221
+ }
222
+ var h;
223
+ Oe = !0;
224
+ var g = Error.prepareStackTrace;
225
+ Error.prepareStackTrace = void 0;
226
+ var v;
227
+ v = Te.current, Te.current = null, $t();
228
+ try {
229
+ if (i) {
230
+ var p = function() {
231
+ throw Error();
232
+ };
233
+ if (Object.defineProperty(p.prototype, "props", {
234
+ set: function() {
235
+ throw Error();
236
+ }
237
+ }), typeof Reflect == "object" && Reflect.construct) {
238
+ try {
239
+ Reflect.construct(p, []);
240
+ } catch (U) {
241
+ h = U;
242
+ }
243
+ Reflect.construct(a, [], p);
244
+ } else {
245
+ try {
246
+ p.call();
247
+ } catch (U) {
248
+ h = U;
249
+ }
250
+ a.call(p.prototype);
251
+ }
252
+ } else {
253
+ try {
254
+ throw Error();
255
+ } catch (U) {
256
+ h = U;
257
+ }
258
+ a();
259
+ }
260
+ } catch (U) {
261
+ if (U && h && typeof U.stack == "string") {
262
+ for (var _ = U.stack.split(`
263
+ `), T = h.stack.split(`
264
+ `), z = _.length - 1, E = T.length - 1; z >= 1 && E >= 0 && _[z] !== T[E]; )
265
+ E--;
266
+ for (; z >= 1 && E >= 0; z--, E--)
267
+ if (_[z] !== T[E]) {
268
+ if (z !== 1 || E !== 1)
269
+ do
270
+ if (z--, E--, E < 0 || _[z] !== T[E]) {
271
+ var k = `
272
+ ` + _[z].replace(" at new ", " at ");
273
+ return a.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", a.displayName)), typeof a == "function" && _e.set(a, k), k;
274
+ }
275
+ while (z >= 1 && E >= 0);
276
+ break;
277
+ }
278
+ }
279
+ } finally {
280
+ Oe = !1, Te.current = v, Ht(), Error.prepareStackTrace = g;
281
+ }
282
+ var re = a ? a.displayName || a.name : "", ut = re ? he(re) : "";
283
+ return typeof a == "function" && _e.set(a, ut), ut;
284
+ }
285
+ function Wt(a, i, l) {
286
+ return Ke(a, !1);
287
+ }
288
+ function Jt(a) {
289
+ var i = a.prototype;
290
+ return !!(i && i.isReactComponent);
291
+ }
292
+ function pe(a, i, l) {
293
+ if (a == null)
294
+ return "";
295
+ if (typeof a == "function")
296
+ return Ke(a, Jt(a));
297
+ if (typeof a == "string")
298
+ return he(a);
299
+ switch (a) {
300
+ case b:
301
+ return he("Suspense");
302
+ case x:
303
+ return he("SuspenseList");
304
+ }
305
+ if (typeof a == "object")
306
+ switch (a.$$typeof) {
307
+ case d:
308
+ return Wt(a.render);
309
+ case y:
310
+ return pe(a.type, i, l);
311
+ case M: {
312
+ var h = a, g = h._payload, v = h._init;
313
+ try {
314
+ return pe(v(g), i, l);
315
+ } catch {
316
+ }
317
+ }
318
+ }
319
+ return "";
320
+ }
321
+ var be = Object.prototype.hasOwnProperty, Ze = {}, Qe = A.ReactDebugCurrentFrame;
322
+ function ge(a) {
323
+ if (a) {
324
+ var i = a._owner, l = pe(a.type, a._source, i ? i.type : null);
325
+ Qe.setExtraStackFrame(l);
326
+ } else
327
+ Qe.setExtraStackFrame(null);
328
+ }
329
+ function Kt(a, i, l, h, g) {
330
+ {
331
+ var v = Function.call.bind(be);
332
+ for (var p in a)
333
+ if (v(a, p)) {
334
+ var _ = void 0;
335
+ try {
336
+ if (typeof a[p] != "function") {
337
+ var T = Error((h || "React class") + ": " + l + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
338
+ throw T.name = "Invariant Violation", T;
339
+ }
340
+ _ = a[p](i, p, h, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
341
+ } catch (z) {
342
+ _ = z;
343
+ }
344
+ _ && !(_ instanceof Error) && (ge(g), j("%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).", h || "React class", l, p, typeof _), ge(null)), _ instanceof Error && !(_.message in Ze) && (Ze[_.message] = !0, ge(g), j("Failed %s type: %s", l, _.message), ge(null));
345
+ }
346
+ }
347
+ }
348
+ var Zt = Array.isArray;
349
+ function ke(a) {
350
+ return Zt(a);
351
+ }
352
+ function Qt(a) {
353
+ {
354
+ var i = typeof Symbol == "function" && Symbol.toStringTag, l = i && a[Symbol.toStringTag] || a.constructor.name || "Object";
355
+ return l;
356
+ }
357
+ }
358
+ function Xt(a) {
359
+ try {
360
+ return Xe(a), !1;
361
+ } catch {
362
+ return !0;
363
+ }
364
+ }
365
+ function Xe(a) {
366
+ return "" + a;
367
+ }
368
+ function et(a) {
369
+ if (Xt(a))
370
+ return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Qt(a)), Xe(a);
371
+ }
372
+ var oe = A.ReactCurrentOwner, er = {
373
+ key: !0,
374
+ ref: !0,
375
+ __self: !0,
376
+ __source: !0
377
+ }, tt, rt, Pe;
378
+ Pe = {};
379
+ function tr(a) {
380
+ if (be.call(a, "ref")) {
381
+ var i = Object.getOwnPropertyDescriptor(a, "ref").get;
382
+ if (i && i.isReactWarning)
383
+ return !1;
384
+ }
385
+ return a.ref !== void 0;
386
+ }
387
+ function rr(a) {
388
+ if (be.call(a, "key")) {
389
+ var i = Object.getOwnPropertyDescriptor(a, "key").get;
390
+ if (i && i.isReactWarning)
391
+ return !1;
392
+ }
393
+ return a.key !== void 0;
394
+ }
395
+ function sr(a, i) {
396
+ if (typeof a.ref == "string" && oe.current && i && oe.current.stateNode !== i) {
397
+ var l = R(oe.current.type);
398
+ Pe[l] || (j('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', R(oe.current.type), a.ref), Pe[l] = !0);
399
+ }
400
+ }
401
+ function ar(a, i) {
402
+ {
403
+ var l = function() {
404
+ tt || (tt = !0, j("%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)", i));
405
+ };
406
+ l.isReactWarning = !0, Object.defineProperty(a, "key", {
407
+ get: l,
408
+ configurable: !0
409
+ });
410
+ }
411
+ }
412
+ function nr(a, i) {
413
+ {
414
+ var l = function() {
415
+ rt || (rt = !0, j("%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)", i));
416
+ };
417
+ l.isReactWarning = !0, Object.defineProperty(a, "ref", {
418
+ get: l,
419
+ configurable: !0
420
+ });
421
+ }
422
+ }
423
+ var or = function(a, i, l, h, g, v, p) {
424
+ var _ = {
425
+ // This tag allows us to uniquely identify this as a React Element
426
+ $$typeof: e,
427
+ // Built-in properties that belong on the element
428
+ type: a,
429
+ key: i,
430
+ ref: l,
431
+ props: p,
432
+ // Record the component responsible for creating this element.
433
+ _owner: v
434
+ };
435
+ return _._store = {}, Object.defineProperty(_._store, "validated", {
436
+ configurable: !1,
437
+ enumerable: !1,
438
+ writable: !0,
439
+ value: !1
440
+ }), Object.defineProperty(_, "_self", {
441
+ configurable: !1,
442
+ enumerable: !1,
443
+ writable: !1,
444
+ value: h
445
+ }), Object.defineProperty(_, "_source", {
446
+ configurable: !1,
447
+ enumerable: !1,
448
+ writable: !1,
449
+ value: g
450
+ }), Object.freeze && (Object.freeze(_.props), Object.freeze(_)), _;
451
+ };
452
+ function ir(a, i, l, h, g) {
453
+ {
454
+ var v, p = {}, _ = null, T = null;
455
+ l !== void 0 && (et(l), _ = "" + l), rr(i) && (et(i.key), _ = "" + i.key), tr(i) && (T = i.ref, sr(i, g));
456
+ for (v in i)
457
+ be.call(i, v) && !er.hasOwnProperty(v) && (p[v] = i[v]);
458
+ if (a && a.defaultProps) {
459
+ var z = a.defaultProps;
460
+ for (v in z)
461
+ p[v] === void 0 && (p[v] = z[v]);
462
+ }
463
+ if (_ || T) {
464
+ var E = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
465
+ _ && ar(p, E), T && nr(p, E);
466
+ }
467
+ return or(a, _, T, g, h, oe.current, p);
468
+ }
469
+ }
470
+ var Ne = A.ReactCurrentOwner, st = A.ReactDebugCurrentFrame;
471
+ function te(a) {
472
+ if (a) {
473
+ var i = a._owner, l = pe(a.type, a._source, i ? i.type : null);
474
+ st.setExtraStackFrame(l);
475
+ } else
476
+ st.setExtraStackFrame(null);
477
+ }
478
+ var De;
479
+ De = !1;
480
+ function Ie(a) {
481
+ return typeof a == "object" && a !== null && a.$$typeof === e;
482
+ }
483
+ function at() {
484
+ {
485
+ if (Ne.current) {
486
+ var a = R(Ne.current.type);
487
+ if (a)
488
+ return `
489
+
490
+ Check the render method of \`` + a + "`.";
491
+ }
492
+ return "";
493
+ }
494
+ }
495
+ function lr(a) {
496
+ {
497
+ if (a !== void 0) {
498
+ var i = a.fileName.replace(/^.*[\\\/]/, ""), l = a.lineNumber;
499
+ return `
500
+
501
+ Check your code at ` + i + ":" + l + ".";
502
+ }
503
+ return "";
504
+ }
505
+ }
506
+ var nt = {};
507
+ function ur(a) {
508
+ {
509
+ var i = at();
510
+ if (!i) {
511
+ var l = typeof a == "string" ? a : a.displayName || a.name;
512
+ l && (i = `
513
+
514
+ Check the top-level render call using <` + l + ">.");
515
+ }
516
+ return i;
517
+ }
518
+ }
519
+ function ot(a, i) {
520
+ {
521
+ if (!a._store || a._store.validated || a.key != null)
522
+ return;
523
+ a._store.validated = !0;
524
+ var l = ur(i);
525
+ if (nt[l])
526
+ return;
527
+ nt[l] = !0;
528
+ var h = "";
529
+ a && a._owner && a._owner !== Ne.current && (h = " It was passed a child from " + R(a._owner.type) + "."), te(a), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, h), te(null);
530
+ }
531
+ }
532
+ function it(a, i) {
533
+ {
534
+ if (typeof a != "object")
535
+ return;
536
+ if (ke(a))
537
+ for (var l = 0; l < a.length; l++) {
538
+ var h = a[l];
539
+ Ie(h) && ot(h, i);
540
+ }
541
+ else if (Ie(a))
542
+ a._store && (a._store.validated = !0);
543
+ else if (a) {
544
+ var g = se(a);
545
+ if (typeof g == "function" && g !== a.entries)
546
+ for (var v = g.call(a), p; !(p = v.next()).done; )
547
+ Ie(p.value) && ot(p.value, i);
548
+ }
549
+ }
550
+ }
551
+ function cr(a) {
552
+ {
553
+ var i = a.type;
554
+ if (i == null || typeof i == "string")
555
+ return;
556
+ var l;
557
+ if (typeof i == "function")
558
+ l = i.propTypes;
559
+ else if (typeof i == "object" && (i.$$typeof === d || // Note: Memo only checks outer props here.
560
+ // Inner props are checked in the reconciler.
561
+ i.$$typeof === y))
562
+ l = i.propTypes;
563
+ else
564
+ return;
565
+ if (l) {
566
+ var h = R(i);
567
+ Kt(l, a.props, "prop", h, a);
568
+ } else if (i.PropTypes !== void 0 && !De) {
569
+ De = !0;
570
+ var g = R(i);
571
+ j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", g || "Unknown");
572
+ }
573
+ typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
574
+ }
575
+ }
576
+ function dr(a) {
577
+ {
578
+ for (var i = Object.keys(a.props), l = 0; l < i.length; l++) {
579
+ var h = i[l];
580
+ if (h !== "children" && h !== "key") {
581
+ te(a), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", h), te(null);
582
+ break;
583
+ }
584
+ }
585
+ a.ref !== null && (te(a), j("Invalid attribute `ref` supplied to `React.Fragment`."), te(null));
586
+ }
587
+ }
588
+ function lt(a, i, l, h, g, v) {
589
+ {
590
+ var p = ce(a);
591
+ if (!p) {
592
+ var _ = "";
593
+ (a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (_ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
594
+ var T = lr(g);
595
+ T ? _ += T : _ += at();
596
+ var z;
597
+ a === null ? z = "null" : ke(a) ? z = "array" : a !== void 0 && a.$$typeof === e ? (z = "<" + (R(a.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : z = typeof a, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", z, _);
598
+ }
599
+ var E = ir(a, i, l, g, v);
600
+ if (E == null)
601
+ return E;
602
+ if (p) {
603
+ var k = i.children;
604
+ if (k !== void 0)
605
+ if (h)
606
+ if (ke(k)) {
607
+ for (var re = 0; re < k.length; re++)
608
+ it(k[re], a);
609
+ Object.freeze && Object.freeze(k);
610
+ } else
611
+ j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
612
+ else
613
+ it(k, a);
614
+ }
615
+ return a === s ? dr(E) : cr(E), E;
616
+ }
617
+ }
618
+ function fr(a, i, l) {
619
+ return lt(a, i, l, !0);
620
+ }
621
+ function hr(a, i, l) {
622
+ return lt(a, i, l, !1);
623
+ }
624
+ var _r = hr, pr = fr;
625
+ le.Fragment = s, le.jsx = _r, le.jsxs = pr;
626
+ }()), le;
627
+ }
628
+ process.env.NODE_ENV === "production" ? Fe.exports = Cr() : Fe.exports = wr();
629
+ var o = Fe.exports;
630
+ function jt(t) {
631
+ var e, r, s = "";
632
+ if (typeof t == "string" || typeof t == "number")
633
+ s += t;
634
+ else if (typeof t == "object")
635
+ if (Array.isArray(t)) {
636
+ var n = t.length;
637
+ for (e = 0; e < n; e++)
638
+ t[e] && (r = jt(t[e])) && (s && (s += " "), s += r);
639
+ } else
640
+ for (r in t)
641
+ t[r] && (s && (s += " "), s += r);
642
+ return s;
643
+ }
644
+ function N() {
645
+ for (var t, e, r = 0, s = "", n = arguments.length; r < n; r++)
646
+ (t = arguments[r]) && (e = jt(t)) && (s && (s += " "), s += e);
647
+ return s;
648
+ }
649
+ var yr = "y2413r0", zr = "y2413r1", Er = "y2413r2", Sr = "y2413r3", ht = "sid-theme-root";
650
+ function jr() {
651
+ return typeof window < "u" && globalThis === window;
652
+ }
653
+ function Rt({ theme: t, className: e }) {
654
+ return N(
655
+ ht,
656
+ `${ht}__${t}`,
657
+ Sr,
658
+ {
659
+ [yr]: t === "dark",
660
+ [Er]: t === "auto",
661
+ [zr]: t === "light"
662
+ },
663
+ e
664
+ );
665
+ }
666
+ function Rr({ theme: t, className: e }) {
667
+ const r = Rt({ theme: t, className: e });
668
+ document.body.classList.add(...r.split(" "));
669
+ }
670
+ const Tt = ({ children: t }) => /* @__PURE__ */ o.jsx("div", { className: Rt({ theme: "light" }), children: t }), Tr = ({ children: t, theme: e = "light", className: r }) => {
671
+ const [s, n] = we.useState(!1);
672
+ return ct(() => {
673
+ s || n(!0);
674
+ }, [r, s, e]), ct(() => {
675
+ s && Rr({ theme: e, className: r });
676
+ }, [r, s, e]), s ? /* @__PURE__ */ o.jsx(o.Fragment, { children: t }) : /* @__PURE__ */ o.jsx(Tt, { children: t });
677
+ };
678
+ function va({ children: t, theme: e = "light", className: r }) {
679
+ return jr() ? /* @__PURE__ */ o.jsx(Tr, { theme: e, className: r, children: t }) : /* @__PURE__ */ o.jsx(Tt, { children: t });
680
+ }
681
+ var Mr = { default: "_92y0ua2 _92y0ua1", short: "_92y0ua3 _92y0ua1" };
682
+ const Mt = ({ className: t, variant: e = "default" }) => /* @__PURE__ */ o.jsx("div", { className: N(Mr[e], t) });
683
+ var Or = { primary: "eccmw2 eccmw0", secondary: "eccmw3 eccmw0", secondaryMd: "eccmw4 eccmw0 eccmw1", neutral: "eccmw5 eccmw0", neutralMd: "eccmw6 eccmw0 eccmw1", ghost: "eccmw7 eccmw0", ghostMd: "eccmw8 eccmw0 eccmw1" }, kr = "eccmw9", Pr = "eccmwa", Nr = { primary: "eccmwb", secondary: "eccmwc", secondaryMd: "eccmwd", neutral: "eccmwe", neutralMd: "eccmwf", ghost: "eccmwg", ghostMd: "eccmwh" };
684
+ const Ot = br(
685
+ ({
686
+ children: t,
687
+ onClick: e,
688
+ className: r,
689
+ type: s = "button",
690
+ variant: n = "primary",
691
+ testId: u,
692
+ icon: c,
693
+ disabled: f,
694
+ loading: d = !1,
695
+ style: b
696
+ }, x) => /* @__PURE__ */ o.jsx(
697
+ "button",
698
+ {
699
+ style: b,
700
+ ref: x,
701
+ "data-testid": u,
702
+ type: s,
703
+ disabled: f,
704
+ className: N(
705
+ "sid-button",
706
+ `sid-button--${n}`,
707
+ Or[n],
708
+ { [kr]: f },
709
+ r
710
+ ),
711
+ onClick: e,
712
+ children: d ? /* @__PURE__ */ o.jsx(Mt, { variant: "short", className: Nr[n] }) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
713
+ c ? /* @__PURE__ */ o.jsx("i", { className: Pr, children: c }) : null,
714
+ t
715
+ ] })
716
+ }
717
+ )
718
+ );
719
+ Ot.displayName = "Button";
720
+ var Dr = "_1doytsg0", Ir = "_1doytsg3", Lr = "_1doytsg4", Ar = { text: "_1doytsg6 _1doytsg5", email: "_1doytsg7 _1doytsg5", password: "_1doytsg8 _1doytsg5", tel: "_1doytsg9 _1doytsg5" }, Fr = "_1doytsga", Ur = "_1doytsgc";
721
+ const qr = ({
722
+ id: t,
723
+ name: e,
724
+ label: r,
725
+ placeholder: s = "",
726
+ autoComplete: n = "",
727
+ value: u,
728
+ onChange: c,
729
+ type: f = "text",
730
+ style: d
731
+ }) => {
732
+ const b = gr(
733
+ (x) => {
734
+ c(x);
735
+ },
736
+ [c]
737
+ );
738
+ return /* @__PURE__ */ o.jsxs("div", { className: Ar[f], children: [
739
+ /* @__PURE__ */ o.jsx("label", { htmlFor: t, className: Fr, children: r }),
740
+ /* @__PURE__ */ o.jsx(
741
+ "input",
742
+ {
743
+ style: d,
744
+ type: f,
745
+ id: t,
746
+ name: e,
747
+ className: Dr,
748
+ placeholder: s,
749
+ value: u,
750
+ onChange: b,
751
+ autoComplete: n
752
+ }
753
+ )
754
+ ] });
755
+ }, Ye = `
756
+ @media (prefers-color-scheme: dark) {
757
+ .sid-theme-root__auto path { fill: white; }
758
+ }
759
+
760
+ .sid-theme-root__dark path { fill: white; }
761
+ `;
762
+ function _t() {
763
+ return /* @__PURE__ */ o.jsxs(
764
+ "svg",
765
+ {
766
+ width: "5",
767
+ height: "20",
768
+ viewBox: "0 0 5 20",
769
+ fill: "none",
770
+ xmlns: "http://www.w3.org/2000/svg",
771
+ children: [
772
+ /* @__PURE__ */ o.jsx(
773
+ "path",
774
+ {
775
+ fillRule: "evenodd",
776
+ clipRule: "evenodd",
777
+ d: "M2.5 0C3.32843 1.19209e-07 4 0.671573 4 1.5L4 11.5C4 12.3284 3.32843 13 2.5 13C1.67157 13 1 12.3284 1 11.5L1 1.5C1 0.671573 1.67157 -1.19209e-07 2.5 0Z",
778
+ fill: "white"
779
+ }
780
+ ),
781
+ /* @__PURE__ */ o.jsx(
782
+ "path",
783
+ {
784
+ d: "M4.5 18C4.5 19.1046 3.60457 20 2.5 20C1.39543 20 0.5 19.1046 0.5 18C0.5 16.8954 1.39543 16 2.5 16C3.60457 16 4.5 16.8954 4.5 18Z",
785
+ fill: "white"
786
+ }
787
+ )
788
+ ]
789
+ }
790
+ );
791
+ }
792
+ const Br = () => /* @__PURE__ */ o.jsxs(
793
+ "svg",
794
+ {
795
+ width: "16",
796
+ height: "16",
797
+ viewBox: "0 0 16 16",
798
+ fill: "none",
799
+ xmlns: "http://www.w3.org/2000/svg",
800
+ children: [
801
+ /* @__PURE__ */ o.jsx("style", { children: Ye }),
802
+ /* @__PURE__ */ o.jsx("g", { clipPath: "url(#clip0_2610_9920)", children: /* @__PURE__ */ o.jsx(
803
+ "path",
804
+ {
805
+ fillRule: "evenodd",
806
+ clipRule: "evenodd",
807
+ d: "M0.220551 7.4C1.00905 5.8258 3.50342 2 8.00001 2C12.4966 2 14.991 5.8258 15.7796 7.4C16.0733 7.98635 16.0737 8.0153 15.7796 8.60228C14.99 10.1778 12.4949 14 8.00001 14C3.50298 14 1.00762 10.1738 0.219399 8.6C-0.0739824 8.01422 -0.0726647 7.98539 0.220551 7.4ZM8 12C10.2091 12 12 10.2091 12 8C12 5.79086 10.2091 4 8 4C5.79086 4 4 5.79086 4 8C4 10.2091 5.79086 12 8 12ZM9.5 8C9.5 8.82843 8.82843 9.5 8 9.5C7.17157 9.5 6.5 8.82843 6.5 8C6.5 7.17157 7.17157 6.5 8 6.5C8.82843 6.5 9.5 7.17157 9.5 8Z",
808
+ fill: "#142049"
809
+ }
810
+ ) }),
811
+ /* @__PURE__ */ o.jsx("defs", { children: /* @__PURE__ */ o.jsx("clipPath", { id: "clip0_2610_9920", children: /* @__PURE__ */ o.jsx("rect", { width: "16", height: "16", fill: "white" }) }) })
812
+ ]
813
+ }
814
+ ), Vr = () => /* @__PURE__ */ o.jsxs(
815
+ "svg",
816
+ {
817
+ width: "16",
818
+ height: "16",
819
+ viewBox: "0 0 16 16",
820
+ fill: "none",
821
+ xmlns: "http://www.w3.org/2000/svg",
822
+ children: [
823
+ /* @__PURE__ */ o.jsx("style", { children: Ye }),
824
+ /* @__PURE__ */ o.jsxs("g", { clipPath: "url(#clip0_2610_9933)", children: [
825
+ /* @__PURE__ */ o.jsx(
826
+ "path",
827
+ {
828
+ fillRule: "evenodd",
829
+ clipRule: "evenodd",
830
+ d: "M0.220551 7.4C1.00905 5.8258 3.50342 2 8.00001 2C12.4966 2 14.991 5.8258 15.7796 7.4C16.0733 7.98635 16.0737 8.0153 15.7796 8.60228C14.99 10.1778 12.4949 14 8.00001 14C3.50298 14 1.00762 10.1738 0.219399 8.6C-0.0739824 8.01422 -0.0726647 7.98539 0.220551 7.4ZM8 12C10.2091 12 12 10.2091 12 8C12 5.79086 10.2091 4 8 4C5.79086 4 4 5.79086 4 8C4 10.2091 5.79086 12 8 12ZM9.5 8C9.5 8.82843 8.82843 9.5 8 9.5C7.17157 9.5 6.5 8.82843 6.5 8C6.5 7.17157 7.17157 6.5 8 6.5C8.82843 6.5 9.5 7.17157 9.5 8Z",
831
+ fill: "#142049"
832
+ }
833
+ ),
834
+ /* @__PURE__ */ o.jsx(
835
+ "path",
836
+ {
837
+ d: "M2.34314 2.34315L13.6568 13.6569",
838
+ stroke: "#142049",
839
+ strokeWidth: "1.5",
840
+ strokeLinecap: "round"
841
+ }
842
+ )
843
+ ] }),
844
+ /* @__PURE__ */ o.jsx("defs", { children: /* @__PURE__ */ o.jsx("clipPath", { id: "clip0_2610_9933", children: /* @__PURE__ */ o.jsx("rect", { width: "16", height: "16", fill: "white" }) }) })
845
+ ]
846
+ }
847
+ ), Yr = () => /* @__PURE__ */ o.jsxs(
848
+ "svg",
849
+ {
850
+ width: "40",
851
+ height: "40",
852
+ viewBox: "0 0 40 40",
853
+ fill: "none",
854
+ xmlns: "http://www.w3.org/2000/svg",
855
+ children: [
856
+ /* @__PURE__ */ o.jsx("style", { children: Ye }),
857
+ /* @__PURE__ */ o.jsx("path", { d: "M12.686 10L2 30.228H5.198L15.884 10H12.686Z", fill: "#2A6AFF" }),
858
+ /* @__PURE__ */ o.jsx(
859
+ "path",
860
+ {
861
+ d: "M19.7923 15.694C20.9373 15.694 21.8723 14.732 21.8723 13.588C21.8723 12.444 20.9373 11.482 19.7923 11.482C18.6223 11.482 17.6873 12.444 17.6873 13.588C17.6873 14.732 18.6233 15.694 19.7933 15.694H19.7923ZM18.0773 17.514V30.228H21.4573V17.514H18.0773ZM34.1883 10V18.502C33.172 17.6398 31.8809 17.1695 30.5483 17.176C26.8563 17.176 24.0743 20.14 24.0743 23.884C24.0743 27.628 26.8563 30.592 30.5483 30.592C32.0823 30.592 33.4343 30.02 34.4483 29.032V30.228H37.5683V10H34.1883ZM30.9383 27.42C28.9883 27.42 27.5583 25.912 27.5583 23.884C27.5583 21.856 28.9883 20.348 30.9383 20.348C32.8883 20.348 34.3183 21.856 34.3183 23.884C34.3183 25.912 32.8883 27.42 30.9383 27.42Z",
862
+ fill: "#142049"
863
+ }
864
+ )
865
+ ]
866
+ }
867
+ ), pt = (t) => {
868
+ const [e, r] = ue(!1);
869
+ return /* @__PURE__ */ o.jsxs(
870
+ "div",
871
+ {
872
+ className: N(
873
+ "sid-input",
874
+ "sid-input--password",
875
+ Ir,
876
+ t.error && Lr,
877
+ t.className
878
+ ),
879
+ style: t.style,
880
+ children: [
881
+ /* @__PURE__ */ o.jsx(qr, { ...t, type: e ? "text" : "password" }),
882
+ /* @__PURE__ */ o.jsx(
883
+ "button",
884
+ {
885
+ tabIndex: -1,
886
+ className: Ur,
887
+ type: "button",
888
+ onClick: () => r(!e),
889
+ children: e ? /* @__PURE__ */ o.jsx(Vr, {}) : /* @__PURE__ */ o.jsx(Br, {})
890
+ }
891
+ )
892
+ ]
893
+ }
894
+ );
895
+ };
896
+ var $r = "_1rf2mux3", Hr = "_1rf2mux5", Gr = { blue: "_1rf2mux6 _1rf2mux4", red: "_1rf2mux7 _1rf2mux4", primary: "_1rf2mux8 _1rf2mux4" }, Wr = "_1rf2muxa", Jr = { blue: "_1rf2muxb _1rf2mux9", red: "_1rf2muxc _1rf2mux9", primary: "_1rf2muxd _1rf2mux9" }, Kr = "_1rf2muxf", Zr = { blue: "_1rf2muxg _1rf2muxe", red: "_1rf2muxh _1rf2muxe", primary: "_1rf2muxi _1rf2muxe" }, Qr = "_1rf2muxj";
897
+ const me = ({
898
+ children: t,
899
+ className: e,
900
+ variant: r = "blue",
901
+ shouldAnimate: s = !0
902
+ }) => /* @__PURE__ */ o.jsxs("div", { className: N($r, e), children: [
903
+ /* @__PURE__ */ o.jsx(
904
+ "div",
905
+ {
906
+ className: N(Gr[r], {
907
+ [Hr]: s
908
+ })
909
+ }
910
+ ),
911
+ /* @__PURE__ */ o.jsx(
912
+ "div",
913
+ {
914
+ className: N(Jr[r], {
915
+ [Wr]: s
916
+ })
917
+ }
918
+ ),
919
+ /* @__PURE__ */ o.jsx(
920
+ "div",
921
+ {
922
+ className: N(Zr[r], {
923
+ [Kr]: s
924
+ })
925
+ }
926
+ ),
927
+ /* @__PURE__ */ o.jsx("div", { className: Qr, children: t })
928
+ ] });
929
+ function Xr(t, e, r) {
930
+ return e in t ? Object.defineProperty(t, e, {
931
+ value: r,
932
+ enumerable: !0,
933
+ configurable: !0,
934
+ writable: !0
935
+ }) : t[e] = r, t;
936
+ }
937
+ function bt(t, e) {
938
+ var r = Object.keys(t);
939
+ if (Object.getOwnPropertySymbols) {
940
+ var s = Object.getOwnPropertySymbols(t);
941
+ e && (s = s.filter(function(n) {
942
+ return Object.getOwnPropertyDescriptor(t, n).enumerable;
943
+ })), r.push.apply(r, s);
944
+ }
945
+ return r;
946
+ }
947
+ function gt(t) {
948
+ for (var e = 1; e < arguments.length; e++) {
949
+ var r = arguments[e] != null ? arguments[e] : {};
950
+ e % 2 ? bt(Object(r), !0).forEach(function(s) {
951
+ Xr(t, s, r[s]);
952
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : bt(Object(r)).forEach(function(s) {
953
+ Object.defineProperty(t, s, Object.getOwnPropertyDescriptor(r, s));
954
+ });
955
+ }
956
+ return t;
957
+ }
958
+ var es = (t, e, r) => {
959
+ for (var s of Object.keys(t)) {
960
+ var n;
961
+ if (t[s] !== ((n = e[s]) !== null && n !== void 0 ? n : r[s]))
962
+ return !1;
963
+ }
964
+ return !0;
965
+ }, kt = (t) => (e) => {
966
+ var r = t.defaultClassName, s = gt(gt({}, t.defaultVariants), e);
967
+ for (var n in s) {
968
+ var u, c = (u = s[n]) !== null && u !== void 0 ? u : t.defaultVariants[n];
969
+ if (c != null) {
970
+ var f = c;
971
+ typeof f == "boolean" && (f = f === !0 ? "true" : "false");
972
+ var d = (
973
+ // @ts-expect-error
974
+ t.variantClassNames[n][f]
975
+ );
976
+ d && (r += " " + d);
977
+ }
978
+ }
979
+ for (var [b, x] of t.compoundVariants)
980
+ es(b, s, t.defaultVariants) && (r += " " + x);
981
+ return r;
982
+ }, ts = kt({ defaultClassName: "s3l9sv0", variantClassNames: { direction: { vertical: "s3l9sv1", horizontal: "s3l9sv2" }, space: { between: "s3l9sv3", evenly: "s3l9sv4" } }, defaultVariants: { direction: "vertical" }, compoundVariants: [] });
983
+ function rs(t, e) {
984
+ if (typeof t != "object" || t === null)
985
+ return t;
986
+ var r = t[Symbol.toPrimitive];
987
+ if (r !== void 0) {
988
+ var s = r.call(t, e || "default");
989
+ if (typeof s != "object")
990
+ return s;
991
+ throw new TypeError("@@toPrimitive must return a primitive value.");
992
+ }
993
+ return (e === "string" ? String : Number)(t);
994
+ }
995
+ function ss(t) {
996
+ var e = rs(t, "string");
997
+ return typeof e == "symbol" ? e : String(e);
998
+ }
999
+ function as(t, e, r) {
1000
+ return e = ss(e), e in t ? Object.defineProperty(t, e, {
1001
+ value: r,
1002
+ enumerable: !0,
1003
+ configurable: !0,
1004
+ writable: !0
1005
+ }) : t[e] = r, t;
1006
+ }
1007
+ function xt(t, e) {
1008
+ var r = Object.keys(t);
1009
+ if (Object.getOwnPropertySymbols) {
1010
+ var s = Object.getOwnPropertySymbols(t);
1011
+ e && (s = s.filter(function(n) {
1012
+ return Object.getOwnPropertyDescriptor(t, n).enumerable;
1013
+ })), r.push.apply(r, s);
1014
+ }
1015
+ return r;
1016
+ }
1017
+ function Le(t) {
1018
+ for (var e = 1; e < arguments.length; e++) {
1019
+ var r = arguments[e] != null ? arguments[e] : {};
1020
+ e % 2 ? xt(Object(r), !0).forEach(function(s) {
1021
+ as(t, s, r[s]);
1022
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : xt(Object(r)).forEach(function(s) {
1023
+ Object.defineProperty(t, s, Object.getOwnPropertyDescriptor(r, s));
1024
+ });
1025
+ }
1026
+ return t;
1027
+ }
1028
+ var ns = (t) => function() {
1029
+ for (var e = arguments.length, r = new Array(e), s = 0; s < e; s++)
1030
+ r[s] = arguments[s];
1031
+ var n = Object.assign({}, ...r.map((d) => d.styles)), u = Object.keys(n), c = u.filter((d) => "mappings" in n[d]), f = (d) => {
1032
+ var b = [], x = {}, y = Le({}, d), M = !1;
1033
+ for (var S of c) {
1034
+ var B = d[S];
1035
+ if (B != null) {
1036
+ var je = n[S];
1037
+ M = !0;
1038
+ for (var se of je.mappings)
1039
+ x[se] = B, y[se] == null && delete y[se];
1040
+ }
1041
+ }
1042
+ var A = M ? Le(Le({}, x), y) : d, j = function() {
1043
+ var w = A[O], m = n[O];
1044
+ try {
1045
+ if (m.mappings)
1046
+ return "continue";
1047
+ if (typeof w == "string" || typeof w == "number") {
1048
+ if (process.env.NODE_ENV !== "production" && !m.values[w].defaultClass)
1049
+ throw new Error();
1050
+ b.push(m.values[w].defaultClass);
1051
+ } else if (Array.isArray(w))
1052
+ for (var K = 0; K < w.length; K++) {
1053
+ var Z = w[K];
1054
+ if (Z != null) {
1055
+ var ce = m.responsiveArray[K];
1056
+ if (process.env.NODE_ENV !== "production" && !m.values[Z].conditions[ce])
1057
+ throw new Error();
1058
+ b.push(m.values[Z].conditions[ce]);
1059
+ }
1060
+ }
1061
+ else
1062
+ for (var ae in w) {
1063
+ var Q = w[ae];
1064
+ if (Q != null) {
1065
+ if (process.env.NODE_ENV !== "production" && !m.values[Q].conditions[ae])
1066
+ throw new Error();
1067
+ b.push(m.values[Q].conditions[ae]);
1068
+ }
1069
+ }
1070
+ } catch (de) {
1071
+ if (process.env.NODE_ENV !== "production") {
1072
+ class I extends Error {
1073
+ constructor(ee) {
1074
+ super(ee), this.name = "SprinklesError";
1075
+ }
1076
+ }
1077
+ var R = (F) => typeof F == "string" ? '"'.concat(F, '"') : F, P = (F, ee, fe) => {
1078
+ throw new I('"'.concat(F, '" has no value ').concat(R(ee), ". Possible values are ").concat(Object.keys(fe).map(R).join(", ")));
1079
+ };
1080
+ if (!m)
1081
+ throw new I('"'.concat(O, '" is not a valid sprinkle'));
1082
+ if ((typeof w == "string" || typeof w == "number") && (w in m.values || P(O, w, m.values), !m.values[w].defaultClass))
1083
+ throw new I('"'.concat(O, '" has no default condition. You must specify which conditions to target explicitly. Possible options are ').concat(Object.keys(m.values[w].conditions).map(R).join(", ")));
1084
+ if (typeof w == "object") {
1085
+ if (!("conditions" in m.values[Object.keys(m.values)[0]]))
1086
+ throw new I('"'.concat(O, '" is not a conditional property'));
1087
+ if (Array.isArray(w)) {
1088
+ if (!("responsiveArray" in m))
1089
+ throw new I('"'.concat(O, '" does not support responsive arrays'));
1090
+ var V = m.responsiveArray.length;
1091
+ if (V < w.length)
1092
+ throw new I('"'.concat(O, '" only supports up to ').concat(V, " breakpoints. You passed ").concat(w.length));
1093
+ for (var ne of w)
1094
+ m.values[ne] || P(O, ne, m.values);
1095
+ } else
1096
+ for (var X in w) {
1097
+ var Y = w[X];
1098
+ if (Y != null && (m.values[Y] || P(O, Y, m.values), !m.values[Y].conditions[X]))
1099
+ throw new I('"'.concat(O, '" has no condition named ').concat(R(X), ". Possible values are ").concat(Object.keys(m.values[Y].conditions).map(R).join(", ")));
1100
+ }
1101
+ }
1102
+ }
1103
+ throw de;
1104
+ }
1105
+ };
1106
+ for (var O in A)
1107
+ var Re = j();
1108
+ return t(b.join(" "));
1109
+ };
1110
+ return Object.assign(f, {
1111
+ properties: new Set(u)
1112
+ });
1113
+ }, os = (t) => t, is = function() {
1114
+ return ns(os)(...arguments);
1115
+ }, Pt = is({ conditions: { defaultCondition: "lightMode", conditionNames: ["lightMode", "darkMode"], responsiveArray: void 0 }, styles: { color: { values: { background: { conditions: { lightMode: "_1hbz9ox0", darkMode: "_1hbz9ox1" }, defaultClass: "_1hbz9ox0" }, mute: { conditions: { lightMode: "_1hbz9ox2", darkMode: "_1hbz9ox3" }, defaultClass: "_1hbz9ox2" }, panel: { conditions: { lightMode: "_1hbz9ox4", darkMode: "_1hbz9ox5" }, defaultClass: "_1hbz9ox4" }, foreground: { conditions: { lightMode: "_1hbz9ox6", darkMode: "_1hbz9ox7" }, defaultClass: "_1hbz9ox6" }, contrast: { conditions: { lightMode: "_1hbz9ox8", darkMode: "_1hbz9ox9" }, defaultClass: "_1hbz9ox8" }, secondary: { conditions: { lightMode: "_1hbz9oxa", darkMode: "_1hbz9oxb" }, defaultClass: "_1hbz9oxa" }, tertiary: { conditions: { lightMode: "_1hbz9oxc", darkMode: "_1hbz9oxd" }, defaultClass: "_1hbz9oxc" }, placeholder: { conditions: { lightMode: "_1hbz9oxe", darkMode: "_1hbz9oxf" }, defaultClass: "_1hbz9oxe" }, smooth: { conditions: { lightMode: "_1hbz9oxg", darkMode: "_1hbz9oxh" }, defaultClass: "_1hbz9oxg" }, subtle: { conditions: { lightMode: "_1hbz9oxi", darkMode: "_1hbz9oxj" }, defaultClass: "_1hbz9oxi" }, soft: { conditions: { lightMode: "_1hbz9oxk", darkMode: "_1hbz9oxl" }, defaultClass: "_1hbz9oxk" }, offset: { conditions: { lightMode: "_1hbz9oxm", darkMode: "_1hbz9oxn" }, defaultClass: "_1hbz9oxm" }, primary: { conditions: { lightMode: "_1hbz9oxo", darkMode: "_1hbz9oxp" }, defaultClass: "_1hbz9oxo" }, primaryHover: { conditions: { lightMode: "_1hbz9oxq", darkMode: "_1hbz9oxr" }, defaultClass: "_1hbz9oxq" }, transparent: { conditions: { lightMode: "_1hbz9oxs", darkMode: "_1hbz9oxt" }, defaultClass: "_1hbz9oxs" }, error: { conditions: { lightMode: "_1hbz9oxu", darkMode: "_1hbz9oxv" }, defaultClass: "_1hbz9oxu" }, auxiliary: { conditions: { lightMode: "_1hbz9oxw", darkMode: "_1hbz9oxx" }, defaultClass: "_1hbz9oxw" }, success: { conditions: { lightMode: "_1hbz9oxy", darkMode: "_1hbz9oxz" }, defaultClass: "_1hbz9oxy" }, foregroundSuccess: { conditions: { lightMode: "_1hbz9ox10", darkMode: "_1hbz9ox11" }, defaultClass: "_1hbz9ox10" }, backgroundSuccess: { conditions: { lightMode: "_1hbz9ox12", darkMode: "_1hbz9ox13" }, defaultClass: "_1hbz9ox12" }, failure: { conditions: { lightMode: "_1hbz9ox14", darkMode: "_1hbz9ox15" }, defaultClass: "_1hbz9ox14" }, foregroundFailure: { conditions: { lightMode: "_1hbz9ox16", darkMode: "_1hbz9ox17" }, defaultClass: "_1hbz9ox16" }, backgroundFailure: { conditions: { lightMode: "_1hbz9ox18", darkMode: "_1hbz9ox19" }, defaultClass: "_1hbz9ox18" } } }, backgroundColor: { values: { background: { conditions: { lightMode: "_1hbz9ox1a", darkMode: "_1hbz9ox1b" }, defaultClass: "_1hbz9ox1a" }, mute: { conditions: { lightMode: "_1hbz9ox1c", darkMode: "_1hbz9ox1d" }, defaultClass: "_1hbz9ox1c" }, panel: { conditions: { lightMode: "_1hbz9ox1e", darkMode: "_1hbz9ox1f" }, defaultClass: "_1hbz9ox1e" }, foreground: { conditions: { lightMode: "_1hbz9ox1g", darkMode: "_1hbz9ox1h" }, defaultClass: "_1hbz9ox1g" }, contrast: { conditions: { lightMode: "_1hbz9ox1i", darkMode: "_1hbz9ox1j" }, defaultClass: "_1hbz9ox1i" }, secondary: { conditions: { lightMode: "_1hbz9ox1k", darkMode: "_1hbz9ox1l" }, defaultClass: "_1hbz9ox1k" }, tertiary: { conditions: { lightMode: "_1hbz9ox1m", darkMode: "_1hbz9ox1n" }, defaultClass: "_1hbz9ox1m" }, placeholder: { conditions: { lightMode: "_1hbz9ox1o", darkMode: "_1hbz9ox1p" }, defaultClass: "_1hbz9ox1o" }, smooth: { conditions: { lightMode: "_1hbz9ox1q", darkMode: "_1hbz9ox1r" }, defaultClass: "_1hbz9ox1q" }, subtle: { conditions: { lightMode: "_1hbz9ox1s", darkMode: "_1hbz9ox1t" }, defaultClass: "_1hbz9ox1s" }, soft: { conditions: { lightMode: "_1hbz9ox1u", darkMode: "_1hbz9ox1v" }, defaultClass: "_1hbz9ox1u" }, offset: { conditions: { lightMode: "_1hbz9ox1w", darkMode: "_1hbz9ox1x" }, defaultClass: "_1hbz9ox1w" }, primary: { conditions: { lightMode: "_1hbz9ox1y", darkMode: "_1hbz9ox1z" }, defaultClass: "_1hbz9ox1y" }, primaryHover: { conditions: { lightMode: "_1hbz9ox20", darkMode: "_1hbz9ox21" }, defaultClass: "_1hbz9ox20" }, transparent: { conditions: { lightMode: "_1hbz9ox22", darkMode: "_1hbz9ox23" }, defaultClass: "_1hbz9ox22" }, error: { conditions: { lightMode: "_1hbz9ox24", darkMode: "_1hbz9ox25" }, defaultClass: "_1hbz9ox24" }, auxiliary: { conditions: { lightMode: "_1hbz9ox26", darkMode: "_1hbz9ox27" }, defaultClass: "_1hbz9ox26" }, success: { conditions: { lightMode: "_1hbz9ox28", darkMode: "_1hbz9ox29" }, defaultClass: "_1hbz9ox28" }, foregroundSuccess: { conditions: { lightMode: "_1hbz9ox2a", darkMode: "_1hbz9ox2b" }, defaultClass: "_1hbz9ox2a" }, backgroundSuccess: { conditions: { lightMode: "_1hbz9ox2c", darkMode: "_1hbz9ox2d" }, defaultClass: "_1hbz9ox2c" }, failure: { conditions: { lightMode: "_1hbz9ox2e", darkMode: "_1hbz9ox2f" }, defaultClass: "_1hbz9ox2e" }, foregroundFailure: { conditions: { lightMode: "_1hbz9ox2g", darkMode: "_1hbz9ox2h" }, defaultClass: "_1hbz9ox2g" }, backgroundFailure: { conditions: { lightMode: "_1hbz9ox2i", darkMode: "_1hbz9ox2j" }, defaultClass: "_1hbz9ox2i" } } } } }, { conditions: void 0, styles: { marginY: { mappings: ["marginTop", "marginBottom"] }, marginX: { mappings: ["marginLeft", "marginRight"] }, gap: { values: { 0: { defaultClass: "_1hbz9ox2k" }, 1: { defaultClass: "_1hbz9ox2l" }, 2: { defaultClass: "_1hbz9ox2m" }, 3: { defaultClass: "_1hbz9ox2n" }, 4: { defaultClass: "_1hbz9ox2o" }, 5: { defaultClass: "_1hbz9ox2p" }, 6: { defaultClass: "_1hbz9ox2q" }, 7: { defaultClass: "_1hbz9ox2r" }, 8: { defaultClass: "_1hbz9ox2s" }, 9: { defaultClass: "_1hbz9ox2t" }, 10: { defaultClass: "_1hbz9ox2u" }, 11: { defaultClass: "_1hbz9ox2v" }, 12: { defaultClass: "_1hbz9ox2w" }, 13: { defaultClass: "_1hbz9ox2x" }, 14: { defaultClass: "_1hbz9ox2y" }, 15: { defaultClass: "_1hbz9ox2z" }, 16: { defaultClass: "_1hbz9ox30" }, 20: { defaultClass: "_1hbz9ox31" }, 24: { defaultClass: "_1hbz9ox32" }, 28: { defaultClass: "_1hbz9ox33" }, 32: { defaultClass: "_1hbz9ox34" }, 36: { defaultClass: "_1hbz9ox35" }, 40: { defaultClass: "_1hbz9ox36" }, 44: { defaultClass: "_1hbz9ox37" }, 48: { defaultClass: "_1hbz9ox38" }, 52: { defaultClass: "_1hbz9ox39" }, 56: { defaultClass: "_1hbz9ox3a" }, 60: { defaultClass: "_1hbz9ox3b" }, 64: { defaultClass: "_1hbz9ox3c" }, 68: { defaultClass: "_1hbz9ox3d" }, 72: { defaultClass: "_1hbz9ox3e" }, 76: { defaultClass: "_1hbz9ox3f" }, 80: { defaultClass: "_1hbz9ox3g" }, 96: { defaultClass: "_1hbz9ox3h" }, px: { defaultClass: "_1hbz9ox3i" }, "0.25": { defaultClass: "_1hbz9ox3j" }, "0.5": { defaultClass: "_1hbz9ox3k" }, "0.75": { defaultClass: "_1hbz9ox3l" }, "1.5": { defaultClass: "_1hbz9ox3m" }, "2.5": { defaultClass: "_1hbz9ox3n" }, "3.5": { defaultClass: "_1hbz9ox3o" } } }, marginTop: { values: { 0: { defaultClass: "_1hbz9ox3p" }, 1: { defaultClass: "_1hbz9ox3q" }, 2: { defaultClass: "_1hbz9ox3r" }, 3: { defaultClass: "_1hbz9ox3s" }, 4: { defaultClass: "_1hbz9ox3t" }, 5: { defaultClass: "_1hbz9ox3u" }, 6: { defaultClass: "_1hbz9ox3v" }, 7: { defaultClass: "_1hbz9ox3w" }, 8: { defaultClass: "_1hbz9ox3x" }, 9: { defaultClass: "_1hbz9ox3y" }, 10: { defaultClass: "_1hbz9ox3z" }, 11: { defaultClass: "_1hbz9ox40" }, 12: { defaultClass: "_1hbz9ox41" }, 13: { defaultClass: "_1hbz9ox42" }, 14: { defaultClass: "_1hbz9ox43" }, 15: { defaultClass: "_1hbz9ox44" }, 16: { defaultClass: "_1hbz9ox45" }, 20: { defaultClass: "_1hbz9ox46" }, 24: { defaultClass: "_1hbz9ox47" }, 28: { defaultClass: "_1hbz9ox48" }, 32: { defaultClass: "_1hbz9ox49" }, 36: { defaultClass: "_1hbz9ox4a" }, 40: { defaultClass: "_1hbz9ox4b" }, 44: { defaultClass: "_1hbz9ox4c" }, 48: { defaultClass: "_1hbz9ox4d" }, 52: { defaultClass: "_1hbz9ox4e" }, 56: { defaultClass: "_1hbz9ox4f" }, 60: { defaultClass: "_1hbz9ox4g" }, 64: { defaultClass: "_1hbz9ox4h" }, 68: { defaultClass: "_1hbz9ox4i" }, 72: { defaultClass: "_1hbz9ox4j" }, 76: { defaultClass: "_1hbz9ox4k" }, 80: { defaultClass: "_1hbz9ox4l" }, 96: { defaultClass: "_1hbz9ox4m" }, px: { defaultClass: "_1hbz9ox4n" }, "0.25": { defaultClass: "_1hbz9ox4o" }, "0.5": { defaultClass: "_1hbz9ox4p" }, "0.75": { defaultClass: "_1hbz9ox4q" }, "1.5": { defaultClass: "_1hbz9ox4r" }, "2.5": { defaultClass: "_1hbz9ox4s" }, "3.5": { defaultClass: "_1hbz9ox4t" } } }, marginBottom: { values: { 0: { defaultClass: "_1hbz9ox4u" }, 1: { defaultClass: "_1hbz9ox4v" }, 2: { defaultClass: "_1hbz9ox4w" }, 3: { defaultClass: "_1hbz9ox4x" }, 4: { defaultClass: "_1hbz9ox4y" }, 5: { defaultClass: "_1hbz9ox4z" }, 6: { defaultClass: "_1hbz9ox50" }, 7: { defaultClass: "_1hbz9ox51" }, 8: { defaultClass: "_1hbz9ox52" }, 9: { defaultClass: "_1hbz9ox53" }, 10: { defaultClass: "_1hbz9ox54" }, 11: { defaultClass: "_1hbz9ox55" }, 12: { defaultClass: "_1hbz9ox56" }, 13: { defaultClass: "_1hbz9ox57" }, 14: { defaultClass: "_1hbz9ox58" }, 15: { defaultClass: "_1hbz9ox59" }, 16: { defaultClass: "_1hbz9ox5a" }, 20: { defaultClass: "_1hbz9ox5b" }, 24: { defaultClass: "_1hbz9ox5c" }, 28: { defaultClass: "_1hbz9ox5d" }, 32: { defaultClass: "_1hbz9ox5e" }, 36: { defaultClass: "_1hbz9ox5f" }, 40: { defaultClass: "_1hbz9ox5g" }, 44: { defaultClass: "_1hbz9ox5h" }, 48: { defaultClass: "_1hbz9ox5i" }, 52: { defaultClass: "_1hbz9ox5j" }, 56: { defaultClass: "_1hbz9ox5k" }, 60: { defaultClass: "_1hbz9ox5l" }, 64: { defaultClass: "_1hbz9ox5m" }, 68: { defaultClass: "_1hbz9ox5n" }, 72: { defaultClass: "_1hbz9ox5o" }, 76: { defaultClass: "_1hbz9ox5p" }, 80: { defaultClass: "_1hbz9ox5q" }, 96: { defaultClass: "_1hbz9ox5r" }, px: { defaultClass: "_1hbz9ox5s" }, "0.25": { defaultClass: "_1hbz9ox5t" }, "0.5": { defaultClass: "_1hbz9ox5u" }, "0.75": { defaultClass: "_1hbz9ox5v" }, "1.5": { defaultClass: "_1hbz9ox5w" }, "2.5": { defaultClass: "_1hbz9ox5x" }, "3.5": { defaultClass: "_1hbz9ox5y" } } }, marginLeft: { values: { 0: { defaultClass: "_1hbz9ox5z" }, 1: { defaultClass: "_1hbz9ox60" }, 2: { defaultClass: "_1hbz9ox61" }, 3: { defaultClass: "_1hbz9ox62" }, 4: { defaultClass: "_1hbz9ox63" }, 5: { defaultClass: "_1hbz9ox64" }, 6: { defaultClass: "_1hbz9ox65" }, 7: { defaultClass: "_1hbz9ox66" }, 8: { defaultClass: "_1hbz9ox67" }, 9: { defaultClass: "_1hbz9ox68" }, 10: { defaultClass: "_1hbz9ox69" }, 11: { defaultClass: "_1hbz9ox6a" }, 12: { defaultClass: "_1hbz9ox6b" }, 13: { defaultClass: "_1hbz9ox6c" }, 14: { defaultClass: "_1hbz9ox6d" }, 15: { defaultClass: "_1hbz9ox6e" }, 16: { defaultClass: "_1hbz9ox6f" }, 20: { defaultClass: "_1hbz9ox6g" }, 24: { defaultClass: "_1hbz9ox6h" }, 28: { defaultClass: "_1hbz9ox6i" }, 32: { defaultClass: "_1hbz9ox6j" }, 36: { defaultClass: "_1hbz9ox6k" }, 40: { defaultClass: "_1hbz9ox6l" }, 44: { defaultClass: "_1hbz9ox6m" }, 48: { defaultClass: "_1hbz9ox6n" }, 52: { defaultClass: "_1hbz9ox6o" }, 56: { defaultClass: "_1hbz9ox6p" }, 60: { defaultClass: "_1hbz9ox6q" }, 64: { defaultClass: "_1hbz9ox6r" }, 68: { defaultClass: "_1hbz9ox6s" }, 72: { defaultClass: "_1hbz9ox6t" }, 76: { defaultClass: "_1hbz9ox6u" }, 80: { defaultClass: "_1hbz9ox6v" }, 96: { defaultClass: "_1hbz9ox6w" }, px: { defaultClass: "_1hbz9ox6x" }, "0.25": { defaultClass: "_1hbz9ox6y" }, "0.5": { defaultClass: "_1hbz9ox6z" }, "0.75": { defaultClass: "_1hbz9ox70" }, "1.5": { defaultClass: "_1hbz9ox71" }, "2.5": { defaultClass: "_1hbz9ox72" }, "3.5": { defaultClass: "_1hbz9ox73" } } }, marginRight: { values: { 0: { defaultClass: "_1hbz9ox74" }, 1: { defaultClass: "_1hbz9ox75" }, 2: { defaultClass: "_1hbz9ox76" }, 3: { defaultClass: "_1hbz9ox77" }, 4: { defaultClass: "_1hbz9ox78" }, 5: { defaultClass: "_1hbz9ox79" }, 6: { defaultClass: "_1hbz9ox7a" }, 7: { defaultClass: "_1hbz9ox7b" }, 8: { defaultClass: "_1hbz9ox7c" }, 9: { defaultClass: "_1hbz9ox7d" }, 10: { defaultClass: "_1hbz9ox7e" }, 11: { defaultClass: "_1hbz9ox7f" }, 12: { defaultClass: "_1hbz9ox7g" }, 13: { defaultClass: "_1hbz9ox7h" }, 14: { defaultClass: "_1hbz9ox7i" }, 15: { defaultClass: "_1hbz9ox7j" }, 16: { defaultClass: "_1hbz9ox7k" }, 20: { defaultClass: "_1hbz9ox7l" }, 24: { defaultClass: "_1hbz9ox7m" }, 28: { defaultClass: "_1hbz9ox7n" }, 32: { defaultClass: "_1hbz9ox7o" }, 36: { defaultClass: "_1hbz9ox7p" }, 40: { defaultClass: "_1hbz9ox7q" }, 44: { defaultClass: "_1hbz9ox7r" }, 48: { defaultClass: "_1hbz9ox7s" }, 52: { defaultClass: "_1hbz9ox7t" }, 56: { defaultClass: "_1hbz9ox7u" }, 60: { defaultClass: "_1hbz9ox7v" }, 64: { defaultClass: "_1hbz9ox7w" }, 68: { defaultClass: "_1hbz9ox7x" }, 72: { defaultClass: "_1hbz9ox7y" }, 76: { defaultClass: "_1hbz9ox7z" }, 80: { defaultClass: "_1hbz9ox80" }, 96: { defaultClass: "_1hbz9ox81" }, px: { defaultClass: "_1hbz9ox82" }, "0.25": { defaultClass: "_1hbz9ox83" }, "0.5": { defaultClass: "_1hbz9ox84" }, "0.75": { defaultClass: "_1hbz9ox85" }, "1.5": { defaultClass: "_1hbz9ox86" }, "2.5": { defaultClass: "_1hbz9ox87" }, "3.5": { defaultClass: "_1hbz9ox88" } } } } });
1116
+ const $e = (t) => /* @__PURE__ */ o.jsx(
1117
+ "div",
1118
+ {
1119
+ className: N(
1120
+ "sid-stack",
1121
+ ts(t.variant),
1122
+ Pt({ gap: t.space || "2" }),
1123
+ t.className
1124
+ ),
1125
+ style: t.style,
1126
+ children: t.children
1127
+ }
1128
+ );
1129
+ var ls = kt({ defaultClassName: "_1wn0ypy0", variantClassNames: { size: { xs: "_1wn0ypy1", sm: "_1wn0ypy2", base: "_1wn0ypy3", xl: "_1wn0ypy4", "2xl-title": "_1wn0ypy5" }, weight: { medium: "_1wn0ypy6", semibold: "_1wn0ypy7", bold: "_1wn0ypy8" }, color: { contrast: "_1wn0ypy9", tertiary: "_1wn0ypya", placeholder: "_1wn0ypyb", white: "_1wn0ypyc", success: "_1wn0ypyd", failure: "_1wn0ypye" } }, defaultVariants: { size: "base", weight: "medium" }, compoundVariants: [] });
1130
+ const us = {
1131
+ text: {}
1132
+ }, He = zt(us);
1133
+ He.displayName = "SlashIDTextContext";
1134
+ const ma = ({ text: t, children: e }) => {
1135
+ const r = Et(() => ({
1136
+ text: t
1137
+ }), [t]);
1138
+ return /* @__PURE__ */ o.jsx(He.Provider, { value: r, children: e });
1139
+ };
1140
+ function cs() {
1141
+ const { text: t } = we.useContext(He);
1142
+ return t;
1143
+ }
1144
+ const Ae = {
1145
+ opening: "{{",
1146
+ closing: "}}"
1147
+ };
1148
+ function Nt(t, e) {
1149
+ return t.includes(Ae.opening) ? Object.keys(e).reduce(
1150
+ (s, n) => s.replace(
1151
+ `${Ae.opening}${n}${Ae.closing}`,
1152
+ e[n]
1153
+ ),
1154
+ t
1155
+ ) : t;
1156
+ }
1157
+ const Ue = ({
1158
+ as: t,
1159
+ t: e,
1160
+ tokens: r,
1161
+ variant: s,
1162
+ className: n,
1163
+ children: u
1164
+ }) => {
1165
+ const c = cs(), f = t || "p";
1166
+ return /* @__PURE__ */ o.jsxs(
1167
+ f,
1168
+ {
1169
+ className: N(
1170
+ "sid-text",
1171
+ `sid-text--${t}`,
1172
+ ls(s),
1173
+ n
1174
+ ),
1175
+ children: [
1176
+ r ? Nt(c[e], r) : c[e],
1177
+ u || null
1178
+ ]
1179
+ }
1180
+ );
1181
+ }, C = {
1182
+ "footer.text": "Top-tier security by SlashID",
1183
+ "initial.title": "Logging you in...",
1184
+ "initial.details": "Please follow the on-screen instructions.",
1185
+ "recover.password.title": "Reset password",
1186
+ "recover.password.details": "Enter your new password.",
1187
+ "recover.password.input.password.label": "Password",
1188
+ "recover.password.input.confirmPassword.label": "Confirm password",
1189
+ "recover.password.input.placeholder": "Type your new password",
1190
+ "recover.password.submit": "Reset password",
1191
+ "recover.password.validation.passwordsDoNotMatch": "Passwords do not match",
1192
+ "recover.password.validation.length": "8-256 characters required",
1193
+ "recover.password.validation.password_variants": "Contains word 'password'",
1194
+ "recover.password.validation.admin_variants": "Contains word 'admin'",
1195
+ "recover.password.validation.user_variants": "Contains word 'user'",
1196
+ "recover.password.validation.alphanumeric_sequences_1": "Illegal sequence: {{ILLEGAL_SEQUENCE}}",
1197
+ "recover.password.validation.alphanumeric_sequences_2": "Illegal sequence: {{ILLEGAL_SEQUENCE}}",
1198
+ "recover.password.validation.numeric_sequences_ascending": "Illegal sequence: {{ILLEGAL_SEQUENCE}}",
1199
+ "recover.password.validation.numeric_subsequences_ascending": "Illegal sequence: {{ILLEGAL_SEQUENCE}}",
1200
+ "recover.password.validation.numeric_sequences_descending": "Illegal sequence: {{ILLEGAL_SEQUENCE}}",
1201
+ "recover.password.validation.numeric_subsequences_descending": "Illegal sequence: {{ILLEGAL_SEQUENCE}}",
1202
+ "recover.password.validation.common_password_xkcd": "Common password",
1203
+ "success.title": "All done!",
1204
+ "success.details": "Return to the website.",
1205
+ "error.title": "Something went wrong...",
1206
+ "error.title.authentication_expired": "Magic link expired",
1207
+ "error.title.registration_already_completed": "Magic link expired",
1208
+ "error.detail": "Return to the form and log in again.",
1209
+ "error.detail.authentication_expired": "Return to the form and log in again to continue.",
1210
+ "error.detail.registration_already_completed": "Return to the form and log in again to continue."
1211
+ }, ds = {
1212
+ en: C,
1213
+ ja: {
1214
+ "footer.text": C["footer.text"],
1215
+ "initial.title": "ログイン処理を行っています。",
1216
+ "initial.details": "処理完了後、画面は自動で切り替わります。",
1217
+ "success.title": "認証が完了しました!",
1218
+ "success.details": "このページを閉じて、元のページへ戻ってください。",
1219
+ "recover.password.title": C["recover.password.title"],
1220
+ "recover.password.details": C["recover.password.details"],
1221
+ "recover.password.input.password.label": C["recover.password.input.password.label"],
1222
+ "recover.password.input.confirmPassword.label": C["recover.password.input.confirmPassword.label"],
1223
+ "recover.password.input.placeholder": C["recover.password.input.placeholder"],
1224
+ "recover.password.submit": C["recover.password.submit"],
1225
+ "recover.password.validation.passwordsDoNotMatch": C["recover.password.validation.passwordsDoNotMatch"],
1226
+ "recover.password.validation.length": C["recover.password.validation.length"],
1227
+ "recover.password.validation.password_variants": C["recover.password.validation.password_variants"],
1228
+ "recover.password.validation.admin_variants": C["recover.password.validation.admin_variants"],
1229
+ "recover.password.validation.user_variants": C["recover.password.validation.user_variants"],
1230
+ "recover.password.validation.alphanumeric_sequences_1": C["recover.password.validation.alphanumeric_sequences_1"],
1231
+ "recover.password.validation.alphanumeric_sequences_2": C["recover.password.validation.alphanumeric_sequences_2"],
1232
+ "recover.password.validation.numeric_sequences_ascending": C["recover.password.validation.numeric_sequences_ascending"],
1233
+ "recover.password.validation.numeric_subsequences_ascending": C["recover.password.validation.numeric_subsequences_ascending"],
1234
+ "recover.password.validation.numeric_sequences_descending": C["recover.password.validation.numeric_sequences_descending"],
1235
+ "recover.password.validation.numeric_subsequences_descending": C["recover.password.validation.numeric_subsequences_descending"],
1236
+ "recover.password.validation.common_password_xkcd": C["recover.password.validation.common_password_xkcd"],
1237
+ "error.title": C["error.title"],
1238
+ "error.title.authentication_expired": C["error.title.authentication_expired"],
1239
+ "error.title.registration_already_completed": C["error.title.registration_already_completed"],
1240
+ "error.detail": "再度ログインをしてください。",
1241
+ "error.detail.authentication_expired": C["error.detail.authentication_expired"],
1242
+ "error.detail.registration_already_completed": C["error.detail.registration_already_completed"]
1243
+ }
1244
+ }, fs = (t) => (e) => ds[t][e], hs = {
1245
+ logo: /* @__PURE__ */ o.jsx(Yr, {}),
1246
+ language: "en",
1247
+ state: "initial",
1248
+ sdk: void 0,
1249
+ setLogo: () => {
1250
+ }
1251
+ }, _s = zt(hs), ye = () => xr(_s), J = (t) => /* @__PURE__ */ o.jsx(Ue, { ...t });
1252
+ var ps = "_1vg0oop0", bs = "_1vg0oop1", gs = "_1vg0oop2", vt = "_1vg0oop3";
1253
+ function xs() {
1254
+ const { logo: t } = ye();
1255
+ return /* @__PURE__ */ o.jsx("div", { className: vt, children: typeof t == "string" ? /* @__PURE__ */ o.jsx("img", { src: t, alt: "logo", className: vt }) : t });
1256
+ }
1257
+ function vs() {
1258
+ return /* @__PURE__ */ o.jsx(
1259
+ J,
1260
+ {
1261
+ t: "footer.text",
1262
+ variant: {
1263
+ size: "xs",
1264
+ weight: "semibold",
1265
+ color: "placeholder"
1266
+ }
1267
+ }
1268
+ );
1269
+ }
1270
+ function Ca({ children: t, className: e, header: r = /* @__PURE__ */ o.jsx(xs, {}), footer: s = /* @__PURE__ */ o.jsx(vs, {}), style: n }) {
1271
+ return /* @__PURE__ */ o.jsxs("article", { style: n, className: N(ps, e), children: [
1272
+ r && /* @__PURE__ */ o.jsx("header", { className: bs, children: r }),
1273
+ /* @__PURE__ */ o.jsx("div", { children: t }),
1274
+ s && /* @__PURE__ */ o.jsx("footer", { className: gs, children: s })
1275
+ ] });
1276
+ }
1277
+ const ms = { "--sid-color-primary": "#DCDDE5" };
1278
+ function Cs({ type: t }) {
1279
+ return t === "neutral" ? /* @__PURE__ */ o.jsx("div", { style: ms, children: /* @__PURE__ */ o.jsx(me, { variant: "primary", shouldAnimate: !1, children: /* @__PURE__ */ o.jsx(_t, {}) }) }) : /* @__PURE__ */ o.jsx(me, { variant: t === "warning" ? "blue" : "red", shouldAnimate: !1, children: /* @__PURE__ */ o.jsx(_t, {}) });
1280
+ }
1281
+ const ws = (t) => {
1282
+ switch (t) {
1283
+ case "authentication_expired":
1284
+ return "error.title.authentication_expired";
1285
+ case "registration_already_completed":
1286
+ return "error.title.registration_already_completed";
1287
+ }
1288
+ return "error.title";
1289
+ }, ys = (t) => {
1290
+ switch (t) {
1291
+ case "authentication_expired":
1292
+ return "error.detail.authentication_expired";
1293
+ case "registration_already_completed":
1294
+ return "error.detail.registration_already_completed";
1295
+ }
1296
+ return "error.detail";
1297
+ };
1298
+ function wa({ errorCode: t, type: e, redirectUri: r }) {
1299
+ r && window.location.replace(r);
1300
+ const s = ws(t), n = ys(t);
1301
+ return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1302
+ /* @__PURE__ */ o.jsxs($e, { space: "0.25", children: [
1303
+ /* @__PURE__ */ o.jsx(J, { as: "h1", t: s, variant: { size: "2xl-title", weight: "bold" } }),
1304
+ /* @__PURE__ */ o.jsx(J, { as: "h2", t: n, variant: { color: "contrast", weight: "semibold" } })
1305
+ ] }),
1306
+ /* @__PURE__ */ o.jsx(Cs, { type: e })
1307
+ ] });
1308
+ }
1309
+ const zs = () => /* @__PURE__ */ o.jsx(me, { variant: "primary", children: /* @__PURE__ */ o.jsx("svg", { width: "21", height: "18", viewBox: "0 0 21 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ o.jsx(
1310
+ "path",
1311
+ {
1312
+ fillRule: "evenodd",
1313
+ clipRule: "evenodd",
1314
+ d: "M19.8505 0.705985C20.6342 1.38283 20.7209 2.56684 20.044 3.35055L8.16908 17.1005C7.80192 17.5256 7.2635 17.7637 6.70195 17.7493C6.1404 17.7349 5.61489 17.4695 5.27002 17.0261L0.895049 11.4011C0.259296 10.5837 0.406547 9.4057 1.22394 8.76995C2.04134 8.13419 3.21935 8.28145 3.8551 9.09884L6.82592 12.9185L17.2059 0.89949C17.8828 0.115778 19.0668 0.0291434 19.8505 0.705985Z",
1315
+ fill: "white"
1316
+ }
1317
+ ) }) });
1318
+ function ya({ redirectUri: t } = {}) {
1319
+ return t && window.location.replace(t), /* @__PURE__ */ o.jsxs("article", { "data-testid": "sid-form-success-state", children: [
1320
+ /* @__PURE__ */ o.jsx(J, { as: "h1", t: "success.title", variant: { size: "2xl-title", weight: "bold" } }),
1321
+ /* @__PURE__ */ o.jsx(J, { as: "h2", t: "success.details", variant: { color: "contrast", weight: "semibold" } }),
1322
+ /* @__PURE__ */ o.jsx(zs, {})
1323
+ ] });
1324
+ }
1325
+ var Es = "_8vopmj0", Ss = "_8vopmj2";
1326
+ function js() {
1327
+ const { language: t } = ye();
1328
+ return Et(() => fs(t), [t]);
1329
+ }
1330
+ function Rs(t) {
1331
+ return `recover.password.validation.${t.failedRules[0].name}`;
1332
+ }
1333
+ function Ts({
1334
+ errorEvent: t,
1335
+ password: e
1336
+ }) {
1337
+ const r = t.failedRules[0];
1338
+ let s = "";
1339
+ if (r.matchType === "must_not_match") {
1340
+ const n = r.regexp.exec(e);
1341
+ s = n !== null ? n[0] : "";
1342
+ }
1343
+ return s ? {
1344
+ ILLEGAL_SEQUENCE: s
1345
+ } : {};
1346
+ }
1347
+ function Ms({ message: t }) {
1348
+ return /* @__PURE__ */ o.jsx("span", { className: Ss, children: t });
1349
+ }
1350
+ function Os() {
1351
+ const t = js(), { sdk: e } = ye(), [r, s] = ue(""), [n, u] = ue(""), [c, f] = ue(null), [d, b] = ue("initial");
1352
+ St(() => {
1353
+ const S = (B) => {
1354
+ f(
1355
+ Nt(
1356
+ t(Rs(B)),
1357
+ Ts({ errorEvent: B, password: r })
1358
+ )
1359
+ ), b("initial");
1360
+ };
1361
+ return e == null || e.subscribe("invalidPasswordSubmitted", S), () => {
1362
+ e == null || e.unsubscribe("invalidPasswordSubmitted", S);
1363
+ };
1364
+ }, [t, e, r, f]);
1365
+ const x = (S) => {
1366
+ if (S.preventDefault(), !!e) {
1367
+ if (!r || r !== n) {
1368
+ f(t("recover.password.validation.passwordsDoNotMatch"));
1369
+ return;
1370
+ }
1371
+ e.publish("passwordSubmitted", r), b("submitting");
1372
+ }
1373
+ }, y = (S) => {
1374
+ s(S.target.value), f(null);
1375
+ }, M = (S) => {
1376
+ u(S.target.value), f(null);
1377
+ };
1378
+ return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1379
+ /* @__PURE__ */ o.jsxs($e, { space: "0.25", children: [
1380
+ /* @__PURE__ */ o.jsx(Ue, { as: "h1", variant: { size: "2xl-title", weight: "bold" }, t: "recover.password.title" }),
1381
+ /* @__PURE__ */ o.jsx(Ue, { variant: { color: "contrast", weight: "semibold" }, as: "h2", t: "recover.password.details" })
1382
+ ] }),
1383
+ /* @__PURE__ */ o.jsxs("form", { onSubmit: x, children: [
1384
+ /* @__PURE__ */ o.jsxs("div", { className: Es, children: [
1385
+ /* @__PURE__ */ o.jsx(
1386
+ pt,
1387
+ {
1388
+ id: "password-input",
1389
+ label: t("recover.password.input.password.label"),
1390
+ placeholder: t("recover.password.input.placeholder"),
1391
+ name: "password",
1392
+ value: r ?? "",
1393
+ onChange: y,
1394
+ error: !!c,
1395
+ autoComplete: "new-password"
1396
+ }
1397
+ ),
1398
+ /* @__PURE__ */ o.jsx(
1399
+ pt,
1400
+ {
1401
+ id: "password-input-confirm",
1402
+ label: t("recover.password.input.confirmPassword.label"),
1403
+ placeholder: t("recover.password.input.placeholder"),
1404
+ name: "passwordConfirm",
1405
+ value: n ?? "",
1406
+ onChange: M,
1407
+ className: Pt({ marginTop: "4" }),
1408
+ error: !!c,
1409
+ autoComplete: "new-password"
1410
+ }
1411
+ ),
1412
+ c && /* @__PURE__ */ o.jsx(Ms, { message: c })
1413
+ ] }),
1414
+ /* @__PURE__ */ o.jsx(
1415
+ Ot,
1416
+ {
1417
+ type: "submit",
1418
+ variant: "primary",
1419
+ testId: "sid-form-initial-submit-button",
1420
+ disabled: d === "submitting",
1421
+ loading: d === "submitting",
1422
+ children: t("recover.password.submit")
1423
+ }
1424
+ )
1425
+ ] })
1426
+ ] });
1427
+ }
1428
+ const ks = Object.prototype.toString;
1429
+ function Ps(t, e) {
1430
+ return ks.call(t) === `[object ${e}]`;
1431
+ }
1432
+ function Dt(t) {
1433
+ return Ps(t, "Object");
1434
+ }
1435
+ function Ge(t) {
1436
+ return !!(t && t.then && typeof t.then == "function");
1437
+ }
1438
+ function xe(t) {
1439
+ return t && t.Math == Math ? t : void 0;
1440
+ }
1441
+ const D = typeof globalThis == "object" && xe(globalThis) || // eslint-disable-next-line no-restricted-globals
1442
+ typeof window == "object" && xe(window) || typeof self == "object" && xe(self) || typeof global == "object" && xe(global) || /* @__PURE__ */ function() {
1443
+ return this;
1444
+ }() || {};
1445
+ function It(t, e, r) {
1446
+ const s = r || D, n = s.__SENTRY__ = s.__SENTRY__ || {};
1447
+ return n[t] || (n[t] = e());
1448
+ }
1449
+ const Ns = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, Ds = "Sentry Logger ", mt = [
1450
+ "debug",
1451
+ "info",
1452
+ "warn",
1453
+ "error",
1454
+ "log",
1455
+ "assert",
1456
+ "trace"
1457
+ ], Ct = {};
1458
+ function Lt(t) {
1459
+ if (!("console" in D))
1460
+ return t();
1461
+ const e = D.console, r = {}, s = Object.keys(Ct);
1462
+ s.forEach((n) => {
1463
+ const u = Ct[n];
1464
+ r[n] = e[n], e[n] = u;
1465
+ });
1466
+ try {
1467
+ return t();
1468
+ } finally {
1469
+ s.forEach((n) => {
1470
+ e[n] = r[n];
1471
+ });
1472
+ }
1473
+ }
1474
+ function Is() {
1475
+ let t = !1;
1476
+ const e = {
1477
+ enable: () => {
1478
+ t = !0;
1479
+ },
1480
+ disable: () => {
1481
+ t = !1;
1482
+ },
1483
+ isEnabled: () => t
1484
+ };
1485
+ return Ns ? mt.forEach((r) => {
1486
+ e[r] = (...s) => {
1487
+ t && Lt(() => {
1488
+ D.console[r](`${Ds}[${r}]:`, ...s);
1489
+ });
1490
+ };
1491
+ }) : mt.forEach((r) => {
1492
+ e[r] = () => {
1493
+ };
1494
+ }), e;
1495
+ }
1496
+ const H = Is();
1497
+ function G(t) {
1498
+ return qe(t, /* @__PURE__ */ new Map());
1499
+ }
1500
+ function qe(t, e) {
1501
+ if (Ls(t)) {
1502
+ const r = e.get(t);
1503
+ if (r !== void 0)
1504
+ return r;
1505
+ const s = {};
1506
+ e.set(t, s);
1507
+ for (const n of Object.keys(t))
1508
+ typeof t[n] < "u" && (s[n] = qe(t[n], e));
1509
+ return s;
1510
+ }
1511
+ if (Array.isArray(t)) {
1512
+ const r = e.get(t);
1513
+ if (r !== void 0)
1514
+ return r;
1515
+ const s = [];
1516
+ return e.set(t, s), t.forEach((n) => {
1517
+ s.push(qe(n, e));
1518
+ }), s;
1519
+ }
1520
+ return t;
1521
+ }
1522
+ function Ls(t) {
1523
+ if (!Dt(t))
1524
+ return !1;
1525
+ try {
1526
+ const e = Object.getPrototypeOf(t).constructor.name;
1527
+ return !e || e === "Object";
1528
+ } catch {
1529
+ return !0;
1530
+ }
1531
+ }
1532
+ function L() {
1533
+ const t = D, e = t.crypto || t.msCrypto;
1534
+ let r = () => Math.random() * 16;
1535
+ try {
1536
+ if (e && e.randomUUID)
1537
+ return e.randomUUID().replace(/-/g, "");
1538
+ e && e.getRandomValues && (r = () => {
1539
+ const s = new Uint8Array(1);
1540
+ return e.getRandomValues(s), s[0];
1541
+ });
1542
+ } catch {
1543
+ }
1544
+ return ("10000000100040008000" + 1e11).replace(
1545
+ /[018]/g,
1546
+ (s) => (
1547
+ // eslint-disable-next-line no-bitwise
1548
+ (s ^ (r() & 15) >> s / 4).toString(16)
1549
+ )
1550
+ );
1551
+ }
1552
+ function As(t) {
1553
+ return Array.isArray(t) ? t : [t];
1554
+ }
1555
+ var q;
1556
+ (function(t) {
1557
+ t[t.PENDING = 0] = "PENDING";
1558
+ const r = 1;
1559
+ t[t.RESOLVED = r] = "RESOLVED";
1560
+ const s = 2;
1561
+ t[t.REJECTED = s] = "REJECTED";
1562
+ })(q || (q = {}));
1563
+ class $ {
1564
+ constructor(e) {
1565
+ $.prototype.__init.call(this), $.prototype.__init2.call(this), $.prototype.__init3.call(this), $.prototype.__init4.call(this), this._state = q.PENDING, this._handlers = [];
1566
+ try {
1567
+ e(this._resolve, this._reject);
1568
+ } catch (r) {
1569
+ this._reject(r);
1570
+ }
1571
+ }
1572
+ /** JSDoc */
1573
+ then(e, r) {
1574
+ return new $((s, n) => {
1575
+ this._handlers.push([
1576
+ !1,
1577
+ (u) => {
1578
+ if (!e)
1579
+ s(u);
1580
+ else
1581
+ try {
1582
+ s(e(u));
1583
+ } catch (c) {
1584
+ n(c);
1585
+ }
1586
+ },
1587
+ (u) => {
1588
+ if (!r)
1589
+ n(u);
1590
+ else
1591
+ try {
1592
+ s(r(u));
1593
+ } catch (c) {
1594
+ n(c);
1595
+ }
1596
+ }
1597
+ ]), this._executeHandlers();
1598
+ });
1599
+ }
1600
+ /** JSDoc */
1601
+ catch(e) {
1602
+ return this.then((r) => r, e);
1603
+ }
1604
+ /** JSDoc */
1605
+ finally(e) {
1606
+ return new $((r, s) => {
1607
+ let n, u;
1608
+ return this.then(
1609
+ (c) => {
1610
+ u = !1, n = c, e && e();
1611
+ },
1612
+ (c) => {
1613
+ u = !0, n = c, e && e();
1614
+ }
1615
+ ).then(() => {
1616
+ if (u) {
1617
+ s(n);
1618
+ return;
1619
+ }
1620
+ r(n);
1621
+ });
1622
+ });
1623
+ }
1624
+ /** JSDoc */
1625
+ __init() {
1626
+ this._resolve = (e) => {
1627
+ this._setResult(q.RESOLVED, e);
1628
+ };
1629
+ }
1630
+ /** JSDoc */
1631
+ __init2() {
1632
+ this._reject = (e) => {
1633
+ this._setResult(q.REJECTED, e);
1634
+ };
1635
+ }
1636
+ /** JSDoc */
1637
+ __init3() {
1638
+ this._setResult = (e, r) => {
1639
+ if (this._state === q.PENDING) {
1640
+ if (Ge(r)) {
1641
+ r.then(this._resolve, this._reject);
1642
+ return;
1643
+ }
1644
+ this._state = e, this._value = r, this._executeHandlers();
1645
+ }
1646
+ };
1647
+ }
1648
+ /** JSDoc */
1649
+ __init4() {
1650
+ this._executeHandlers = () => {
1651
+ if (this._state === q.PENDING)
1652
+ return;
1653
+ const e = this._handlers.slice();
1654
+ this._handlers = [], e.forEach((r) => {
1655
+ r[0] || (this._state === q.RESOLVED && r[1](this._value), this._state === q.REJECTED && r[2](this._value), r[0] = !0);
1656
+ });
1657
+ };
1658
+ }
1659
+ }
1660
+ const At = 1e3;
1661
+ function We() {
1662
+ return Date.now() / At;
1663
+ }
1664
+ function Fs() {
1665
+ const { performance: t } = D;
1666
+ if (!t || !t.now)
1667
+ return We;
1668
+ const e = Date.now() - t.now(), r = t.timeOrigin == null ? e : t.timeOrigin;
1669
+ return () => (r + t.now()) / At;
1670
+ }
1671
+ const Ft = Fs();
1672
+ (() => {
1673
+ const { performance: t } = D;
1674
+ if (!t || !t.now)
1675
+ return;
1676
+ const e = 3600 * 1e3, r = t.now(), s = Date.now(), n = t.timeOrigin ? Math.abs(t.timeOrigin + r - s) : e, u = n < e, c = t.timing && t.timing.navigationStart, d = typeof c == "number" ? Math.abs(c + r - s) : e, b = d < e;
1677
+ return u || b ? n <= d ? t.timeOrigin : c : s;
1678
+ })();
1679
+ const ve = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, Ut = "production";
1680
+ function Us() {
1681
+ return It("globalEventProcessors", () => []);
1682
+ }
1683
+ function Be(t, e, r, s = 0) {
1684
+ return new $((n, u) => {
1685
+ const c = t[s];
1686
+ if (e === null || typeof c != "function")
1687
+ n(e);
1688
+ else {
1689
+ const f = c({ ...e }, r);
1690
+ ve && c.id && f === null && H.log(`Event processor "${c.id}" dropped event`), Ge(f) ? f.then((d) => Be(t, d, r, s + 1).then(n)).then(null, u) : Be(t, f, r, s + 1).then(n).then(null, u);
1691
+ }
1692
+ });
1693
+ }
1694
+ function qs(t) {
1695
+ const e = Ft(), r = {
1696
+ sid: L(),
1697
+ init: !0,
1698
+ timestamp: e,
1699
+ started: e,
1700
+ duration: 0,
1701
+ status: "ok",
1702
+ errors: 0,
1703
+ ignoreDuration: !1,
1704
+ toJSON: () => Vs(r)
1705
+ };
1706
+ return t && ze(r, t), r;
1707
+ }
1708
+ function ze(t, e = {}) {
1709
+ if (e.user && (!t.ipAddress && e.user.ip_address && (t.ipAddress = e.user.ip_address), !t.did && !e.did && (t.did = e.user.id || e.user.email || e.user.username)), t.timestamp = e.timestamp || Ft(), e.abnormal_mechanism && (t.abnormal_mechanism = e.abnormal_mechanism), e.ignoreDuration && (t.ignoreDuration = e.ignoreDuration), e.sid && (t.sid = e.sid.length === 32 ? e.sid : L()), e.init !== void 0 && (t.init = e.init), !t.did && e.did && (t.did = `${e.did}`), typeof e.started == "number" && (t.started = e.started), t.ignoreDuration)
1710
+ t.duration = void 0;
1711
+ else if (typeof e.duration == "number")
1712
+ t.duration = e.duration;
1713
+ else {
1714
+ const r = t.timestamp - t.started;
1715
+ t.duration = r >= 0 ? r : 0;
1716
+ }
1717
+ e.release && (t.release = e.release), e.environment && (t.environment = e.environment), !t.ipAddress && e.ipAddress && (t.ipAddress = e.ipAddress), !t.userAgent && e.userAgent && (t.userAgent = e.userAgent), typeof e.errors == "number" && (t.errors = e.errors), e.status && (t.status = e.status);
1718
+ }
1719
+ function Bs(t, e) {
1720
+ let r = {};
1721
+ e ? r = { status: e } : t.status === "ok" && (r = { status: "exited" }), ze(t, r);
1722
+ }
1723
+ function Vs(t) {
1724
+ return G({
1725
+ sid: `${t.sid}`,
1726
+ init: t.init,
1727
+ // Make sure that sec is converted to ms for date constructor
1728
+ started: new Date(t.started * 1e3).toISOString(),
1729
+ timestamp: new Date(t.timestamp * 1e3).toISOString(),
1730
+ status: t.status,
1731
+ errors: t.errors,
1732
+ did: typeof t.did == "number" || typeof t.did == "string" ? `${t.did}` : void 0,
1733
+ duration: t.duration,
1734
+ abnormal_mechanism: t.abnormal_mechanism,
1735
+ attrs: {
1736
+ release: t.release,
1737
+ environment: t.environment,
1738
+ ip_address: t.ipAddress,
1739
+ user_agent: t.userAgent
1740
+ }
1741
+ });
1742
+ }
1743
+ const Ys = 1;
1744
+ function $s(t) {
1745
+ const { spanId: e, traceId: r } = t.spanContext(), { data: s, op: n, parent_span_id: u, status: c, tags: f, origin: d } = Ce(t);
1746
+ return G({
1747
+ data: s,
1748
+ op: n,
1749
+ parent_span_id: u,
1750
+ span_id: e,
1751
+ status: c,
1752
+ tags: f,
1753
+ trace_id: r,
1754
+ origin: d
1755
+ });
1756
+ }
1757
+ function Ce(t) {
1758
+ return Hs(t) ? t.getSpanJSON() : typeof t.toJSON == "function" ? t.toJSON() : {};
1759
+ }
1760
+ function Hs(t) {
1761
+ return typeof t.getSpanJSON == "function";
1762
+ }
1763
+ function Gs(t) {
1764
+ const { traceFlags: e } = t.spanContext();
1765
+ return !!(e & Ys);
1766
+ }
1767
+ function Ws(t) {
1768
+ if (t)
1769
+ return Js(t) ? { captureContext: t } : Zs(t) ? {
1770
+ captureContext: t
1771
+ } : t;
1772
+ }
1773
+ function Js(t) {
1774
+ return t instanceof W || typeof t == "function";
1775
+ }
1776
+ const Ks = [
1777
+ "user",
1778
+ "level",
1779
+ "extra",
1780
+ "contexts",
1781
+ "tags",
1782
+ "fingerprint",
1783
+ "requestSession",
1784
+ "propagationContext"
1785
+ ];
1786
+ function Zs(t) {
1787
+ return Object.keys(t).some((e) => Ks.includes(e));
1788
+ }
1789
+ function Qs(t, e) {
1790
+ return Se().captureException(t, Ws(e));
1791
+ }
1792
+ function Xs(...t) {
1793
+ const e = Se();
1794
+ if (t.length === 2) {
1795
+ const [r, s] = t;
1796
+ return r ? e.withScope(() => (e.getStackTop().scope = r, s(r))) : e.withScope(s);
1797
+ }
1798
+ return e.withScope(t[0]);
1799
+ }
1800
+ function ea() {
1801
+ return Se().getClient();
1802
+ }
1803
+ function ta() {
1804
+ return Se().getScope();
1805
+ }
1806
+ function qt(t) {
1807
+ return t.transaction;
1808
+ }
1809
+ function ra(t, e, r) {
1810
+ const s = e.getOptions(), { publicKey: n } = e.getDsn() || {}, { segment: u } = r && r.getUser() || {}, c = G({
1811
+ environment: s.environment || Ut,
1812
+ release: s.release,
1813
+ user_segment: u,
1814
+ public_key: n,
1815
+ trace_id: t
1816
+ });
1817
+ return e.emit && e.emit("createDsc", c), c;
1818
+ }
1819
+ function sa(t) {
1820
+ const e = ea();
1821
+ if (!e)
1822
+ return {};
1823
+ const r = ra(Ce(t).trace_id || "", e, ta()), s = qt(t);
1824
+ if (!s)
1825
+ return r;
1826
+ const n = s && s._frozenDynamicSamplingContext;
1827
+ if (n)
1828
+ return n;
1829
+ const { sampleRate: u, source: c } = s.metadata;
1830
+ u != null && (r.sample_rate = `${u}`);
1831
+ const f = Ce(s);
1832
+ return c && c !== "url" && (r.transaction = f.description), r.sampled = String(Gs(s)), e.emit && e.emit("createDsc", r), r;
1833
+ }
1834
+ function aa(t, e) {
1835
+ const { fingerprint: r, span: s, breadcrumbs: n, sdkProcessingMetadata: u } = e;
1836
+ na(t, e), s && la(t, s), ua(t, r), oa(t, n), ia(t, u);
1837
+ }
1838
+ function na(t, e) {
1839
+ const {
1840
+ extra: r,
1841
+ tags: s,
1842
+ user: n,
1843
+ contexts: u,
1844
+ level: c,
1845
+ // eslint-disable-next-line deprecation/deprecation
1846
+ transactionName: f
1847
+ } = e, d = G(r);
1848
+ d && Object.keys(d).length && (t.extra = { ...d, ...t.extra });
1849
+ const b = G(s);
1850
+ b && Object.keys(b).length && (t.tags = { ...b, ...t.tags });
1851
+ const x = G(n);
1852
+ x && Object.keys(x).length && (t.user = { ...x, ...t.user });
1853
+ const y = G(u);
1854
+ y && Object.keys(y).length && (t.contexts = { ...y, ...t.contexts }), c && (t.level = c), f && (t.transaction = f);
1855
+ }
1856
+ function oa(t, e) {
1857
+ const r = [...t.breadcrumbs || [], ...e];
1858
+ t.breadcrumbs = r.length ? r : void 0;
1859
+ }
1860
+ function ia(t, e) {
1861
+ t.sdkProcessingMetadata = {
1862
+ ...t.sdkProcessingMetadata,
1863
+ ...e
1864
+ };
1865
+ }
1866
+ function la(t, e) {
1867
+ t.contexts = { trace: $s(e), ...t.contexts };
1868
+ const r = qt(e);
1869
+ if (r) {
1870
+ t.sdkProcessingMetadata = {
1871
+ dynamicSamplingContext: sa(e),
1872
+ ...t.sdkProcessingMetadata
1873
+ };
1874
+ const s = Ce(r).description;
1875
+ s && (t.tags = { transaction: s, ...t.tags });
1876
+ }
1877
+ }
1878
+ function ua(t, e) {
1879
+ t.fingerprint = t.fingerprint ? As(t.fingerprint) : [], e && (t.fingerprint = t.fingerprint.concat(e)), t.fingerprint && !t.fingerprint.length && delete t.fingerprint;
1880
+ }
1881
+ const ca = 100;
1882
+ class W {
1883
+ /** Flag if notifying is happening. */
1884
+ /** Callback for client to receive scope changes. */
1885
+ /** Callback list that will be called after {@link applyToEvent}. */
1886
+ /** Array of breadcrumbs. */
1887
+ /** User */
1888
+ /** Tags */
1889
+ /** Extra */
1890
+ /** Contexts */
1891
+ /** Attachments */
1892
+ /** Propagation Context for distributed tracing */
1893
+ /**
1894
+ * A place to stash data which is needed at some point in the SDK's event processing pipeline but which shouldn't get
1895
+ * sent to Sentry
1896
+ */
1897
+ /** Fingerprint */
1898
+ /** Severity */
1899
+ // eslint-disable-next-line deprecation/deprecation
1900
+ /**
1901
+ * Transaction Name
1902
+ */
1903
+ /** Span */
1904
+ /** Session */
1905
+ /** Request Mode Session Status */
1906
+ /** The client on this scope */
1907
+ // NOTE: Any field which gets added here should get added not only to the constructor but also to the `clone` method.
1908
+ constructor() {
1909
+ this._notifyingListeners = !1, this._scopeListeners = [], this._eventProcessors = [], this._breadcrumbs = [], this._attachments = [], this._user = {}, this._tags = {}, this._extra = {}, this._contexts = {}, this._sdkProcessingMetadata = {}, this._propagationContext = wt();
1910
+ }
1911
+ /**
1912
+ * Inherit values from the parent scope.
1913
+ * @deprecated Use `scope.clone()` and `new Scope()` instead.
1914
+ */
1915
+ static clone(e) {
1916
+ return e ? e.clone() : new W();
1917
+ }
1918
+ /**
1919
+ * Clone this scope instance.
1920
+ */
1921
+ clone() {
1922
+ const e = new W();
1923
+ return e._breadcrumbs = [...this._breadcrumbs], e._tags = { ...this._tags }, e._extra = { ...this._extra }, e._contexts = { ...this._contexts }, e._user = this._user, e._level = this._level, e._span = this._span, e._session = this._session, e._transactionName = this._transactionName, e._fingerprint = this._fingerprint, e._eventProcessors = [...this._eventProcessors], e._requestSession = this._requestSession, e._attachments = [...this._attachments], e._sdkProcessingMetadata = { ...this._sdkProcessingMetadata }, e._propagationContext = { ...this._propagationContext }, e._client = this._client, e;
1924
+ }
1925
+ /** Update the client on the scope. */
1926
+ setClient(e) {
1927
+ this._client = e;
1928
+ }
1929
+ /**
1930
+ * Get the client assigned to this scope.
1931
+ *
1932
+ * It is generally recommended to use the global function `Sentry.getClient()` instead, unless you know what you are doing.
1933
+ */
1934
+ getClient() {
1935
+ return this._client;
1936
+ }
1937
+ /**
1938
+ * Add internal on change listener. Used for sub SDKs that need to store the scope.
1939
+ * @hidden
1940
+ */
1941
+ addScopeListener(e) {
1942
+ this._scopeListeners.push(e);
1943
+ }
1944
+ /**
1945
+ * @inheritDoc
1946
+ */
1947
+ addEventProcessor(e) {
1948
+ return this._eventProcessors.push(e), this;
1949
+ }
1950
+ /**
1951
+ * @inheritDoc
1952
+ */
1953
+ setUser(e) {
1954
+ return this._user = e || {
1955
+ email: void 0,
1956
+ id: void 0,
1957
+ ip_address: void 0,
1958
+ segment: void 0,
1959
+ username: void 0
1960
+ }, this._session && ze(this._session, { user: e }), this._notifyScopeListeners(), this;
1961
+ }
1962
+ /**
1963
+ * @inheritDoc
1964
+ */
1965
+ getUser() {
1966
+ return this._user;
1967
+ }
1968
+ /**
1969
+ * @inheritDoc
1970
+ */
1971
+ getRequestSession() {
1972
+ return this._requestSession;
1973
+ }
1974
+ /**
1975
+ * @inheritDoc
1976
+ */
1977
+ setRequestSession(e) {
1978
+ return this._requestSession = e, this;
1979
+ }
1980
+ /**
1981
+ * @inheritDoc
1982
+ */
1983
+ setTags(e) {
1984
+ return this._tags = {
1985
+ ...this._tags,
1986
+ ...e
1987
+ }, this._notifyScopeListeners(), this;
1988
+ }
1989
+ /**
1990
+ * @inheritDoc
1991
+ */
1992
+ setTag(e, r) {
1993
+ return this._tags = { ...this._tags, [e]: r }, this._notifyScopeListeners(), this;
1994
+ }
1995
+ /**
1996
+ * @inheritDoc
1997
+ */
1998
+ setExtras(e) {
1999
+ return this._extra = {
2000
+ ...this._extra,
2001
+ ...e
2002
+ }, this._notifyScopeListeners(), this;
2003
+ }
2004
+ /**
2005
+ * @inheritDoc
2006
+ */
2007
+ setExtra(e, r) {
2008
+ return this._extra = { ...this._extra, [e]: r }, this._notifyScopeListeners(), this;
2009
+ }
2010
+ /**
2011
+ * @inheritDoc
2012
+ */
2013
+ setFingerprint(e) {
2014
+ return this._fingerprint = e, this._notifyScopeListeners(), this;
2015
+ }
2016
+ /**
2017
+ * @inheritDoc
2018
+ */
2019
+ setLevel(e) {
2020
+ return this._level = e, this._notifyScopeListeners(), this;
2021
+ }
2022
+ /**
2023
+ * Sets the transaction name on the scope for future events.
2024
+ */
2025
+ setTransactionName(e) {
2026
+ return this._transactionName = e, this._notifyScopeListeners(), this;
2027
+ }
2028
+ /**
2029
+ * @inheritDoc
2030
+ */
2031
+ setContext(e, r) {
2032
+ return r === null ? delete this._contexts[e] : this._contexts[e] = r, this._notifyScopeListeners(), this;
2033
+ }
2034
+ /**
2035
+ * Sets the Span on the scope.
2036
+ * @param span Span
2037
+ * @deprecated Instead of setting a span on a scope, use `startSpan()`/`startSpanManual()` instead.
2038
+ */
2039
+ setSpan(e) {
2040
+ return this._span = e, this._notifyScopeListeners(), this;
2041
+ }
2042
+ /**
2043
+ * Returns the `Span` if there is one.
2044
+ * @deprecated Use `getActiveSpan()` instead.
2045
+ */
2046
+ getSpan() {
2047
+ return this._span;
2048
+ }
2049
+ /**
2050
+ * Returns the `Transaction` attached to the scope (if there is one).
2051
+ * @deprecated You should not rely on the transaction, but just use `startSpan()` APIs instead.
2052
+ */
2053
+ getTransaction() {
2054
+ const e = this._span;
2055
+ return e && e.transaction;
2056
+ }
2057
+ /**
2058
+ * @inheritDoc
2059
+ */
2060
+ setSession(e) {
2061
+ return e ? this._session = e : delete this._session, this._notifyScopeListeners(), this;
2062
+ }
2063
+ /**
2064
+ * @inheritDoc
2065
+ */
2066
+ getSession() {
2067
+ return this._session;
2068
+ }
2069
+ /**
2070
+ * @inheritDoc
2071
+ */
2072
+ update(e) {
2073
+ if (!e)
2074
+ return this;
2075
+ const r = typeof e == "function" ? e(this) : e;
2076
+ if (r instanceof W) {
2077
+ const s = r.getScopeData();
2078
+ this._tags = { ...this._tags, ...s.tags }, this._extra = { ...this._extra, ...s.extra }, this._contexts = { ...this._contexts, ...s.contexts }, s.user && Object.keys(s.user).length && (this._user = s.user), s.level && (this._level = s.level), s.fingerprint.length && (this._fingerprint = s.fingerprint), r.getRequestSession() && (this._requestSession = r.getRequestSession()), s.propagationContext && (this._propagationContext = s.propagationContext);
2079
+ } else if (Dt(r)) {
2080
+ const s = e;
2081
+ this._tags = { ...this._tags, ...s.tags }, this._extra = { ...this._extra, ...s.extra }, this._contexts = { ...this._contexts, ...s.contexts }, s.user && (this._user = s.user), s.level && (this._level = s.level), s.fingerprint && (this._fingerprint = s.fingerprint), s.requestSession && (this._requestSession = s.requestSession), s.propagationContext && (this._propagationContext = s.propagationContext);
2082
+ }
2083
+ return this;
2084
+ }
2085
+ /**
2086
+ * @inheritDoc
2087
+ */
2088
+ clear() {
2089
+ return this._breadcrumbs = [], this._tags = {}, this._extra = {}, this._user = {}, this._contexts = {}, this._level = void 0, this._transactionName = void 0, this._fingerprint = void 0, this._requestSession = void 0, this._span = void 0, this._session = void 0, this._notifyScopeListeners(), this._attachments = [], this._propagationContext = wt(), this;
2090
+ }
2091
+ /**
2092
+ * @inheritDoc
2093
+ */
2094
+ addBreadcrumb(e, r) {
2095
+ const s = typeof r == "number" ? r : ca;
2096
+ if (s <= 0)
2097
+ return this;
2098
+ const n = {
2099
+ timestamp: We(),
2100
+ ...e
2101
+ }, u = this._breadcrumbs;
2102
+ return u.push(n), this._breadcrumbs = u.length > s ? u.slice(-s) : u, this._notifyScopeListeners(), this;
2103
+ }
2104
+ /**
2105
+ * @inheritDoc
2106
+ */
2107
+ getLastBreadcrumb() {
2108
+ return this._breadcrumbs[this._breadcrumbs.length - 1];
2109
+ }
2110
+ /**
2111
+ * @inheritDoc
2112
+ */
2113
+ clearBreadcrumbs() {
2114
+ return this._breadcrumbs = [], this._notifyScopeListeners(), this;
2115
+ }
2116
+ /**
2117
+ * @inheritDoc
2118
+ */
2119
+ addAttachment(e) {
2120
+ return this._attachments.push(e), this;
2121
+ }
2122
+ /**
2123
+ * @inheritDoc
2124
+ * @deprecated Use `getScopeData()` instead.
2125
+ */
2126
+ getAttachments() {
2127
+ return this.getScopeData().attachments;
2128
+ }
2129
+ /**
2130
+ * @inheritDoc
2131
+ */
2132
+ clearAttachments() {
2133
+ return this._attachments = [], this;
2134
+ }
2135
+ /** @inheritDoc */
2136
+ getScopeData() {
2137
+ const {
2138
+ _breadcrumbs: e,
2139
+ _attachments: r,
2140
+ _contexts: s,
2141
+ _tags: n,
2142
+ _extra: u,
2143
+ _user: c,
2144
+ _level: f,
2145
+ _fingerprint: d,
2146
+ _eventProcessors: b,
2147
+ _propagationContext: x,
2148
+ _sdkProcessingMetadata: y,
2149
+ _transactionName: M,
2150
+ _span: S
2151
+ } = this;
2152
+ return {
2153
+ breadcrumbs: e,
2154
+ attachments: r,
2155
+ contexts: s,
2156
+ tags: n,
2157
+ extra: u,
2158
+ user: c,
2159
+ level: f,
2160
+ fingerprint: d || [],
2161
+ eventProcessors: b,
2162
+ propagationContext: x,
2163
+ sdkProcessingMetadata: y,
2164
+ transactionName: M,
2165
+ span: S
2166
+ };
2167
+ }
2168
+ /**
2169
+ * Applies data from the scope to the event and runs all event processors on it.
2170
+ *
2171
+ * @param event Event
2172
+ * @param hint Object containing additional information about the original exception, for use by the event processors.
2173
+ * @hidden
2174
+ * @deprecated Use `applyScopeDataToEvent()` directly
2175
+ */
2176
+ applyToEvent(e, r = {}, s = []) {
2177
+ aa(e, this.getScopeData());
2178
+ const n = [
2179
+ ...s,
2180
+ // eslint-disable-next-line deprecation/deprecation
2181
+ ...Us(),
2182
+ ...this._eventProcessors
2183
+ ];
2184
+ return Be(n, e, r);
2185
+ }
2186
+ /**
2187
+ * Add data which will be accessible during event processing but won't get sent to Sentry
2188
+ */
2189
+ setSDKProcessingMetadata(e) {
2190
+ return this._sdkProcessingMetadata = { ...this._sdkProcessingMetadata, ...e }, this;
2191
+ }
2192
+ /**
2193
+ * @inheritDoc
2194
+ */
2195
+ setPropagationContext(e) {
2196
+ return this._propagationContext = e, this;
2197
+ }
2198
+ /**
2199
+ * @inheritDoc
2200
+ */
2201
+ getPropagationContext() {
2202
+ return this._propagationContext;
2203
+ }
2204
+ /**
2205
+ * Capture an exception for this scope.
2206
+ *
2207
+ * @param exception The exception to capture.
2208
+ * @param hint Optinal additional data to attach to the Sentry event.
2209
+ * @returns the id of the captured Sentry event.
2210
+ */
2211
+ captureException(e, r) {
2212
+ const s = r && r.event_id ? r.event_id : L();
2213
+ if (!this._client)
2214
+ return H.warn("No client configured on scope - will not capture exception!"), s;
2215
+ const n = new Error("Sentry syntheticException");
2216
+ return this._client.captureException(
2217
+ e,
2218
+ {
2219
+ originalException: e,
2220
+ syntheticException: n,
2221
+ ...r,
2222
+ event_id: s
2223
+ },
2224
+ this
2225
+ ), s;
2226
+ }
2227
+ /**
2228
+ * Capture a message for this scope.
2229
+ *
2230
+ * @param message The message to capture.
2231
+ * @param level An optional severity level to report the message with.
2232
+ * @param hint Optional additional data to attach to the Sentry event.
2233
+ * @returns the id of the captured message.
2234
+ */
2235
+ captureMessage(e, r, s) {
2236
+ const n = s && s.event_id ? s.event_id : L();
2237
+ if (!this._client)
2238
+ return H.warn("No client configured on scope - will not capture message!"), n;
2239
+ const u = new Error(e);
2240
+ return this._client.captureMessage(
2241
+ e,
2242
+ r,
2243
+ {
2244
+ originalException: e,
2245
+ syntheticException: u,
2246
+ ...s,
2247
+ event_id: n
2248
+ },
2249
+ this
2250
+ ), n;
2251
+ }
2252
+ /**
2253
+ * Captures a manually created event for this scope and sends it to Sentry.
2254
+ *
2255
+ * @param exception The event to capture.
2256
+ * @param hint Optional additional data to attach to the Sentry event.
2257
+ * @returns the id of the captured event.
2258
+ */
2259
+ captureEvent(e, r) {
2260
+ const s = r && r.event_id ? r.event_id : L();
2261
+ return this._client ? (this._client.captureEvent(e, { ...r, event_id: s }, this), s) : (H.warn("No client configured on scope - will not capture event!"), s);
2262
+ }
2263
+ /**
2264
+ * This will be called on every set call.
2265
+ */
2266
+ _notifyScopeListeners() {
2267
+ this._notifyingListeners || (this._notifyingListeners = !0, this._scopeListeners.forEach((e) => {
2268
+ e(this);
2269
+ }), this._notifyingListeners = !1);
2270
+ }
2271
+ }
2272
+ function wt() {
2273
+ return {
2274
+ traceId: L(),
2275
+ spanId: L().substring(16)
2276
+ };
2277
+ }
2278
+ const da = "7.108.0", Bt = parseFloat(da), fa = 100;
2279
+ class Vt {
2280
+ /** Is a {@link Layer}[] containing the client and scope */
2281
+ /** Contains the last event id of a captured event. */
2282
+ /**
2283
+ * Creates a new instance of the hub, will push one {@link Layer} into the
2284
+ * internal stack on creation.
2285
+ *
2286
+ * @param client bound to the hub.
2287
+ * @param scope bound to the hub.
2288
+ * @param version number, higher number means higher priority.
2289
+ *
2290
+ * @deprecated Instantiation of Hub objects is deprecated and the constructor will be removed in version 8 of the SDK.
2291
+ *
2292
+ * If you are currently using the Hub for multi-client use like so:
2293
+ *
2294
+ * ```
2295
+ * // OLD
2296
+ * const hub = new Hub();
2297
+ * hub.bindClient(client);
2298
+ * makeMain(hub)
2299
+ * ```
2300
+ *
2301
+ * instead initialize the client as follows:
2302
+ *
2303
+ * ```
2304
+ * // NEW
2305
+ * Sentry.withIsolationScope(() => {
2306
+ * Sentry.setCurrentClient(client);
2307
+ * client.init();
2308
+ * });
2309
+ * ```
2310
+ *
2311
+ * If you are using the Hub to capture events like so:
2312
+ *
2313
+ * ```
2314
+ * // OLD
2315
+ * const client = new Client();
2316
+ * const hub = new Hub(client);
2317
+ * hub.captureException()
2318
+ * ```
2319
+ *
2320
+ * instead capture isolated events as follows:
2321
+ *
2322
+ * ```
2323
+ * // NEW
2324
+ * const client = new Client();
2325
+ * const scope = new Scope();
2326
+ * scope.setClient(client);
2327
+ * scope.captureException();
2328
+ * ```
2329
+ */
2330
+ constructor(e, r, s, n = Bt) {
2331
+ this._version = n;
2332
+ let u;
2333
+ r ? u = r : (u = new W(), u.setClient(e));
2334
+ let c;
2335
+ s ? c = s : (c = new W(), c.setClient(e)), this._stack = [{ scope: u }], e && this.bindClient(e), this._isolationScope = c;
2336
+ }
2337
+ /**
2338
+ * Checks if this hub's version is older than the given version.
2339
+ *
2340
+ * @param version A version number to compare to.
2341
+ * @return True if the given version is newer; otherwise false.
2342
+ *
2343
+ * @deprecated This will be removed in v8.
2344
+ */
2345
+ isOlderThan(e) {
2346
+ return this._version < e;
2347
+ }
2348
+ /**
2349
+ * This binds the given client to the current scope.
2350
+ * @param client An SDK client (client) instance.
2351
+ *
2352
+ * @deprecated Use `initAndBind()` directly, or `setCurrentClient()` and/or `client.init()` instead.
2353
+ */
2354
+ bindClient(e) {
2355
+ const r = this.getStackTop();
2356
+ r.client = e, r.scope.setClient(e), e && e.setupIntegrations && e.setupIntegrations();
2357
+ }
2358
+ /**
2359
+ * @inheritDoc
2360
+ *
2361
+ * @deprecated Use `withScope` instead.
2362
+ */
2363
+ pushScope() {
2364
+ const e = this.getScope().clone();
2365
+ return this.getStack().push({
2366
+ // eslint-disable-next-line deprecation/deprecation
2367
+ client: this.getClient(),
2368
+ scope: e
2369
+ }), e;
2370
+ }
2371
+ /**
2372
+ * @inheritDoc
2373
+ *
2374
+ * @deprecated Use `withScope` instead.
2375
+ */
2376
+ popScope() {
2377
+ return this.getStack().length <= 1 ? !1 : !!this.getStack().pop();
2378
+ }
2379
+ /**
2380
+ * @inheritDoc
2381
+ *
2382
+ * @deprecated Use `Sentry.withScope()` instead.
2383
+ */
2384
+ withScope(e) {
2385
+ const r = this.pushScope();
2386
+ let s;
2387
+ try {
2388
+ s = e(r);
2389
+ } catch (n) {
2390
+ throw this.popScope(), n;
2391
+ }
2392
+ return Ge(s) ? s.then(
2393
+ (n) => (this.popScope(), n),
2394
+ (n) => {
2395
+ throw this.popScope(), n;
2396
+ }
2397
+ ) : (this.popScope(), s);
2398
+ }
2399
+ /**
2400
+ * @inheritDoc
2401
+ *
2402
+ * @deprecated Use `Sentry.getClient()` instead.
2403
+ */
2404
+ getClient() {
2405
+ return this.getStackTop().client;
2406
+ }
2407
+ /**
2408
+ * Returns the scope of the top stack.
2409
+ *
2410
+ * @deprecated Use `Sentry.getCurrentScope()` instead.
2411
+ */
2412
+ getScope() {
2413
+ return this.getStackTop().scope;
2414
+ }
2415
+ /**
2416
+ * @deprecated Use `Sentry.getIsolationScope()` instead.
2417
+ */
2418
+ getIsolationScope() {
2419
+ return this._isolationScope;
2420
+ }
2421
+ /**
2422
+ * Returns the scope stack for domains or the process.
2423
+ * @deprecated This will be removed in v8.
2424
+ */
2425
+ getStack() {
2426
+ return this._stack;
2427
+ }
2428
+ /**
2429
+ * Returns the topmost scope layer in the order domain > local > process.
2430
+ * @deprecated This will be removed in v8.
2431
+ */
2432
+ getStackTop() {
2433
+ return this._stack[this._stack.length - 1];
2434
+ }
2435
+ /**
2436
+ * @inheritDoc
2437
+ *
2438
+ * @deprecated Use `Sentry.captureException()` instead.
2439
+ */
2440
+ captureException(e, r) {
2441
+ const s = this._lastEventId = r && r.event_id ? r.event_id : L(), n = new Error("Sentry syntheticException");
2442
+ return this.getScope().captureException(e, {
2443
+ originalException: e,
2444
+ syntheticException: n,
2445
+ ...r,
2446
+ event_id: s
2447
+ }), s;
2448
+ }
2449
+ /**
2450
+ * @inheritDoc
2451
+ *
2452
+ * @deprecated Use `Sentry.captureMessage()` instead.
2453
+ */
2454
+ captureMessage(e, r, s) {
2455
+ const n = this._lastEventId = s && s.event_id ? s.event_id : L(), u = new Error(e);
2456
+ return this.getScope().captureMessage(e, r, {
2457
+ originalException: e,
2458
+ syntheticException: u,
2459
+ ...s,
2460
+ event_id: n
2461
+ }), n;
2462
+ }
2463
+ /**
2464
+ * @inheritDoc
2465
+ *
2466
+ * @deprecated Use `Sentry.captureEvent()` instead.
2467
+ */
2468
+ captureEvent(e, r) {
2469
+ const s = r && r.event_id ? r.event_id : L();
2470
+ return e.type || (this._lastEventId = s), this.getScope().captureEvent(e, { ...r, event_id: s }), s;
2471
+ }
2472
+ /**
2473
+ * @inheritDoc
2474
+ *
2475
+ * @deprecated This will be removed in v8.
2476
+ */
2477
+ lastEventId() {
2478
+ return this._lastEventId;
2479
+ }
2480
+ /**
2481
+ * @inheritDoc
2482
+ *
2483
+ * @deprecated Use `Sentry.addBreadcrumb()` instead.
2484
+ */
2485
+ addBreadcrumb(e, r) {
2486
+ const { scope: s, client: n } = this.getStackTop();
2487
+ if (!n)
2488
+ return;
2489
+ const { beforeBreadcrumb: u = null, maxBreadcrumbs: c = fa } = n.getOptions && n.getOptions() || {};
2490
+ if (c <= 0)
2491
+ return;
2492
+ const d = { timestamp: We(), ...e }, b = u ? Lt(() => u(d, r)) : d;
2493
+ b !== null && (n.emit && n.emit("beforeAddBreadcrumb", b, r), s.addBreadcrumb(b, c));
2494
+ }
2495
+ /**
2496
+ * @inheritDoc
2497
+ * @deprecated Use `Sentry.setUser()` instead.
2498
+ */
2499
+ setUser(e) {
2500
+ this.getScope().setUser(e), this.getIsolationScope().setUser(e);
2501
+ }
2502
+ /**
2503
+ * @inheritDoc
2504
+ * @deprecated Use `Sentry.setTags()` instead.
2505
+ */
2506
+ setTags(e) {
2507
+ this.getScope().setTags(e), this.getIsolationScope().setTags(e);
2508
+ }
2509
+ /**
2510
+ * @inheritDoc
2511
+ * @deprecated Use `Sentry.setExtras()` instead.
2512
+ */
2513
+ setExtras(e) {
2514
+ this.getScope().setExtras(e), this.getIsolationScope().setExtras(e);
2515
+ }
2516
+ /**
2517
+ * @inheritDoc
2518
+ * @deprecated Use `Sentry.setTag()` instead.
2519
+ */
2520
+ setTag(e, r) {
2521
+ this.getScope().setTag(e, r), this.getIsolationScope().setTag(e, r);
2522
+ }
2523
+ /**
2524
+ * @inheritDoc
2525
+ * @deprecated Use `Sentry.setExtra()` instead.
2526
+ */
2527
+ setExtra(e, r) {
2528
+ this.getScope().setExtra(e, r), this.getIsolationScope().setExtra(e, r);
2529
+ }
2530
+ /**
2531
+ * @inheritDoc
2532
+ * @deprecated Use `Sentry.setContext()` instead.
2533
+ */
2534
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2535
+ setContext(e, r) {
2536
+ this.getScope().setContext(e, r), this.getIsolationScope().setContext(e, r);
2537
+ }
2538
+ /**
2539
+ * @inheritDoc
2540
+ *
2541
+ * @deprecated Use `getScope()` directly.
2542
+ */
2543
+ configureScope(e) {
2544
+ const { scope: r, client: s } = this.getStackTop();
2545
+ s && e(r);
2546
+ }
2547
+ /**
2548
+ * @inheritDoc
2549
+ */
2550
+ run(e) {
2551
+ const r = yt(this);
2552
+ try {
2553
+ e(this);
2554
+ } finally {
2555
+ yt(r);
2556
+ }
2557
+ }
2558
+ /**
2559
+ * @inheritDoc
2560
+ * @deprecated Use `Sentry.getClient().getIntegrationByName()` instead.
2561
+ */
2562
+ getIntegration(e) {
2563
+ const r = this.getClient();
2564
+ if (!r)
2565
+ return null;
2566
+ try {
2567
+ return r.getIntegration(e);
2568
+ } catch {
2569
+ return ve && H.warn(`Cannot retrieve integration ${e.id} from the current Hub`), null;
2570
+ }
2571
+ }
2572
+ /**
2573
+ * Starts a new `Transaction` and returns it. This is the entry point to manual tracing instrumentation.
2574
+ *
2575
+ * A tree structure can be built by adding child spans to the transaction, and child spans to other spans. To start a
2576
+ * new child span within the transaction or any span, call the respective `.startChild()` method.
2577
+ *
2578
+ * Every child span must be finished before the transaction is finished, otherwise the unfinished spans are discarded.
2579
+ *
2580
+ * The transaction must be finished with a call to its `.end()` method, at which point the transaction with all its
2581
+ * finished child spans will be sent to Sentry.
2582
+ *
2583
+ * @param context Properties of the new `Transaction`.
2584
+ * @param customSamplingContext Information given to the transaction sampling function (along with context-dependent
2585
+ * default values). See {@link Options.tracesSampler}.
2586
+ *
2587
+ * @returns The transaction which was just started
2588
+ *
2589
+ * @deprecated Use `startSpan()`, `startSpanManual()` or `startInactiveSpan()` instead.
2590
+ */
2591
+ startTransaction(e, r) {
2592
+ const s = this._callExtensionMethod("startTransaction", e, r);
2593
+ return ve && !s && (this.getClient() ? H.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
2594
+ Sentry.addTracingExtensions();
2595
+ Sentry.init({...});
2596
+ `) : H.warn(
2597
+ "Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'"
2598
+ )), s;
2599
+ }
2600
+ /**
2601
+ * @inheritDoc
2602
+ * @deprecated Use `spanToTraceHeader()` instead.
2603
+ */
2604
+ traceHeaders() {
2605
+ return this._callExtensionMethod("traceHeaders");
2606
+ }
2607
+ /**
2608
+ * @inheritDoc
2609
+ *
2610
+ * @deprecated Use top level `captureSession` instead.
2611
+ */
2612
+ captureSession(e = !1) {
2613
+ if (e)
2614
+ return this.endSession();
2615
+ this._sendSessionUpdate();
2616
+ }
2617
+ /**
2618
+ * @inheritDoc
2619
+ * @deprecated Use top level `endSession` instead.
2620
+ */
2621
+ endSession() {
2622
+ const r = this.getStackTop().scope, s = r.getSession();
2623
+ s && Bs(s), this._sendSessionUpdate(), r.setSession();
2624
+ }
2625
+ /**
2626
+ * @inheritDoc
2627
+ * @deprecated Use top level `startSession` instead.
2628
+ */
2629
+ startSession(e) {
2630
+ const { scope: r, client: s } = this.getStackTop(), { release: n, environment: u = Ut } = s && s.getOptions() || {}, { userAgent: c } = D.navigator || {}, f = qs({
2631
+ release: n,
2632
+ environment: u,
2633
+ user: r.getUser(),
2634
+ ...c && { userAgent: c },
2635
+ ...e
2636
+ }), d = r.getSession && r.getSession();
2637
+ return d && d.status === "ok" && ze(d, { status: "exited" }), this.endSession(), r.setSession(f), f;
2638
+ }
2639
+ /**
2640
+ * Returns if default PII should be sent to Sentry and propagated in ourgoing requests
2641
+ * when Tracing is used.
2642
+ *
2643
+ * @deprecated Use top-level `getClient().getOptions().sendDefaultPii` instead. This function
2644
+ * only unnecessarily increased API surface but only wrapped accessing the option.
2645
+ */
2646
+ shouldSendDefaultPii() {
2647
+ const e = this.getClient(), r = e && e.getOptions();
2648
+ return !!(r && r.sendDefaultPii);
2649
+ }
2650
+ /**
2651
+ * Sends the current Session on the scope
2652
+ */
2653
+ _sendSessionUpdate() {
2654
+ const { scope: e, client: r } = this.getStackTop(), s = e.getSession();
2655
+ s && r && r.captureSession && r.captureSession(s);
2656
+ }
2657
+ /**
2658
+ * Calls global extension method and binding current instance to the function call
2659
+ */
2660
+ // @ts-expect-error Function lacks ending return statement and return type does not include 'undefined'. ts(2366)
2661
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2662
+ _callExtensionMethod(e, ...r) {
2663
+ const n = Ee().__SENTRY__;
2664
+ if (n && n.extensions && typeof n.extensions[e] == "function")
2665
+ return n.extensions[e].apply(this, r);
2666
+ ve && H.warn(`Extension method ${e} couldn't be found, doing nothing.`);
2667
+ }
2668
+ }
2669
+ function Ee() {
2670
+ return D.__SENTRY__ = D.__SENTRY__ || {
2671
+ extensions: {},
2672
+ hub: void 0
2673
+ }, D;
2674
+ }
2675
+ function yt(t) {
2676
+ const e = Ee(), r = Ve(e);
2677
+ return Yt(e, t), r;
2678
+ }
2679
+ function Se() {
2680
+ const t = Ee();
2681
+ if (t.__SENTRY__ && t.__SENTRY__.acs) {
2682
+ const e = t.__SENTRY__.acs.getCurrentHub();
2683
+ if (e)
2684
+ return e;
2685
+ }
2686
+ return ha(t);
2687
+ }
2688
+ function ha(t = Ee()) {
2689
+ return (!_a(t) || // eslint-disable-next-line deprecation/deprecation
2690
+ Ve(t).isOlderThan(Bt)) && Yt(t, new Vt()), Ve(t);
2691
+ }
2692
+ function _a(t) {
2693
+ return !!(t && t.__SENTRY__ && t.__SENTRY__.hub);
2694
+ }
2695
+ function Ve(t) {
2696
+ return It("hub", () => new Vt(), t);
2697
+ }
2698
+ function Yt(t, e) {
2699
+ if (!t)
2700
+ return !1;
2701
+ const r = t.__SENTRY__ = t.__SENTRY__ || {};
2702
+ return r.hub = e, !0;
2703
+ }
2704
+ async function pa(t, e) {
2705
+ const r = await vr.toSlashIDError(t);
2706
+ Xs((s) => {
2707
+ s.setExtras({
2708
+ ...e,
2709
+ ...r.context
2710
+ }), Qs(r);
2711
+ });
2712
+ }
2713
+ function ba() {
2714
+ return /* @__PURE__ */ o.jsx(me, { variant: "primary", children: /* @__PURE__ */ o.jsx(Mt, {}) });
2715
+ }
2716
+ function za({ onSuccess: t, onError: e, flowType: r, onRedirectDiscovered: s }) {
2717
+ const { sdk: n } = ye();
2718
+ return St(() => {
2719
+ if (!n)
2720
+ return;
2721
+ s && (n == null || n.subscribe("redirectUriDiscovered", s));
2722
+ async function u() {
2723
+ try {
2724
+ await (n == null ? void 0 : n.getUserFromURL()), t();
2725
+ } catch (c) {
2726
+ await pa(c);
2727
+ const f = await mr.toSlashIDError(c);
2728
+ e({ error: f });
2729
+ }
2730
+ }
2731
+ return u(), () => {
2732
+ s && n.unsubscribe("redirectUriDiscovered", s);
2733
+ };
2734
+ }, [r, e, t, n]), r === "password-recovery" ? /* @__PURE__ */ o.jsx(Os, {}) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2735
+ /* @__PURE__ */ o.jsxs($e, { space: "0.25", children: [
2736
+ /* @__PURE__ */ o.jsx(J, { as: "h1", variant: { size: "2xl-title", weight: "bold" }, t: "initial.title" }),
2737
+ /* @__PURE__ */ o.jsx(J, { variant: { color: "contrast", weight: "semibold" }, as: "h2", t: "initial.details" })
2738
+ ] }),
2739
+ /* @__PURE__ */ o.jsx(ba, {})
2740
+ ] });
2741
+ }
2742
+ export {
2743
+ Ca as Card,
2744
+ wa as Error,
2745
+ ds as I18N,
2746
+ za as Progress,
2747
+ Os as Recover,
2748
+ ya as Success,
2749
+ ma as TextProvider,
2750
+ va as ThemeRoot
2751
+ };
2752
+ //# sourceMappingURL=main.js.map