@insforge/react 0.7.10 → 0.7.11

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.
package/dist/index.cjs CHANGED
@@ -14,28 +14,443 @@ if (typeof document !== 'undefined' && typeof window !== 'undefined') {
14
14
 
15
15
  'use strict';
16
16
 
17
- var react = require('react');
17
+ var React2 = require('react');
18
18
  var jsxRuntime = require('react/jsx-runtime');
19
19
  var sdk = require('@insforge/sdk');
20
- var react$2 = require('@insforge/shared/react');
21
- var createCache = require('@emotion/cache');
22
- var react$1 = require('@emotion/react');
23
- var styled = require('@emotion/styled');
20
+ var react = require('@insforge/shared/react');
24
21
  var lucideReact = require('lucide-react');
25
22
  var zod = require('zod');
26
23
 
27
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
24
+ function _interopNamespace(e) {
25
+ if (e && e.__esModule) return e;
26
+ var n = Object.create(null);
27
+ if (e) {
28
+ Object.keys(e).forEach(function (k) {
29
+ if (k !== 'default') {
30
+ var d = Object.getOwnPropertyDescriptor(e, k);
31
+ Object.defineProperty(n, k, d.get ? d : {
32
+ enumerable: true,
33
+ get: function () { return e[k]; }
34
+ });
35
+ }
36
+ });
37
+ }
38
+ n.default = e;
39
+ return Object.freeze(n);
40
+ }
41
+
42
+ var React2__namespace = /*#__PURE__*/_interopNamespace(React2);
43
+
44
+ var __create = Object.create;
45
+ var __defProp = Object.defineProperty;
46
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
47
+ var __getOwnPropNames = Object.getOwnPropertyNames;
48
+ var __getProtoOf = Object.getPrototypeOf;
49
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
50
+ var __commonJS = (cb, mod) => function __require() {
51
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
52
+ };
53
+ var __copyProps = (to, from2, except, desc) => {
54
+ if (from2 && typeof from2 === "object" || typeof from2 === "function") {
55
+ for (let key of __getOwnPropNames(from2))
56
+ if (!__hasOwnProp.call(to, key) && key !== except)
57
+ __defProp(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc(from2, key)) || desc.enumerable });
58
+ }
59
+ return to;
60
+ };
61
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
62
+ // If the importer is in node compatibility mode or this is not an ESM
63
+ // file that has been converted to a CommonJS file using a Babel-
64
+ // compatible transform (i.e. "__esModule" has not been set), then set
65
+ // "default" to the CommonJS "module.exports" for node compatibility.
66
+ !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
67
+ mod
68
+ ));
69
+
70
+ // ../node_modules/react-is/cjs/react-is.production.min.js
71
+ var require_react_is_production_min = __commonJS({
72
+ "../node_modules/react-is/cjs/react-is.production.min.js"(exports$1) {
73
+ var b = "function" === typeof Symbol && Symbol.for;
74
+ var c = b ? Symbol.for("react.element") : 60103;
75
+ var d = b ? Symbol.for("react.portal") : 60106;
76
+ var e = b ? Symbol.for("react.fragment") : 60107;
77
+ var f = b ? Symbol.for("react.strict_mode") : 60108;
78
+ var g = b ? Symbol.for("react.profiler") : 60114;
79
+ var h = b ? Symbol.for("react.provider") : 60109;
80
+ var k = b ? Symbol.for("react.context") : 60110;
81
+ var l = b ? Symbol.for("react.async_mode") : 60111;
82
+ var m = b ? Symbol.for("react.concurrent_mode") : 60111;
83
+ var n = b ? Symbol.for("react.forward_ref") : 60112;
84
+ var p = b ? Symbol.for("react.suspense") : 60113;
85
+ var q = b ? Symbol.for("react.suspense_list") : 60120;
86
+ var r = b ? Symbol.for("react.memo") : 60115;
87
+ var t = b ? Symbol.for("react.lazy") : 60116;
88
+ var v = b ? Symbol.for("react.block") : 60121;
89
+ var w = b ? Symbol.for("react.fundamental") : 60117;
90
+ var x = b ? Symbol.for("react.responder") : 60118;
91
+ var y = b ? Symbol.for("react.scope") : 60119;
92
+ function z2(a) {
93
+ if ("object" === typeof a && null !== a) {
94
+ var u = a.$$typeof;
95
+ switch (u) {
96
+ case c:
97
+ switch (a = a.type, a) {
98
+ case l:
99
+ case m:
100
+ case e:
101
+ case g:
102
+ case f:
103
+ case p:
104
+ return a;
105
+ default:
106
+ switch (a = a && a.$$typeof, a) {
107
+ case k:
108
+ case n:
109
+ case t:
110
+ case r:
111
+ case h:
112
+ return a;
113
+ default:
114
+ return u;
115
+ }
116
+ }
117
+ case d:
118
+ return u;
119
+ }
120
+ }
121
+ }
122
+ function A(a) {
123
+ return z2(a) === m;
124
+ }
125
+ exports$1.AsyncMode = l;
126
+ exports$1.ConcurrentMode = m;
127
+ exports$1.ContextConsumer = k;
128
+ exports$1.ContextProvider = h;
129
+ exports$1.Element = c;
130
+ exports$1.ForwardRef = n;
131
+ exports$1.Fragment = e;
132
+ exports$1.Lazy = t;
133
+ exports$1.Memo = r;
134
+ exports$1.Portal = d;
135
+ exports$1.Profiler = g;
136
+ exports$1.StrictMode = f;
137
+ exports$1.Suspense = p;
138
+ exports$1.isAsyncMode = function(a) {
139
+ return A(a) || z2(a) === l;
140
+ };
141
+ exports$1.isConcurrentMode = A;
142
+ exports$1.isContextConsumer = function(a) {
143
+ return z2(a) === k;
144
+ };
145
+ exports$1.isContextProvider = function(a) {
146
+ return z2(a) === h;
147
+ };
148
+ exports$1.isElement = function(a) {
149
+ return "object" === typeof a && null !== a && a.$$typeof === c;
150
+ };
151
+ exports$1.isForwardRef = function(a) {
152
+ return z2(a) === n;
153
+ };
154
+ exports$1.isFragment = function(a) {
155
+ return z2(a) === e;
156
+ };
157
+ exports$1.isLazy = function(a) {
158
+ return z2(a) === t;
159
+ };
160
+ exports$1.isMemo = function(a) {
161
+ return z2(a) === r;
162
+ };
163
+ exports$1.isPortal = function(a) {
164
+ return z2(a) === d;
165
+ };
166
+ exports$1.isProfiler = function(a) {
167
+ return z2(a) === g;
168
+ };
169
+ exports$1.isStrictMode = function(a) {
170
+ return z2(a) === f;
171
+ };
172
+ exports$1.isSuspense = function(a) {
173
+ return z2(a) === p;
174
+ };
175
+ exports$1.isValidElementType = function(a) {
176
+ return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
177
+ };
178
+ exports$1.typeOf = z2;
179
+ }
180
+ });
181
+
182
+ // ../node_modules/react-is/cjs/react-is.development.js
183
+ var require_react_is_development = __commonJS({
184
+ "../node_modules/react-is/cjs/react-is.development.js"(exports$1) {
185
+ if (process.env.NODE_ENV !== "production") {
186
+ (function() {
187
+ var hasSymbol = typeof Symbol === "function" && Symbol.for;
188
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
189
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
190
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
191
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
192
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
193
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
194
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
195
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
196
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
197
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
198
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
199
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
200
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
201
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
202
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
203
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
204
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
205
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
206
+ function isValidElementType(type) {
207
+ return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
208
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
209
+ }
210
+ function typeOf(object) {
211
+ if (typeof object === "object" && object !== null) {
212
+ var $$typeof = object.$$typeof;
213
+ switch ($$typeof) {
214
+ case REACT_ELEMENT_TYPE:
215
+ var type = object.type;
216
+ switch (type) {
217
+ case REACT_ASYNC_MODE_TYPE:
218
+ case REACT_CONCURRENT_MODE_TYPE:
219
+ case REACT_FRAGMENT_TYPE:
220
+ case REACT_PROFILER_TYPE:
221
+ case REACT_STRICT_MODE_TYPE:
222
+ case REACT_SUSPENSE_TYPE:
223
+ return type;
224
+ default:
225
+ var $$typeofType = type && type.$$typeof;
226
+ switch ($$typeofType) {
227
+ case REACT_CONTEXT_TYPE:
228
+ case REACT_FORWARD_REF_TYPE:
229
+ case REACT_LAZY_TYPE:
230
+ case REACT_MEMO_TYPE:
231
+ case REACT_PROVIDER_TYPE:
232
+ return $$typeofType;
233
+ default:
234
+ return $$typeof;
235
+ }
236
+ }
237
+ case REACT_PORTAL_TYPE:
238
+ return $$typeof;
239
+ }
240
+ }
241
+ return void 0;
242
+ }
243
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
244
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
245
+ var ContextConsumer = REACT_CONTEXT_TYPE;
246
+ var ContextProvider = REACT_PROVIDER_TYPE;
247
+ var Element = REACT_ELEMENT_TYPE;
248
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
249
+ var Fragment9 = REACT_FRAGMENT_TYPE;
250
+ var Lazy = REACT_LAZY_TYPE;
251
+ var Memo = REACT_MEMO_TYPE;
252
+ var Portal = REACT_PORTAL_TYPE;
253
+ var Profiler = REACT_PROFILER_TYPE;
254
+ var StrictMode = REACT_STRICT_MODE_TYPE;
255
+ var Suspense = REACT_SUSPENSE_TYPE;
256
+ var hasWarnedAboutDeprecatedIsAsyncMode = false;
257
+ function isAsyncMode(object) {
258
+ {
259
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
260
+ hasWarnedAboutDeprecatedIsAsyncMode = true;
261
+ console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
262
+ }
263
+ }
264
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
265
+ }
266
+ function isConcurrentMode(object) {
267
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
268
+ }
269
+ function isContextConsumer(object) {
270
+ return typeOf(object) === REACT_CONTEXT_TYPE;
271
+ }
272
+ function isContextProvider(object) {
273
+ return typeOf(object) === REACT_PROVIDER_TYPE;
274
+ }
275
+ function isElement(object) {
276
+ return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
277
+ }
278
+ function isForwardRef(object) {
279
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
280
+ }
281
+ function isFragment(object) {
282
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
283
+ }
284
+ function isLazy(object) {
285
+ return typeOf(object) === REACT_LAZY_TYPE;
286
+ }
287
+ function isMemo(object) {
288
+ return typeOf(object) === REACT_MEMO_TYPE;
289
+ }
290
+ function isPortal(object) {
291
+ return typeOf(object) === REACT_PORTAL_TYPE;
292
+ }
293
+ function isProfiler(object) {
294
+ return typeOf(object) === REACT_PROFILER_TYPE;
295
+ }
296
+ function isStrictMode(object) {
297
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
298
+ }
299
+ function isSuspense(object) {
300
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
301
+ }
302
+ exports$1.AsyncMode = AsyncMode;
303
+ exports$1.ConcurrentMode = ConcurrentMode;
304
+ exports$1.ContextConsumer = ContextConsumer;
305
+ exports$1.ContextProvider = ContextProvider;
306
+ exports$1.Element = Element;
307
+ exports$1.ForwardRef = ForwardRef;
308
+ exports$1.Fragment = Fragment9;
309
+ exports$1.Lazy = Lazy;
310
+ exports$1.Memo = Memo;
311
+ exports$1.Portal = Portal;
312
+ exports$1.Profiler = Profiler;
313
+ exports$1.StrictMode = StrictMode;
314
+ exports$1.Suspense = Suspense;
315
+ exports$1.isAsyncMode = isAsyncMode;
316
+ exports$1.isConcurrentMode = isConcurrentMode;
317
+ exports$1.isContextConsumer = isContextConsumer;
318
+ exports$1.isContextProvider = isContextProvider;
319
+ exports$1.isElement = isElement;
320
+ exports$1.isForwardRef = isForwardRef;
321
+ exports$1.isFragment = isFragment;
322
+ exports$1.isLazy = isLazy;
323
+ exports$1.isMemo = isMemo;
324
+ exports$1.isPortal = isPortal;
325
+ exports$1.isProfiler = isProfiler;
326
+ exports$1.isStrictMode = isStrictMode;
327
+ exports$1.isSuspense = isSuspense;
328
+ exports$1.isValidElementType = isValidElementType;
329
+ exports$1.typeOf = typeOf;
330
+ })();
331
+ }
332
+ }
333
+ });
28
334
 
29
- var createCache__default = /*#__PURE__*/_interopDefault(createCache);
30
- var styled__default = /*#__PURE__*/_interopDefault(styled);
335
+ // ../node_modules/react-is/index.js
336
+ var require_react_is = __commonJS({
337
+ "../node_modules/react-is/index.js"(exports$1, module) {
338
+ if (process.env.NODE_ENV === "production") {
339
+ module.exports = require_react_is_production_min();
340
+ } else {
341
+ module.exports = require_react_is_development();
342
+ }
343
+ }
344
+ });
345
+
346
+ // ../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
347
+ var require_hoist_non_react_statics_cjs = __commonJS({
348
+ "../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports$1, module) {
349
+ var reactIs = require_react_is();
350
+ var REACT_STATICS = {
351
+ childContextTypes: true,
352
+ contextType: true,
353
+ contextTypes: true,
354
+ defaultProps: true,
355
+ displayName: true,
356
+ getDefaultProps: true,
357
+ getDerivedStateFromError: true,
358
+ getDerivedStateFromProps: true,
359
+ mixins: true,
360
+ propTypes: true,
361
+ type: true
362
+ };
363
+ var KNOWN_STATICS = {
364
+ name: true,
365
+ length: true,
366
+ prototype: true,
367
+ caller: true,
368
+ callee: true,
369
+ arguments: true,
370
+ arity: true
371
+ };
372
+ var FORWARD_REF_STATICS = {
373
+ "$$typeof": true,
374
+ render: true,
375
+ defaultProps: true,
376
+ displayName: true,
377
+ propTypes: true
378
+ };
379
+ var MEMO_STATICS = {
380
+ "$$typeof": true,
381
+ compare: true,
382
+ defaultProps: true,
383
+ displayName: true,
384
+ propTypes: true,
385
+ type: true
386
+ };
387
+ var TYPE_STATICS = {};
388
+ TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
389
+ TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
390
+ function getStatics(component) {
391
+ if (reactIs.isMemo(component)) {
392
+ return MEMO_STATICS;
393
+ }
394
+ return TYPE_STATICS[component["$$typeof"]] || REACT_STATICS;
395
+ }
396
+ var defineProperty = Object.defineProperty;
397
+ var getOwnPropertyNames = Object.getOwnPropertyNames;
398
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
399
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
400
+ var getPrototypeOf = Object.getPrototypeOf;
401
+ var objectPrototype = Object.prototype;
402
+ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
403
+ if (typeof sourceComponent !== "string") {
404
+ if (objectPrototype) {
405
+ var inheritedComponent = getPrototypeOf(sourceComponent);
406
+ if (inheritedComponent && inheritedComponent !== objectPrototype) {
407
+ hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
408
+ }
409
+ }
410
+ var keys = getOwnPropertyNames(sourceComponent);
411
+ if (getOwnPropertySymbols) {
412
+ keys = keys.concat(getOwnPropertySymbols(sourceComponent));
413
+ }
414
+ var targetStatics = getStatics(targetComponent);
415
+ var sourceStatics = getStatics(sourceComponent);
416
+ for (var i = 0; i < keys.length; ++i) {
417
+ var key = keys[i];
418
+ if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
419
+ var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
420
+ try {
421
+ defineProperty(targetComponent, key, descriptor);
422
+ } catch (e) {
423
+ }
424
+ }
425
+ }
426
+ }
427
+ return targetComponent;
428
+ }
429
+ module.exports = hoistNonReactStatics;
430
+ }
431
+ });
31
432
 
32
- // src/components/SignIn.tsx
33
- var NavigationContext = react.createContext(null);
433
+ // ../node_modules/@babel/runtime/helpers/extends.js
434
+ var require_extends = __commonJS({
435
+ "../node_modules/@babel/runtime/helpers/extends.js"(exports$1, module) {
436
+ function _extends2() {
437
+ return module.exports = _extends2 = Object.assign ? Object.assign.bind() : function(n) {
438
+ for (var e = 1; e < arguments.length; e++) {
439
+ var t = arguments[e];
440
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
441
+ }
442
+ return n;
443
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends2.apply(null, arguments);
444
+ }
445
+ module.exports = _extends2, module.exports.__esModule = true, module.exports["default"] = module.exports;
446
+ }
447
+ });
448
+ var NavigationContext = React2.createContext(null);
34
449
  function NavigationProvider({ adapter, children }) {
35
450
  return /* @__PURE__ */ jsxRuntime.jsx(NavigationContext.Provider, { value: adapter, children });
36
451
  }
37
452
  function useNavigationAdapter() {
38
- const adapter = react.useContext(NavigationContext);
453
+ const adapter = React2.useContext(NavigationContext);
39
454
  if (!adapter) {
40
455
  return {
41
456
  useSearchParams: () => new URLSearchParams(),
@@ -51,7 +466,7 @@ var BrowserNavigationAdapter = {
51
466
  * This is sufficient for auth flows where we read initial URL params
52
467
  */
53
468
  useSearchParams() {
54
- const [searchParams] = react.useState(() => {
469
+ const [searchParams] = React2.useState(() => {
55
470
  if (typeof window === "undefined") {
56
471
  return new URLSearchParams();
57
472
  }
@@ -160,8 +575,8 @@ var InsforgeManager = class _InsforgeManager {
160
575
  try {
161
576
  const sessionResult = this.sdk.auth.getCurrentSession();
162
577
  const session = sessionResult.data?.session;
163
- const token = session?.accessToken || null;
164
- if (!token) {
578
+ const token2 = session?.accessToken || null;
579
+ if (!token2) {
165
580
  this.user = null;
166
581
  if (this.config.onAuthChange) {
167
582
  this.config.onAuthChange(null);
@@ -377,10 +792,10 @@ var InsforgeManager = class _InsforgeManager {
377
792
  const sdkResult = await this.sdk.auth.sendResetPasswordEmail({ email });
378
793
  return sdkResult.data;
379
794
  }
380
- async resetPassword(token, newPassword) {
795
+ async resetPassword(token2, newPassword) {
381
796
  const sdkResult = await this.sdk.auth.resetPassword({
382
797
  newPassword,
383
- otp: token
798
+ otp: token2
384
799
  });
385
800
  return sdkResult.data;
386
801
  }
@@ -476,16 +891,1324 @@ var InsforgeManager = class _InsforgeManager {
476
891
  this.listeners.clear();
477
892
  }
478
893
  };
894
+ function sheetForTag(tag) {
895
+ if (tag.sheet) {
896
+ return tag.sheet;
897
+ }
898
+ for (var i = 0; i < document.styleSheets.length; i++) {
899
+ if (document.styleSheets[i].ownerNode === tag) {
900
+ return document.styleSheets[i];
901
+ }
902
+ }
903
+ return void 0;
904
+ }
905
+ function createStyleElement(options) {
906
+ var tag = document.createElement("style");
907
+ tag.setAttribute("data-emotion", options.key);
908
+ if (options.nonce !== void 0) {
909
+ tag.setAttribute("nonce", options.nonce);
910
+ }
911
+ tag.appendChild(document.createTextNode(""));
912
+ tag.setAttribute("data-s", "");
913
+ return tag;
914
+ }
915
+ var StyleSheet = /* @__PURE__ */ (function() {
916
+ function StyleSheet2(options) {
917
+ var _this = this;
918
+ this._insertTag = function(tag) {
919
+ var before;
920
+ if (_this.tags.length === 0) {
921
+ if (_this.insertionPoint) {
922
+ before = _this.insertionPoint.nextSibling;
923
+ } else if (_this.prepend) {
924
+ before = _this.container.firstChild;
925
+ } else {
926
+ before = _this.before;
927
+ }
928
+ } else {
929
+ before = _this.tags[_this.tags.length - 1].nextSibling;
930
+ }
931
+ _this.container.insertBefore(tag, before);
932
+ _this.tags.push(tag);
933
+ };
934
+ this.isSpeedy = options.speedy === void 0 ? true : options.speedy;
935
+ this.tags = [];
936
+ this.ctr = 0;
937
+ this.nonce = options.nonce;
938
+ this.key = options.key;
939
+ this.container = options.container;
940
+ this.prepend = options.prepend;
941
+ this.insertionPoint = options.insertionPoint;
942
+ this.before = null;
943
+ }
944
+ var _proto = StyleSheet2.prototype;
945
+ _proto.hydrate = function hydrate(nodes) {
946
+ nodes.forEach(this._insertTag);
947
+ };
948
+ _proto.insert = function insert(rule) {
949
+ if (this.ctr % (this.isSpeedy ? 65e3 : 1) === 0) {
950
+ this._insertTag(createStyleElement(this));
951
+ }
952
+ var tag = this.tags[this.tags.length - 1];
953
+ if (this.isSpeedy) {
954
+ var sheet = sheetForTag(tag);
955
+ try {
956
+ sheet.insertRule(rule, sheet.cssRules.length);
957
+ } catch (e) {
958
+ }
959
+ } else {
960
+ tag.appendChild(document.createTextNode(rule));
961
+ }
962
+ this.ctr++;
963
+ };
964
+ _proto.flush = function flush() {
965
+ this.tags.forEach(function(tag) {
966
+ var _tag$parentNode;
967
+ return (_tag$parentNode = tag.parentNode) == null ? void 0 : _tag$parentNode.removeChild(tag);
968
+ });
969
+ this.tags = [];
970
+ this.ctr = 0;
971
+ };
972
+ return StyleSheet2;
973
+ })();
974
+
975
+ // ../node_modules/stylis/src/Enum.js
976
+ var MS = "-ms-";
977
+ var MOZ = "-moz-";
978
+ var WEBKIT = "-webkit-";
979
+ var COMMENT = "comm";
980
+ var RULESET = "rule";
981
+ var DECLARATION = "decl";
982
+ var IMPORT = "@import";
983
+ var KEYFRAMES = "@keyframes";
984
+ var LAYER = "@layer";
985
+
986
+ // ../node_modules/stylis/src/Utility.js
987
+ var abs = Math.abs;
988
+ var from = String.fromCharCode;
989
+ var assign = Object.assign;
990
+ function hash(value, length2) {
991
+ return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
992
+ }
993
+ function trim(value) {
994
+ return value.trim();
995
+ }
996
+ function match(value, pattern) {
997
+ return (value = pattern.exec(value)) ? value[0] : value;
998
+ }
999
+ function replace(value, pattern, replacement) {
1000
+ return value.replace(pattern, replacement);
1001
+ }
1002
+ function indexof(value, search) {
1003
+ return value.indexOf(search);
1004
+ }
1005
+ function charat(value, index) {
1006
+ return value.charCodeAt(index) | 0;
1007
+ }
1008
+ function substr(value, begin, end) {
1009
+ return value.slice(begin, end);
1010
+ }
1011
+ function strlen(value) {
1012
+ return value.length;
1013
+ }
1014
+ function sizeof(value) {
1015
+ return value.length;
1016
+ }
1017
+ function append(value, array) {
1018
+ return array.push(value), value;
1019
+ }
1020
+ function combine(array, callback) {
1021
+ return array.map(callback).join("");
1022
+ }
1023
+
1024
+ // ../node_modules/stylis/src/Tokenizer.js
1025
+ var line = 1;
1026
+ var column = 1;
1027
+ var length = 0;
1028
+ var position = 0;
1029
+ var character = 0;
1030
+ var characters = "";
1031
+ function node(value, root, parent, type, props, children, length2) {
1032
+ return { value, root, parent, type, props, children, line, column, length: length2, return: "" };
1033
+ }
1034
+ function copy(root, props) {
1035
+ return assign(node("", null, null, "", null, null, 0), root, { length: -root.length }, props);
1036
+ }
1037
+ function char() {
1038
+ return character;
1039
+ }
1040
+ function prev() {
1041
+ character = position > 0 ? charat(characters, --position) : 0;
1042
+ if (column--, character === 10)
1043
+ column = 1, line--;
1044
+ return character;
1045
+ }
1046
+ function next() {
1047
+ character = position < length ? charat(characters, position++) : 0;
1048
+ if (column++, character === 10)
1049
+ column = 1, line++;
1050
+ return character;
1051
+ }
1052
+ function peek() {
1053
+ return charat(characters, position);
1054
+ }
1055
+ function caret() {
1056
+ return position;
1057
+ }
1058
+ function slice(begin, end) {
1059
+ return substr(characters, begin, end);
1060
+ }
1061
+ function token(type) {
1062
+ switch (type) {
1063
+ // \0 \t \n \r \s whitespace token
1064
+ case 0:
1065
+ case 9:
1066
+ case 10:
1067
+ case 13:
1068
+ case 32:
1069
+ return 5;
1070
+ // ! + , / > @ ~ isolate token
1071
+ case 33:
1072
+ case 43:
1073
+ case 44:
1074
+ case 47:
1075
+ case 62:
1076
+ case 64:
1077
+ case 126:
1078
+ // ; { } breakpoint token
1079
+ case 59:
1080
+ case 123:
1081
+ case 125:
1082
+ return 4;
1083
+ // : accompanied token
1084
+ case 58:
1085
+ return 3;
1086
+ // " ' ( [ opening delimit token
1087
+ case 34:
1088
+ case 39:
1089
+ case 40:
1090
+ case 91:
1091
+ return 2;
1092
+ // ) ] closing delimit token
1093
+ case 41:
1094
+ case 93:
1095
+ return 1;
1096
+ }
1097
+ return 0;
1098
+ }
1099
+ function alloc(value) {
1100
+ return line = column = 1, length = strlen(characters = value), position = 0, [];
1101
+ }
1102
+ function dealloc(value) {
1103
+ return characters = "", value;
1104
+ }
1105
+ function delimit(type) {
1106
+ return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
1107
+ }
1108
+ function whitespace(type) {
1109
+ while (character = peek())
1110
+ if (character < 33)
1111
+ next();
1112
+ else
1113
+ break;
1114
+ return token(type) > 2 || token(character) > 3 ? "" : " ";
1115
+ }
1116
+ function escaping(index, count) {
1117
+ while (--count && next())
1118
+ if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97)
1119
+ break;
1120
+ return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
1121
+ }
1122
+ function delimiter(type) {
1123
+ while (next())
1124
+ switch (character) {
1125
+ // ] ) " '
1126
+ case type:
1127
+ return position;
1128
+ // " '
1129
+ case 34:
1130
+ case 39:
1131
+ if (type !== 34 && type !== 39)
1132
+ delimiter(character);
1133
+ break;
1134
+ // (
1135
+ case 40:
1136
+ if (type === 41)
1137
+ delimiter(type);
1138
+ break;
1139
+ // \
1140
+ case 92:
1141
+ next();
1142
+ break;
1143
+ }
1144
+ return position;
1145
+ }
1146
+ function commenter(type, index) {
1147
+ while (next())
1148
+ if (type + character === 47 + 10)
1149
+ break;
1150
+ else if (type + character === 42 + 42 && peek() === 47)
1151
+ break;
1152
+ return "/*" + slice(index, position - 1) + "*" + from(type === 47 ? type : next());
1153
+ }
1154
+ function identifier(index) {
1155
+ while (!token(peek()))
1156
+ next();
1157
+ return slice(index, position);
1158
+ }
1159
+
1160
+ // ../node_modules/stylis/src/Parser.js
1161
+ function compile(value) {
1162
+ return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value));
1163
+ }
1164
+ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
1165
+ var index = 0;
1166
+ var offset = 0;
1167
+ var length2 = pseudo;
1168
+ var atrule = 0;
1169
+ var property = 0;
1170
+ var previous = 0;
1171
+ var variable = 1;
1172
+ var scanning = 1;
1173
+ var ampersand = 1;
1174
+ var character2 = 0;
1175
+ var type = "";
1176
+ var props = rules;
1177
+ var children = rulesets;
1178
+ var reference = rule;
1179
+ var characters2 = type;
1180
+ while (scanning)
1181
+ switch (previous = character2, character2 = next()) {
1182
+ // (
1183
+ case 40:
1184
+ if (previous != 108 && charat(characters2, length2 - 1) == 58) {
1185
+ if (indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f") != -1)
1186
+ ampersand = -1;
1187
+ break;
1188
+ }
1189
+ // " ' [
1190
+ case 34:
1191
+ case 39:
1192
+ case 91:
1193
+ characters2 += delimit(character2);
1194
+ break;
1195
+ // \t \n \r \s
1196
+ case 9:
1197
+ case 10:
1198
+ case 13:
1199
+ case 32:
1200
+ characters2 += whitespace(previous);
1201
+ break;
1202
+ // \
1203
+ case 92:
1204
+ characters2 += escaping(caret() - 1, 7);
1205
+ continue;
1206
+ // /
1207
+ case 47:
1208
+ switch (peek()) {
1209
+ case 42:
1210
+ case 47:
1211
+ append(comment(commenter(next(), caret()), root, parent), declarations);
1212
+ break;
1213
+ default:
1214
+ characters2 += "/";
1215
+ }
1216
+ break;
1217
+ // {
1218
+ case 123 * variable:
1219
+ points[index++] = strlen(characters2) * ampersand;
1220
+ // } ; \0
1221
+ case 125 * variable:
1222
+ case 59:
1223
+ case 0:
1224
+ switch (character2) {
1225
+ // \0 }
1226
+ case 0:
1227
+ case 125:
1228
+ scanning = 0;
1229
+ // ;
1230
+ case 59 + offset:
1231
+ if (ampersand == -1) characters2 = replace(characters2, /\f/g, "");
1232
+ if (property > 0 && strlen(characters2) - length2)
1233
+ append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2), declarations);
1234
+ break;
1235
+ // @ ;
1236
+ case 59:
1237
+ characters2 += ";";
1238
+ // { rule/at-rule
1239
+ default:
1240
+ append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props = [], children = [], length2), rulesets);
1241
+ if (character2 === 123)
1242
+ if (offset === 0)
1243
+ parse(characters2, root, reference, reference, props, rulesets, length2, points, children);
1244
+ else
1245
+ switch (atrule === 99 && charat(characters2, 3) === 110 ? 100 : atrule) {
1246
+ // d l m s
1247
+ case 100:
1248
+ case 108:
1249
+ case 109:
1250
+ case 115:
1251
+ parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length2), children), rules, children, length2, points, rule ? props : children);
1252
+ break;
1253
+ default:
1254
+ parse(characters2, reference, reference, reference, [""], children, 0, points, children);
1255
+ }
1256
+ }
1257
+ index = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
1258
+ break;
1259
+ // :
1260
+ case 58:
1261
+ length2 = 1 + strlen(characters2), property = previous;
1262
+ default:
1263
+ if (variable < 1) {
1264
+ if (character2 == 123)
1265
+ --variable;
1266
+ else if (character2 == 125 && variable++ == 0 && prev() == 125)
1267
+ continue;
1268
+ }
1269
+ switch (characters2 += from(character2), character2 * variable) {
1270
+ // &
1271
+ case 38:
1272
+ ampersand = offset > 0 ? 1 : (characters2 += "\f", -1);
1273
+ break;
1274
+ // ,
1275
+ case 44:
1276
+ points[index++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
1277
+ break;
1278
+ // @
1279
+ case 64:
1280
+ if (peek() === 45)
1281
+ characters2 += delimit(next());
1282
+ atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++;
1283
+ break;
1284
+ // -
1285
+ case 45:
1286
+ if (previous === 45 && strlen(characters2) == 2)
1287
+ variable = 0;
1288
+ }
1289
+ }
1290
+ return rulesets;
1291
+ }
1292
+ function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length2) {
1293
+ var post = offset - 1;
1294
+ var rule = offset === 0 ? rules : [""];
1295
+ var size = sizeof(rule);
1296
+ for (var i = 0, j = 0, k = 0; i < index; ++i)
1297
+ for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z2 = value; x < size; ++x)
1298
+ if (z2 = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x])))
1299
+ props[k++] = z2;
1300
+ return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length2);
1301
+ }
1302
+ function comment(value, root, parent) {
1303
+ return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0);
1304
+ }
1305
+ function declaration(value, root, parent, length2) {
1306
+ return node(value, root, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2);
1307
+ }
1308
+
1309
+ // ../node_modules/stylis/src/Serializer.js
1310
+ function serialize(children, callback) {
1311
+ var output = "";
1312
+ var length2 = sizeof(children);
1313
+ for (var i = 0; i < length2; i++)
1314
+ output += callback(children[i], i, children, callback) || "";
1315
+ return output;
1316
+ }
1317
+ function stringify(element, index, children, callback) {
1318
+ switch (element.type) {
1319
+ case LAYER:
1320
+ if (element.children.length) break;
1321
+ case IMPORT:
1322
+ case DECLARATION:
1323
+ return element.return = element.return || element.value;
1324
+ case COMMENT:
1325
+ return "";
1326
+ case KEYFRAMES:
1327
+ return element.return = element.value + "{" + serialize(element.children, callback) + "}";
1328
+ case RULESET:
1329
+ element.value = element.props.join(",");
1330
+ }
1331
+ return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
1332
+ }
1333
+
1334
+ // ../node_modules/stylis/src/Middleware.js
1335
+ function middleware(collection) {
1336
+ var length2 = sizeof(collection);
1337
+ return function(element, index, children, callback) {
1338
+ var output = "";
1339
+ for (var i = 0; i < length2; i++)
1340
+ output += collection[i](element, index, children, callback) || "";
1341
+ return output;
1342
+ };
1343
+ }
1344
+ function rulesheet(callback) {
1345
+ return function(element) {
1346
+ if (!element.root) {
1347
+ if (element = element.return)
1348
+ callback(element);
1349
+ }
1350
+ };
1351
+ }
1352
+
1353
+ // ../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js
1354
+ var weakMemoize = function weakMemoize2(func) {
1355
+ var cache = /* @__PURE__ */ new WeakMap();
1356
+ return function(arg) {
1357
+ if (cache.has(arg)) {
1358
+ return cache.get(arg);
1359
+ }
1360
+ var ret = func(arg);
1361
+ cache.set(arg, ret);
1362
+ return ret;
1363
+ };
1364
+ };
1365
+
1366
+ // ../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
1367
+ function memoize(fn) {
1368
+ var cache = /* @__PURE__ */ Object.create(null);
1369
+ return function(arg) {
1370
+ if (cache[arg] === void 0) cache[arg] = fn(arg);
1371
+ return cache[arg];
1372
+ };
1373
+ }
1374
+
1375
+ // ../node_modules/@emotion/cache/dist/emotion-cache.esm.js
1376
+ var isBrowser = typeof document !== "undefined";
1377
+ var identifierWithPointTracking = function identifierWithPointTracking2(begin, points, index) {
1378
+ var previous = 0;
1379
+ var character2 = 0;
1380
+ while (true) {
1381
+ previous = character2;
1382
+ character2 = peek();
1383
+ if (previous === 38 && character2 === 12) {
1384
+ points[index] = 1;
1385
+ }
1386
+ if (token(character2)) {
1387
+ break;
1388
+ }
1389
+ next();
1390
+ }
1391
+ return slice(begin, position);
1392
+ };
1393
+ var toRules = function toRules2(parsed, points) {
1394
+ var index = -1;
1395
+ var character2 = 44;
1396
+ do {
1397
+ switch (token(character2)) {
1398
+ case 0:
1399
+ if (character2 === 38 && peek() === 12) {
1400
+ points[index] = 1;
1401
+ }
1402
+ parsed[index] += identifierWithPointTracking(position - 1, points, index);
1403
+ break;
1404
+ case 2:
1405
+ parsed[index] += delimit(character2);
1406
+ break;
1407
+ case 4:
1408
+ if (character2 === 44) {
1409
+ parsed[++index] = peek() === 58 ? "&\f" : "";
1410
+ points[index] = parsed[index].length;
1411
+ break;
1412
+ }
1413
+ // fallthrough
1414
+ default:
1415
+ parsed[index] += from(character2);
1416
+ }
1417
+ } while (character2 = next());
1418
+ return parsed;
1419
+ };
1420
+ var getRules = function getRules2(value, points) {
1421
+ return dealloc(toRules(alloc(value), points));
1422
+ };
1423
+ var fixedElements = /* @__PURE__ */ new WeakMap();
1424
+ var compat = function compat2(element) {
1425
+ if (element.type !== "rule" || !element.parent || // positive .length indicates that this rule contains pseudo
1426
+ // negative .length indicates that this rule has been already prefixed
1427
+ element.length < 1) {
1428
+ return;
1429
+ }
1430
+ var value = element.value;
1431
+ var parent = element.parent;
1432
+ var isImplicitRule = element.column === parent.column && element.line === parent.line;
1433
+ while (parent.type !== "rule") {
1434
+ parent = parent.parent;
1435
+ if (!parent) return;
1436
+ }
1437
+ if (element.props.length === 1 && value.charCodeAt(0) !== 58 && !fixedElements.get(parent)) {
1438
+ return;
1439
+ }
1440
+ if (isImplicitRule) {
1441
+ return;
1442
+ }
1443
+ fixedElements.set(element, true);
1444
+ var points = [];
1445
+ var rules = getRules(value, points);
1446
+ var parentRules = parent.props;
1447
+ for (var i = 0, k = 0; i < rules.length; i++) {
1448
+ for (var j = 0; j < parentRules.length; j++, k++) {
1449
+ element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
1450
+ }
1451
+ }
1452
+ };
1453
+ var removeLabel = function removeLabel2(element) {
1454
+ if (element.type === "decl") {
1455
+ var value = element.value;
1456
+ if (
1457
+ // charcode for l
1458
+ value.charCodeAt(0) === 108 && // charcode for b
1459
+ value.charCodeAt(2) === 98
1460
+ ) {
1461
+ element["return"] = "";
1462
+ element.value = "";
1463
+ }
1464
+ }
1465
+ };
1466
+ function prefix(value, length2) {
1467
+ switch (hash(value, length2)) {
1468
+ // color-adjust
1469
+ case 5103:
1470
+ return WEBKIT + "print-" + value + value;
1471
+ // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
1472
+ case 5737:
1473
+ case 4201:
1474
+ case 3177:
1475
+ case 3433:
1476
+ case 1641:
1477
+ case 4457:
1478
+ case 2921:
1479
+ // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
1480
+ case 5572:
1481
+ case 6356:
1482
+ case 5844:
1483
+ case 3191:
1484
+ case 6645:
1485
+ case 3005:
1486
+ // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
1487
+ case 6391:
1488
+ case 5879:
1489
+ case 5623:
1490
+ case 6135:
1491
+ case 4599:
1492
+ case 4855:
1493
+ // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
1494
+ case 4215:
1495
+ case 6389:
1496
+ case 5109:
1497
+ case 5365:
1498
+ case 5621:
1499
+ case 3829:
1500
+ return WEBKIT + value + value;
1501
+ // appearance, user-select, transform, hyphens, text-size-adjust
1502
+ case 5349:
1503
+ case 4246:
1504
+ case 4810:
1505
+ case 6968:
1506
+ case 2756:
1507
+ return WEBKIT + value + MOZ + value + MS + value + value;
1508
+ // flex, flex-direction
1509
+ case 6828:
1510
+ case 4268:
1511
+ return WEBKIT + value + MS + value + value;
1512
+ // order
1513
+ case 6165:
1514
+ return WEBKIT + value + MS + "flex-" + value + value;
1515
+ // align-items
1516
+ case 5187:
1517
+ return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
1518
+ // align-self
1519
+ case 5443:
1520
+ return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/, "") + value;
1521
+ // align-content
1522
+ case 4675:
1523
+ return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/, "") + value;
1524
+ // flex-shrink
1525
+ case 5548:
1526
+ return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
1527
+ // flex-basis
1528
+ case 5292:
1529
+ return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
1530
+ // flex-grow
1531
+ case 6060:
1532
+ return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
1533
+ // transition
1534
+ case 4554:
1535
+ return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
1536
+ // cursor
1537
+ case 6187:
1538
+ return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
1539
+ // background, background-image
1540
+ case 5495:
1541
+ case 3959:
1542
+ return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
1543
+ // justify-content
1544
+ case 4968:
1545
+ return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value;
1546
+ // (margin|padding)-inline-(start|end)
1547
+ case 4095:
1548
+ case 3583:
1549
+ case 4068:
1550
+ case 2532:
1551
+ return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
1552
+ // (min|max)?(width|height|inline-size|block-size)
1553
+ case 8116:
1554
+ case 7059:
1555
+ case 5753:
1556
+ case 5535:
1557
+ case 5445:
1558
+ case 5701:
1559
+ case 4933:
1560
+ case 4677:
1561
+ case 5533:
1562
+ case 5789:
1563
+ case 5021:
1564
+ case 4765:
1565
+ if (strlen(value) - 1 - length2 > 6) switch (charat(value, length2 + 1)) {
1566
+ // (m)ax-content, (m)in-content
1567
+ case 109:
1568
+ if (charat(value, length2 + 4) !== 45) break;
1569
+ // (f)ill-available, (f)it-content
1570
+ case 102:
1571
+ return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
1572
+ // (s)tretch
1573
+ case 115:
1574
+ return ~indexof(value, "stretch") ? prefix(replace(value, "stretch", "fill-available"), length2) + value : value;
1575
+ }
1576
+ break;
1577
+ // position: sticky
1578
+ case 4949:
1579
+ if (charat(value, length2 + 1) !== 115) break;
1580
+ // display: (flex|inline-flex)
1581
+ case 6444:
1582
+ switch (charat(value, strlen(value) - 3 - (~indexof(value, "!important") && 10))) {
1583
+ // stic(k)y
1584
+ case 107:
1585
+ return replace(value, ":", ":" + WEBKIT) + value;
1586
+ // (inline-)?fl(e)x
1587
+ case 101:
1588
+ return replace(value, /(.+:)([^;!]+)(;|!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
1589
+ }
1590
+ break;
1591
+ // writing-mode
1592
+ case 5936:
1593
+ switch (charat(value, length2 + 11)) {
1594
+ // vertical-l(r)
1595
+ case 114:
1596
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
1597
+ // vertical-r(l)
1598
+ case 108:
1599
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
1600
+ // horizontal(-)tb
1601
+ case 45:
1602
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
1603
+ }
1604
+ return WEBKIT + value + MS + value + value;
1605
+ }
1606
+ return value;
1607
+ }
1608
+ var prefixer = function prefixer2(element, index, children, callback) {
1609
+ if (element.length > -1) {
1610
+ if (!element["return"]) switch (element.type) {
1611
+ case DECLARATION:
1612
+ element["return"] = prefix(element.value, element.length);
1613
+ break;
1614
+ case KEYFRAMES:
1615
+ return serialize([copy(element, {
1616
+ value: replace(element.value, "@", "@" + WEBKIT)
1617
+ })], callback);
1618
+ case RULESET:
1619
+ if (element.length) return combine(element.props, function(value) {
1620
+ switch (match(value, /(::plac\w+|:read-\w+)/)) {
1621
+ // :read-(only|write)
1622
+ case ":read-only":
1623
+ case ":read-write":
1624
+ return serialize([copy(element, {
1625
+ props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")]
1626
+ })], callback);
1627
+ // :placeholder
1628
+ case "::placeholder":
1629
+ return serialize([copy(element, {
1630
+ props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")]
1631
+ }), copy(element, {
1632
+ props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")]
1633
+ }), copy(element, {
1634
+ props: [replace(value, /:(plac\w+)/, MS + "input-$1")]
1635
+ })], callback);
1636
+ }
1637
+ return "";
1638
+ });
1639
+ }
1640
+ }
1641
+ };
1642
+ var getServerStylisCache = isBrowser ? void 0 : weakMemoize(function() {
1643
+ return memoize(function() {
1644
+ return {};
1645
+ });
1646
+ });
1647
+ var defaultStylisPlugins = [prefixer];
1648
+ var createCache = function createCache2(options) {
1649
+ var key = options.key;
1650
+ if (isBrowser && key === "css") {
1651
+ var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])");
1652
+ Array.prototype.forEach.call(ssrStyles, function(node2) {
1653
+ var dataEmotionAttribute = node2.getAttribute("data-emotion");
1654
+ if (dataEmotionAttribute.indexOf(" ") === -1) {
1655
+ return;
1656
+ }
1657
+ document.head.appendChild(node2);
1658
+ node2.setAttribute("data-s", "");
1659
+ });
1660
+ }
1661
+ var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
1662
+ var inserted = {};
1663
+ var container;
1664
+ var nodesToHydrate = [];
1665
+ if (isBrowser) {
1666
+ container = options.container || document.head;
1667
+ Array.prototype.forEach.call(
1668
+ // this means we will ignore elements which don't have a space in them which
1669
+ // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
1670
+ document.querySelectorAll('style[data-emotion^="' + key + ' "]'),
1671
+ function(node2) {
1672
+ var attrib = node2.getAttribute("data-emotion").split(" ");
1673
+ for (var i = 1; i < attrib.length; i++) {
1674
+ inserted[attrib[i]] = true;
1675
+ }
1676
+ nodesToHydrate.push(node2);
1677
+ }
1678
+ );
1679
+ }
1680
+ var _insert;
1681
+ var omnipresentPlugins = [compat, removeLabel];
1682
+ if (!getServerStylisCache) {
1683
+ var currentSheet;
1684
+ var finalizingPlugins = [stringify, rulesheet(function(rule) {
1685
+ currentSheet.insert(rule);
1686
+ })];
1687
+ var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
1688
+ var stylis = function stylis2(styles) {
1689
+ return serialize(compile(styles), serializer);
1690
+ };
1691
+ _insert = function insert(selector, serialized, sheet, shouldCache) {
1692
+ currentSheet = sheet;
1693
+ stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
1694
+ if (shouldCache) {
1695
+ cache.inserted[serialized.name] = true;
1696
+ }
1697
+ };
1698
+ } else {
1699
+ var _finalizingPlugins = [stringify];
1700
+ var _serializer = middleware(omnipresentPlugins.concat(stylisPlugins, _finalizingPlugins));
1701
+ var _stylis = function _stylis2(styles) {
1702
+ return serialize(compile(styles), _serializer);
1703
+ };
1704
+ var serverStylisCache = getServerStylisCache(stylisPlugins)(key);
1705
+ var getRules3 = function getRules4(selector, serialized) {
1706
+ var name = serialized.name;
1707
+ if (serverStylisCache[name] === void 0) {
1708
+ serverStylisCache[name] = _stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
1709
+ }
1710
+ return serverStylisCache[name];
1711
+ };
1712
+ _insert = function _insert2(selector, serialized, sheet, shouldCache) {
1713
+ var name = serialized.name;
1714
+ var rules = getRules3(selector, serialized);
1715
+ if (cache.compat === void 0) {
1716
+ if (shouldCache) {
1717
+ cache.inserted[name] = true;
1718
+ }
1719
+ return rules;
1720
+ } else {
1721
+ if (shouldCache) {
1722
+ cache.inserted[name] = rules;
1723
+ } else {
1724
+ return rules;
1725
+ }
1726
+ }
1727
+ };
1728
+ }
1729
+ var cache = {
1730
+ key,
1731
+ sheet: new StyleSheet({
1732
+ key,
1733
+ container,
1734
+ nonce: options.nonce,
1735
+ speedy: options.speedy,
1736
+ prepend: options.prepend,
1737
+ insertionPoint: options.insertionPoint
1738
+ }),
1739
+ nonce: options.nonce,
1740
+ inserted,
1741
+ registered: {},
1742
+ insert: _insert
1743
+ };
1744
+ cache.sheet.hydrate(nodesToHydrate);
1745
+ return cache;
1746
+ };
1747
+
1748
+ // ../node_modules/@babel/runtime/helpers/esm/extends.js
1749
+ function _extends() {
1750
+ return _extends = Object.assign ? Object.assign.bind() : function(n) {
1751
+ for (var e = 1; e < arguments.length; e++) {
1752
+ var t = arguments[e];
1753
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
1754
+ }
1755
+ return n;
1756
+ }, _extends.apply(null, arguments);
1757
+ }
1758
+
1759
+ // ../node_modules/@emotion/utils/dist/emotion-utils.esm.js
1760
+ var isBrowser2 = typeof document !== "undefined";
1761
+ function getRegisteredStyles(registered, registeredStyles, classNames) {
1762
+ var rawClassName = "";
1763
+ classNames.split(" ").forEach(function(className) {
1764
+ if (registered[className] !== void 0) {
1765
+ registeredStyles.push(registered[className] + ";");
1766
+ } else if (className) {
1767
+ rawClassName += className + " ";
1768
+ }
1769
+ });
1770
+ return rawClassName;
1771
+ }
1772
+ var registerStyles = function registerStyles2(cache, serialized, isStringTag) {
1773
+ var className = cache.key + "-" + serialized.name;
1774
+ if (
1775
+ // we only need to add the styles to the registered cache if the
1776
+ // class name could be used further down
1777
+ // the tree but if it's a string tag, we know it won't
1778
+ // so we don't have to add it to registered cache.
1779
+ // this improves memory usage since we can avoid storing the whole style string
1780
+ (isStringTag === false || // we need to always store it if we're in compat mode and
1781
+ // in node since emotion-server relies on whether a style is in
1782
+ // the registered cache to know whether a style is global or not
1783
+ // also, note that this check will be dead code eliminated in the browser
1784
+ isBrowser2 === false && cache.compat !== void 0) && cache.registered[className] === void 0
1785
+ ) {
1786
+ cache.registered[className] = serialized.styles;
1787
+ }
1788
+ };
1789
+ var insertStyles = function insertStyles2(cache, serialized, isStringTag) {
1790
+ registerStyles(cache, serialized, isStringTag);
1791
+ var className = cache.key + "-" + serialized.name;
1792
+ if (cache.inserted[serialized.name] === void 0) {
1793
+ var stylesForSSR = "";
1794
+ var current = serialized;
1795
+ do {
1796
+ var maybeStyles = cache.insert(serialized === current ? "." + className : "", current, cache.sheet, true);
1797
+ if (!isBrowser2 && maybeStyles !== void 0) {
1798
+ stylesForSSR += maybeStyles;
1799
+ }
1800
+ current = current.next;
1801
+ } while (current !== void 0);
1802
+ if (!isBrowser2 && stylesForSSR.length !== 0) {
1803
+ return stylesForSSR;
1804
+ }
1805
+ }
1806
+ };
1807
+
1808
+ // ../node_modules/@emotion/hash/dist/emotion-hash.esm.js
1809
+ function murmur2(str) {
1810
+ var h = 0;
1811
+ var k, i = 0, len = str.length;
1812
+ for (; len >= 4; ++i, len -= 4) {
1813
+ k = str.charCodeAt(i) & 255 | (str.charCodeAt(++i) & 255) << 8 | (str.charCodeAt(++i) & 255) << 16 | (str.charCodeAt(++i) & 255) << 24;
1814
+ k = /* Math.imul(k, m): */
1815
+ (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16);
1816
+ k ^= /* k >>> r: */
1817
+ k >>> 24;
1818
+ h = /* Math.imul(k, m): */
1819
+ (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
1820
+ (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
1821
+ }
1822
+ switch (len) {
1823
+ case 3:
1824
+ h ^= (str.charCodeAt(i + 2) & 255) << 16;
1825
+ case 2:
1826
+ h ^= (str.charCodeAt(i + 1) & 255) << 8;
1827
+ case 1:
1828
+ h ^= str.charCodeAt(i) & 255;
1829
+ h = /* Math.imul(h, m): */
1830
+ (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
1831
+ }
1832
+ h ^= h >>> 13;
1833
+ h = /* Math.imul(h, m): */
1834
+ (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
1835
+ return ((h ^ h >>> 15) >>> 0).toString(36);
1836
+ }
1837
+
1838
+ // ../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
1839
+ var unitlessKeys = {
1840
+ animationIterationCount: 1,
1841
+ aspectRatio: 1,
1842
+ borderImageOutset: 1,
1843
+ borderImageSlice: 1,
1844
+ borderImageWidth: 1,
1845
+ boxFlex: 1,
1846
+ boxFlexGroup: 1,
1847
+ boxOrdinalGroup: 1,
1848
+ columnCount: 1,
1849
+ columns: 1,
1850
+ flex: 1,
1851
+ flexGrow: 1,
1852
+ flexPositive: 1,
1853
+ flexShrink: 1,
1854
+ flexNegative: 1,
1855
+ flexOrder: 1,
1856
+ gridRow: 1,
1857
+ gridRowEnd: 1,
1858
+ gridRowSpan: 1,
1859
+ gridRowStart: 1,
1860
+ gridColumn: 1,
1861
+ gridColumnEnd: 1,
1862
+ gridColumnSpan: 1,
1863
+ gridColumnStart: 1,
1864
+ msGridRow: 1,
1865
+ msGridRowSpan: 1,
1866
+ msGridColumn: 1,
1867
+ msGridColumnSpan: 1,
1868
+ fontWeight: 1,
1869
+ lineHeight: 1,
1870
+ opacity: 1,
1871
+ order: 1,
1872
+ orphans: 1,
1873
+ scale: 1,
1874
+ tabSize: 1,
1875
+ widows: 1,
1876
+ zIndex: 1,
1877
+ zoom: 1,
1878
+ WebkitLineClamp: 1,
1879
+ // SVG-related properties
1880
+ fillOpacity: 1,
1881
+ floodOpacity: 1,
1882
+ stopOpacity: 1,
1883
+ strokeDasharray: 1,
1884
+ strokeDashoffset: 1,
1885
+ strokeMiterlimit: 1,
1886
+ strokeOpacity: 1,
1887
+ strokeWidth: 1
1888
+ };
1889
+ var hyphenateRegex = /[A-Z]|^ms/g;
1890
+ var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
1891
+ var isCustomProperty = function isCustomProperty2(property) {
1892
+ return property.charCodeAt(1) === 45;
1893
+ };
1894
+ var isProcessableValue = function isProcessableValue2(value) {
1895
+ return value != null && typeof value !== "boolean";
1896
+ };
1897
+ var processStyleName = /* @__PURE__ */ memoize(function(styleName) {
1898
+ return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, "-$&").toLowerCase();
1899
+ });
1900
+ var processStyleValue = function processStyleValue2(key, value) {
1901
+ switch (key) {
1902
+ case "animation":
1903
+ case "animationName": {
1904
+ if (typeof value === "string") {
1905
+ return value.replace(animationRegex, function(match2, p1, p2) {
1906
+ cursor = {
1907
+ name: p1,
1908
+ styles: p2,
1909
+ next: cursor
1910
+ };
1911
+ return p1;
1912
+ });
1913
+ }
1914
+ }
1915
+ }
1916
+ if (unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value === "number" && value !== 0) {
1917
+ return value + "px";
1918
+ }
1919
+ return value;
1920
+ };
1921
+ function handleInterpolation(mergedProps, registered, interpolation) {
1922
+ if (interpolation == null) {
1923
+ return "";
1924
+ }
1925
+ var componentSelector = interpolation;
1926
+ if (componentSelector.__emotion_styles !== void 0) {
1927
+ return componentSelector;
1928
+ }
1929
+ switch (typeof interpolation) {
1930
+ case "boolean": {
1931
+ return "";
1932
+ }
1933
+ case "object": {
1934
+ var keyframes3 = interpolation;
1935
+ if (keyframes3.anim === 1) {
1936
+ cursor = {
1937
+ name: keyframes3.name,
1938
+ styles: keyframes3.styles,
1939
+ next: cursor
1940
+ };
1941
+ return keyframes3.name;
1942
+ }
1943
+ var serializedStyles = interpolation;
1944
+ if (serializedStyles.styles !== void 0) {
1945
+ var next2 = serializedStyles.next;
1946
+ if (next2 !== void 0) {
1947
+ while (next2 !== void 0) {
1948
+ cursor = {
1949
+ name: next2.name,
1950
+ styles: next2.styles,
1951
+ next: cursor
1952
+ };
1953
+ next2 = next2.next;
1954
+ }
1955
+ }
1956
+ var styles = serializedStyles.styles + ";";
1957
+ return styles;
1958
+ }
1959
+ return createStringFromObject(mergedProps, registered, interpolation);
1960
+ }
1961
+ case "function": {
1962
+ if (mergedProps !== void 0) {
1963
+ var previousCursor = cursor;
1964
+ var result = interpolation(mergedProps);
1965
+ cursor = previousCursor;
1966
+ return handleInterpolation(mergedProps, registered, result);
1967
+ }
1968
+ break;
1969
+ }
1970
+ }
1971
+ var asString = interpolation;
1972
+ if (registered == null) {
1973
+ return asString;
1974
+ }
1975
+ var cached = registered[asString];
1976
+ return cached !== void 0 ? cached : asString;
1977
+ }
1978
+ function createStringFromObject(mergedProps, registered, obj) {
1979
+ var string = "";
1980
+ if (Array.isArray(obj)) {
1981
+ for (var i = 0; i < obj.length; i++) {
1982
+ string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
1983
+ }
1984
+ } else {
1985
+ for (var key in obj) {
1986
+ var value = obj[key];
1987
+ if (typeof value !== "object") {
1988
+ var asString = value;
1989
+ if (registered != null && registered[asString] !== void 0) {
1990
+ string += key + "{" + registered[asString] + "}";
1991
+ } else if (isProcessableValue(asString)) {
1992
+ string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";";
1993
+ }
1994
+ } else {
1995
+ if (Array.isArray(value) && typeof value[0] === "string" && (registered == null || registered[value[0]] === void 0)) {
1996
+ for (var _i = 0; _i < value.length; _i++) {
1997
+ if (isProcessableValue(value[_i])) {
1998
+ string += processStyleName(key) + ":" + processStyleValue(key, value[_i]) + ";";
1999
+ }
2000
+ }
2001
+ } else {
2002
+ var interpolated = handleInterpolation(mergedProps, registered, value);
2003
+ switch (key) {
2004
+ case "animation":
2005
+ case "animationName": {
2006
+ string += processStyleName(key) + ":" + interpolated + ";";
2007
+ break;
2008
+ }
2009
+ default: {
2010
+ string += key + "{" + interpolated + "}";
2011
+ }
2012
+ }
2013
+ }
2014
+ }
2015
+ }
2016
+ }
2017
+ return string;
2018
+ }
2019
+ var labelPattern = /label:\s*([^\s;{]+)\s*(;|$)/g;
2020
+ var cursor;
2021
+ function serializeStyles(args, registered, mergedProps) {
2022
+ if (args.length === 1 && typeof args[0] === "object" && args[0] !== null && args[0].styles !== void 0) {
2023
+ return args[0];
2024
+ }
2025
+ var stringMode = true;
2026
+ var styles = "";
2027
+ cursor = void 0;
2028
+ var strings = args[0];
2029
+ if (strings == null || strings.raw === void 0) {
2030
+ stringMode = false;
2031
+ styles += handleInterpolation(mergedProps, registered, strings);
2032
+ } else {
2033
+ var asTemplateStringsArr = strings;
2034
+ styles += asTemplateStringsArr[0];
2035
+ }
2036
+ for (var i = 1; i < args.length; i++) {
2037
+ styles += handleInterpolation(mergedProps, registered, args[i]);
2038
+ if (stringMode) {
2039
+ var templateStringsArr = strings;
2040
+ styles += templateStringsArr[i];
2041
+ }
2042
+ }
2043
+ labelPattern.lastIndex = 0;
2044
+ var identifierName = "";
2045
+ var match2;
2046
+ while ((match2 = labelPattern.exec(styles)) !== null) {
2047
+ identifierName += "-" + match2[1];
2048
+ }
2049
+ var name = murmur2(styles) + identifierName;
2050
+ return {
2051
+ name,
2052
+ styles,
2053
+ next: cursor
2054
+ };
2055
+ }
2056
+ var isBrowser3 = typeof document !== "undefined";
2057
+ var syncFallback = function syncFallback2(create) {
2058
+ return create();
2059
+ };
2060
+ var useInsertionEffect2 = React2__namespace["useInsertionEffect"] ? React2__namespace["useInsertionEffect"] : false;
2061
+ var useInsertionEffectAlwaysWithSyncFallback = !isBrowser3 ? syncFallback : useInsertionEffect2 || syncFallback;
2062
+ var isBrowser4 = typeof document !== "undefined";
2063
+ var EmotionCacheContext = /* @__PURE__ */ React2__namespace.createContext(
2064
+ // we're doing this to avoid preconstruct's dead code elimination in this one case
2065
+ // because this module is primarily intended for the browser and node
2066
+ // but it's also required in react native and similar environments sometimes
2067
+ // and we could have a special build just for that
2068
+ // but this is much easier and the native packages
2069
+ // might use a different theme context in the future anyway
2070
+ typeof HTMLElement !== "undefined" ? /* @__PURE__ */ createCache({
2071
+ key: "css"
2072
+ }) : null
2073
+ );
2074
+ var CacheProvider = EmotionCacheContext.Provider;
2075
+ var withEmotionCache = function withEmotionCache2(func) {
2076
+ return /* @__PURE__ */ React2.forwardRef(function(props, ref) {
2077
+ var cache = React2.useContext(EmotionCacheContext);
2078
+ return func(props, cache, ref);
2079
+ });
2080
+ };
2081
+ if (!isBrowser4) {
2082
+ withEmotionCache = function withEmotionCache3(func) {
2083
+ return function(props) {
2084
+ var cache = React2.useContext(EmotionCacheContext);
2085
+ if (cache === null) {
2086
+ cache = createCache({
2087
+ key: "css"
2088
+ });
2089
+ return /* @__PURE__ */ React2__namespace.createElement(EmotionCacheContext.Provider, {
2090
+ value: cache
2091
+ }, func(props, cache));
2092
+ } else {
2093
+ return func(props, cache);
2094
+ }
2095
+ };
2096
+ };
2097
+ }
2098
+ var ThemeContext = /* @__PURE__ */ React2__namespace.createContext({});
2099
+ var hasOwn = {}.hasOwnProperty;
2100
+ var typePropName = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__";
2101
+ var createEmotionProps = function createEmotionProps2(type, props) {
2102
+ var newProps = {};
2103
+ for (var _key in props) {
2104
+ if (hasOwn.call(props, _key)) {
2105
+ newProps[_key] = props[_key];
2106
+ }
2107
+ }
2108
+ newProps[typePropName] = type;
2109
+ return newProps;
2110
+ };
2111
+ var Insertion = function Insertion2(_ref) {
2112
+ var cache = _ref.cache, serialized = _ref.serialized, isStringTag = _ref.isStringTag;
2113
+ registerStyles(cache, serialized, isStringTag);
2114
+ var rules = useInsertionEffectAlwaysWithSyncFallback(function() {
2115
+ return insertStyles(cache, serialized, isStringTag);
2116
+ });
2117
+ if (!isBrowser4 && rules !== void 0) {
2118
+ var _ref2;
2119
+ var serializedNames = serialized.name;
2120
+ var next2 = serialized.next;
2121
+ while (next2 !== void 0) {
2122
+ serializedNames += " " + next2.name;
2123
+ next2 = next2.next;
2124
+ }
2125
+ return /* @__PURE__ */ React2__namespace.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
2126
+ __html: rules
2127
+ }, _ref2.nonce = cache.sheet.nonce, _ref2));
2128
+ }
2129
+ return null;
2130
+ };
2131
+ var Emotion = /* @__PURE__ */ withEmotionCache(function(props, cache, ref) {
2132
+ var cssProp = props.css;
2133
+ if (typeof cssProp === "string" && cache.registered[cssProp] !== void 0) {
2134
+ cssProp = cache.registered[cssProp];
2135
+ }
2136
+ var WrappedComponent = props[typePropName];
2137
+ var registeredStyles = [cssProp];
2138
+ var className = "";
2139
+ if (typeof props.className === "string") {
2140
+ className = getRegisteredStyles(cache.registered, registeredStyles, props.className);
2141
+ } else if (props.className != null) {
2142
+ className = props.className + " ";
2143
+ }
2144
+ var serialized = serializeStyles(registeredStyles, void 0, React2__namespace.useContext(ThemeContext));
2145
+ className += cache.key + "-" + serialized.name;
2146
+ var newProps = {};
2147
+ for (var _key2 in props) {
2148
+ if (hasOwn.call(props, _key2) && _key2 !== "css" && _key2 !== typePropName && true) {
2149
+ newProps[_key2] = props[_key2];
2150
+ }
2151
+ }
2152
+ newProps.className = className;
2153
+ if (ref) {
2154
+ newProps.ref = ref;
2155
+ }
2156
+ return /* @__PURE__ */ React2__namespace.createElement(React2__namespace.Fragment, null, /* @__PURE__ */ React2__namespace.createElement(Insertion, {
2157
+ cache,
2158
+ serialized,
2159
+ isStringTag: typeof WrappedComponent === "string"
2160
+ }), /* @__PURE__ */ React2__namespace.createElement(WrappedComponent, newProps));
2161
+ });
2162
+ var Emotion$1 = Emotion;
2163
+ __toESM(require_extends());
2164
+ __toESM(require_hoist_non_react_statics_cjs());
2165
+ var jsx3 = function jsx4(type, props) {
2166
+ var args = arguments;
2167
+ if (props == null || !hasOwn.call(props, "css")) {
2168
+ return React2__namespace.createElement.apply(void 0, args);
2169
+ }
2170
+ var argsLength = args.length;
2171
+ var createElementArgArray = new Array(argsLength);
2172
+ createElementArgArray[0] = Emotion$1;
2173
+ createElementArgArray[1] = createEmotionProps(type, props);
2174
+ for (var i = 2; i < argsLength; i++) {
2175
+ createElementArgArray[i] = args[i];
2176
+ }
2177
+ return React2__namespace.createElement.apply(null, createElementArgArray);
2178
+ };
2179
+ (function(_jsx) {
2180
+ var JSX;
2181
+ /* @__PURE__ */ (function(_JSX) {
2182
+ })(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
2183
+ })(jsx3 || (jsx3 = {}));
2184
+ function css() {
2185
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2186
+ args[_key] = arguments[_key];
2187
+ }
2188
+ return serializeStyles(args);
2189
+ }
2190
+ function keyframes() {
2191
+ var insertable = css.apply(void 0, arguments);
2192
+ var name = "animation-" + insertable.name;
2193
+ return {
2194
+ name,
2195
+ styles: "@keyframes " + name + "{" + insertable.styles + "}",
2196
+ anim: 1,
2197
+ toString: function toString() {
2198
+ return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
2199
+ }
2200
+ };
2201
+ }
479
2202
  function StyleProvider({ children, nonce }) {
480
- const cache = react.useMemo(() => {
481
- const emotionCache = createCache__default.default({
2203
+ const cache = React2.useMemo(() => {
2204
+ const emotionCache = createCache({
482
2205
  key: "if-styles",
483
2206
  prepend: true,
484
2207
  nonce
485
2208
  });
486
2209
  return emotionCache;
487
2210
  }, [nonce]);
488
- return /* @__PURE__ */ jsxRuntime.jsx(react$1.CacheProvider, { value: cache, children });
2211
+ return /* @__PURE__ */ jsxRuntime.jsx(CacheProvider, { value: cache, children });
489
2212
  }
490
2213
  function InsforgeProviderCore({
491
2214
  children,
@@ -496,7 +2219,7 @@ function InsforgeProviderCore({
496
2219
  onSignOut,
497
2220
  initialState
498
2221
  }) {
499
- const manager = react.useMemo(
2222
+ const manager = React2.useMemo(
500
2223
  () => InsforgeManager.getInstance({
501
2224
  baseUrl,
502
2225
  afterSignInUrl,
@@ -512,8 +2235,8 @@ function InsforgeProviderCore({
512
2235
  manager.setInitialState(initialState);
513
2236
  }
514
2237
  }
515
- const [state, setState] = react.useState(() => manager.getState());
516
- react.useEffect(() => {
2238
+ const [state, setState] = React2.useState(() => manager.getState());
2239
+ React2.useEffect(() => {
517
2240
  const unsubscribe = manager.subscribe((newState) => {
518
2241
  setState(newState);
519
2242
  });
@@ -522,7 +2245,7 @@ function InsforgeProviderCore({
522
2245
  unsubscribe();
523
2246
  };
524
2247
  }, [manager]);
525
- const contextValue = react.useMemo(
2248
+ const contextValue = React2.useMemo(
526
2249
  () => ({
527
2250
  // State from Manager
528
2251
  user: state.user,
@@ -538,7 +2261,7 @@ function InsforgeProviderCore({
538
2261
  reloadAuth: () => manager.reloadAuth(),
539
2262
  sendVerificationEmail: (email) => manager.sendVerificationEmail(email),
540
2263
  sendResetPasswordEmail: (email) => manager.sendResetPasswordEmail(email),
541
- resetPassword: (token, newPassword) => manager.resetPassword(token, newPassword),
2264
+ resetPassword: (token2, newPassword) => manager.resetPassword(token2, newPassword),
542
2265
  verifyEmail: (otp, email) => manager.verifyEmail(otp, email),
543
2266
  exchangeResetPasswordToken: (email, code) => manager.exchangeResetPasswordToken(email, code),
544
2267
  loginWithOAuth: (provider, redirectTo) => manager.loginWithOAuth(provider, redirectTo),
@@ -549,13 +2272,13 @@ function InsforgeProviderCore({
549
2272
  }),
550
2273
  [state, manager]
551
2274
  );
552
- return /* @__PURE__ */ jsxRuntime.jsx(react$2.InsforgeContext.Provider, { value: contextValue, children });
2275
+ return /* @__PURE__ */ jsxRuntime.jsx(react.InsforgeContext.Provider, { value: contextValue, children });
553
2276
  }
554
2277
  function InsforgeProvider(props) {
555
2278
  return /* @__PURE__ */ jsxRuntime.jsx(StyleProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(NavigationProvider, { adapter: BrowserNavigationAdapter, children: /* @__PURE__ */ jsxRuntime.jsx(InsforgeProviderCore, { ...props }) }) });
556
2279
  }
557
2280
  function useInsforge() {
558
- const context = react.useContext(react$2.InsforgeContext);
2281
+ const context = React2.useContext(react.InsforgeContext);
559
2282
  if (!context) {
560
2283
  return {
561
2284
  user: void 0,
@@ -584,9 +2307,9 @@ function useInsforge() {
584
2307
  }
585
2308
  function usePublicAuthConfig() {
586
2309
  const { getPublicAuthConfig } = useInsforge();
587
- const [authConfig, setAuthConfig] = react.useState(null);
588
- const [isLoaded, setIsLoaded] = react.useState(false);
589
- react.useEffect(() => {
2310
+ const [authConfig, setAuthConfig] = React2.useState(null);
2311
+ const [isLoaded, setIsLoaded] = React2.useState(false);
2312
+ React2.useEffect(() => {
590
2313
  async function fetchConfig() {
591
2314
  const result = await getPublicAuthConfig();
592
2315
  if (result) {
@@ -602,6 +2325,294 @@ function usePublicAuthConfig() {
602
2325
  return { authConfig, isLoaded };
603
2326
  }
604
2327
 
2328
+ // ../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js
2329
+ var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
2330
+ var isPropValid = /* @__PURE__ */ memoize(
2331
+ function(prop) {
2332
+ return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
2333
+ }
2334
+ /* Z+1 */
2335
+ );
2336
+
2337
+ // ../node_modules/@emotion/styled/base/dist/emotion-styled-base.esm.js
2338
+ var isBrowser5 = typeof document !== "undefined";
2339
+ var testOmitPropsOnStringTag = isPropValid;
2340
+ var testOmitPropsOnComponent = function testOmitPropsOnComponent2(key) {
2341
+ return key !== "theme";
2342
+ };
2343
+ var getDefaultShouldForwardProp = function getDefaultShouldForwardProp2(tag) {
2344
+ return typeof tag === "string" && // 96 is one less than the char code
2345
+ // for "a" so this is checking that
2346
+ // it's a lowercase character
2347
+ tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent;
2348
+ };
2349
+ var composeShouldForwardProps = function composeShouldForwardProps2(tag, options, isReal) {
2350
+ var shouldForwardProp;
2351
+ if (options) {
2352
+ var optionsShouldForwardProp = options.shouldForwardProp;
2353
+ shouldForwardProp = tag.__emotion_forwardProp && optionsShouldForwardProp ? function(propName) {
2354
+ return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName);
2355
+ } : optionsShouldForwardProp;
2356
+ }
2357
+ if (typeof shouldForwardProp !== "function" && isReal) {
2358
+ shouldForwardProp = tag.__emotion_forwardProp;
2359
+ }
2360
+ return shouldForwardProp;
2361
+ };
2362
+ var Insertion3 = function Insertion4(_ref) {
2363
+ var cache = _ref.cache, serialized = _ref.serialized, isStringTag = _ref.isStringTag;
2364
+ registerStyles(cache, serialized, isStringTag);
2365
+ var rules = useInsertionEffectAlwaysWithSyncFallback(function() {
2366
+ return insertStyles(cache, serialized, isStringTag);
2367
+ });
2368
+ if (!isBrowser5 && rules !== void 0) {
2369
+ var _ref2;
2370
+ var serializedNames = serialized.name;
2371
+ var next2 = serialized.next;
2372
+ while (next2 !== void 0) {
2373
+ serializedNames += " " + next2.name;
2374
+ next2 = next2.next;
2375
+ }
2376
+ return /* @__PURE__ */ React2__namespace.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
2377
+ __html: rules
2378
+ }, _ref2.nonce = cache.sheet.nonce, _ref2));
2379
+ }
2380
+ return null;
2381
+ };
2382
+ var createStyled = function createStyled2(tag, options) {
2383
+ var isReal = tag.__emotion_real === tag;
2384
+ var baseTag = isReal && tag.__emotion_base || tag;
2385
+ var identifierName;
2386
+ var targetClassName;
2387
+ if (options !== void 0) {
2388
+ identifierName = options.label;
2389
+ targetClassName = options.target;
2390
+ }
2391
+ var shouldForwardProp = composeShouldForwardProps(tag, options, isReal);
2392
+ var defaultShouldForwardProp = shouldForwardProp || getDefaultShouldForwardProp(baseTag);
2393
+ var shouldUseAs = !defaultShouldForwardProp("as");
2394
+ return function() {
2395
+ var args = arguments;
2396
+ var styles = isReal && tag.__emotion_styles !== void 0 ? tag.__emotion_styles.slice(0) : [];
2397
+ if (identifierName !== void 0) {
2398
+ styles.push("label:" + identifierName + ";");
2399
+ }
2400
+ if (args[0] == null || args[0].raw === void 0) {
2401
+ styles.push.apply(styles, args);
2402
+ } else {
2403
+ var templateStringsArr = args[0];
2404
+ styles.push(templateStringsArr[0]);
2405
+ var len = args.length;
2406
+ var i = 1;
2407
+ for (; i < len; i++) {
2408
+ styles.push(args[i], templateStringsArr[i]);
2409
+ }
2410
+ }
2411
+ var Styled = withEmotionCache(function(props, cache, ref) {
2412
+ var FinalTag = shouldUseAs && props.as || baseTag;
2413
+ var className = "";
2414
+ var classInterpolations = [];
2415
+ var mergedProps = props;
2416
+ if (props.theme == null) {
2417
+ mergedProps = {};
2418
+ for (var key in props) {
2419
+ mergedProps[key] = props[key];
2420
+ }
2421
+ mergedProps.theme = React2__namespace.useContext(ThemeContext);
2422
+ }
2423
+ if (typeof props.className === "string") {
2424
+ className = getRegisteredStyles(cache.registered, classInterpolations, props.className);
2425
+ } else if (props.className != null) {
2426
+ className = props.className + " ";
2427
+ }
2428
+ var serialized = serializeStyles(styles.concat(classInterpolations), cache.registered, mergedProps);
2429
+ className += cache.key + "-" + serialized.name;
2430
+ if (targetClassName !== void 0) {
2431
+ className += " " + targetClassName;
2432
+ }
2433
+ var finalShouldForwardProp = shouldUseAs && shouldForwardProp === void 0 ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp;
2434
+ var newProps = {};
2435
+ for (var _key in props) {
2436
+ if (shouldUseAs && _key === "as") continue;
2437
+ if (finalShouldForwardProp(_key)) {
2438
+ newProps[_key] = props[_key];
2439
+ }
2440
+ }
2441
+ newProps.className = className;
2442
+ if (ref) {
2443
+ newProps.ref = ref;
2444
+ }
2445
+ return /* @__PURE__ */ React2__namespace.createElement(React2__namespace.Fragment, null, /* @__PURE__ */ React2__namespace.createElement(Insertion3, {
2446
+ cache,
2447
+ serialized,
2448
+ isStringTag: typeof FinalTag === "string"
2449
+ }), /* @__PURE__ */ React2__namespace.createElement(FinalTag, newProps));
2450
+ });
2451
+ Styled.displayName = identifierName !== void 0 ? identifierName : "Styled(" + (typeof baseTag === "string" ? baseTag : baseTag.displayName || baseTag.name || "Component") + ")";
2452
+ Styled.defaultProps = tag.defaultProps;
2453
+ Styled.__emotion_real = Styled;
2454
+ Styled.__emotion_base = baseTag;
2455
+ Styled.__emotion_styles = styles;
2456
+ Styled.__emotion_forwardProp = shouldForwardProp;
2457
+ Object.defineProperty(Styled, "toString", {
2458
+ value: function value() {
2459
+ return "." + targetClassName;
2460
+ }
2461
+ });
2462
+ Styled.withComponent = function(nextTag, nextOptions) {
2463
+ var newStyled = createStyled2(nextTag, _extends({}, options, nextOptions, {
2464
+ shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
2465
+ }));
2466
+ return newStyled.apply(void 0, styles);
2467
+ };
2468
+ return Styled;
2469
+ };
2470
+ };
2471
+
2472
+ // ../node_modules/@emotion/styled/dist/emotion-styled.esm.js
2473
+ __toESM(require_extends());
2474
+ var tags = [
2475
+ "a",
2476
+ "abbr",
2477
+ "address",
2478
+ "area",
2479
+ "article",
2480
+ "aside",
2481
+ "audio",
2482
+ "b",
2483
+ "base",
2484
+ "bdi",
2485
+ "bdo",
2486
+ "big",
2487
+ "blockquote",
2488
+ "body",
2489
+ "br",
2490
+ "button",
2491
+ "canvas",
2492
+ "caption",
2493
+ "cite",
2494
+ "code",
2495
+ "col",
2496
+ "colgroup",
2497
+ "data",
2498
+ "datalist",
2499
+ "dd",
2500
+ "del",
2501
+ "details",
2502
+ "dfn",
2503
+ "dialog",
2504
+ "div",
2505
+ "dl",
2506
+ "dt",
2507
+ "em",
2508
+ "embed",
2509
+ "fieldset",
2510
+ "figcaption",
2511
+ "figure",
2512
+ "footer",
2513
+ "form",
2514
+ "h1",
2515
+ "h2",
2516
+ "h3",
2517
+ "h4",
2518
+ "h5",
2519
+ "h6",
2520
+ "head",
2521
+ "header",
2522
+ "hgroup",
2523
+ "hr",
2524
+ "html",
2525
+ "i",
2526
+ "iframe",
2527
+ "img",
2528
+ "input",
2529
+ "ins",
2530
+ "kbd",
2531
+ "keygen",
2532
+ "label",
2533
+ "legend",
2534
+ "li",
2535
+ "link",
2536
+ "main",
2537
+ "map",
2538
+ "mark",
2539
+ "marquee",
2540
+ "menu",
2541
+ "menuitem",
2542
+ "meta",
2543
+ "meter",
2544
+ "nav",
2545
+ "noscript",
2546
+ "object",
2547
+ "ol",
2548
+ "optgroup",
2549
+ "option",
2550
+ "output",
2551
+ "p",
2552
+ "param",
2553
+ "picture",
2554
+ "pre",
2555
+ "progress",
2556
+ "q",
2557
+ "rp",
2558
+ "rt",
2559
+ "ruby",
2560
+ "s",
2561
+ "samp",
2562
+ "script",
2563
+ "section",
2564
+ "select",
2565
+ "small",
2566
+ "source",
2567
+ "span",
2568
+ "strong",
2569
+ "style",
2570
+ "sub",
2571
+ "summary",
2572
+ "sup",
2573
+ "table",
2574
+ "tbody",
2575
+ "td",
2576
+ "textarea",
2577
+ "tfoot",
2578
+ "th",
2579
+ "thead",
2580
+ "time",
2581
+ "title",
2582
+ "tr",
2583
+ "track",
2584
+ "u",
2585
+ "ul",
2586
+ "var",
2587
+ "video",
2588
+ "wbr",
2589
+ // SVG
2590
+ "circle",
2591
+ "clipPath",
2592
+ "defs",
2593
+ "ellipse",
2594
+ "foreignObject",
2595
+ "g",
2596
+ "image",
2597
+ "line",
2598
+ "linearGradient",
2599
+ "mask",
2600
+ "path",
2601
+ "pattern",
2602
+ "polygon",
2603
+ "polyline",
2604
+ "radialGradient",
2605
+ "rect",
2606
+ "stop",
2607
+ "svg",
2608
+ "text",
2609
+ "tspan"
2610
+ ];
2611
+ var styled = createStyled.bind(null);
2612
+ tags.forEach(function(tagName) {
2613
+ styled[tagName] = styled(tagName);
2614
+ });
2615
+
605
2616
  // src/styles/theme.ts
606
2617
  var theme = {
607
2618
  colors: {
@@ -725,7 +2736,7 @@ var theme = {
725
2736
  // 32px
726
2737
  }
727
2738
  };
728
- var keyframes = {
2739
+ var keyframes2 = {
729
2740
  spin: `
730
2741
  from {
731
2742
  transform: rotate(0deg);
@@ -737,15 +2748,15 @@ var keyframes = {
737
2748
  };
738
2749
 
739
2750
  // src/components/atoms/styled.ts
740
- var spinAnimation = react$1.keyframes`${keyframes.spin}`;
741
- var AuthContainerWrapper = styled__default.default.div`
2751
+ var spinAnimation = keyframes`${keyframes2.spin}`;
2752
+ var AuthContainerWrapper = styled.div`
742
2753
  width: 100%;
743
2754
  max-width: 400px;
744
2755
  border-radius: ${theme.radius.xl};
745
2756
  overflow: hidden;
746
2757
  box-shadow: ${theme.shadow.lg};
747
2758
  `;
748
- var AuthCard = styled__default.default.div`
2759
+ var AuthCard = styled.div`
749
2760
  background-color: ${theme.colors.bgWhite};
750
2761
  padding: ${theme.spacing[6]};
751
2762
  display: flex;
@@ -754,14 +2765,14 @@ var AuthCard = styled__default.default.div`
754
2765
  align-items: stretch;
755
2766
  gap: ${theme.spacing[6]};
756
2767
  `;
757
- var AuthHeaderWrapper = styled__default.default.div`
2768
+ var AuthHeaderWrapper = styled.div`
758
2769
  display: flex;
759
2770
  flex-direction: column;
760
2771
  justify-content: flex-start;
761
2772
  align-items: flex-start;
762
2773
  gap: ${theme.spacing[2]};
763
2774
  `;
764
- var AuthHeaderTitle = styled__default.default.h1`
2775
+ var AuthHeaderTitle = styled.h1`
765
2776
  font-size: ${theme.fontSize["2xl"]};
766
2777
  font-weight: ${theme.fontWeight.semibold};
767
2778
  color: ${theme.colors.text};
@@ -769,7 +2780,7 @@ var AuthHeaderTitle = styled__default.default.h1`
769
2780
  margin: 0;
770
2781
  font-family: ${theme.fontFamily.base};
771
2782
  `;
772
- var AuthHeaderSubtitle = styled__default.default.p`
2783
+ var AuthHeaderSubtitle = styled.p`
773
2784
  font-size: ${theme.fontSize.sm};
774
2785
  font-weight: ${theme.fontWeight.normal};
775
2786
  color: ${theme.colors.textSecondary};
@@ -777,21 +2788,21 @@ var AuthHeaderSubtitle = styled__default.default.p`
777
2788
  margin: 0;
778
2789
  font-family: ${theme.fontFamily.base};
779
2790
  `;
780
- var FormFieldWrapper = styled__default.default.div`
2791
+ var FormFieldWrapper = styled.div`
781
2792
  display: flex;
782
2793
  flex-direction: column;
783
2794
  justify-content: center;
784
2795
  align-items: stretch;
785
2796
  gap: ${theme.spacing[1]};
786
2797
  `;
787
- var FormFieldLabel = styled__default.default.label`
2798
+ var FormFieldLabel = styled.label`
788
2799
  font-size: ${theme.fontSize.sm};
789
2800
  font-weight: ${theme.fontWeight.normal};
790
2801
  color: ${theme.colors.text};
791
2802
  line-height: ${theme.lineHeight.relaxed};
792
2803
  font-family: ${theme.fontFamily.base};
793
2804
  `;
794
- var FormFieldInput = styled__default.default.input`
2805
+ var FormFieldInput = styled.input`
795
2806
  width: 100%;
796
2807
  display: flex;
797
2808
  align-items: center;
@@ -819,26 +2830,26 @@ var FormFieldInput = styled__default.default.input`
819
2830
  border-color: ${theme.colors.borderFocus};
820
2831
  }
821
2832
  `;
822
- var PasswordFieldWrapper = styled__default.default.div`
2833
+ var PasswordFieldWrapper = styled.div`
823
2834
  display: flex;
824
2835
  flex-direction: column;
825
2836
  justify-content: center;
826
2837
  align-items: stretch;
827
2838
  gap: ${theme.spacing[1]};
828
2839
  `;
829
- var PasswordFieldLabelRow = styled__default.default.div`
2840
+ var PasswordFieldLabelRow = styled.div`
830
2841
  display: flex;
831
2842
  justify-content: space-between;
832
2843
  align-items: center;
833
2844
  `;
834
- var PasswordFieldLabel = styled__default.default.label`
2845
+ var PasswordFieldLabel = styled.label`
835
2846
  font-size: ${theme.fontSize.sm};
836
2847
  font-weight: ${theme.fontWeight.normal};
837
2848
  color: ${theme.colors.text};
838
2849
  line-height: ${theme.lineHeight.relaxed};
839
2850
  font-family: ${theme.fontFamily.base};
840
2851
  `;
841
- var PasswordFieldForgotLink = styled__default.default.a`
2852
+ var PasswordFieldForgotLink = styled.a`
842
2853
  font-size: ${theme.fontSize.sm};
843
2854
  font-weight: ${theme.fontWeight.normal};
844
2855
  color: ${theme.colors.textSecondary};
@@ -847,11 +2858,11 @@ var PasswordFieldForgotLink = styled__default.default.a`
847
2858
  font-family: ${theme.fontFamily.base};
848
2859
  cursor: pointer;
849
2860
  `;
850
- var PasswordFieldInputWrapper = styled__default.default.div`
2861
+ var PasswordFieldInputWrapper = styled.div`
851
2862
  position: relative;
852
2863
  width: 100%;
853
2864
  `;
854
- var PasswordFieldInput = styled__default.default.input`
2865
+ var PasswordFieldInput = styled.input`
855
2866
  width: 100%;
856
2867
  display: flex;
857
2868
  align-items: center;
@@ -877,7 +2888,7 @@ var PasswordFieldInput = styled__default.default.input`
877
2888
  border-color: ${theme.colors.borderFocus};
878
2889
  }
879
2890
  `;
880
- var PasswordFieldToggleButton = styled__default.default.button`
2891
+ var PasswordFieldToggleButton = styled.button`
881
2892
  position: absolute;
882
2893
  right: ${theme.spacing[1]};
883
2894
  top: 50%;
@@ -892,7 +2903,7 @@ var PasswordFieldToggleButton = styled__default.default.button`
892
2903
  color: ${theme.colors.textSecondary};
893
2904
  transition: color ${theme.transition.fast};
894
2905
  `;
895
- var SubmitButton = styled__default.default.button`
2906
+ var SubmitButton = styled.button`
896
2907
  border-radius: ${theme.radius.sm};
897
2908
  background-color: ${theme.colors.primary};
898
2909
  height: ${theme.sizes.button.height};
@@ -922,7 +2933,7 @@ var SubmitButton = styled__default.default.button`
922
2933
  cursor: not-allowed;
923
2934
  }
924
2935
  `;
925
- var SubmitButtonIcon = styled__default.default.div`
2936
+ var SubmitButtonIcon = styled.div`
926
2937
  width: ${theme.sizes.icon};
927
2938
  height: ${theme.sizes.icon};
928
2939
  display: flex;
@@ -934,7 +2945,7 @@ var SubmitButtonIcon = styled__default.default.div`
934
2945
  height: 100%;
935
2946
  }
936
2947
  `;
937
- var SubmitButtonSpinner = styled__default.default.div`
2948
+ var SubmitButtonSpinner = styled.div`
938
2949
  width: ${theme.sizes.icon};
939
2950
  height: ${theme.sizes.icon};
940
2951
  display: flex;
@@ -947,7 +2958,7 @@ var SubmitButtonSpinner = styled__default.default.div`
947
2958
  height: 100%;
948
2959
  }
949
2960
  `;
950
- var OAuthButton = styled__default.default.button`
2961
+ var OAuthButton = styled.button`
951
2962
  display: flex;
952
2963
  width: 100%;
953
2964
  height: ${theme.sizes.button.heightOAuth};
@@ -979,7 +2990,7 @@ var OAuthButton = styled__default.default.button`
979
2990
  cursor: not-allowed;
980
2991
  }
981
2992
  `;
982
- var OAuthButtonIcon = styled__default.default.div`
2993
+ var OAuthButtonIcon = styled.div`
983
2994
  display: flex;
984
2995
  align-items: center;
985
2996
  justify-content: center;
@@ -992,13 +3003,13 @@ var OAuthButtonIcon = styled__default.default.div`
992
3003
  height: 100%;
993
3004
  }
994
3005
  `;
995
- var OAuthProvidersContainer = styled__default.default.div`
3006
+ var OAuthProvidersContainer = styled.div`
996
3007
  display: flex;
997
3008
  flex-direction: column;
998
3009
  gap: ${theme.spacing[3]};
999
3010
  width: 100%;
1000
3011
  `;
1001
- var AuthLinkWrapper = styled__default.default.div`
3012
+ var AuthLinkWrapper = styled.div`
1002
3013
  display: flex;
1003
3014
  justify-content: center;
1004
3015
  align-items: center;
@@ -1007,45 +3018,45 @@ var AuthLinkWrapper = styled__default.default.div`
1007
3018
  color: ${theme.colors.textSecondary};
1008
3019
  font-family: ${theme.fontFamily.base};
1009
3020
  `;
1010
- var AuthLinkText = styled__default.default.span`
3021
+ var AuthLinkText = styled.span`
1011
3022
  font-weight: ${theme.fontWeight.normal};
1012
3023
  `;
1013
- var AuthLinkLink = styled__default.default.a`
3024
+ var AuthLinkLink = styled.a`
1014
3025
  font-weight: ${theme.fontWeight.semibold};
1015
3026
  color: ${theme.colors.text};
1016
3027
  text-decoration: none;
1017
3028
  transition: opacity ${theme.transition.fast};
1018
3029
  cursor: pointer;
1019
3030
  `;
1020
- var AuthDividerWrapper = styled__default.default.div`
3031
+ var AuthDividerWrapper = styled.div`
1021
3032
  display: flex;
1022
3033
  align-items: center;
1023
3034
  text-align: center;
1024
3035
  width: 100%;
1025
3036
  gap: ${theme.spacing[3]};
1026
3037
  `;
1027
- var AuthDividerLine = styled__default.default.div`
3038
+ var AuthDividerLine = styled.div`
1028
3039
  flex: 1;
1029
3040
  border-top: 1px solid ${theme.colors.border};
1030
3041
  `;
1031
- var AuthDividerText = styled__default.default.span`
3042
+ var AuthDividerText = styled.span`
1032
3043
  font-size: ${theme.fontSize.sm};
1033
3044
  color: ${theme.colors.textSecondary};
1034
3045
  font-weight: ${theme.fontWeight.normal};
1035
3046
  font-family: ${theme.fontFamily.manrope};
1036
3047
  `;
1037
- var ErrorBannerWrapper = styled__default.default.div`
3048
+ var ErrorBannerWrapper = styled.div`
1038
3049
  padding: ${theme.spacing[3]};
1039
3050
  background-color: ${theme.colors.errorBg};
1040
3051
  border-radius: ${theme.radius.md};
1041
3052
  border: 1px solid ${theme.colors.error};
1042
3053
  `;
1043
- var ErrorBannerContent = styled__default.default.div`
3054
+ var ErrorBannerContent = styled.div`
1044
3055
  display: flex;
1045
3056
  align-items: center;
1046
3057
  gap: ${theme.spacing[2]};
1047
3058
  `;
1048
- var ErrorBannerIcon = styled__default.default.div`
3059
+ var ErrorBannerIcon = styled.div`
1049
3060
  width: ${theme.sizes.iconLg};
1050
3061
  height: ${theme.sizes.iconLg};
1051
3062
  flex-shrink: 0;
@@ -1059,14 +3070,14 @@ var ErrorBannerIcon = styled__default.default.div`
1059
3070
  height: 100%;
1060
3071
  }
1061
3072
  `;
1062
- var ErrorBannerText = styled__default.default.p`
3073
+ var ErrorBannerText = styled.p`
1063
3074
  font-size: ${theme.fontSize.sm};
1064
3075
  color: ${theme.colors.error};
1065
3076
  font-weight: ${theme.fontWeight.normal};
1066
3077
  font-family: ${theme.fontFamily.base};
1067
3078
  margin: 0;
1068
3079
  `;
1069
- var AuthBrandingWrapper = styled__default.default.div`
3080
+ var AuthBrandingWrapper = styled.div`
1070
3081
  background-color: ${theme.colors.bgLight};
1071
3082
  padding: ${theme.spacing[4]} ${theme.spacing[2]};
1072
3083
  display: flex;
@@ -1075,19 +3086,19 @@ var AuthBrandingWrapper = styled__default.default.div`
1075
3086
  align-items: center;
1076
3087
  gap: ${theme.spacing[1]};
1077
3088
  `;
1078
- var AuthBrandingText = styled__default.default.p`
3089
+ var AuthBrandingText = styled.p`
1079
3090
  font-size: ${theme.fontSize.xs};
1080
3091
  font-weight: ${theme.fontWeight.medium};
1081
3092
  color: ${theme.colors.text};
1082
3093
  font-family: ${theme.fontFamily.manrope};
1083
3094
  margin: 0;
1084
3095
  `;
1085
- var VerificationCodeInputContainer = styled__default.default.div`
3096
+ var VerificationCodeInputContainer = styled.div`
1086
3097
  display: flex;
1087
3098
  gap: ${theme.spacing[3]};
1088
3099
  justify-content: center;
1089
3100
  `;
1090
- var VerificationCodeInput = styled__default.default.input`
3101
+ var VerificationCodeInput = styled.input`
1091
3102
  width: ${theme.sizes.verifyCode};
1092
3103
  height: ${theme.sizes.verifyCode};
1093
3104
  text-align: center;
@@ -1103,21 +3114,21 @@ var VerificationCodeInput = styled__default.default.input`
1103
3114
  border-color: ${theme.colors.borderFocus};
1104
3115
  }
1105
3116
  `;
1106
- var PasswordStrengthWrapper = styled__default.default.div`
3117
+ var PasswordStrengthWrapper = styled.div`
1107
3118
  margin-top: ${theme.spacing[2]};
1108
3119
  `;
1109
- styled__default.default.div`
3120
+ styled.div`
1110
3121
  height: 100%;
1111
3122
  transition:
1112
3123
  width ${theme.transition.base},
1113
3124
  background-color ${theme.transition.base};
1114
3125
  `;
1115
- styled__default.default.span`
3126
+ styled.span`
1116
3127
  font-size: ${theme.fontSize.xs};
1117
3128
  color: ${theme.colors.textSecondary};
1118
3129
  font-family: ${theme.fontFamily.base};
1119
3130
  `;
1120
- var PasswordStrengthRequirements = styled__default.default.div`
3131
+ var PasswordStrengthRequirements = styled.div`
1121
3132
  display: flex;
1122
3133
  flex-direction: column;
1123
3134
  gap: ${theme.spacing[2]};
@@ -1125,7 +3136,7 @@ var PasswordStrengthRequirements = styled__default.default.div`
1125
3136
  color: ${theme.colors.textGray};
1126
3137
  font-family: ${theme.fontFamily.base};
1127
3138
  `;
1128
- var PasswordStrengthRequirement = styled__default.default.div`
3139
+ var PasswordStrengthRequirement = styled.div`
1129
3140
  display: flex;
1130
3141
  align-items: center;
1131
3142
  gap: ${theme.spacing[2]};
@@ -1322,9 +3333,9 @@ function AuthPasswordField({
1322
3333
  }) {
1323
3334
  const searchParams = useSearchParams();
1324
3335
  const { Link } = useNavigationAdapter();
1325
- const [showPassword, setShowPassword] = react.useState(false);
1326
- const [showStrength, setShowStrength] = react.useState(false);
1327
- const resolvedForgotPasswordHref = react.useMemo(
3336
+ const [showPassword, setShowPassword] = React2.useState(false);
3337
+ const [showStrength, setShowStrength] = React2.useState(false);
3338
+ const resolvedForgotPasswordHref = React2.useMemo(
1328
3339
  () => forgotPasswordLink ? resolveAuthUrl(forgotPasswordLink.href, searchParams) : void 0,
1329
3340
  [forgotPasswordLink, searchParams]
1330
3341
  );
@@ -1647,13 +3658,13 @@ function AuthOAuthProviders({
1647
3658
  );
1648
3659
  }
1649
3660
  function AuthVerificationCodeInput({
1650
- length = 6,
3661
+ length: length2 = 6,
1651
3662
  value,
1652
3663
  onChange,
1653
3664
  disabled = false,
1654
3665
  onComplete
1655
3666
  }) {
1656
- const inputRefs = react.useRef([]);
3667
+ const inputRefs = React2.useRef([]);
1657
3668
  const handleChange = (index, digit) => {
1658
3669
  if (digit.length > 1) {
1659
3670
  return;
@@ -1665,10 +3676,10 @@ function AuthVerificationCodeInput({
1665
3676
  newValue[index] = digit;
1666
3677
  const updatedValue = newValue.join("");
1667
3678
  onChange(updatedValue);
1668
- if (digit && index < length - 1) {
3679
+ if (digit && index < length2 - 1) {
1669
3680
  inputRefs.current[index + 1]?.focus();
1670
3681
  }
1671
- if (digit && index === length - 1 && updatedValue.length === length && onComplete) {
3682
+ if (digit && index === length2 - 1 && updatedValue.length === length2 && onComplete) {
1672
3683
  onComplete(updatedValue);
1673
3684
  }
1674
3685
  };
@@ -1681,22 +3692,22 @@ function AuthVerificationCodeInput({
1681
3692
  }
1682
3693
  } else if (e.key === "ArrowLeft" && index > 0) {
1683
3694
  inputRefs.current[index - 1]?.focus();
1684
- } else if (e.key === "ArrowRight" && index < length - 1) {
3695
+ } else if (e.key === "ArrowRight" && index < length2 - 1) {
1685
3696
  inputRefs.current[index + 1]?.focus();
1686
3697
  }
1687
3698
  };
1688
3699
  const handlePaste = (e) => {
1689
3700
  e.preventDefault();
1690
3701
  const pastedData = e.clipboardData.getData("text/plain").trim();
1691
- if (/^\d+$/.test(pastedData) && pastedData.length === length) {
3702
+ if (/^\d+$/.test(pastedData) && pastedData.length === length2) {
1692
3703
  onChange(pastedData);
1693
- inputRefs.current[length - 1]?.focus();
3704
+ inputRefs.current[length2 - 1]?.focus();
1694
3705
  if (onComplete) {
1695
3706
  onComplete(pastedData);
1696
3707
  }
1697
3708
  }
1698
3709
  };
1699
- return /* @__PURE__ */ jsxRuntime.jsx(VerificationCodeInputContainer, { children: Array.from({ length }).map((_, index) => /* @__PURE__ */ jsxRuntime.jsx(
3710
+ return /* @__PURE__ */ jsxRuntime.jsx(VerificationCodeInputContainer, { children: Array.from({ length: length2 }).map((_, index) => /* @__PURE__ */ jsxRuntime.jsx(
1700
3711
  VerificationCodeInput,
1701
3712
  {
1702
3713
  ref: (el) => {
@@ -1715,20 +3726,22 @@ function AuthVerificationCodeInput({
1715
3726
  index
1716
3727
  )) });
1717
3728
  }
1718
- styled__default.default.form`
3729
+
3730
+ // src/components/forms/styled.ts
3731
+ styled.form`
1719
3732
  display: flex;
1720
3733
  flex-direction: column;
1721
3734
  align-items: stretch;
1722
3735
  justify-content: center;
1723
3736
  gap: ${theme.spacing[6]};
1724
3737
  `;
1725
- var VerificationStepWrapper = styled__default.default.div`
3738
+ var VerificationStepWrapper = styled.div`
1726
3739
  display: flex;
1727
3740
  flex-direction: column;
1728
3741
  gap: ${theme.spacing[6]};
1729
3742
  align-items: stretch;
1730
3743
  `;
1731
- var VerificationStepDescriptionContainer = styled__default.default.div`
3744
+ var VerificationStepDescriptionContainer = styled.div`
1732
3745
  width: 100%;
1733
3746
  background-color: ${theme.colors.bgGray};
1734
3747
  border-radius: ${theme.radius.lg};
@@ -1737,7 +3750,7 @@ var VerificationStepDescriptionContainer = styled__default.default.div`
1737
3750
  flex-direction: column;
1738
3751
  gap: ${theme.spacing[3]};
1739
3752
  `;
1740
- var VerificationStepDescriptionTitle = styled__default.default.h3`
3753
+ var VerificationStepDescriptionTitle = styled.h3`
1741
3754
  color: ${theme.colors.black};
1742
3755
  font-family: ${theme.fontFamily.base};
1743
3756
  font-size: ${theme.fontSize.base};
@@ -1746,43 +3759,43 @@ var VerificationStepDescriptionTitle = styled__default.default.h3`
1746
3759
  line-height: 24px;
1747
3760
  margin: 0;
1748
3761
  `;
1749
- var VerificationStepDescription = styled__default.default.p`
3762
+ var VerificationStepDescription = styled.p`
1750
3763
  font-size: ${theme.fontSize.sm};
1751
3764
  color: ${theme.colors.textGray};
1752
3765
  text-align: left;
1753
3766
  font-family: ${theme.fontFamily.base};
1754
3767
  margin: 0;
1755
3768
  `;
1756
- var VerificationEmail = styled__default.default.span`
3769
+ var VerificationEmail = styled.span`
1757
3770
  font-weight: ${theme.fontWeight.medium};
1758
3771
  color: ${theme.colors.text};
1759
3772
  `;
1760
- var VerificationStepCodeContainer = styled__default.default.div`
3773
+ var VerificationStepCodeContainer = styled.div`
1761
3774
  width: 100%;
1762
3775
  display: flex;
1763
3776
  flex-direction: column;
1764
3777
  gap: ${theme.spacing[10]};
1765
3778
  `;
1766
- var VerificationStepCodeInputWrapper = styled__default.default.div`
3779
+ var VerificationStepCodeInputWrapper = styled.div`
1767
3780
  display: flex;
1768
3781
  flex-direction: column;
1769
3782
  gap: ${theme.spacing[6]};
1770
3783
  `;
1771
- styled__default.default.p`
3784
+ styled.p`
1772
3785
  font-size: ${theme.fontSize.sm};
1773
3786
  color: ${theme.colors.textSecondary};
1774
3787
  text-align: center;
1775
3788
  font-family: ${theme.fontFamily.base};
1776
3789
  margin: 0;
1777
3790
  `;
1778
- var VerificationStepResendContainer = styled__default.default.div`
3791
+ var VerificationStepResendContainer = styled.div`
1779
3792
  width: 100%;
1780
3793
  font-size: ${theme.fontSize.sm};
1781
3794
  text-align: center;
1782
3795
  color: ${theme.colors.textSecondary};
1783
3796
  font-family: ${theme.fontFamily.base};
1784
3797
  `;
1785
- var VerificationStepResendButton = styled__default.default.button`
3798
+ var VerificationStepResendButton = styled.button`
1786
3799
  color: ${theme.colors.text};
1787
3800
  font-weight: ${theme.fontWeight.medium};
1788
3801
  transition: all ${theme.transition.base};
@@ -1801,7 +3814,7 @@ var VerificationStepResendButton = styled__default.default.button`
1801
3814
  opacity: 0.5;
1802
3815
  }
1803
3816
  `;
1804
- var VerifyStatusContainer = styled__default.default.div`
3817
+ var VerifyStatusContainer = styled.div`
1805
3818
  width: 100%;
1806
3819
  display: flex;
1807
3820
  flex-direction: column;
@@ -1809,19 +3822,19 @@ var VerifyStatusContainer = styled__default.default.div`
1809
3822
  justify-content: center;
1810
3823
  gap: ${theme.spacing[6]};
1811
3824
  `;
1812
- var VerifyStatusSpinner = styled__default.default.div`
3825
+ var VerifyStatusSpinner = styled.div`
1813
3826
  border-radius: ${theme.radius.full};
1814
3827
  height: ${theme.sizes.verifyCode};
1815
3828
  width: ${theme.sizes.verifyCode};
1816
3829
  border-bottom: 2px solid ${theme.colors.primary};
1817
3830
  `;
1818
- var VerifyStatusSuccessContent = styled__default.default.div`
3831
+ var VerifyStatusSuccessContent = styled.div`
1819
3832
  display: flex;
1820
3833
  flex-direction: column;
1821
3834
  align-items: center;
1822
3835
  gap: ${theme.spacing[4]};
1823
3836
  `;
1824
- var VerifyStatusSuccessIcon = styled__default.default.div`
3837
+ var VerifyStatusSuccessIcon = styled.div`
1825
3838
  width: ${theme.sizes.verifyIcon};
1826
3839
  height: ${theme.sizes.verifyIcon};
1827
3840
  border-radius: ${theme.radius.full};
@@ -1830,7 +3843,7 @@ var VerifyStatusSuccessIcon = styled__default.default.div`
1830
3843
  align-items: center;
1831
3844
  justify-content: center;
1832
3845
  `;
1833
- var VerifyStatusSuccessIconSvg = styled__default.default.div`
3846
+ var VerifyStatusSuccessIconSvg = styled.div`
1834
3847
  width: ${theme.sizes.verifyIconInner};
1835
3848
  height: ${theme.sizes.verifyIconInner};
1836
3849
  color: ${theme.colors.successDark};
@@ -1843,17 +3856,17 @@ var VerifyStatusSuccessIconSvg = styled__default.default.div`
1843
3856
  height: 100%;
1844
3857
  }
1845
3858
  `;
1846
- var VerifyStatusTextCenter = styled__default.default.p`
3859
+ var VerifyStatusTextCenter = styled.p`
1847
3860
  text-align: center;
1848
3861
  font-family: ${theme.fontFamily.base};
1849
3862
  font-size: ${theme.fontSize.sm};
1850
3863
  color: ${theme.colors.text};
1851
3864
  margin: 0;
1852
3865
  `;
1853
- styled__default.default.div`
3866
+ styled.div`
1854
3867
  display: none;
1855
3868
  `;
1856
- styled__default.default.span`
3869
+ styled.span`
1857
3870
  position: absolute;
1858
3871
  width: 1px;
1859
3872
  height: 1px;
@@ -1871,22 +3884,22 @@ function AuthEmailVerificationStep({
1871
3884
  emailSent = false
1872
3885
  }) {
1873
3886
  const { sendVerificationEmail } = useInsforge();
1874
- const [resendDisabled, setResendDisabled] = react.useState(emailSent ? true : false);
1875
- const [resendCountdown, setResendCountdown] = react.useState(emailSent ? 60 : 0);
1876
- const [isSending, setIsSending] = react.useState(false);
1877
- const [verificationCode, setVerificationCode] = react.useState("");
1878
- const [isVerifying, setIsVerifying] = react.useState(false);
3887
+ const [resendDisabled, setResendDisabled] = React2.useState(emailSent ? true : false);
3888
+ const [resendCountdown, setResendCountdown] = React2.useState(emailSent ? 60 : 0);
3889
+ const [isSending, setIsSending] = React2.useState(false);
3890
+ const [verificationCode, setVerificationCode] = React2.useState("");
3891
+ const [isVerifying, setIsVerifying] = React2.useState(false);
1879
3892
  const isLinkMethod = method === "link";
1880
3893
  const displayDescription = isLinkMethod ? "We've sent an email to {email}. Please check your email to confirm your account before signing in. The confirmation link expires in 10 minutes." : "We've sent a verification code to your inbox at {email}. Enter it below to proceed.";
1881
- react.useEffect(() => {
3894
+ React2.useEffect(() => {
1882
3895
  if (resendDisabled && resendCountdown > 0) {
1883
3896
  const timer = setInterval(() => {
1884
- setResendCountdown((prev) => {
1885
- if (prev <= 1) {
3897
+ setResendCountdown((prev2) => {
3898
+ if (prev2 <= 1) {
1886
3899
  setResendDisabled(false);
1887
3900
  return 0;
1888
3901
  }
1889
- return prev - 1;
3902
+ return prev2 - 1;
1890
3903
  });
1891
3904
  }, 1e3);
1892
3905
  return () => clearInterval(timer);
@@ -1975,28 +3988,28 @@ function AuthResetPasswordVerificationStep({
1975
3988
  onVerifyCode,
1976
3989
  onResendEmail
1977
3990
  }) {
1978
- const [resendDisabled, setResendDisabled] = react.useState(true);
1979
- const [resendCountdown, setResendCountdown] = react.useState(60);
1980
- const [isSending, setIsSending] = react.useState(false);
1981
- const [verificationCode, setVerificationCode] = react.useState("");
1982
- const [isVerifying, setIsVerifying] = react.useState(false);
3991
+ const [resendDisabled, setResendDisabled] = React2.useState(true);
3992
+ const [resendCountdown, setResendCountdown] = React2.useState(60);
3993
+ const [isSending, setIsSending] = React2.useState(false);
3994
+ const [verificationCode, setVerificationCode] = React2.useState("");
3995
+ const [isVerifying, setIsVerifying] = React2.useState(false);
1983
3996
  const isLinkMethod = method === "link";
1984
3997
  const displayDescription = isLinkMethod ? "We have sent an email to {email}. Please check your email to reset your password. The link expires in 10 minutes." : "We've sent a reset password code to your inbox at {email}. Enter it below to proceed.";
1985
- react.useEffect(() => {
3998
+ React2.useEffect(() => {
1986
3999
  if (resendCountdown > 0) {
1987
4000
  const timer = setInterval(() => {
1988
- setResendCountdown((prev) => {
1989
- if (prev <= 1) {
4001
+ setResendCountdown((prev2) => {
4002
+ if (prev2 <= 1) {
1990
4003
  setResendDisabled(false);
1991
4004
  return 0;
1992
4005
  }
1993
- return prev - 1;
4006
+ return prev2 - 1;
1994
4007
  });
1995
4008
  }, 1e3);
1996
4009
  return () => clearInterval(timer);
1997
4010
  }
1998
4011
  }, [resendCountdown]);
1999
- const handleResend = react.useCallback(async () => {
4012
+ const handleResend = React2.useCallback(async () => {
2000
4013
  setResendDisabled(true);
2001
4014
  setResendCountdown(60);
2002
4015
  setIsSending(true);
@@ -2167,12 +4180,12 @@ function SignInForm({
2167
4180
  function SignIn({ onError, ...uiProps }) {
2168
4181
  const { signIn, verifyEmail, loginWithOAuth } = useInsforge();
2169
4182
  const { authConfig } = usePublicAuthConfig();
2170
- const [email, setEmail] = react.useState("");
2171
- const [password, setPassword] = react.useState("");
2172
- const [error, setError] = react.useState("");
2173
- const [loading, setLoading] = react.useState(false);
2174
- const [step, setStep] = react.useState("form");
2175
- const [oauthLoading] = react.useState(null);
4183
+ const [email, setEmail] = React2.useState("");
4184
+ const [password, setPassword] = React2.useState("");
4185
+ const [error, setError] = React2.useState("");
4186
+ const [loading, setLoading] = React2.useState(false);
4187
+ const [step, setStep] = React2.useState("form");
4188
+ const [oauthLoading] = React2.useState(null);
2176
4189
  const searchParams = useSearchParams();
2177
4190
  const redirectUrl = searchParams.get("redirect");
2178
4191
  async function handleSubmit(e) {
@@ -2427,12 +4440,12 @@ function checkPasswordStrength(password) {
2427
4440
  function SignUp({ onError, ...uiProps }) {
2428
4441
  const { signUp, verifyEmail, loginWithOAuth } = useInsforge();
2429
4442
  const { authConfig } = usePublicAuthConfig();
2430
- const [email, setEmail] = react.useState("");
2431
- const [password, setPassword] = react.useState("");
2432
- const [error, setError] = react.useState("");
2433
- const [loading, setLoading] = react.useState(false);
2434
- const [step, setStep] = react.useState("form");
2435
- const [oauthLoading] = react.useState(null);
4443
+ const [email, setEmail] = React2.useState("");
4444
+ const [password, setPassword] = React2.useState("");
4445
+ const [error, setError] = React2.useState("");
4446
+ const [loading, setLoading] = React2.useState(false);
4447
+ const [step, setStep] = React2.useState("form");
4448
+ const [oauthLoading] = React2.useState(null);
2436
4449
  const searchParams = useSearchParams();
2437
4450
  const redirectUrl = searchParams.get("redirect");
2438
4451
  async function handleSubmit(e) {
@@ -2694,15 +4707,15 @@ function ForgotPassword({ onError, ...uiProps }) {
2694
4707
  const { sendResetPasswordEmail, exchangeResetPasswordToken, resetPassword } = useInsforge();
2695
4708
  const { authConfig } = usePublicAuthConfig();
2696
4709
  const searchParams = useSearchParams();
2697
- const [step, setStep] = react.useState("email");
2698
- const [email, setEmail] = react.useState("");
2699
- const [resetToken, setResetToken] = react.useState("");
2700
- const [newPassword, setNewPassword] = react.useState("");
2701
- const [confirmPassword, setConfirmPassword] = react.useState("");
2702
- const [error, setError] = react.useState("");
2703
- const [loading, setLoading] = react.useState(false);
2704
- const [success, setSuccess] = react.useState(false);
2705
- const [showVerificationStep, setShowVerificationStep] = react.useState(false);
4710
+ const [step, setStep] = React2.useState("email");
4711
+ const [email, setEmail] = React2.useState("");
4712
+ const [resetToken, setResetToken] = React2.useState("");
4713
+ const [newPassword, setNewPassword] = React2.useState("");
4714
+ const [confirmPassword, setConfirmPassword] = React2.useState("");
4715
+ const [error, setError] = React2.useState("");
4716
+ const [loading, setLoading] = React2.useState(false);
4717
+ const [success, setSuccess] = React2.useState(false);
4718
+ const [showVerificationStep, setShowVerificationStep] = React2.useState(false);
2706
4719
  async function handleEmailSubmit(e) {
2707
4720
  e.preventDefault();
2708
4721
  setLoading(true);
@@ -2850,14 +4863,14 @@ function ForgotPassword({ onError, ...uiProps }) {
2850
4863
  }
2851
4864
  function ResetPassword({ onError, ...uiProps }) {
2852
4865
  const searchParams = useSearchParams();
2853
- const token = searchParams.get("token");
4866
+ const token2 = searchParams.get("token");
2854
4867
  const { resetPassword } = useInsforge();
2855
4868
  const { authConfig } = usePublicAuthConfig();
2856
- const [newPassword, setNewPassword] = react.useState("");
2857
- const [confirmPassword, setConfirmPassword] = react.useState("");
2858
- const [error, setError] = react.useState("");
2859
- const [loading, setLoading] = react.useState(false);
2860
- const [success, setSuccess] = react.useState(false);
4869
+ const [newPassword, setNewPassword] = React2.useState("");
4870
+ const [confirmPassword, setConfirmPassword] = React2.useState("");
4871
+ const [error, setError] = React2.useState("");
4872
+ const [loading, setLoading] = React2.useState(false);
4873
+ const [success, setSuccess] = React2.useState(false);
2861
4874
  async function handleSubmit(e) {
2862
4875
  e.preventDefault();
2863
4876
  setLoading(true);
@@ -2872,7 +4885,7 @@ function ResetPassword({ onError, ...uiProps }) {
2872
4885
  setLoading(false);
2873
4886
  return;
2874
4887
  }
2875
- if (!token) {
4888
+ if (!token2) {
2876
4889
  setError("Reset token is missing");
2877
4890
  setLoading(false);
2878
4891
  return;
@@ -2892,7 +4905,7 @@ function ResetPassword({ onError, ...uiProps }) {
2892
4905
  return;
2893
4906
  }
2894
4907
  try {
2895
- const result = await resetPassword(token, newPassword);
4908
+ const result = await resetPassword(token2, newPassword);
2896
4909
  if (result?.message) {
2897
4910
  setSuccess(true);
2898
4911
  } else {
@@ -2915,7 +4928,7 @@ function ResetPassword({ onError, ...uiProps }) {
2915
4928
  if (!authConfig) {
2916
4929
  return null;
2917
4930
  }
2918
- if (!token) {
4931
+ if (!token2) {
2919
4932
  return /* @__PURE__ */ jsxRuntime.jsxs(AuthContainer, { children: [
2920
4933
  /* @__PURE__ */ jsxRuntime.jsx(AuthHeader, { title: "Invalid Reset Link", subtitle: "" }),
2921
4934
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -3063,13 +5076,13 @@ function VerifyEmailStatus({
3063
5076
  /* @__PURE__ */ jsxRuntime.jsx(VerifyStatusTextCenter, { style: { color: theme.colors.textSecondary }, children: successMessage })
3064
5077
  ] }) }) });
3065
5078
  }
3066
- function VerifyEmail({ token, onSuccess, onError, ...uiProps }) {
5079
+ function VerifyEmail({ token: token2, onSuccess, onError, ...uiProps }) {
3067
5080
  const { verifyEmail } = useInsforge();
3068
- const [status, setStatus] = react.useState("verifying");
3069
- const [error, setError] = react.useState("");
3070
- react.useEffect(() => {
5081
+ const [status, setStatus] = React2.useState("verifying");
5082
+ const [error, setError] = React2.useState("");
5083
+ React2.useEffect(() => {
3071
5084
  const verifyEmailFn = async () => {
3072
- if (!token) {
5085
+ if (!token2) {
3073
5086
  const errorMessage = "Invalid verification link. Missing required token.";
3074
5087
  setError(errorMessage);
3075
5088
  setStatus("error");
@@ -3079,7 +5092,7 @@ function VerifyEmail({ token, onSuccess, onError, ...uiProps }) {
3079
5092
  return;
3080
5093
  }
3081
5094
  try {
3082
- const result = await verifyEmail(token);
5095
+ const result = await verifyEmail(token2);
3083
5096
  if (!result?.accessToken) {
3084
5097
  const errorMessage = result ? "Verification succeeded but no access token received" : "Email verification failed";
3085
5098
  setError(errorMessage);
@@ -3107,7 +5120,7 @@ function VerifyEmail({ token, onSuccess, onError, ...uiProps }) {
3107
5120
  }
3108
5121
  };
3109
5122
  void verifyEmailFn();
3110
- }, [token, verifyEmail, onSuccess, onError]);
5123
+ }, [token2, verifyEmail, onSuccess, onError]);
3111
5124
  return /* @__PURE__ */ jsxRuntime.jsx(VerifyEmailStatus, { status, error, ...uiProps });
3112
5125
  }
3113
5126
  function SignOutButton({ children, className, afterSignOutUrl = "/" }) {
@@ -3116,9 +5129,9 @@ function SignOutButton({ children, className, afterSignOutUrl = "/" }) {
3116
5129
  await signOut();
3117
5130
  window.location.href = afterSignOutUrl;
3118
5131
  };
3119
- if (children && react.isValidElement(children)) {
5132
+ if (children && React2.isValidElement(children)) {
3120
5133
  const originalOnClick = children.props?.onClick;
3121
- return react.cloneElement(children, {
5134
+ return React2.cloneElement(children, {
3122
5135
  onClick: async (e) => {
3123
5136
  await handleClick();
3124
5137
  if (originalOnClick) {
@@ -3129,11 +5142,13 @@ function SignOutButton({ children, className, afterSignOutUrl = "/" }) {
3129
5142
  }
3130
5143
  return /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className, onClick: () => void handleClick(), children: children || "Sign out" });
3131
5144
  }
3132
- var UserButtonContainer = styled__default.default.div`
5145
+
5146
+ // src/components/styled.ts
5147
+ var UserButtonContainer = styled.div`
3133
5148
  position: relative;
3134
5149
  display: inline-block;
3135
5150
  `;
3136
- var UserButtonButton = styled__default.default.button`
5151
+ var UserButtonButton = styled.button`
3137
5152
  display: flex;
3138
5153
  align-items: center;
3139
5154
  justify-content: center;
@@ -3154,7 +5169,7 @@ var UserButtonButton = styled__default.default.button`
3154
5169
  `}
3155
5170
  }
3156
5171
  `;
3157
- var UserButtonAvatar = styled__default.default.div`
5172
+ var UserButtonAvatar = styled.div`
3158
5173
  width: 2rem;
3159
5174
  height: 2rem;
3160
5175
  border-radius: ${theme.radius.full};
@@ -3168,24 +5183,24 @@ var UserButtonAvatar = styled__default.default.div`
3168
5183
  font-family: ${theme.fontFamily.base};
3169
5184
  overflow: hidden;
3170
5185
  `;
3171
- var UserButtonAvatarImage = styled__default.default.img`
5186
+ var UserButtonAvatarImage = styled.img`
3172
5187
  border-radius: ${theme.radius.full};
3173
5188
  object-fit: cover;
3174
5189
  width: 100%;
3175
5190
  height: 100%;
3176
5191
  `;
3177
- var UserButtonAvatarInitials = styled__default.default.span`
5192
+ var UserButtonAvatarInitials = styled.span`
3178
5193
  color: ${theme.colors.bgWhite};
3179
5194
  font-weight: 600;
3180
5195
  font-size: ${theme.fontSize.sm};
3181
5196
  `;
3182
- var UserButtonInfo = styled__default.default.div`
5197
+ var UserButtonInfo = styled.div`
3183
5198
  display: flex;
3184
5199
  flex-direction: column;
3185
5200
  align-items: flex-start;
3186
5201
  gap: 0.125rem;
3187
5202
  `;
3188
- var UserButtonName = styled__default.default.div`
5203
+ var UserButtonName = styled.div`
3189
5204
  font-size: ${theme.fontSize.sm};
3190
5205
  font-weight: 600;
3191
5206
  color: ${theme.colors.text};
@@ -3193,16 +5208,26 @@ var UserButtonName = styled__default.default.div`
3193
5208
  text-align: left;
3194
5209
  font-family: ${theme.fontFamily.base};
3195
5210
  `;
3196
- var UserButtonEmail = styled__default.default.div`
5211
+ var UserButtonEmail = styled.div`
3197
5212
  font-size: ${theme.fontSize.xs};
3198
5213
  color: ${theme.colors.textSecondary};
3199
5214
  line-height: 1rem;
3200
5215
  text-align: left;
3201
5216
  font-family: ${theme.fontFamily.base};
3202
5217
  `;
3203
- var UserButtonMenu = styled__default.default.div`
5218
+ var UserButtonMenu = styled.div`
3204
5219
  position: absolute;
3205
- margin-top: ${theme.spacing[2]};
5220
+ ${(props) => props.$openUpward ? `
5221
+ bottom: 100%;
5222
+ margin-bottom: ${theme.spacing[2]};
5223
+ ` : `
5224
+ top: 100%;
5225
+ margin-top: ${theme.spacing[2]};
5226
+ `}
5227
+ left: 0;
5228
+ ${(props) => props.$horizontalOffset ? `
5229
+ transform: translateX(${props.$horizontalOffset}px);
5230
+ ` : ""}
3206
5231
  background-color: ${theme.colors.bgWhite};
3207
5232
  border: 1px solid ${theme.colors.border};
3208
5233
  border-radius: ${theme.radius.md};
@@ -3211,7 +5236,7 @@ var UserButtonMenu = styled__default.default.div`
3211
5236
  min-width: 200px;
3212
5237
  z-index: 50;
3213
5238
  `;
3214
- var UserButtonMenuItem = styled__default.default.button`
5239
+ var UserButtonMenuItem = styled.button`
3215
5240
  display: flex;
3216
5241
  align-items: center;
3217
5242
  gap: ${theme.spacing[2]};
@@ -3231,7 +5256,7 @@ var UserButtonMenuItem = styled__default.default.button`
3231
5256
  background-color: ${theme.colors.bgLight};
3232
5257
  }
3233
5258
  `;
3234
- var UserButtonMenuItemIcon = styled__default.default.div`
5259
+ var UserButtonMenuItemIcon = styled.div`
3235
5260
  width: 1.25rem;
3236
5261
  height: 1.25rem;
3237
5262
  display: flex;
@@ -3245,10 +5270,13 @@ var UserButtonMenuItemIcon = styled__default.default.div`
3245
5270
  `;
3246
5271
  function UserButton({ afterSignOutUrl = "/", mode = "simple" }) {
3247
5272
  const { user } = useInsforge();
3248
- const [isOpen, setIsOpen] = react.useState(false);
3249
- const [imageError, setImageError] = react.useState(false);
3250
- const dropdownRef = react.useRef(null);
3251
- react.useEffect(() => {
5273
+ const [isOpen, setIsOpen] = React2.useState(false);
5274
+ const [imageError, setImageError] = React2.useState(false);
5275
+ const [openUpward, setOpenUpward] = React2.useState(false);
5276
+ const [horizontalOffset, setHorizontalOffset] = React2.useState(0);
5277
+ const dropdownRef = React2.useRef(null);
5278
+ const menuRef = React2.useRef(null);
5279
+ React2.useEffect(() => {
3252
5280
  setImageError(false);
3253
5281
  const avatarUrl = user?.avatarUrl;
3254
5282
  if (!avatarUrl) {
@@ -3272,7 +5300,34 @@ function UserButton({ afterSignOutUrl = "/", mode = "simple" }) {
3272
5300
  };
3273
5301
  void checkImageUrl();
3274
5302
  }, [user?.avatarUrl]);
3275
- react.useEffect(() => {
5303
+ React2.useEffect(() => {
5304
+ if (isOpen && dropdownRef.current) {
5305
+ const buttonRect = dropdownRef.current.getBoundingClientRect();
5306
+ const viewportHeight = window.innerHeight;
5307
+ const viewportWidth = window.innerWidth;
5308
+ const spaceBelow = viewportHeight - buttonRect.bottom;
5309
+ const spaceAbove = buttonRect.top;
5310
+ const menuHeight = 200;
5311
+ const shouldOpenUpward = spaceBelow < menuHeight && spaceAbove > spaceBelow;
5312
+ setOpenUpward(shouldOpenUpward);
5313
+ requestAnimationFrame(() => {
5314
+ if (menuRef.current) {
5315
+ const menuWidth = menuRef.current.offsetWidth;
5316
+ const menuRight = buttonRect.left + menuWidth;
5317
+ const viewportPadding = 16;
5318
+ if (menuRight > viewportWidth - viewportPadding) {
5319
+ const overflow = menuRight - (viewportWidth - viewportPadding);
5320
+ setHorizontalOffset(-overflow);
5321
+ } else {
5322
+ setHorizontalOffset(0);
5323
+ }
5324
+ }
5325
+ });
5326
+ } else {
5327
+ setHorizontalOffset(0);
5328
+ }
5329
+ }, [isOpen]);
5330
+ React2.useEffect(() => {
3276
5331
  function handleClickOutside(event) {
3277
5332
  if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {
3278
5333
  setIsOpen(false);
@@ -3313,10 +5368,18 @@ function UserButton({ afterSignOutUrl = "/", mode = "simple" }) {
3313
5368
  ]
3314
5369
  }
3315
5370
  ),
3316
- isOpen && /* @__PURE__ */ jsxRuntime.jsx(UserButtonMenu, { children: /* @__PURE__ */ jsxRuntime.jsx(SignOutButton, { afterSignOutUrl, children: /* @__PURE__ */ jsxRuntime.jsxs(UserButtonMenuItem, { $signout: true, onClick: () => setIsOpen(false), children: [
3317
- /* @__PURE__ */ jsxRuntime.jsx(UserButtonMenuItemIcon, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.LogOut, {}) }),
3318
- "Sign out"
3319
- ] }) }) })
5371
+ isOpen && /* @__PURE__ */ jsxRuntime.jsx(
5372
+ UserButtonMenu,
5373
+ {
5374
+ ref: menuRef,
5375
+ $openUpward: openUpward,
5376
+ $horizontalOffset: horizontalOffset,
5377
+ children: /* @__PURE__ */ jsxRuntime.jsx(SignOutButton, { afterSignOutUrl, children: /* @__PURE__ */ jsxRuntime.jsxs(UserButtonMenuItem, { $signout: true, onClick: () => setIsOpen(false), children: [
5378
+ /* @__PURE__ */ jsxRuntime.jsx(UserButtonMenuItemIcon, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.LogOut, {}) }),
5379
+ "Sign out"
5380
+ ] }) })
5381
+ }
5382
+ )
3320
5383
  ] });
3321
5384
  }
3322
5385
  function Protect({
@@ -3327,8 +5390,8 @@ function Protect({
3327
5390
  onRedirect
3328
5391
  }) {
3329
5392
  const { userId, user } = useInsforge();
3330
- const resolvedRedirectTo = react.useMemo(() => resolveAuthPath(redirectTo), [redirectTo]);
3331
- react.useEffect(() => {
5393
+ const resolvedRedirectTo = React2.useMemo(() => resolveAuthPath(redirectTo), [redirectTo]);
5394
+ React2.useEffect(() => {
3332
5395
  if (userId === null) {
3333
5396
  if (onRedirect) {
3334
5397
  onRedirect(resolvedRedirectTo);
@@ -3378,9 +5441,9 @@ function SignInButton({ children, className }) {
3378
5441
  authUrl.searchParams.set("redirect", redirectUrl);
3379
5442
  window.location.replace(authUrl.toString());
3380
5443
  };
3381
- if (children && react.isValidElement(children)) {
5444
+ if (children && React2.isValidElement(children)) {
3382
5445
  const originalOnClick = children.props?.onClick;
3383
- return react.cloneElement(children, {
5446
+ return React2.cloneElement(children, {
3384
5447
  onClick: (e) => {
3385
5448
  handleClick();
3386
5449
  if (originalOnClick) {
@@ -3399,9 +5462,9 @@ function SignUpButton({ children, className }) {
3399
5462
  authUrl.searchParams.set("redirect", redirectUrl);
3400
5463
  window.location.replace(authUrl.toString());
3401
5464
  };
3402
- if (children && react.isValidElement(children)) {
5465
+ if (children && React2.isValidElement(children)) {
3403
5466
  const originalOnClick = children.props?.onClick;
3404
- return react.cloneElement(children, {
5467
+ return React2.cloneElement(children, {
3405
5468
  onClick: (e) => {
3406
5469
  handleClick();
3407
5470
  if (originalOnClick) {
@@ -3424,6 +5487,28 @@ function useUser() {
3424
5487
  const { user, isLoaded, updateUser, setUser } = useInsforge();
3425
5488
  return { user, isLoaded, updateUser, setUser };
3426
5489
  }
5490
+ /*! Bundled license information:
5491
+
5492
+ react-is/cjs/react-is.production.min.js:
5493
+ (** @license React v16.13.1
5494
+ * react-is.production.min.js
5495
+ *
5496
+ * Copyright (c) Facebook, Inc. and its affiliates.
5497
+ *
5498
+ * This source code is licensed under the MIT license found in the
5499
+ * LICENSE file in the root directory of this source tree.
5500
+ *)
5501
+
5502
+ react-is/cjs/react-is.development.js:
5503
+ (** @license React v16.13.1
5504
+ * react-is.development.js
5505
+ *
5506
+ * Copyright (c) Facebook, Inc. and its affiliates.
5507
+ *
5508
+ * This source code is licensed under the MIT license found in the
5509
+ * LICENSE file in the root directory of this source tree.
5510
+ *)
5511
+ */
3427
5512
 
3428
5513
  exports.AuthBranding = AuthBranding;
3429
5514
  exports.AuthContainer = AuthContainer;