@paragrav/rhf-utils 0.0.23 → 0.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/dist/_virtual/_commonjsHelpers.mjs +8 -0
  2. package/dist/_virtual/index.mjs +4 -0
  3. package/dist/devtool/LazyDevTool.d.ts +11 -0
  4. package/dist/devtool/LazyDevTool.mjs +16 -0
  5. package/dist/errors/getFlatFieldErrors.mjs +11 -11
  6. package/dist/errors/isFieldError.d.ts +7 -0
  7. package/dist/errors/isFieldError.mjs +4 -0
  8. package/dist/errors/message/FormErrorMessage.d.ts +8 -0
  9. package/dist/errors/message/FormErrorMessage.mjs +14 -0
  10. package/dist/errors/message/FormErrorMessageByPath.d.ts +9 -0
  11. package/dist/errors/message/FormErrorMessageByPath.mjs +17 -0
  12. package/dist/errors/nonfield/{utils.d.ts → isNonFieldError.d.ts} +3 -2
  13. package/dist/errors/nonfield/isNonFieldError.mjs +5 -0
  14. package/dist/errors/orphan/getOrphanFlatFieldErrors.d.ts +5 -0
  15. package/dist/errors/orphan/{utils.mjs → getOrphanFlatFieldErrors.mjs} +7 -7
  16. package/dist/errors/orphan/useFormHasOrphanAndNoFieldErrors.d.ts +9 -0
  17. package/dist/errors/orphan/useFormHasOrphanAndNoFieldErrors.mjs +10 -0
  18. package/dist/errors/orphan/useOrphanFormErrors.mjs +2 -2
  19. package/dist/errors/orphan/useOrphanFormErrorsToConsoleError.d.ts +4 -3
  20. package/dist/errors/orphan/useOrphanFormErrorsToConsoleError.mjs +22 -14
  21. package/dist/errors/useFormErrorsEffect.mjs +2 -2
  22. package/dist/errors/useFormErrorsIfAny.mjs +1 -1
  23. package/dist/errors/useFormErrorsOnChange.mjs +5 -5
  24. package/dist/errors/useFormFieldErrors.d.ts +6 -0
  25. package/dist/errors/useFormFieldErrors.mjs +13 -0
  26. package/dist/isEmptyObject.d.ts +2 -0
  27. package/dist/isEmptyObject.mjs +4 -0
  28. package/dist/main.d.ts +4 -1
  29. package/dist/main.mjs +34 -28
  30. package/dist/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
  31. package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.mjs +305 -0
  32. package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.mjs +22 -0
  33. package/dist/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.mjs +10 -0
  34. package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.mjs +9 -0
  35. package/dist/node_modules/@emotion/react/dist/emotion-element-43c6fea0.browser.esm.mjs +57 -0
  36. package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.mjs +167 -0
  37. package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.mjs +49 -0
  38. package/dist/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.mjs +82 -0
  39. package/dist/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.mjs +146 -0
  40. package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.mjs +52 -0
  41. package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.mjs +7 -0
  42. package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.mjs +34 -0
  43. package/dist/node_modules/@hookform/devtools/dist/index.esm.mjs +1402 -0
  44. package/dist/node_modules/dequal/dist/index.mjs +64 -0
  45. package/dist/node_modules/little-state-machine/dist/little-state-machine.es.mjs +67 -0
  46. package/dist/node_modules/lodash/_Hash.mjs +22 -0
  47. package/dist/node_modules/lodash/_ListCache.mjs +22 -0
  48. package/dist/node_modules/lodash/_Map.mjs +6 -0
  49. package/dist/node_modules/lodash/_MapCache.mjs +22 -0
  50. package/dist/node_modules/lodash/_Symbol.mjs +5 -0
  51. package/dist/node_modules/lodash/_arrayMap.mjs +9 -0
  52. package/dist/node_modules/lodash/_assocIndexOf.mjs +12 -0
  53. package/dist/node_modules/lodash/_baseGet.mjs +13 -0
  54. package/dist/node_modules/lodash/_baseGetTag.mjs +11 -0
  55. package/dist/node_modules/lodash/_baseIsNative.mjs +17 -0
  56. package/dist/node_modules/lodash/_baseToString.mjs +19 -0
  57. package/dist/node_modules/lodash/_castPath.mjs +12 -0
  58. package/dist/node_modules/lodash/_coreJsData.mjs +5 -0
  59. package/dist/node_modules/lodash/_freeGlobal.mjs +5 -0
  60. package/dist/node_modules/lodash/_getMapData.mjs +10 -0
  61. package/dist/node_modules/lodash/_getNative.mjs +11 -0
  62. package/dist/node_modules/lodash/_getRawTag.mjs +16 -0
  63. package/dist/node_modules/lodash/_getValue.mjs +7 -0
  64. package/dist/node_modules/lodash/_hashClear.mjs +9 -0
  65. package/dist/node_modules/lodash/_hashDelete.mjs +8 -0
  66. package/dist/node_modules/lodash/_hashGet.mjs +14 -0
  67. package/dist/node_modules/lodash/_hashHas.mjs +10 -0
  68. package/dist/node_modules/lodash/_hashSet.mjs +10 -0
  69. package/dist/node_modules/lodash/_isKey.mjs +13 -0
  70. package/dist/node_modules/lodash/_isKeyable.mjs +8 -0
  71. package/dist/node_modules/lodash/_isMasked.mjs +12 -0
  72. package/dist/node_modules/lodash/_listCacheClear.mjs +7 -0
  73. package/dist/node_modules/lodash/_listCacheDelete.mjs +13 -0
  74. package/dist/node_modules/lodash/_listCacheGet.mjs +10 -0
  75. package/dist/node_modules/lodash/_listCacheHas.mjs +9 -0
  76. package/dist/node_modules/lodash/_listCacheSet.mjs +10 -0
  77. package/dist/node_modules/lodash/_mapCacheClear.mjs +15 -0
  78. package/dist/node_modules/lodash/_mapCacheDelete.mjs +10 -0
  79. package/dist/node_modules/lodash/_mapCacheGet.mjs +9 -0
  80. package/dist/node_modules/lodash/_mapCacheHas.mjs +9 -0
  81. package/dist/node_modules/lodash/_mapCacheSet.mjs +10 -0
  82. package/dist/node_modules/lodash/_memoizeCapped.mjs +12 -0
  83. package/dist/node_modules/lodash/_nativeCreate.mjs +5 -0
  84. package/dist/node_modules/lodash/_objectToString.mjs +8 -0
  85. package/dist/node_modules/lodash/_root.mjs +5 -0
  86. package/dist/node_modules/lodash/_stringToPath.mjs +10 -0
  87. package/dist/node_modules/lodash/_toKey.mjs +12 -0
  88. package/dist/node_modules/lodash/_toSource.mjs +18 -0
  89. package/dist/node_modules/lodash/eq.mjs +7 -0
  90. package/dist/node_modules/lodash/get.mjs +12 -0
  91. package/dist/node_modules/lodash/isArray.mjs +4 -0
  92. package/dist/node_modules/lodash/isFunction.mjs +13 -0
  93. package/dist/node_modules/lodash/isObject.mjs +11 -0
  94. package/dist/node_modules/lodash/isObjectLike.mjs +7 -0
  95. package/dist/node_modules/lodash/isSymbol.mjs +10 -0
  96. package/dist/node_modules/lodash/isUndefined.mjs +9 -0
  97. package/dist/node_modules/lodash/memoize.mjs +19 -0
  98. package/dist/node_modules/lodash/toString.mjs +9 -0
  99. package/dist/node_modules/react-simple-animate/dist/index.mjs +257 -0
  100. package/dist/node_modules/stylis/src/Enum.mjs +12 -0
  101. package/dist/node_modules/stylis/src/Middleware.mjs +18 -0
  102. package/dist/node_modules/stylis/src/Parser.mjs +114 -0
  103. package/dist/node_modules/stylis/src/Serializer.mjs +28 -0
  104. package/dist/node_modules/stylis/src/Tokenizer.mjs +131 -0
  105. package/dist/node_modules/stylis/src/Utility.mjs +50 -0
  106. package/dist/node_modules/use-deep-compare-effect/dist/use-deep-compare-effect.esm.mjs +24 -0
  107. package/dist/node_modules/uuid/dist/esm-browser/regex.mjs +4 -0
  108. package/dist/node_modules/uuid/dist/esm-browser/rng.mjs +9 -0
  109. package/dist/node_modules/uuid/dist/esm-browser/stringify.mjs +13 -0
  110. package/dist/node_modules/uuid/dist/esm-browser/v4.mjs +16 -0
  111. package/dist/node_modules/uuid/dist/esm-browser/validate.mjs +7 -0
  112. package/dist/submit/useFormOnSubmitSuccessful.mjs +7 -7
  113. package/dist/submit/useFormOnSubmitSuccessfulAndReset.mjs +7 -7
  114. package/package.json +14 -1
  115. package/dist/errors/nonfield/utils.mjs +0 -4
  116. package/dist/errors/orphan/useFormErrorsHasOnlyOrphans.d.ts +0 -2
  117. package/dist/errors/orphan/useFormErrorsHasOnlyOrphans.mjs +0 -10
  118. package/dist/errors/orphan/utils.d.ts +0 -4
  119. package/dist/errors/useFormFlatFieldErrors.mjs +0 -6
  120. package/dist/utils.d.ts +0 -1
  121. package/dist/utils.mjs +0 -4
@@ -0,0 +1,305 @@
1
+ import { StyleSheet as q } from "../../sheet/dist/emotion-sheet.browser.esm.mjs";
2
+ import { stringify as L, serialize as $ } from "../../../stylis/src/Serializer.mjs";
3
+ import { COMMENT as K, RULESET as U, KEYFRAMES as F, DECLARATION as Y, WEBKIT as s, MS as f, MOZ as E } from "../../../stylis/src/Enum.mjs";
4
+ import { rulesheet as B, middleware as H } from "../../../stylis/src/Middleware.mjs";
5
+ import { combine as Z, replace as i, hash as z, charat as b, strlen as A, indexof as R, match as G, from as J } from "../../../stylis/src/Utility.mjs";
6
+ import { copy as m, dealloc as Q, alloc as X, next as C, token as I, peek as k, delimit as j, slice as v, position as O } from "../../../stylis/src/Tokenizer.mjs";
7
+ import { compile as rr } from "../../../stylis/src/Parser.mjs";
8
+ var er = function(e, t, n) {
9
+ for (var c = 0, a = 0; c = a, a = k(), c === 38 && a === 12 && (t[n] = 1), !I(a); )
10
+ C();
11
+ return v(e, O);
12
+ }, tr = function(e, t) {
13
+ var n = -1, c = 44;
14
+ do
15
+ switch (I(c)) {
16
+ case 0:
17
+ c === 38 && k() === 12 && (t[n] = 1), e[n] += er(O - 1, t, n);
18
+ break;
19
+ case 2:
20
+ e[n] += j(c);
21
+ break;
22
+ case 4:
23
+ if (c === 44) {
24
+ e[++n] = k() === 58 ? "&\f" : "", t[n] = e[n].length;
25
+ break;
26
+ }
27
+ default:
28
+ e[n] += J(c);
29
+ }
30
+ while (c = C());
31
+ return e;
32
+ }, sr = function(e, t) {
33
+ return Q(tr(X(e), t));
34
+ }, P = /* @__PURE__ */ new WeakMap(), nr = function(e) {
35
+ if (!(e.type !== "rule" || !e.parent || // positive .length indicates that this rule contains pseudo
36
+ // negative .length indicates that this rule has been already prefixed
37
+ e.length < 1)) {
38
+ for (var t = e.value, n = e.parent, c = e.column === n.column && e.line === n.line; n.type !== "rule"; )
39
+ if (n = n.parent, !n)
40
+ return;
41
+ if (!(e.props.length === 1 && t.charCodeAt(0) !== 58 && !P.get(n)) && !c) {
42
+ P.set(e, !0);
43
+ for (var a = [], l = sr(t, a), h = n.props, u = 0, d = 0; u < l.length; u++)
44
+ for (var p = 0; p < h.length; p++, d++)
45
+ e.props[d] = a[u] ? l[u].replace(/&\f/g, h[p]) : h[p] + " " + l[u];
46
+ }
47
+ }
48
+ }, ir = function(e) {
49
+ if (e.type === "decl") {
50
+ var t = e.value;
51
+ // charcode for l
52
+ t.charCodeAt(0) === 108 && // charcode for b
53
+ t.charCodeAt(2) === 98 && (e.return = "", e.value = "");
54
+ }
55
+ }, cr = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason", ar = function(e) {
56
+ return e.type === "comm" && e.children.indexOf(cr) > -1;
57
+ }, or = function(e) {
58
+ return function(t, n, c) {
59
+ if (!(t.type !== "rule" || e.compat)) {
60
+ var a = t.value.match(/(:first|:nth|:nth-last)-child/g);
61
+ if (a) {
62
+ for (var l = !!t.parent, h = l ? t.parent.children : (
63
+ // global rule at the root level
64
+ c
65
+ ), u = h.length - 1; u >= 0; u--) {
66
+ var d = h[u];
67
+ if (d.line < t.line)
68
+ break;
69
+ if (d.column < t.column) {
70
+ if (ar(d))
71
+ return;
72
+ break;
73
+ }
74
+ }
75
+ a.forEach(function(p) {
76
+ console.error('The pseudo class "' + p + '" is potentially unsafe when doing server-side rendering. Try changing it to "' + p.split("-child")[0] + '-of-type".');
77
+ });
78
+ }
79
+ }
80
+ };
81
+ }, T = function(e) {
82
+ return e.type.charCodeAt(1) === 105 && e.type.charCodeAt(0) === 64;
83
+ }, fr = function(e, t) {
84
+ for (var n = e - 1; n >= 0; n--)
85
+ if (!T(t[n]))
86
+ return !0;
87
+ return !1;
88
+ }, N = function(e) {
89
+ e.type = "", e.value = "", e.return = "", e.children = "", e.props = "";
90
+ }, pr = function(e, t, n) {
91
+ T(e) && (e.parent ? (console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."), N(e)) : fr(t, n) && (console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."), N(e)));
92
+ };
93
+ function D(r, e) {
94
+ switch (z(r, e)) {
95
+ case 5103:
96
+ return s + "print-" + r + r;
97
+ case 5737:
98
+ case 4201:
99
+ case 3177:
100
+ case 3433:
101
+ case 1641:
102
+ case 4457:
103
+ case 2921:
104
+ case 5572:
105
+ case 6356:
106
+ case 5844:
107
+ case 3191:
108
+ case 6645:
109
+ case 3005:
110
+ case 6391:
111
+ case 5879:
112
+ case 5623:
113
+ case 6135:
114
+ case 4599:
115
+ case 4855:
116
+ case 4215:
117
+ case 6389:
118
+ case 5109:
119
+ case 5365:
120
+ case 5621:
121
+ case 3829:
122
+ return s + r + r;
123
+ case 5349:
124
+ case 4246:
125
+ case 4810:
126
+ case 6968:
127
+ case 2756:
128
+ return s + r + E + r + f + r + r;
129
+ case 6828:
130
+ case 4268:
131
+ return s + r + f + r + r;
132
+ case 6165:
133
+ return s + r + f + "flex-" + r + r;
134
+ case 5187:
135
+ return s + r + i(r, /(\w+).+(:[^]+)/, s + "box-$1$2" + f + "flex-$1$2") + r;
136
+ case 5443:
137
+ return s + r + f + "flex-item-" + i(r, /flex-|-self/, "") + r;
138
+ case 4675:
139
+ return s + r + f + "flex-line-pack" + i(r, /align-content|flex-|-self/, "") + r;
140
+ case 5548:
141
+ return s + r + f + i(r, "shrink", "negative") + r;
142
+ case 5292:
143
+ return s + r + f + i(r, "basis", "preferred-size") + r;
144
+ case 6060:
145
+ return s + "box-" + i(r, "-grow", "") + s + r + f + i(r, "grow", "positive") + r;
146
+ case 4554:
147
+ return s + i(r, /([^-])(transform)/g, "$1" + s + "$2") + r;
148
+ case 6187:
149
+ return i(i(i(r, /(zoom-|grab)/, s + "$1"), /(image-set)/, s + "$1"), r, "") + r;
150
+ case 5495:
151
+ case 3959:
152
+ return i(r, /(image-set\([^]*)/, s + "$1$`$1");
153
+ case 4968:
154
+ return i(i(r, /(.+:)(flex-)?(.*)/, s + "box-pack:$3" + f + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + s + r + r;
155
+ case 4095:
156
+ case 3583:
157
+ case 4068:
158
+ case 2532:
159
+ return i(r, /(.+)-inline(.+)/, s + "$1$2") + r;
160
+ case 8116:
161
+ case 7059:
162
+ case 5753:
163
+ case 5535:
164
+ case 5445:
165
+ case 5701:
166
+ case 4933:
167
+ case 4677:
168
+ case 5533:
169
+ case 5789:
170
+ case 5021:
171
+ case 4765:
172
+ if (A(r) - 1 - e > 6)
173
+ switch (b(r, e + 1)) {
174
+ case 109:
175
+ if (b(r, e + 4) !== 45)
176
+ break;
177
+ case 102:
178
+ return i(r, /(.+:)(.+)-([^]+)/, "$1" + s + "$2-$3$1" + E + (b(r, e + 3) == 108 ? "$3" : "$2-$3")) + r;
179
+ case 115:
180
+ return ~R(r, "stretch") ? D(i(r, "stretch", "fill-available"), e) + r : r;
181
+ }
182
+ break;
183
+ case 4949:
184
+ if (b(r, e + 1) !== 115)
185
+ break;
186
+ case 6444:
187
+ switch (b(r, A(r) - 3 - (~R(r, "!important") && 10))) {
188
+ case 107:
189
+ return i(r, ":", ":" + s) + r;
190
+ case 101:
191
+ return i(r, /(.+:)([^;!]+)(;|!.+)?/, "$1" + s + (b(r, 14) === 45 ? "inline-" : "") + "box$3$1" + s + "$2$3$1" + f + "$2box$3") + r;
192
+ }
193
+ break;
194
+ case 5936:
195
+ switch (b(r, e + 11)) {
196
+ case 114:
197
+ return s + r + f + i(r, /[svh]\w+-[tblr]{2}/, "tb") + r;
198
+ case 108:
199
+ return s + r + f + i(r, /[svh]\w+-[tblr]{2}/, "tb-rl") + r;
200
+ case 45:
201
+ return s + r + f + i(r, /[svh]\w+-[tblr]{2}/, "lr") + r;
202
+ }
203
+ return s + r + f + r + r;
204
+ }
205
+ return r;
206
+ }
207
+ var ur = function(e, t, n, c) {
208
+ if (e.length > -1 && !e.return)
209
+ switch (e.type) {
210
+ case Y:
211
+ e.return = D(e.value, e.length);
212
+ break;
213
+ case F:
214
+ return $([m(e, {
215
+ value: i(e.value, "@", "@" + s)
216
+ })], c);
217
+ case U:
218
+ if (e.length)
219
+ return Z(e.props, function(a) {
220
+ switch (G(a, /(::plac\w+|:read-\w+)/)) {
221
+ case ":read-only":
222
+ case ":read-write":
223
+ return $([m(e, {
224
+ props: [i(a, /:(read-\w+)/, ":" + E + "$1")]
225
+ })], c);
226
+ case "::placeholder":
227
+ return $([m(e, {
228
+ props: [i(a, /:(plac\w+)/, ":" + s + "input-$1")]
229
+ }), m(e, {
230
+ props: [i(a, /:(plac\w+)/, ":" + E + "$1")]
231
+ }), m(e, {
232
+ props: [i(a, /:(plac\w+)/, f + "input-$1")]
233
+ })], c);
234
+ }
235
+ return "";
236
+ });
237
+ }
238
+ }, hr = [ur], Er = function(e) {
239
+ var t = e.key;
240
+ if (process.env.NODE_ENV !== "production" && !t)
241
+ throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
242
+ If multiple caches share the same key they might "fight" for each other's style elements.`);
243
+ if (t === "css") {
244
+ var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
245
+ Array.prototype.forEach.call(n, function(o) {
246
+ var y = o.getAttribute("data-emotion");
247
+ y.indexOf(" ") !== -1 && (document.head.appendChild(o), o.setAttribute("data-s", ""));
248
+ });
249
+ }
250
+ var c = e.stylisPlugins || hr;
251
+ if (process.env.NODE_ENV !== "production" && /[^a-z-]/.test(t))
252
+ throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + t + '" was passed');
253
+ var a = {}, l, h = [];
254
+ l = e.container || document.head, Array.prototype.forEach.call(
255
+ // this means we will ignore elements which don't have a space in them which
256
+ // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
257
+ document.querySelectorAll('style[data-emotion^="' + t + ' "]'),
258
+ function(o) {
259
+ for (var y = o.getAttribute("data-emotion").split(" "), g = 1; g < y.length; g++)
260
+ a[y[g]] = !0;
261
+ h.push(o);
262
+ }
263
+ );
264
+ var u, d = [nr, ir];
265
+ process.env.NODE_ENV !== "production" && d.push(or({
266
+ get compat() {
267
+ return w.compat;
268
+ }
269
+ }), pr);
270
+ {
271
+ var p, M = [L, process.env.NODE_ENV !== "production" ? function(o) {
272
+ o.root || (o.return ? p.insert(o.return) : o.value && o.type !== K && p.insert(o.value + "{}"));
273
+ } : B(function(o) {
274
+ p.insert(o);
275
+ })], S = H(d.concat(c, M)), W = function(y) {
276
+ return $(rr(y), S);
277
+ };
278
+ u = function(y, g, x, _) {
279
+ p = x, process.env.NODE_ENV !== "production" && g.map !== void 0 && (p = {
280
+ insert: function(V) {
281
+ x.insert(V + g.map);
282
+ }
283
+ }), W(y ? y + "{" + g.styles + "}" : g.styles), _ && (w.inserted[g.name] = !0);
284
+ };
285
+ }
286
+ var w = {
287
+ key: t,
288
+ sheet: new q({
289
+ key: t,
290
+ container: l,
291
+ nonce: e.nonce,
292
+ speedy: e.speedy,
293
+ prepend: e.prepend,
294
+ insertionPoint: e.insertionPoint
295
+ }),
296
+ nonce: e.nonce,
297
+ inserted: a,
298
+ registered: {},
299
+ insert: u
300
+ };
301
+ return w.sheet.hydrate(h), w;
302
+ };
303
+ export {
304
+ Er as default
305
+ };
@@ -0,0 +1,22 @@
1
+ function c(e) {
2
+ for (var f = 0, x, a = 0, d = e.length; d >= 4; ++a, d -= 4)
3
+ x = e.charCodeAt(a) & 255 | (e.charCodeAt(++a) & 255) << 8 | (e.charCodeAt(++a) & 255) << 16 | (e.charCodeAt(++a) & 255) << 24, x = /* Math.imul(k, m): */
4
+ (x & 65535) * 1540483477 + ((x >>> 16) * 59797 << 16), x ^= /* k >>> r: */
5
+ x >>> 24, f = /* Math.imul(k, m): */
6
+ (x & 65535) * 1540483477 + ((x >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
7
+ (f & 65535) * 1540483477 + ((f >>> 16) * 59797 << 16);
8
+ switch (d) {
9
+ case 3:
10
+ f ^= (e.charCodeAt(a + 2) & 255) << 16;
11
+ case 2:
12
+ f ^= (e.charCodeAt(a + 1) & 255) << 8;
13
+ case 1:
14
+ f ^= e.charCodeAt(a) & 255, f = /* Math.imul(h, m): */
15
+ (f & 65535) * 1540483477 + ((f >>> 16) * 59797 << 16);
16
+ }
17
+ return f ^= f >>> 13, f = /* Math.imul(h, m): */
18
+ (f & 65535) * 1540483477 + ((f >>> 16) * 59797 << 16), ((f ^ f >>> 15) >>> 0).toString(36);
19
+ }
20
+ export {
21
+ c as default
22
+ };
@@ -0,0 +1,10 @@
1
+ import t from "../../memoize/dist/emotion-memoize.esm.mjs";
2
+ var r = /^((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|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|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)-.*))$/, a = /* @__PURE__ */ t(
3
+ function(e) {
4
+ return r.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
5
+ }
6
+ /* Z+1 */
7
+ );
8
+ export {
9
+ a as default
10
+ };
@@ -0,0 +1,9 @@
1
+ function u(t) {
2
+ var n = /* @__PURE__ */ Object.create(null);
3
+ return function(e) {
4
+ return n[e] === void 0 && (n[e] = t(e)), n[e];
5
+ };
6
+ }
7
+ export {
8
+ u as default
9
+ };
@@ -0,0 +1,57 @@
1
+ import * as a from "react";
2
+ import { forwardRef as _, useContext as g } from "react";
3
+ import p from "../../cache/dist/emotion-cache.browser.esm.mjs";
4
+ import { getRegisteredStyles as O, registerStyles as C, insertStyles as h } from "../../utils/dist/emotion-utils.browser.esm.mjs";
5
+ import { serializeStyles as d } from "../../serialize/dist/emotion-serialize.browser.esm.mjs";
6
+ import { useInsertionEffectAlwaysWithSyncFallback as y } from "../../use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.mjs";
7
+ var S = {}.hasOwnProperty, m = /* @__PURE__ */ a.createContext(
8
+ // we're doing this to avoid preconstruct's dead code elimination in this one case
9
+ // because this module is primarily intended for the browser and node
10
+ // but it's also required in react native and similar environments sometimes
11
+ // and we could have a special build just for that
12
+ // but this is much easier and the native packages
13
+ // might use a different theme context in the future anyway
14
+ typeof HTMLElement < "u" ? /* @__PURE__ */ p({
15
+ key: "css"
16
+ }) : null
17
+ );
18
+ process.env.NODE_ENV !== "production" && (m.displayName = "EmotionCacheContext");
19
+ m.Provider;
20
+ var T = function(t) {
21
+ return /* @__PURE__ */ _(function(i, r) {
22
+ var n = g(m);
23
+ return t(i, n, r);
24
+ });
25
+ }, v = /* @__PURE__ */ a.createContext({});
26
+ process.env.NODE_ENV !== "production" && (v.displayName = "EmotionThemeContext");
27
+ var u = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", N = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", x = function(t) {
28
+ var i = t.cache, r = t.serialized, n = t.isStringTag;
29
+ return C(i, r, n), y(function() {
30
+ return h(i, r, n);
31
+ }), null;
32
+ }, P = /* @__PURE__ */ T(function(e, t, i) {
33
+ var r = e.css;
34
+ typeof r == "string" && t.registered[r] !== void 0 && (r = t.registered[r]);
35
+ var n = e[u], f = [r], c = "";
36
+ typeof e.className == "string" ? c = O(t.registered, f, e.className) : e.className != null && (c = e.className + " ");
37
+ var o = d(f, void 0, a.useContext(v));
38
+ if (process.env.NODE_ENV !== "production" && o.name.indexOf("-") === -1) {
39
+ var E = e[N];
40
+ E && (o = d([o, "label:" + E + ";"]));
41
+ }
42
+ c += t.key + "-" + o.name;
43
+ var l = {};
44
+ for (var s in e)
45
+ S.call(e, s) && s !== "css" && s !== u && (process.env.NODE_ENV === "production" || s !== N) && (l[s] = e[s]);
46
+ return l.ref = i, l.className = c, /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(x, {
47
+ cache: t,
48
+ serialized: o,
49
+ isStringTag: typeof n == "string"
50
+ }), /* @__PURE__ */ a.createElement(n, l));
51
+ });
52
+ process.env.NODE_ENV !== "production" && (P.displayName = "EmotionCssPropInternal");
53
+ export {
54
+ v as T,
55
+ S as h,
56
+ T as w
57
+ };
@@ -0,0 +1,167 @@
1
+ import V from "../../hash/dist/emotion-hash.esm.mjs";
2
+ import C from "../../unitless/dist/emotion-unitless.esm.mjs";
3
+ import D from "../../memoize/dist/emotion-memoize.esm.mjs";
4
+ var N = `You have illegal escape sequence in your template literal, most likely inside content's property value.
5
+ Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
6
+ You can read more about this here:
7
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, x = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", A = /[A-Z]|^ms/g, S = /_EMO_([^_]+?)_([^]*?)_EMO_/g, v = function(n) {
8
+ return n.charCodeAt(1) === 45;
9
+ }, b = function(n) {
10
+ return n != null && typeof n != "boolean";
11
+ }, E = /* @__PURE__ */ D(function(s) {
12
+ return v(s) ? s : s.replace(A, "-$&").toLowerCase();
13
+ }), d = function(n, e) {
14
+ switch (n) {
15
+ case "animation":
16
+ case "animationName":
17
+ if (typeof e == "string")
18
+ return e.replace(S, function(o, i, r) {
19
+ return c = {
20
+ name: i,
21
+ styles: r,
22
+ next: c
23
+ }, i;
24
+ });
25
+ }
26
+ return C[n] !== 1 && !v(n) && typeof e == "number" && e !== 0 ? e + "px" : e;
27
+ };
28
+ if (process.env.NODE_ENV !== "production") {
29
+ var R = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, M = ["normal", "none", "initial", "inherit", "unset"], I = d, L = /^-ms-/, Y = /-(.)/g, w = {};
30
+ d = function(n, e) {
31
+ if (n === "content" && (typeof e != "string" || M.indexOf(e) === -1 && !R.test(e) && (e.charAt(0) !== e.charAt(e.length - 1) || e.charAt(0) !== '"' && e.charAt(0) !== "'")))
32
+ throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + e + "\"'`");
33
+ var o = I(n, e);
34
+ return o !== "" && !v(n) && n.indexOf("-") !== -1 && w[n] === void 0 && (w[n] = !0, console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + n.replace(L, "ms-").replace(Y, function(i, r) {
35
+ return r.toUpperCase();
36
+ }) + "?")), o;
37
+ };
38
+ }
39
+ var _ = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
40
+ function f(s, n, e) {
41
+ if (e == null)
42
+ return "";
43
+ if (e.__emotion_styles !== void 0) {
44
+ if (process.env.NODE_ENV !== "production" && e.toString() === "NO_COMPONENT_SELECTOR")
45
+ throw new Error(_);
46
+ return e;
47
+ }
48
+ switch (typeof e) {
49
+ case "boolean":
50
+ return "";
51
+ case "object": {
52
+ if (e.anim === 1)
53
+ return c = {
54
+ name: e.name,
55
+ styles: e.styles,
56
+ next: c
57
+ }, e.name;
58
+ if (e.styles !== void 0) {
59
+ var o = e.next;
60
+ if (o !== void 0)
61
+ for (; o !== void 0; )
62
+ c = {
63
+ name: o.name,
64
+ styles: o.styles,
65
+ next: c
66
+ }, o = o.next;
67
+ var i = e.styles + ";";
68
+ return process.env.NODE_ENV !== "production" && e.map !== void 0 && (i += e.map), i;
69
+ }
70
+ return j(s, n, e);
71
+ }
72
+ case "function": {
73
+ if (s !== void 0) {
74
+ var r = c, t = e(s);
75
+ return c = r, f(s, n, t);
76
+ } else
77
+ process.env.NODE_ENV !== "production" && console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");
78
+ break;
79
+ }
80
+ case "string":
81
+ if (process.env.NODE_ENV !== "production") {
82
+ var a = [], u = e.replace(S, function(m, h, p) {
83
+ var y = "animation" + a.length;
84
+ return a.push("const " + y + " = keyframes`" + p.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + y + "}";
85
+ });
86
+ a.length && console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n" + [].concat(a, ["`" + u + "`"]).join(`
87
+ `) + `
88
+
89
+ You should wrap it with \`css\` like this:
90
+
91
+ ` + ("css`" + u + "`"));
92
+ }
93
+ break;
94
+ }
95
+ if (n == null)
96
+ return e;
97
+ var l = n[e];
98
+ return l !== void 0 ? l : e;
99
+ }
100
+ function j(s, n, e) {
101
+ var o = "";
102
+ if (Array.isArray(e))
103
+ for (var i = 0; i < e.length; i++)
104
+ o += f(s, n, e[i]) + ";";
105
+ else
106
+ for (var r in e) {
107
+ var t = e[r];
108
+ if (typeof t != "object")
109
+ n != null && n[t] !== void 0 ? o += r + "{" + n[t] + "}" : b(t) && (o += E(r) + ":" + d(r, t) + ";");
110
+ else {
111
+ if (r === "NO_COMPONENT_SELECTOR" && process.env.NODE_ENV !== "production")
112
+ throw new Error(_);
113
+ if (Array.isArray(t) && typeof t[0] == "string" && (n == null || n[t[0]] === void 0))
114
+ for (var a = 0; a < t.length; a++)
115
+ b(t[a]) && (o += E(r) + ":" + d(r, t[a]) + ";");
116
+ else {
117
+ var u = f(s, n, t);
118
+ switch (r) {
119
+ case "animation":
120
+ case "animationName": {
121
+ o += E(r) + ":" + u + ";";
122
+ break;
123
+ }
124
+ default:
125
+ process.env.NODE_ENV !== "production" && r === "undefined" && console.error(x), o += r + "{" + u + "}";
126
+ }
127
+ }
128
+ }
129
+ }
130
+ return o;
131
+ }
132
+ var O = /label:\s*([^\s;\n{]+)\s*(;|$)/g, g;
133
+ process.env.NODE_ENV !== "production" && (g = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);
134
+ var c, q = function(n, e, o) {
135
+ if (n.length === 1 && typeof n[0] == "object" && n[0] !== null && n[0].styles !== void 0)
136
+ return n[0];
137
+ var i = !0, r = "";
138
+ c = void 0;
139
+ var t = n[0];
140
+ t == null || t.raw === void 0 ? (i = !1, r += f(o, e, t)) : (process.env.NODE_ENV !== "production" && t[0] === void 0 && console.error(N), r += t[0]);
141
+ for (var a = 1; a < n.length; a++)
142
+ r += f(o, e, n[a]), i && (process.env.NODE_ENV !== "production" && t[a] === void 0 && console.error(N), r += t[a]);
143
+ var u;
144
+ process.env.NODE_ENV !== "production" && (r = r.replace(g, function(p) {
145
+ return u = p, "";
146
+ })), O.lastIndex = 0;
147
+ for (var l = "", m; (m = O.exec(r)) !== null; )
148
+ l += "-" + // $FlowFixMe we know it's not null
149
+ m[1];
150
+ var h = V(r) + l;
151
+ return process.env.NODE_ENV !== "production" ? {
152
+ name: h,
153
+ styles: r,
154
+ map: u,
155
+ next: c,
156
+ toString: function() {
157
+ return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
158
+ }
159
+ } : {
160
+ name: h,
161
+ styles: r,
162
+ next: c
163
+ };
164
+ };
165
+ export {
166
+ q as serializeStyles
167
+ };
@@ -0,0 +1,49 @@
1
+ function h(n) {
2
+ if (n.sheet)
3
+ return n.sheet;
4
+ for (var t = 0; t < document.styleSheets.length; t++)
5
+ if (document.styleSheets[t].ownerNode === n)
6
+ return document.styleSheets[t];
7
+ }
8
+ function l(n) {
9
+ var t = document.createElement("style");
10
+ return t.setAttribute("data-emotion", n.key), n.nonce !== void 0 && t.setAttribute("nonce", n.nonce), t.appendChild(document.createTextNode("")), t.setAttribute("data-s", ""), t;
11
+ }
12
+ var d = /* @__PURE__ */ function() {
13
+ function n(r) {
14
+ var e = this;
15
+ this._insertTag = function(i) {
16
+ var s;
17
+ e.tags.length === 0 ? e.insertionPoint ? s = e.insertionPoint.nextSibling : e.prepend ? s = e.container.firstChild : s = e.before : s = e.tags[e.tags.length - 1].nextSibling, e.container.insertBefore(i, s), e.tags.push(i);
18
+ }, this.isSpeedy = r.speedy === void 0 ? process.env.NODE_ENV === "production" : r.speedy, this.tags = [], this.ctr = 0, this.nonce = r.nonce, this.key = r.key, this.container = r.container, this.prepend = r.prepend, this.insertionPoint = r.insertionPoint, this.before = null;
19
+ }
20
+ var t = n.prototype;
21
+ return t.hydrate = function(e) {
22
+ e.forEach(this._insertTag);
23
+ }, t.insert = function(e) {
24
+ this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(l(this));
25
+ var i = this.tags[this.tags.length - 1];
26
+ if (process.env.NODE_ENV !== "production") {
27
+ var s = e.charCodeAt(0) === 64 && e.charCodeAt(1) === 105;
28
+ s && this._alreadyInsertedOrderInsensitiveRule && console.error(`You're attempting to insert the following rule:
29
+ ` + e + "\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."), this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !s;
30
+ }
31
+ if (this.isSpeedy) {
32
+ var o = h(i);
33
+ try {
34
+ o.insertRule(e, o.cssRules.length);
35
+ } catch (a) {
36
+ process.env.NODE_ENV !== "production" && !/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e) && console.error('There was a problem inserting the following rule: "' + e + '"', a);
37
+ }
38
+ } else
39
+ i.appendChild(document.createTextNode(e));
40
+ this.ctr++;
41
+ }, t.flush = function() {
42
+ this.tags.forEach(function(e) {
43
+ return e.parentNode && e.parentNode.removeChild(e);
44
+ }), this.tags = [], this.ctr = 0, process.env.NODE_ENV !== "production" && (this._alreadyInsertedOrderInsensitiveRule = !1);
45
+ }, n;
46
+ }();
47
+ export {
48
+ d as StyleSheet
49
+ };