schummar-table 0.3.2 → 0.5.0-beta-1

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 (156) hide show
  1. package/dist/assets/tableTheme.0eb513b0.js +215 -0
  2. package/dist/assets/tableTheme.0eb513b0.js.map +1 -0
  3. package/dist/assets/tableTheme.65fea986.js +214 -0
  4. package/dist/assets/tableTheme.65fea986.js.map +1 -0
  5. package/dist/assets/vendor.a5ec605d.js +2475 -0
  6. package/dist/assets/vendor.a5ec605d.js.map +1 -0
  7. package/dist/assets/vendor.c9c3328b.js +2464 -0
  8. package/dist/assets/vendor.c9c3328b.js.map +1 -0
  9. package/dist/cjs/mui4Theme.js +7 -0
  10. package/dist/cjs/mui4Theme.js.map +1 -0
  11. package/dist/cjs/mui5Theme.js +7 -0
  12. package/dist/cjs/mui5Theme.js.map +1 -0
  13. package/dist/cjs/schummar-table.js +1042 -0
  14. package/dist/cjs/schummar-table.js.map +1 -0
  15. package/dist/esm/mui4Theme.js +6 -0
  16. package/dist/esm/mui4Theme.js.map +1 -0
  17. package/dist/esm/mui5Theme.js +6 -0
  18. package/dist/esm/mui5Theme.js.map +1 -0
  19. package/dist/esm/schummar-table.js +1041 -0
  20. package/dist/esm/schummar-table.js.map +1 -0
  21. package/dist/{cjs → types}/components/cell.d.ts +1 -1
  22. package/dist/types/components/columnHeader.d.ts +7 -0
  23. package/dist/{cjs → types}/components/columnSelection.d.ts +0 -0
  24. package/dist/types/components/dateFilter.d.ts +8 -0
  25. package/dist/types/components/datePicker.d.ts +16 -0
  26. package/dist/types/components/expandControl.d.ts +6 -0
  27. package/dist/{cjs → types}/components/export.d.ts +0 -0
  28. package/dist/types/components/filterControl.d.ts +2 -0
  29. package/dist/types/components/formControlLabel.d.ts +5 -0
  30. package/dist/types/components/resizeHandle.d.ts +1 -0
  31. package/dist/{cjs → types}/components/row.d.ts +1 -1
  32. package/dist/{cjs → types}/components/selectComponent.d.ts +0 -0
  33. package/dist/types/components/selectFilter.d.ts +8 -0
  34. package/dist/{cjs → types}/components/sortComponent.d.ts +0 -0
  35. package/dist/types/components/spinnner.d.ts +3 -0
  36. package/dist/{cjs → types/components}/table.d.ts +1 -1
  37. package/dist/types/components/textFilter.d.ts +5 -0
  38. package/dist/{cjs → types}/components/virtualized.d.ts +0 -0
  39. package/dist/types/hooks/useFilter.d.ts +5 -0
  40. package/dist/types/hooks/useTheme.d.ts +1 -0
  41. package/dist/types/index.d.ts +10 -0
  42. package/dist/{cjs → types}/internalState/calcItems.d.ts +0 -0
  43. package/dist/{cjs → types}/internalState/calcProps.d.ts +0 -0
  44. package/dist/{cjs → types}/internalState/cleanupState.d.ts +0 -0
  45. package/dist/{cjs → types}/internalState/filterColumns.d.ts +0 -0
  46. package/dist/{cjs → types}/internalState/syncSelections.d.ts +0 -0
  47. package/dist/types/internalState/tableStateStorage.d.ts +11 -0
  48. package/dist/{cjs → types}/internalState/useTableState.d.ts +0 -0
  49. package/dist/{cjs → types}/misc/csvExport.d.ts +0 -0
  50. package/dist/types/misc/debounce.d.ts +4 -0
  51. package/dist/types/misc/deepPartial.d.ts +3 -0
  52. package/dist/{cjs → types}/misc/helpers.d.ts +2 -1
  53. package/dist/types/misc/queue.d.ts +6 -0
  54. package/dist/{cjs → types}/misc/textMatch.d.ts +0 -0
  55. package/dist/types/misc/throttle.d.ts +4 -0
  56. package/dist/types/theme/defaultClasses.d.ts +15 -0
  57. package/dist/types/theme/defaultColors.d.ts +2 -0
  58. package/dist/types/theme/defaultIcons.d.ts +2 -0
  59. package/dist/types/theme/defaultTexts.d.ts +2 -0
  60. package/dist/types/theme/defaultTheme/badge.d.ts +2 -0
  61. package/dist/types/theme/defaultTheme/button.d.ts +2 -0
  62. package/dist/types/theme/defaultTheme/checkbox.d.ts +2 -0
  63. package/dist/types/theme/defaultTheme/iconButton.d.ts +2 -0
  64. package/dist/types/theme/defaultTheme/index.d.ts +2 -0
  65. package/dist/types/theme/defaultTheme/popover.d.ts +4 -0
  66. package/dist/types/theme/defaultTheme/textField.d.ts +2 -0
  67. package/dist/types/theme/mui4Theme/index.d.ts +8 -0
  68. package/dist/types/theme/mui5Theme/index.d.ts +8 -0
  69. package/dist/types/theme/tableTheme.d.ts +11 -0
  70. package/dist/types/theme/useCssVariables.d.ts +9 -0
  71. package/dist/types/types.d.ts +285 -0
  72. package/package.json +78 -38
  73. package/dist/cjs/components/cell.js +0 -31
  74. package/dist/cjs/components/columnSelection.js +0 -37
  75. package/dist/cjs/components/defaultFilterComponent.d.ts +0 -22
  76. package/dist/cjs/components/defaultFilterComponent.js +0 -91
  77. package/dist/cjs/components/expandComponent.d.ts +0 -5
  78. package/dist/cjs/components/expandComponent.js +0 -38
  79. package/dist/cjs/components/export.js +0 -48
  80. package/dist/cjs/components/filterComponent.d.ts +0 -5
  81. package/dist/cjs/components/filterComponent.js +0 -25
  82. package/dist/cjs/components/row.js +0 -48
  83. package/dist/cjs/components/selectComponent.js +0 -61
  84. package/dist/cjs/components/sortComponent.js +0 -52
  85. package/dist/cjs/components/textFilterComponent.d.ts +0 -11
  86. package/dist/cjs/components/textFilterComponent.js +0 -70
  87. package/dist/cjs/components/useCommonClasses.d.ts +0 -1
  88. package/dist/cjs/components/useCommonClasses.js +0 -49
  89. package/dist/cjs/components/virtualized.js +0 -98
  90. package/dist/cjs/index.d.ts +0 -6
  91. package/dist/cjs/index.js +0 -18
  92. package/dist/cjs/internalState/calcItems.js +0 -85
  93. package/dist/cjs/internalState/calcProps.js +0 -89
  94. package/dist/cjs/internalState/cleanupState.js +0 -43
  95. package/dist/cjs/internalState/filterColumns.js +0 -10
  96. package/dist/cjs/internalState/syncSelections.js +0 -22
  97. package/dist/cjs/internalState/useTableState.js +0 -62
  98. package/dist/cjs/misc/csvExport.js +0 -15
  99. package/dist/cjs/misc/helpers.js +0 -91
  100. package/dist/cjs/misc/textMatch.js +0 -23
  101. package/dist/cjs/misc/throttle.d.ts +0 -1
  102. package/dist/cjs/misc/throttle.js +0 -30
  103. package/dist/cjs/package.json +0 -1
  104. package/dist/cjs/table.js +0 -69
  105. package/dist/cjs/types.d.ts +0 -134
  106. package/dist/cjs/types.js +0 -2
  107. package/dist/esm/components/cell.d.ts +0 -6
  108. package/dist/esm/components/cell.js +0 -28
  109. package/dist/esm/components/columnSelection.d.ts +0 -2
  110. package/dist/esm/components/columnSelection.js +0 -33
  111. package/dist/esm/components/defaultFilterComponent.d.ts +0 -22
  112. package/dist/esm/components/defaultFilterComponent.js +0 -86
  113. package/dist/esm/components/expandComponent.d.ts +0 -5
  114. package/dist/esm/components/expandComponent.js +0 -34
  115. package/dist/esm/components/export.d.ts +0 -2
  116. package/dist/esm/components/export.js +0 -44
  117. package/dist/esm/components/filterComponent.d.ts +0 -5
  118. package/dist/esm/components/filterComponent.js +0 -21
  119. package/dist/esm/components/row.d.ts +0 -7
  120. package/dist/esm/components/row.js +0 -44
  121. package/dist/esm/components/selectComponent.d.ts +0 -5
  122. package/dist/esm/components/selectComponent.js +0 -57
  123. package/dist/esm/components/sortComponent.d.ts +0 -4
  124. package/dist/esm/components/sortComponent.js +0 -48
  125. package/dist/esm/components/textFilterComponent.d.ts +0 -11
  126. package/dist/esm/components/textFilterComponent.js +0 -65
  127. package/dist/esm/components/useCommonClasses.d.ts +0 -1
  128. package/dist/esm/components/useCommonClasses.js +0 -46
  129. package/dist/esm/components/virtualized.d.ts +0 -6
  130. package/dist/esm/components/virtualized.js +0 -94
  131. package/dist/esm/index.d.ts +0 -6
  132. package/dist/esm/index.js +0 -4
  133. package/dist/esm/internalState/calcItems.d.ts +0 -3
  134. package/dist/esm/internalState/calcItems.js +0 -81
  135. package/dist/esm/internalState/calcProps.d.ts +0 -2
  136. package/dist/esm/internalState/calcProps.js +0 -85
  137. package/dist/esm/internalState/cleanupState.d.ts +0 -3
  138. package/dist/esm/internalState/cleanupState.js +0 -39
  139. package/dist/esm/internalState/filterColumns.d.ts +0 -3
  140. package/dist/esm/internalState/filterColumns.js +0 -6
  141. package/dist/esm/internalState/syncSelections.d.ts +0 -3
  142. package/dist/esm/internalState/syncSelections.js +0 -18
  143. package/dist/esm/internalState/useTableState.d.ts +0 -3
  144. package/dist/esm/internalState/useTableState.js +0 -58
  145. package/dist/esm/misc/csvExport.d.ts +0 -7
  146. package/dist/esm/misc/csvExport.js +0 -11
  147. package/dist/esm/misc/helpers.d.ts +0 -14
  148. package/dist/esm/misc/helpers.js +0 -77
  149. package/dist/esm/misc/textMatch.d.ts +0 -2
  150. package/dist/esm/misc/textMatch.js +0 -18
  151. package/dist/esm/misc/throttle.d.ts +0 -1
  152. package/dist/esm/misc/throttle.js +0 -26
  153. package/dist/esm/table.d.ts +0 -8
  154. package/dist/esm/table.js +0 -63
  155. package/dist/esm/types.d.ts +0 -134
  156. package/dist/esm/types.js +0 -1
@@ -0,0 +1,2475 @@
1
+ "use strict";
2
+ var require$$0 = require("react");
3
+ function _interopDefaultLegacy(e2) {
4
+ return e2 && typeof e2 === "object" && "default" in e2 ? e2 : { "default": e2 };
5
+ }
6
+ var require$$0__default = /* @__PURE__ */ _interopDefaultLegacy(require$$0);
7
+ var propTypes = { exports: {} };
8
+ var ReactPropTypesSecret$1 = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
9
+ var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
10
+ var ReactPropTypesSecret = ReactPropTypesSecret_1;
11
+ function emptyFunction() {
12
+ }
13
+ function emptyFunctionWithReset() {
14
+ }
15
+ emptyFunctionWithReset.resetWarningCache = emptyFunction;
16
+ var factoryWithThrowingShims = function() {
17
+ function shim2(props, propName, componentName, location, propFullName, secret) {
18
+ if (secret === ReactPropTypesSecret) {
19
+ return;
20
+ }
21
+ var err = new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");
22
+ err.name = "Invariant Violation";
23
+ throw err;
24
+ }
25
+ shim2.isRequired = shim2;
26
+ function getShim() {
27
+ return shim2;
28
+ }
29
+ var ReactPropTypes = {
30
+ array: shim2,
31
+ bigint: shim2,
32
+ bool: shim2,
33
+ func: shim2,
34
+ number: shim2,
35
+ object: shim2,
36
+ string: shim2,
37
+ symbol: shim2,
38
+ any: shim2,
39
+ arrayOf: getShim,
40
+ element: shim2,
41
+ elementType: shim2,
42
+ instanceOf: getShim,
43
+ node: shim2,
44
+ objectOf: getShim,
45
+ oneOf: getShim,
46
+ oneOfType: getShim,
47
+ shape: getShim,
48
+ exact: getShim,
49
+ checkPropTypes: emptyFunctionWithReset,
50
+ resetWarningCache: emptyFunction
51
+ };
52
+ ReactPropTypes.PropTypes = ReactPropTypes;
53
+ return ReactPropTypes;
54
+ };
55
+ {
56
+ propTypes.exports = factoryWithThrowingShims();
57
+ }
58
+ var PropTypes = propTypes.exports;
59
+ ({
60
+ render: PropTypes.func,
61
+ children: PropTypes.func,
62
+ date: PropTypes.instanceOf(Date),
63
+ maxDate: PropTypes.instanceOf(Date),
64
+ minDate: PropTypes.instanceOf(Date),
65
+ monthsToDisplay: PropTypes.number,
66
+ firstDayOfWeek: PropTypes.number,
67
+ showOutsideDays: PropTypes.bool,
68
+ offset: PropTypes.number,
69
+ onDateSelected: PropTypes.func.isRequired,
70
+ onOffsetChanged: PropTypes.func,
71
+ selected: PropTypes.oneOfType([PropTypes.arrayOf(Date), PropTypes.instanceOf(Date)])
72
+ });
73
+ function sheetForTag(tag) {
74
+ if (tag.sheet) {
75
+ return tag.sheet;
76
+ }
77
+ for (var i2 = 0; i2 < document.styleSheets.length; i2++) {
78
+ if (document.styleSheets[i2].ownerNode === tag) {
79
+ return document.styleSheets[i2];
80
+ }
81
+ }
82
+ }
83
+ function createStyleElement(options) {
84
+ var tag = document.createElement("style");
85
+ tag.setAttribute("data-emotion", options.key);
86
+ if (options.nonce !== void 0) {
87
+ tag.setAttribute("nonce", options.nonce);
88
+ }
89
+ tag.appendChild(document.createTextNode(""));
90
+ tag.setAttribute("data-s", "");
91
+ return tag;
92
+ }
93
+ var StyleSheet = /* @__PURE__ */ function() {
94
+ function StyleSheet2(options) {
95
+ var _this = this;
96
+ this._insertTag = function(tag) {
97
+ var before;
98
+ if (_this.tags.length === 0) {
99
+ if (_this.insertionPoint) {
100
+ before = _this.insertionPoint.nextSibling;
101
+ } else if (_this.prepend) {
102
+ before = _this.container.firstChild;
103
+ } else {
104
+ before = _this.before;
105
+ }
106
+ } else {
107
+ before = _this.tags[_this.tags.length - 1].nextSibling;
108
+ }
109
+ _this.container.insertBefore(tag, before);
110
+ _this.tags.push(tag);
111
+ };
112
+ this.isSpeedy = options.speedy === void 0 ? true : options.speedy;
113
+ this.tags = [];
114
+ this.ctr = 0;
115
+ this.nonce = options.nonce;
116
+ this.key = options.key;
117
+ this.container = options.container;
118
+ this.prepend = options.prepend;
119
+ this.insertionPoint = options.insertionPoint;
120
+ this.before = null;
121
+ }
122
+ var _proto = StyleSheet2.prototype;
123
+ _proto.hydrate = function hydrate(nodes) {
124
+ nodes.forEach(this._insertTag);
125
+ };
126
+ _proto.insert = function insert(rule) {
127
+ if (this.ctr % (this.isSpeedy ? 65e3 : 1) === 0) {
128
+ this._insertTag(createStyleElement(this));
129
+ }
130
+ var tag = this.tags[this.tags.length - 1];
131
+ if (this.isSpeedy) {
132
+ var sheet = sheetForTag(tag);
133
+ try {
134
+ sheet.insertRule(rule, sheet.cssRules.length);
135
+ } catch (e2) {
136
+ }
137
+ } else {
138
+ tag.appendChild(document.createTextNode(rule));
139
+ }
140
+ this.ctr++;
141
+ };
142
+ _proto.flush = function flush() {
143
+ this.tags.forEach(function(tag) {
144
+ return tag.parentNode && tag.parentNode.removeChild(tag);
145
+ });
146
+ this.tags = [];
147
+ this.ctr = 0;
148
+ };
149
+ return StyleSheet2;
150
+ }();
151
+ var MS = "-ms-";
152
+ var MOZ = "-moz-";
153
+ var WEBKIT = "-webkit-";
154
+ var COMMENT = "comm";
155
+ var RULESET = "rule";
156
+ var DECLARATION = "decl";
157
+ var IMPORT = "@import";
158
+ var KEYFRAMES = "@keyframes";
159
+ var abs = Math.abs;
160
+ var from = String.fromCharCode;
161
+ var assign = Object.assign;
162
+ function hash(value, length2) {
163
+ return (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3);
164
+ }
165
+ function trim(value) {
166
+ return value.trim();
167
+ }
168
+ function match(value, pattern) {
169
+ return (value = pattern.exec(value)) ? value[0] : value;
170
+ }
171
+ function replace(value, pattern, replacement) {
172
+ return value.replace(pattern, replacement);
173
+ }
174
+ function indexof(value, search) {
175
+ return value.indexOf(search);
176
+ }
177
+ function charat(value, index) {
178
+ return value.charCodeAt(index) | 0;
179
+ }
180
+ function substr(value, begin, end) {
181
+ return value.slice(begin, end);
182
+ }
183
+ function strlen(value) {
184
+ return value.length;
185
+ }
186
+ function sizeof(value) {
187
+ return value.length;
188
+ }
189
+ function append(value, array) {
190
+ return array.push(value), value;
191
+ }
192
+ function combine(array, callback) {
193
+ return array.map(callback).join("");
194
+ }
195
+ var line = 1;
196
+ var column = 1;
197
+ var length = 0;
198
+ var position = 0;
199
+ var character = 0;
200
+ var characters = "";
201
+ function node(value, root, parent, type, props, children, length2) {
202
+ return { value, root, parent, type, props, children, line, column, length: length2, return: "" };
203
+ }
204
+ function copy(root, props) {
205
+ return assign(node("", null, null, "", null, null, 0), root, { length: -root.length }, props);
206
+ }
207
+ function char() {
208
+ return character;
209
+ }
210
+ function prev() {
211
+ character = position > 0 ? charat(characters, --position) : 0;
212
+ if (column--, character === 10)
213
+ column = 1, line--;
214
+ return character;
215
+ }
216
+ function next() {
217
+ character = position < length ? charat(characters, position++) : 0;
218
+ if (column++, character === 10)
219
+ column = 1, line++;
220
+ return character;
221
+ }
222
+ function peek() {
223
+ return charat(characters, position);
224
+ }
225
+ function caret() {
226
+ return position;
227
+ }
228
+ function slice(begin, end) {
229
+ return substr(characters, begin, end);
230
+ }
231
+ function token(type) {
232
+ switch (type) {
233
+ case 0:
234
+ case 9:
235
+ case 10:
236
+ case 13:
237
+ case 32:
238
+ return 5;
239
+ case 33:
240
+ case 43:
241
+ case 44:
242
+ case 47:
243
+ case 62:
244
+ case 64:
245
+ case 126:
246
+ case 59:
247
+ case 123:
248
+ case 125:
249
+ return 4;
250
+ case 58:
251
+ return 3;
252
+ case 34:
253
+ case 39:
254
+ case 40:
255
+ case 91:
256
+ return 2;
257
+ case 41:
258
+ case 93:
259
+ return 1;
260
+ }
261
+ return 0;
262
+ }
263
+ function alloc(value) {
264
+ return line = column = 1, length = strlen(characters = value), position = 0, [];
265
+ }
266
+ function dealloc(value) {
267
+ return characters = "", value;
268
+ }
269
+ function delimit(type) {
270
+ return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
271
+ }
272
+ function whitespace(type) {
273
+ while (character = peek())
274
+ if (character < 33)
275
+ next();
276
+ else
277
+ break;
278
+ return token(type) > 2 || token(character) > 3 ? "" : " ";
279
+ }
280
+ function escaping(index, count) {
281
+ while (--count && next())
282
+ if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97)
283
+ break;
284
+ return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
285
+ }
286
+ function delimiter(type) {
287
+ while (next())
288
+ switch (character) {
289
+ case type:
290
+ return position;
291
+ case 34:
292
+ case 39:
293
+ if (type !== 34 && type !== 39)
294
+ delimiter(character);
295
+ break;
296
+ case 40:
297
+ if (type === 41)
298
+ delimiter(type);
299
+ break;
300
+ case 92:
301
+ next();
302
+ break;
303
+ }
304
+ return position;
305
+ }
306
+ function commenter(type, index) {
307
+ while (next())
308
+ if (type + character === 47 + 10)
309
+ break;
310
+ else if (type + character === 42 + 42 && peek() === 47)
311
+ break;
312
+ return "/*" + slice(index, position - 1) + "*" + from(type === 47 ? type : next());
313
+ }
314
+ function identifier(index) {
315
+ while (!token(peek()))
316
+ next();
317
+ return slice(index, position);
318
+ }
319
+ function compile(value) {
320
+ return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value));
321
+ }
322
+ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
323
+ var index = 0;
324
+ var offset = 0;
325
+ var length2 = pseudo;
326
+ var atrule = 0;
327
+ var property = 0;
328
+ var previous = 0;
329
+ var variable = 1;
330
+ var scanning = 1;
331
+ var ampersand = 1;
332
+ var character2 = 0;
333
+ var type = "";
334
+ var props = rules;
335
+ var children = rulesets;
336
+ var reference = rule;
337
+ var characters2 = type;
338
+ while (scanning)
339
+ switch (previous = character2, character2 = next()) {
340
+ case 40:
341
+ if (previous != 108 && characters2.charCodeAt(length2 - 1) == 58) {
342
+ if (indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f") != -1)
343
+ ampersand = -1;
344
+ break;
345
+ }
346
+ case 34:
347
+ case 39:
348
+ case 91:
349
+ characters2 += delimit(character2);
350
+ break;
351
+ case 9:
352
+ case 10:
353
+ case 13:
354
+ case 32:
355
+ characters2 += whitespace(previous);
356
+ break;
357
+ case 92:
358
+ characters2 += escaping(caret() - 1, 7);
359
+ continue;
360
+ case 47:
361
+ switch (peek()) {
362
+ case 42:
363
+ case 47:
364
+ append(comment(commenter(next(), caret()), root, parent), declarations);
365
+ break;
366
+ default:
367
+ characters2 += "/";
368
+ }
369
+ break;
370
+ case 123 * variable:
371
+ points[index++] = strlen(characters2) * ampersand;
372
+ case 125 * variable:
373
+ case 59:
374
+ case 0:
375
+ switch (character2) {
376
+ case 0:
377
+ case 125:
378
+ scanning = 0;
379
+ case 59 + offset:
380
+ if (property > 0 && strlen(characters2) - length2)
381
+ append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2), declarations);
382
+ break;
383
+ case 59:
384
+ characters2 += ";";
385
+ default:
386
+ append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props = [], children = [], length2), rulesets);
387
+ if (character2 === 123)
388
+ if (offset === 0)
389
+ parse(characters2, root, reference, reference, props, rulesets, length2, points, children);
390
+ else
391
+ switch (atrule) {
392
+ case 100:
393
+ case 109:
394
+ case 115:
395
+ 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);
396
+ break;
397
+ default:
398
+ parse(characters2, reference, reference, reference, [""], children, 0, points, children);
399
+ }
400
+ }
401
+ index = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
402
+ break;
403
+ case 58:
404
+ length2 = 1 + strlen(characters2), property = previous;
405
+ default:
406
+ if (variable < 1) {
407
+ if (character2 == 123)
408
+ --variable;
409
+ else if (character2 == 125 && variable++ == 0 && prev() == 125)
410
+ continue;
411
+ }
412
+ switch (characters2 += from(character2), character2 * variable) {
413
+ case 38:
414
+ ampersand = offset > 0 ? 1 : (characters2 += "\f", -1);
415
+ break;
416
+ case 44:
417
+ points[index++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
418
+ break;
419
+ case 64:
420
+ if (peek() === 45)
421
+ characters2 += delimit(next());
422
+ atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++;
423
+ break;
424
+ case 45:
425
+ if (previous === 45 && strlen(characters2) == 2)
426
+ variable = 0;
427
+ }
428
+ }
429
+ return rulesets;
430
+ }
431
+ function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length2) {
432
+ var post = offset - 1;
433
+ var rule = offset === 0 ? rules : [""];
434
+ var size = sizeof(rule);
435
+ for (var i2 = 0, j2 = 0, k2 = 0; i2 < index; ++i2)
436
+ for (var x2 = 0, y2 = substr(value, post + 1, post = abs(j2 = points[i2])), z2 = value; x2 < size; ++x2)
437
+ if (z2 = trim(j2 > 0 ? rule[x2] + " " + y2 : replace(y2, /&\f/g, rule[x2])))
438
+ props[k2++] = z2;
439
+ return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length2);
440
+ }
441
+ function comment(value, root, parent) {
442
+ return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0);
443
+ }
444
+ function declaration(value, root, parent, length2) {
445
+ return node(value, root, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2);
446
+ }
447
+ function prefix(value, length2) {
448
+ switch (hash(value, length2)) {
449
+ case 5103:
450
+ return WEBKIT + "print-" + value + value;
451
+ case 5737:
452
+ case 4201:
453
+ case 3177:
454
+ case 3433:
455
+ case 1641:
456
+ case 4457:
457
+ case 2921:
458
+ case 5572:
459
+ case 6356:
460
+ case 5844:
461
+ case 3191:
462
+ case 6645:
463
+ case 3005:
464
+ case 6391:
465
+ case 5879:
466
+ case 5623:
467
+ case 6135:
468
+ case 4599:
469
+ case 4855:
470
+ case 4215:
471
+ case 6389:
472
+ case 5109:
473
+ case 5365:
474
+ case 5621:
475
+ case 3829:
476
+ return WEBKIT + value + value;
477
+ case 5349:
478
+ case 4246:
479
+ case 4810:
480
+ case 6968:
481
+ case 2756:
482
+ return WEBKIT + value + MOZ + value + MS + value + value;
483
+ case 6828:
484
+ case 4268:
485
+ return WEBKIT + value + MS + value + value;
486
+ case 6165:
487
+ return WEBKIT + value + MS + "flex-" + value + value;
488
+ case 5187:
489
+ return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
490
+ case 5443:
491
+ return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/, "") + value;
492
+ case 4675:
493
+ return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/, "") + value;
494
+ case 5548:
495
+ return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
496
+ case 5292:
497
+ return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
498
+ case 6060:
499
+ return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
500
+ case 4554:
501
+ return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
502
+ case 6187:
503
+ return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
504
+ case 5495:
505
+ case 3959:
506
+ return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
507
+ case 4968:
508
+ return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value;
509
+ case 4095:
510
+ case 3583:
511
+ case 4068:
512
+ case 2532:
513
+ return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
514
+ case 8116:
515
+ case 7059:
516
+ case 5753:
517
+ case 5535:
518
+ case 5445:
519
+ case 5701:
520
+ case 4933:
521
+ case 4677:
522
+ case 5533:
523
+ case 5789:
524
+ case 5021:
525
+ case 4765:
526
+ if (strlen(value) - 1 - length2 > 6)
527
+ switch (charat(value, length2 + 1)) {
528
+ case 109:
529
+ if (charat(value, length2 + 4) !== 45)
530
+ break;
531
+ case 102:
532
+ return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
533
+ case 115:
534
+ return ~indexof(value, "stretch") ? prefix(replace(value, "stretch", "fill-available"), length2) + value : value;
535
+ }
536
+ break;
537
+ case 4949:
538
+ if (charat(value, length2 + 1) !== 115)
539
+ break;
540
+ case 6444:
541
+ switch (charat(value, strlen(value) - 3 - (~indexof(value, "!important") && 10))) {
542
+ case 107:
543
+ return replace(value, ":", ":" + WEBKIT) + value;
544
+ case 101:
545
+ return replace(value, /(.+:)([^;!]+)(;|!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
546
+ }
547
+ break;
548
+ case 5936:
549
+ switch (charat(value, length2 + 11)) {
550
+ case 114:
551
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
552
+ case 108:
553
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
554
+ case 45:
555
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
556
+ }
557
+ return WEBKIT + value + MS + value + value;
558
+ }
559
+ return value;
560
+ }
561
+ function serialize(children, callback) {
562
+ var output = "";
563
+ var length2 = sizeof(children);
564
+ for (var i2 = 0; i2 < length2; i2++)
565
+ output += callback(children[i2], i2, children, callback) || "";
566
+ return output;
567
+ }
568
+ function stringify(element, index, children, callback) {
569
+ switch (element.type) {
570
+ case IMPORT:
571
+ case DECLARATION:
572
+ return element.return = element.return || element.value;
573
+ case COMMENT:
574
+ return "";
575
+ case KEYFRAMES:
576
+ return element.return = element.value + "{" + serialize(element.children, callback) + "}";
577
+ case RULESET:
578
+ element.value = element.props.join(",");
579
+ }
580
+ return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
581
+ }
582
+ function middleware(collection) {
583
+ var length2 = sizeof(collection);
584
+ return function(element, index, children, callback) {
585
+ var output = "";
586
+ for (var i2 = 0; i2 < length2; i2++)
587
+ output += collection[i2](element, index, children, callback) || "";
588
+ return output;
589
+ };
590
+ }
591
+ function rulesheet(callback) {
592
+ return function(element) {
593
+ if (!element.root) {
594
+ if (element = element.return)
595
+ callback(element);
596
+ }
597
+ };
598
+ }
599
+ function prefixer(element, index, children, callback) {
600
+ if (element.length > -1) {
601
+ if (!element.return)
602
+ switch (element.type) {
603
+ case DECLARATION:
604
+ element.return = prefix(element.value, element.length);
605
+ break;
606
+ case KEYFRAMES:
607
+ return serialize([copy(element, { value: replace(element.value, "@", "@" + WEBKIT) })], callback);
608
+ case RULESET:
609
+ if (element.length)
610
+ return combine(element.props, function(value) {
611
+ switch (match(value, /(::plac\w+|:read-\w+)/)) {
612
+ case ":read-only":
613
+ case ":read-write":
614
+ return serialize([copy(element, { props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")] })], callback);
615
+ case "::placeholder":
616
+ return serialize([
617
+ copy(element, { props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")] }),
618
+ copy(element, { props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")] }),
619
+ copy(element, { props: [replace(value, /:(plac\w+)/, MS + "input-$1")] })
620
+ ], callback);
621
+ }
622
+ return "";
623
+ });
624
+ }
625
+ }
626
+ }
627
+ function memoize(fn2) {
628
+ var cache = /* @__PURE__ */ Object.create(null);
629
+ return function(arg) {
630
+ if (cache[arg] === void 0)
631
+ cache[arg] = fn2(arg);
632
+ return cache[arg];
633
+ };
634
+ }
635
+ var identifierWithPointTracking = function identifierWithPointTracking2(begin, points, index) {
636
+ var previous = 0;
637
+ var character2 = 0;
638
+ while (true) {
639
+ previous = character2;
640
+ character2 = peek();
641
+ if (previous === 38 && character2 === 12) {
642
+ points[index] = 1;
643
+ }
644
+ if (token(character2)) {
645
+ break;
646
+ }
647
+ next();
648
+ }
649
+ return slice(begin, position);
650
+ };
651
+ var toRules = function toRules2(parsed, points) {
652
+ var index = -1;
653
+ var character2 = 44;
654
+ do {
655
+ switch (token(character2)) {
656
+ case 0:
657
+ if (character2 === 38 && peek() === 12) {
658
+ points[index] = 1;
659
+ }
660
+ parsed[index] += identifierWithPointTracking(position - 1, points, index);
661
+ break;
662
+ case 2:
663
+ parsed[index] += delimit(character2);
664
+ break;
665
+ case 4:
666
+ if (character2 === 44) {
667
+ parsed[++index] = peek() === 58 ? "&\f" : "";
668
+ points[index] = parsed[index].length;
669
+ break;
670
+ }
671
+ default:
672
+ parsed[index] += from(character2);
673
+ }
674
+ } while (character2 = next());
675
+ return parsed;
676
+ };
677
+ var getRules = function getRules2(value, points) {
678
+ return dealloc(toRules(alloc(value), points));
679
+ };
680
+ var fixedElements = /* @__PURE__ */ new WeakMap();
681
+ var compat = function compat2(element) {
682
+ if (element.type !== "rule" || !element.parent || element.length < 1) {
683
+ return;
684
+ }
685
+ var value = element.value, parent = element.parent;
686
+ var isImplicitRule = element.column === parent.column && element.line === parent.line;
687
+ while (parent.type !== "rule") {
688
+ parent = parent.parent;
689
+ if (!parent)
690
+ return;
691
+ }
692
+ if (element.props.length === 1 && value.charCodeAt(0) !== 58 && !fixedElements.get(parent)) {
693
+ return;
694
+ }
695
+ if (isImplicitRule) {
696
+ return;
697
+ }
698
+ fixedElements.set(element, true);
699
+ var points = [];
700
+ var rules = getRules(value, points);
701
+ var parentRules = parent.props;
702
+ for (var i2 = 0, k2 = 0; i2 < rules.length; i2++) {
703
+ for (var j2 = 0; j2 < parentRules.length; j2++, k2++) {
704
+ element.props[k2] = points[i2] ? rules[i2].replace(/&\f/g, parentRules[j2]) : parentRules[j2] + " " + rules[i2];
705
+ }
706
+ }
707
+ };
708
+ var removeLabel = function removeLabel2(element) {
709
+ if (element.type === "decl") {
710
+ var value = element.value;
711
+ if (value.charCodeAt(0) === 108 && value.charCodeAt(2) === 98) {
712
+ element["return"] = "";
713
+ element.value = "";
714
+ }
715
+ }
716
+ };
717
+ var defaultStylisPlugins = [prefixer];
718
+ var createCache = function createCache2(options) {
719
+ var key = options.key;
720
+ if (key === "css") {
721
+ var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])");
722
+ Array.prototype.forEach.call(ssrStyles, function(node2) {
723
+ var dataEmotionAttribute = node2.getAttribute("data-emotion");
724
+ if (dataEmotionAttribute.indexOf(" ") === -1) {
725
+ return;
726
+ }
727
+ document.head.appendChild(node2);
728
+ node2.setAttribute("data-s", "");
729
+ });
730
+ }
731
+ var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
732
+ var inserted = {};
733
+ var container;
734
+ var nodesToHydrate = [];
735
+ {
736
+ container = options.container || document.head;
737
+ Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="' + key + ' "]'), function(node2) {
738
+ var attrib = node2.getAttribute("data-emotion").split(" ");
739
+ for (var i2 = 1; i2 < attrib.length; i2++) {
740
+ inserted[attrib[i2]] = true;
741
+ }
742
+ nodesToHydrate.push(node2);
743
+ });
744
+ }
745
+ var _insert;
746
+ var omnipresentPlugins = [compat, removeLabel];
747
+ {
748
+ var currentSheet;
749
+ var finalizingPlugins = [stringify, rulesheet(function(rule) {
750
+ currentSheet.insert(rule);
751
+ })];
752
+ var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
753
+ var stylis = function stylis2(styles) {
754
+ return serialize(compile(styles), serializer);
755
+ };
756
+ _insert = function insert(selector, serialized, sheet, shouldCache) {
757
+ currentSheet = sheet;
758
+ stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
759
+ if (shouldCache) {
760
+ cache.inserted[serialized.name] = true;
761
+ }
762
+ };
763
+ }
764
+ var cache = {
765
+ key,
766
+ sheet: new StyleSheet({
767
+ key,
768
+ container,
769
+ nonce: options.nonce,
770
+ speedy: options.speedy,
771
+ prepend: options.prepend,
772
+ insertionPoint: options.insertionPoint
773
+ }),
774
+ nonce: options.nonce,
775
+ inserted,
776
+ registered: {},
777
+ insert: _insert
778
+ };
779
+ cache.sheet.hydrate(nodesToHydrate);
780
+ return cache;
781
+ };
782
+ var reactIs$1 = { exports: {} };
783
+ var reactIs_production_min = {};
784
+ /** @license React v16.13.1
785
+ * react-is.production.min.js
786
+ *
787
+ * Copyright (c) Facebook, Inc. and its affiliates.
788
+ *
789
+ * This source code is licensed under the MIT license found in the
790
+ * LICENSE file in the root directory of this source tree.
791
+ */
792
+ var b$1 = typeof Symbol === "function" && Symbol.for, c$1 = b$1 ? Symbol.for("react.element") : 60103, d$1 = b$1 ? Symbol.for("react.portal") : 60106, e$1 = b$1 ? Symbol.for("react.fragment") : 60107, f$2 = b$1 ? Symbol.for("react.strict_mode") : 60108, g$2 = b$1 ? Symbol.for("react.profiler") : 60114, h$4 = b$1 ? Symbol.for("react.provider") : 60109, k$2 = b$1 ? Symbol.for("react.context") : 60110, l$2 = b$1 ? Symbol.for("react.async_mode") : 60111, m$3 = b$1 ? Symbol.for("react.concurrent_mode") : 60111, n$4 = b$1 ? Symbol.for("react.forward_ref") : 60112, p$4 = b$1 ? Symbol.for("react.suspense") : 60113, q$4 = b$1 ? Symbol.for("react.suspense_list") : 60120, r$3 = b$1 ? Symbol.for("react.memo") : 60115, t$3 = b$1 ? Symbol.for("react.lazy") : 60116, v$2 = b$1 ? Symbol.for("react.block") : 60121, w$2 = b$1 ? Symbol.for("react.fundamental") : 60117, x$1 = b$1 ? Symbol.for("react.responder") : 60118, y$1 = b$1 ? Symbol.for("react.scope") : 60119;
793
+ function z$1(a2) {
794
+ if (typeof a2 === "object" && a2 !== null) {
795
+ var u2 = a2.$$typeof;
796
+ switch (u2) {
797
+ case c$1:
798
+ switch (a2 = a2.type, a2) {
799
+ case l$2:
800
+ case m$3:
801
+ case e$1:
802
+ case g$2:
803
+ case f$2:
804
+ case p$4:
805
+ return a2;
806
+ default:
807
+ switch (a2 = a2 && a2.$$typeof, a2) {
808
+ case k$2:
809
+ case n$4:
810
+ case t$3:
811
+ case r$3:
812
+ case h$4:
813
+ return a2;
814
+ default:
815
+ return u2;
816
+ }
817
+ }
818
+ case d$1:
819
+ return u2;
820
+ }
821
+ }
822
+ }
823
+ function A$1(a2) {
824
+ return z$1(a2) === m$3;
825
+ }
826
+ reactIs_production_min.AsyncMode = l$2;
827
+ reactIs_production_min.ConcurrentMode = m$3;
828
+ reactIs_production_min.ContextConsumer = k$2;
829
+ reactIs_production_min.ContextProvider = h$4;
830
+ reactIs_production_min.Element = c$1;
831
+ reactIs_production_min.ForwardRef = n$4;
832
+ reactIs_production_min.Fragment = e$1;
833
+ reactIs_production_min.Lazy = t$3;
834
+ reactIs_production_min.Memo = r$3;
835
+ reactIs_production_min.Portal = d$1;
836
+ reactIs_production_min.Profiler = g$2;
837
+ reactIs_production_min.StrictMode = f$2;
838
+ reactIs_production_min.Suspense = p$4;
839
+ reactIs_production_min.isAsyncMode = function(a2) {
840
+ return A$1(a2) || z$1(a2) === l$2;
841
+ };
842
+ reactIs_production_min.isConcurrentMode = A$1;
843
+ reactIs_production_min.isContextConsumer = function(a2) {
844
+ return z$1(a2) === k$2;
845
+ };
846
+ reactIs_production_min.isContextProvider = function(a2) {
847
+ return z$1(a2) === h$4;
848
+ };
849
+ reactIs_production_min.isElement = function(a2) {
850
+ return typeof a2 === "object" && a2 !== null && a2.$$typeof === c$1;
851
+ };
852
+ reactIs_production_min.isForwardRef = function(a2) {
853
+ return z$1(a2) === n$4;
854
+ };
855
+ reactIs_production_min.isFragment = function(a2) {
856
+ return z$1(a2) === e$1;
857
+ };
858
+ reactIs_production_min.isLazy = function(a2) {
859
+ return z$1(a2) === t$3;
860
+ };
861
+ reactIs_production_min.isMemo = function(a2) {
862
+ return z$1(a2) === r$3;
863
+ };
864
+ reactIs_production_min.isPortal = function(a2) {
865
+ return z$1(a2) === d$1;
866
+ };
867
+ reactIs_production_min.isProfiler = function(a2) {
868
+ return z$1(a2) === g$2;
869
+ };
870
+ reactIs_production_min.isStrictMode = function(a2) {
871
+ return z$1(a2) === f$2;
872
+ };
873
+ reactIs_production_min.isSuspense = function(a2) {
874
+ return z$1(a2) === p$4;
875
+ };
876
+ reactIs_production_min.isValidElementType = function(a2) {
877
+ return typeof a2 === "string" || typeof a2 === "function" || a2 === e$1 || a2 === m$3 || a2 === g$2 || a2 === f$2 || a2 === p$4 || a2 === q$4 || typeof a2 === "object" && a2 !== null && (a2.$$typeof === t$3 || a2.$$typeof === r$3 || a2.$$typeof === h$4 || a2.$$typeof === k$2 || a2.$$typeof === n$4 || a2.$$typeof === w$2 || a2.$$typeof === x$1 || a2.$$typeof === y$1 || a2.$$typeof === v$2);
878
+ };
879
+ reactIs_production_min.typeOf = z$1;
880
+ {
881
+ reactIs$1.exports = reactIs_production_min;
882
+ }
883
+ var reactIs = reactIs$1.exports;
884
+ var FORWARD_REF_STATICS = {
885
+ "$$typeof": true,
886
+ render: true,
887
+ defaultProps: true,
888
+ displayName: true,
889
+ propTypes: true
890
+ };
891
+ var MEMO_STATICS = {
892
+ "$$typeof": true,
893
+ compare: true,
894
+ defaultProps: true,
895
+ displayName: true,
896
+ propTypes: true,
897
+ type: true
898
+ };
899
+ var TYPE_STATICS = {};
900
+ TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
901
+ TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
902
+ var isBrowser = true;
903
+ function getRegisteredStyles(registered, registeredStyles, classNames) {
904
+ var rawClassName = "";
905
+ classNames.split(" ").forEach(function(className) {
906
+ if (registered[className] !== void 0) {
907
+ registeredStyles.push(registered[className] + ";");
908
+ } else {
909
+ rawClassName += className + " ";
910
+ }
911
+ });
912
+ return rawClassName;
913
+ }
914
+ var insertStyles = function insertStyles2(cache, serialized, isStringTag) {
915
+ var className = cache.key + "-" + serialized.name;
916
+ if ((isStringTag === false || isBrowser === false) && cache.registered[className] === void 0) {
917
+ cache.registered[className] = serialized.styles;
918
+ }
919
+ if (cache.inserted[serialized.name] === void 0) {
920
+ var current = serialized;
921
+ do {
922
+ cache.insert(serialized === current ? "." + className : "", current, cache.sheet, true);
923
+ current = current.next;
924
+ } while (current !== void 0);
925
+ }
926
+ };
927
+ function murmur2(str) {
928
+ var h2 = 0;
929
+ var k2, i2 = 0, len = str.length;
930
+ for (; len >= 4; ++i2, len -= 4) {
931
+ k2 = str.charCodeAt(i2) & 255 | (str.charCodeAt(++i2) & 255) << 8 | (str.charCodeAt(++i2) & 255) << 16 | (str.charCodeAt(++i2) & 255) << 24;
932
+ k2 = (k2 & 65535) * 1540483477 + ((k2 >>> 16) * 59797 << 16);
933
+ k2 ^= k2 >>> 24;
934
+ h2 = (k2 & 65535) * 1540483477 + ((k2 >>> 16) * 59797 << 16) ^ (h2 & 65535) * 1540483477 + ((h2 >>> 16) * 59797 << 16);
935
+ }
936
+ switch (len) {
937
+ case 3:
938
+ h2 ^= (str.charCodeAt(i2 + 2) & 255) << 16;
939
+ case 2:
940
+ h2 ^= (str.charCodeAt(i2 + 1) & 255) << 8;
941
+ case 1:
942
+ h2 ^= str.charCodeAt(i2) & 255;
943
+ h2 = (h2 & 65535) * 1540483477 + ((h2 >>> 16) * 59797 << 16);
944
+ }
945
+ h2 ^= h2 >>> 13;
946
+ h2 = (h2 & 65535) * 1540483477 + ((h2 >>> 16) * 59797 << 16);
947
+ return ((h2 ^ h2 >>> 15) >>> 0).toString(36);
948
+ }
949
+ var unitlessKeys = {
950
+ animationIterationCount: 1,
951
+ borderImageOutset: 1,
952
+ borderImageSlice: 1,
953
+ borderImageWidth: 1,
954
+ boxFlex: 1,
955
+ boxFlexGroup: 1,
956
+ boxOrdinalGroup: 1,
957
+ columnCount: 1,
958
+ columns: 1,
959
+ flex: 1,
960
+ flexGrow: 1,
961
+ flexPositive: 1,
962
+ flexShrink: 1,
963
+ flexNegative: 1,
964
+ flexOrder: 1,
965
+ gridRow: 1,
966
+ gridRowEnd: 1,
967
+ gridRowSpan: 1,
968
+ gridRowStart: 1,
969
+ gridColumn: 1,
970
+ gridColumnEnd: 1,
971
+ gridColumnSpan: 1,
972
+ gridColumnStart: 1,
973
+ msGridRow: 1,
974
+ msGridRowSpan: 1,
975
+ msGridColumn: 1,
976
+ msGridColumnSpan: 1,
977
+ fontWeight: 1,
978
+ lineHeight: 1,
979
+ opacity: 1,
980
+ order: 1,
981
+ orphans: 1,
982
+ tabSize: 1,
983
+ widows: 1,
984
+ zIndex: 1,
985
+ zoom: 1,
986
+ WebkitLineClamp: 1,
987
+ fillOpacity: 1,
988
+ floodOpacity: 1,
989
+ stopOpacity: 1,
990
+ strokeDasharray: 1,
991
+ strokeDashoffset: 1,
992
+ strokeMiterlimit: 1,
993
+ strokeOpacity: 1,
994
+ strokeWidth: 1
995
+ };
996
+ var hyphenateRegex = /[A-Z]|^ms/g;
997
+ var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
998
+ var isCustomProperty = function isCustomProperty2(property) {
999
+ return property.charCodeAt(1) === 45;
1000
+ };
1001
+ var isProcessableValue = function isProcessableValue2(value) {
1002
+ return value != null && typeof value !== "boolean";
1003
+ };
1004
+ var processStyleName = /* @__PURE__ */ memoize(function(styleName) {
1005
+ return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, "-$&").toLowerCase();
1006
+ });
1007
+ var processStyleValue = function processStyleValue2(key, value) {
1008
+ switch (key) {
1009
+ case "animation":
1010
+ case "animationName": {
1011
+ if (typeof value === "string") {
1012
+ return value.replace(animationRegex, function(match2, p1, p2) {
1013
+ cursor = {
1014
+ name: p1,
1015
+ styles: p2,
1016
+ next: cursor
1017
+ };
1018
+ return p1;
1019
+ });
1020
+ }
1021
+ }
1022
+ }
1023
+ if (unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value === "number" && value !== 0) {
1024
+ return value + "px";
1025
+ }
1026
+ return value;
1027
+ };
1028
+ function handleInterpolation(mergedProps, registered, interpolation) {
1029
+ if (interpolation == null) {
1030
+ return "";
1031
+ }
1032
+ if (interpolation.__emotion_styles !== void 0) {
1033
+ return interpolation;
1034
+ }
1035
+ switch (typeof interpolation) {
1036
+ case "boolean": {
1037
+ return "";
1038
+ }
1039
+ case "object": {
1040
+ if (interpolation.anim === 1) {
1041
+ cursor = {
1042
+ name: interpolation.name,
1043
+ styles: interpolation.styles,
1044
+ next: cursor
1045
+ };
1046
+ return interpolation.name;
1047
+ }
1048
+ if (interpolation.styles !== void 0) {
1049
+ var next2 = interpolation.next;
1050
+ if (next2 !== void 0) {
1051
+ while (next2 !== void 0) {
1052
+ cursor = {
1053
+ name: next2.name,
1054
+ styles: next2.styles,
1055
+ next: cursor
1056
+ };
1057
+ next2 = next2.next;
1058
+ }
1059
+ }
1060
+ var styles = interpolation.styles + ";";
1061
+ return styles;
1062
+ }
1063
+ return createStringFromObject(mergedProps, registered, interpolation);
1064
+ }
1065
+ case "function": {
1066
+ if (mergedProps !== void 0) {
1067
+ var previousCursor = cursor;
1068
+ var result = interpolation(mergedProps);
1069
+ cursor = previousCursor;
1070
+ return handleInterpolation(mergedProps, registered, result);
1071
+ }
1072
+ break;
1073
+ }
1074
+ }
1075
+ if (registered == null) {
1076
+ return interpolation;
1077
+ }
1078
+ var cached = registered[interpolation];
1079
+ return cached !== void 0 ? cached : interpolation;
1080
+ }
1081
+ function createStringFromObject(mergedProps, registered, obj) {
1082
+ var string = "";
1083
+ if (Array.isArray(obj)) {
1084
+ for (var i2 = 0; i2 < obj.length; i2++) {
1085
+ string += handleInterpolation(mergedProps, registered, obj[i2]) + ";";
1086
+ }
1087
+ } else {
1088
+ for (var _key in obj) {
1089
+ var value = obj[_key];
1090
+ if (typeof value !== "object") {
1091
+ if (registered != null && registered[value] !== void 0) {
1092
+ string += _key + "{" + registered[value] + "}";
1093
+ } else if (isProcessableValue(value)) {
1094
+ string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";";
1095
+ }
1096
+ } else {
1097
+ if (_key === "NO_COMPONENT_SELECTOR" && false) {
1098
+ throw new Error("Component selectors can only be used in conjunction with @emotion/babel-plugin.");
1099
+ }
1100
+ if (Array.isArray(value) && typeof value[0] === "string" && (registered == null || registered[value[0]] === void 0)) {
1101
+ for (var _i = 0; _i < value.length; _i++) {
1102
+ if (isProcessableValue(value[_i])) {
1103
+ string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";";
1104
+ }
1105
+ }
1106
+ } else {
1107
+ var interpolated = handleInterpolation(mergedProps, registered, value);
1108
+ switch (_key) {
1109
+ case "animation":
1110
+ case "animationName": {
1111
+ string += processStyleName(_key) + ":" + interpolated + ";";
1112
+ break;
1113
+ }
1114
+ default: {
1115
+ string += _key + "{" + interpolated + "}";
1116
+ }
1117
+ }
1118
+ }
1119
+ }
1120
+ }
1121
+ }
1122
+ return string;
1123
+ }
1124
+ var labelPattern = /label:\s*([^\s;\n{]+)\s*(;|$)/g;
1125
+ var cursor;
1126
+ var serializeStyles = function serializeStyles2(args, registered, mergedProps) {
1127
+ if (args.length === 1 && typeof args[0] === "object" && args[0] !== null && args[0].styles !== void 0) {
1128
+ return args[0];
1129
+ }
1130
+ var stringMode = true;
1131
+ var styles = "";
1132
+ cursor = void 0;
1133
+ var strings = args[0];
1134
+ if (strings == null || strings.raw === void 0) {
1135
+ stringMode = false;
1136
+ styles += handleInterpolation(mergedProps, registered, strings);
1137
+ } else {
1138
+ styles += strings[0];
1139
+ }
1140
+ for (var i2 = 1; i2 < args.length; i2++) {
1141
+ styles += handleInterpolation(mergedProps, registered, args[i2]);
1142
+ if (stringMode) {
1143
+ styles += strings[i2];
1144
+ }
1145
+ }
1146
+ labelPattern.lastIndex = 0;
1147
+ var identifierName = "";
1148
+ var match2;
1149
+ while ((match2 = labelPattern.exec(styles)) !== null) {
1150
+ identifierName += "-" + match2[1];
1151
+ }
1152
+ var name = murmur2(styles) + identifierName;
1153
+ return {
1154
+ name,
1155
+ styles,
1156
+ next: cursor
1157
+ };
1158
+ };
1159
+ var hasOwnProperty$1 = {}.hasOwnProperty;
1160
+ var EmotionCacheContext = /* @__PURE__ */ require$$0.createContext(typeof HTMLElement !== "undefined" ? /* @__PURE__ */ createCache({
1161
+ key: "css"
1162
+ }) : null);
1163
+ EmotionCacheContext.Provider;
1164
+ var withEmotionCache = function withEmotionCache2(func) {
1165
+ return /* @__PURE__ */ require$$0.forwardRef(function(props, ref) {
1166
+ var cache = require$$0.useContext(EmotionCacheContext);
1167
+ return func(props, cache, ref);
1168
+ });
1169
+ };
1170
+ var ThemeContext = /* @__PURE__ */ require$$0.createContext({});
1171
+ var typePropName = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__";
1172
+ var createEmotionProps = function createEmotionProps2(type, props) {
1173
+ var newProps = {};
1174
+ for (var key in props) {
1175
+ if (hasOwnProperty$1.call(props, key)) {
1176
+ newProps[key] = props[key];
1177
+ }
1178
+ }
1179
+ newProps[typePropName] = type;
1180
+ return newProps;
1181
+ };
1182
+ var Noop$1 = function Noop2() {
1183
+ return null;
1184
+ };
1185
+ var Emotion = /* @__PURE__ */ withEmotionCache(function(props, cache, ref) {
1186
+ var cssProp = props.css;
1187
+ if (typeof cssProp === "string" && cache.registered[cssProp] !== void 0) {
1188
+ cssProp = cache.registered[cssProp];
1189
+ }
1190
+ var type = props[typePropName];
1191
+ var registeredStyles = [cssProp];
1192
+ var className = "";
1193
+ if (typeof props.className === "string") {
1194
+ className = getRegisteredStyles(cache.registered, registeredStyles, props.className);
1195
+ } else if (props.className != null) {
1196
+ className = props.className + " ";
1197
+ }
1198
+ var serialized = serializeStyles(registeredStyles, void 0, require$$0.useContext(ThemeContext));
1199
+ insertStyles(cache, serialized, typeof type === "string");
1200
+ className += cache.key + "-" + serialized.name;
1201
+ var newProps = {};
1202
+ for (var key in props) {
1203
+ if (hasOwnProperty$1.call(props, key) && key !== "css" && key !== typePropName && true) {
1204
+ newProps[key] = props[key];
1205
+ }
1206
+ }
1207
+ newProps.ref = ref;
1208
+ newProps.className = className;
1209
+ var ele = /* @__PURE__ */ require$$0.createElement(type, newProps);
1210
+ var possiblyStyleElement = /* @__PURE__ */ require$$0.createElement(Noop$1, null);
1211
+ return /* @__PURE__ */ require$$0.createElement(require$$0.Fragment, null, possiblyStyleElement, ele);
1212
+ });
1213
+ function css() {
1214
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1215
+ args[_key] = arguments[_key];
1216
+ }
1217
+ return serializeStyles(args);
1218
+ }
1219
+ var classnames = function classnames2(args) {
1220
+ var len = args.length;
1221
+ var i2 = 0;
1222
+ var cls = "";
1223
+ for (; i2 < len; i2++) {
1224
+ var arg = args[i2];
1225
+ if (arg == null)
1226
+ continue;
1227
+ var toAdd = void 0;
1228
+ switch (typeof arg) {
1229
+ case "boolean":
1230
+ break;
1231
+ case "object": {
1232
+ if (Array.isArray(arg)) {
1233
+ toAdd = classnames2(arg);
1234
+ } else {
1235
+ toAdd = "";
1236
+ for (var k2 in arg) {
1237
+ if (arg[k2] && k2) {
1238
+ toAdd && (toAdd += " ");
1239
+ toAdd += k2;
1240
+ }
1241
+ }
1242
+ }
1243
+ break;
1244
+ }
1245
+ default: {
1246
+ toAdd = arg;
1247
+ }
1248
+ }
1249
+ if (toAdd) {
1250
+ cls && (cls += " ");
1251
+ cls += toAdd;
1252
+ }
1253
+ }
1254
+ return cls;
1255
+ };
1256
+ function merge(registered, css2, className) {
1257
+ var registeredStyles = [];
1258
+ var rawClassName = getRegisteredStyles(registered, registeredStyles, className);
1259
+ if (registeredStyles.length < 2) {
1260
+ return className;
1261
+ }
1262
+ return rawClassName + css2(registeredStyles);
1263
+ }
1264
+ var Noop = function Noop3() {
1265
+ return null;
1266
+ };
1267
+ var ClassNames = /* @__PURE__ */ withEmotionCache(function(props, cache) {
1268
+ var hasRendered = false;
1269
+ var css2 = function css3() {
1270
+ if (hasRendered && false) {
1271
+ throw new Error("css can only be used during render");
1272
+ }
1273
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1274
+ args[_key] = arguments[_key];
1275
+ }
1276
+ var serialized = serializeStyles(args, cache.registered);
1277
+ {
1278
+ insertStyles(cache, serialized, false);
1279
+ }
1280
+ return cache.key + "-" + serialized.name;
1281
+ };
1282
+ var cx = function cx2() {
1283
+ if (hasRendered && false) {
1284
+ throw new Error("cx can only be used during render");
1285
+ }
1286
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
1287
+ args[_key2] = arguments[_key2];
1288
+ }
1289
+ return merge(cache.registered, css2, classnames(args));
1290
+ };
1291
+ var content = {
1292
+ css: css2,
1293
+ cx,
1294
+ theme: require$$0.useContext(ThemeContext)
1295
+ };
1296
+ var ele = props.children(content);
1297
+ hasRendered = true;
1298
+ var possiblyStyleElement = /* @__PURE__ */ require$$0.createElement(Noop, null);
1299
+ return /* @__PURE__ */ require$$0.createElement(require$$0.Fragment, null, possiblyStyleElement, ele);
1300
+ });
1301
+ var jsxRuntime = { exports: {} };
1302
+ var reactJsxRuntime_production_min = {};
1303
+ /*
1304
+ object-assign
1305
+ (c) Sindre Sorhus
1306
+ @license MIT
1307
+ */
1308
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
1309
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
1310
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
1311
+ function toObject(val) {
1312
+ if (val === null || val === void 0) {
1313
+ throw new TypeError("Object.assign cannot be called with null or undefined");
1314
+ }
1315
+ return Object(val);
1316
+ }
1317
+ function shouldUseNative() {
1318
+ try {
1319
+ if (!Object.assign) {
1320
+ return false;
1321
+ }
1322
+ var test1 = new String("abc");
1323
+ test1[5] = "de";
1324
+ if (Object.getOwnPropertyNames(test1)[0] === "5") {
1325
+ return false;
1326
+ }
1327
+ var test2 = {};
1328
+ for (var i2 = 0; i2 < 10; i2++) {
1329
+ test2["_" + String.fromCharCode(i2)] = i2;
1330
+ }
1331
+ var order2 = Object.getOwnPropertyNames(test2).map(function(n2) {
1332
+ return test2[n2];
1333
+ });
1334
+ if (order2.join("") !== "0123456789") {
1335
+ return false;
1336
+ }
1337
+ var test3 = {};
1338
+ "abcdefghijklmnopqrst".split("").forEach(function(letter) {
1339
+ test3[letter] = letter;
1340
+ });
1341
+ if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
1342
+ return false;
1343
+ }
1344
+ return true;
1345
+ } catch (err) {
1346
+ return false;
1347
+ }
1348
+ }
1349
+ shouldUseNative() ? Object.assign : function(target, source) {
1350
+ var from2;
1351
+ var to = toObject(target);
1352
+ var symbols;
1353
+ for (var s2 = 1; s2 < arguments.length; s2++) {
1354
+ from2 = Object(arguments[s2]);
1355
+ for (var key in from2) {
1356
+ if (hasOwnProperty.call(from2, key)) {
1357
+ to[key] = from2[key];
1358
+ }
1359
+ }
1360
+ if (getOwnPropertySymbols) {
1361
+ symbols = getOwnPropertySymbols(from2);
1362
+ for (var i2 = 0; i2 < symbols.length; i2++) {
1363
+ if (propIsEnumerable.call(from2, symbols[i2])) {
1364
+ to[symbols[i2]] = from2[symbols[i2]];
1365
+ }
1366
+ }
1367
+ }
1368
+ }
1369
+ return to;
1370
+ };
1371
+ /** @license React v17.0.2
1372
+ * react-jsx-runtime.production.min.js
1373
+ *
1374
+ * Copyright (c) Facebook, Inc. and its affiliates.
1375
+ *
1376
+ * This source code is licensed under the MIT license found in the
1377
+ * LICENSE file in the root directory of this source tree.
1378
+ */
1379
+ var f$1 = require$$0__default["default"], g$1 = 60103;
1380
+ reactJsxRuntime_production_min.Fragment = 60107;
1381
+ if (typeof Symbol === "function" && Symbol.for) {
1382
+ var h$3 = Symbol.for;
1383
+ g$1 = h$3("react.element");
1384
+ reactJsxRuntime_production_min.Fragment = h$3("react.fragment");
1385
+ }
1386
+ var m$2 = f$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n$3 = Object.prototype.hasOwnProperty, p$3 = { key: true, ref: true, __self: true, __source: true };
1387
+ function q$3(c2, a2, k2) {
1388
+ var b2, d2 = {}, e2 = null, l2 = null;
1389
+ k2 !== void 0 && (e2 = "" + k2);
1390
+ a2.key !== void 0 && (e2 = "" + a2.key);
1391
+ a2.ref !== void 0 && (l2 = a2.ref);
1392
+ for (b2 in a2)
1393
+ n$3.call(a2, b2) && !p$3.hasOwnProperty(b2) && (d2[b2] = a2[b2]);
1394
+ if (c2 && c2.defaultProps)
1395
+ for (b2 in a2 = c2.defaultProps, a2)
1396
+ d2[b2] === void 0 && (d2[b2] = a2[b2]);
1397
+ return { $$typeof: g$1, type: c2, key: e2, ref: l2, props: d2, _owner: m$2.current };
1398
+ }
1399
+ reactJsxRuntime_production_min.jsx = q$3;
1400
+ reactJsxRuntime_production_min.jsxs = q$3;
1401
+ {
1402
+ jsxRuntime.exports = reactJsxRuntime_production_min;
1403
+ }
1404
+ const jsx$1 = jsxRuntime.exports.jsx;
1405
+ const jsxs$1 = jsxRuntime.exports.jsxs;
1406
+ const Fragment$1 = jsxRuntime.exports.Fragment;
1407
+ var Fragment = Fragment$1;
1408
+ function jsx(type, props, key) {
1409
+ if (!hasOwnProperty$1.call(props, "css")) {
1410
+ return jsx$1(type, props, key);
1411
+ }
1412
+ return jsx$1(Emotion, createEmotionProps(type, props), key);
1413
+ }
1414
+ function jsxs(type, props, key) {
1415
+ if (!hasOwnProperty$1.call(props, "css")) {
1416
+ return jsxs$1(type, props, key);
1417
+ }
1418
+ return jsxs$1(Emotion, createEmotionProps(type, props), key);
1419
+ }
1420
+ function n$2(n2) {
1421
+ for (var r2 = arguments.length, t2 = Array(r2 > 1 ? r2 - 1 : 0), e2 = 1; e2 < r2; e2++)
1422
+ t2[e2 - 1] = arguments[e2];
1423
+ throw Error("[Immer] minified error nr: " + n2 + (t2.length ? " " + t2.map(function(n3) {
1424
+ return "'" + n3 + "'";
1425
+ }).join(",") : "") + ". Find the full error at: https://bit.ly/3cXEKWf");
1426
+ }
1427
+ function r$2(n2) {
1428
+ return !!n2 && !!n2[Q];
1429
+ }
1430
+ function t$2(n2) {
1431
+ return !!n2 && (function(n3) {
1432
+ if (!n3 || typeof n3 != "object")
1433
+ return false;
1434
+ var r2 = Object.getPrototypeOf(n3);
1435
+ if (r2 === null)
1436
+ return true;
1437
+ var t2 = Object.hasOwnProperty.call(r2, "constructor") && r2.constructor;
1438
+ return t2 === Object || typeof t2 == "function" && Function.toString.call(t2) === Z;
1439
+ }(n2) || Array.isArray(n2) || !!n2[L] || !!n2.constructor[L] || s(n2) || v$1(n2));
1440
+ }
1441
+ function i(n2, r2, t2) {
1442
+ t2 === void 0 && (t2 = false), o(n2) === 0 ? (t2 ? Object.keys : nn)(n2).forEach(function(e2) {
1443
+ t2 && typeof e2 == "symbol" || r2(e2, n2[e2], n2);
1444
+ }) : n2.forEach(function(t3, e2) {
1445
+ return r2(e2, t3, n2);
1446
+ });
1447
+ }
1448
+ function o(n2) {
1449
+ var r2 = n2[Q];
1450
+ return r2 ? r2.i > 3 ? r2.i - 4 : r2.i : Array.isArray(n2) ? 1 : s(n2) ? 2 : v$1(n2) ? 3 : 0;
1451
+ }
1452
+ function u$2(n2, r2) {
1453
+ return o(n2) === 2 ? n2.has(r2) : Object.prototype.hasOwnProperty.call(n2, r2);
1454
+ }
1455
+ function a(n2, r2) {
1456
+ return o(n2) === 2 ? n2.get(r2) : n2[r2];
1457
+ }
1458
+ function f(n2, r2, t2) {
1459
+ var e2 = o(n2);
1460
+ e2 === 2 ? n2.set(r2, t2) : e2 === 3 ? (n2.delete(r2), n2.add(t2)) : n2[r2] = t2;
1461
+ }
1462
+ function c(n2, r2) {
1463
+ return n2 === r2 ? n2 !== 0 || 1 / n2 == 1 / r2 : n2 != n2 && r2 != r2;
1464
+ }
1465
+ function s(n2) {
1466
+ return X && n2 instanceof Map;
1467
+ }
1468
+ function v$1(n2) {
1469
+ return q$2 && n2 instanceof Set;
1470
+ }
1471
+ function p$2(n2) {
1472
+ return n2.o || n2.t;
1473
+ }
1474
+ function l$1(n2) {
1475
+ if (Array.isArray(n2))
1476
+ return Array.prototype.slice.call(n2);
1477
+ var r2 = rn(n2);
1478
+ delete r2[Q];
1479
+ for (var t2 = nn(r2), e2 = 0; e2 < t2.length; e2++) {
1480
+ var i2 = t2[e2], o2 = r2[i2];
1481
+ o2.writable === false && (o2.writable = true, o2.configurable = true), (o2.get || o2.set) && (r2[i2] = { configurable: true, writable: true, enumerable: o2.enumerable, value: n2[i2] });
1482
+ }
1483
+ return Object.create(Object.getPrototypeOf(n2), r2);
1484
+ }
1485
+ function d(n2, e2) {
1486
+ return e2 === void 0 && (e2 = false), y(n2) || r$2(n2) || !t$2(n2) ? n2 : (o(n2) > 1 && (n2.set = n2.add = n2.clear = n2.delete = h$2), Object.freeze(n2), e2 && i(n2, function(n3, r2) {
1487
+ return d(r2, true);
1488
+ }, true), n2);
1489
+ }
1490
+ function h$2() {
1491
+ n$2(2);
1492
+ }
1493
+ function y(n2) {
1494
+ return n2 == null || typeof n2 != "object" || Object.isFrozen(n2);
1495
+ }
1496
+ function b(r2) {
1497
+ var t2 = tn[r2];
1498
+ return t2 || n$2(18, r2), t2;
1499
+ }
1500
+ function m$1(n2, r2) {
1501
+ tn[n2] || (tn[n2] = r2);
1502
+ }
1503
+ function _() {
1504
+ return U;
1505
+ }
1506
+ function j(n2, r2) {
1507
+ r2 && (b("Patches"), n2.u = [], n2.s = [], n2.v = r2);
1508
+ }
1509
+ function O(n2) {
1510
+ g(n2), n2.p.forEach(S), n2.p = null;
1511
+ }
1512
+ function g(n2) {
1513
+ n2 === U && (U = n2.l);
1514
+ }
1515
+ function w$1(n2) {
1516
+ return U = { p: [], l: U, h: n2, m: true, _: 0 };
1517
+ }
1518
+ function S(n2) {
1519
+ var r2 = n2[Q];
1520
+ r2.i === 0 || r2.i === 1 ? r2.j() : r2.O = true;
1521
+ }
1522
+ function P(r2, e2) {
1523
+ e2._ = e2.p.length;
1524
+ var i2 = e2.p[0], o2 = r2 !== void 0 && r2 !== i2;
1525
+ return e2.h.g || b("ES5").S(e2, r2, o2), o2 ? (i2[Q].P && (O(e2), n$2(4)), t$2(r2) && (r2 = M(e2, r2), e2.l || x(e2, r2)), e2.u && b("Patches").M(i2[Q].t, r2, e2.u, e2.s)) : r2 = M(e2, i2, []), O(e2), e2.u && e2.v(e2.u, e2.s), r2 !== H ? r2 : void 0;
1526
+ }
1527
+ function M(n2, r2, t2) {
1528
+ if (y(r2))
1529
+ return r2;
1530
+ var e2 = r2[Q];
1531
+ if (!e2)
1532
+ return i(r2, function(i2, o3) {
1533
+ return A(n2, e2, r2, i2, o3, t2);
1534
+ }, true), r2;
1535
+ if (e2.A !== n2)
1536
+ return r2;
1537
+ if (!e2.P)
1538
+ return x(n2, e2.t, true), e2.t;
1539
+ if (!e2.I) {
1540
+ e2.I = true, e2.A._--;
1541
+ var o2 = e2.i === 4 || e2.i === 5 ? e2.o = l$1(e2.k) : e2.o;
1542
+ i(e2.i === 3 ? new Set(o2) : o2, function(r3, i2) {
1543
+ return A(n2, e2, o2, r3, i2, t2);
1544
+ }), x(n2, o2, false), t2 && n2.u && b("Patches").R(e2, t2, n2.u, n2.s);
1545
+ }
1546
+ return e2.o;
1547
+ }
1548
+ function A(e2, i2, o2, a2, c2, s2) {
1549
+ if (r$2(c2)) {
1550
+ var v2 = M(e2, c2, s2 && i2 && i2.i !== 3 && !u$2(i2.D, a2) ? s2.concat(a2) : void 0);
1551
+ if (f(o2, a2, v2), !r$2(v2))
1552
+ return;
1553
+ e2.m = false;
1554
+ }
1555
+ if (t$2(c2) && !y(c2)) {
1556
+ if (!e2.h.F && e2._ < 1)
1557
+ return;
1558
+ M(e2, c2), i2 && i2.A.l || x(e2, c2);
1559
+ }
1560
+ }
1561
+ function x(n2, r2, t2) {
1562
+ t2 === void 0 && (t2 = false), n2.h.F && n2.m && d(r2, t2);
1563
+ }
1564
+ function z(n2, r2) {
1565
+ var t2 = n2[Q];
1566
+ return (t2 ? p$2(t2) : n2)[r2];
1567
+ }
1568
+ function I(n2, r2) {
1569
+ if (r2 in n2)
1570
+ for (var t2 = Object.getPrototypeOf(n2); t2; ) {
1571
+ var e2 = Object.getOwnPropertyDescriptor(t2, r2);
1572
+ if (e2)
1573
+ return e2;
1574
+ t2 = Object.getPrototypeOf(t2);
1575
+ }
1576
+ }
1577
+ function k$1(n2) {
1578
+ n2.P || (n2.P = true, n2.l && k$1(n2.l));
1579
+ }
1580
+ function E(n2) {
1581
+ n2.o || (n2.o = l$1(n2.t));
1582
+ }
1583
+ function R(n2, r2, t2) {
1584
+ var e2 = s(r2) ? b("MapSet").N(r2, t2) : v$1(r2) ? b("MapSet").T(r2, t2) : n2.g ? function(n3, r3) {
1585
+ var t3 = Array.isArray(n3), e3 = { i: t3 ? 1 : 0, A: r3 ? r3.A : _(), P: false, I: false, D: {}, l: r3, t: n3, k: null, o: null, j: null, C: false }, i2 = e3, o2 = en;
1586
+ t3 && (i2 = [e3], o2 = on);
1587
+ var u2 = Proxy.revocable(i2, o2), a2 = u2.revoke, f2 = u2.proxy;
1588
+ return e3.k = f2, e3.j = a2, f2;
1589
+ }(r2, t2) : b("ES5").J(r2, t2);
1590
+ return (t2 ? t2.A : _()).p.push(e2), e2;
1591
+ }
1592
+ function D(e2) {
1593
+ return r$2(e2) || n$2(22, e2), function n2(r2) {
1594
+ if (!t$2(r2))
1595
+ return r2;
1596
+ var e3, u2 = r2[Q], c2 = o(r2);
1597
+ if (u2) {
1598
+ if (!u2.P && (u2.i < 4 || !b("ES5").K(u2)))
1599
+ return u2.t;
1600
+ u2.I = true, e3 = F(r2, c2), u2.I = false;
1601
+ } else
1602
+ e3 = F(r2, c2);
1603
+ return i(e3, function(r3, t2) {
1604
+ u2 && a(u2.t, r3) === t2 || f(e3, r3, n2(t2));
1605
+ }), c2 === 3 ? new Set(e3) : e3;
1606
+ }(e2);
1607
+ }
1608
+ function F(n2, r2) {
1609
+ switch (r2) {
1610
+ case 2:
1611
+ return new Map(n2);
1612
+ case 3:
1613
+ return Array.from(n2);
1614
+ }
1615
+ return l$1(n2);
1616
+ }
1617
+ function T() {
1618
+ function e2(n2) {
1619
+ if (!t$2(n2))
1620
+ return n2;
1621
+ if (Array.isArray(n2))
1622
+ return n2.map(e2);
1623
+ if (s(n2))
1624
+ return new Map(Array.from(n2.entries()).map(function(n3) {
1625
+ return [n3[0], e2(n3[1])];
1626
+ }));
1627
+ if (v$1(n2))
1628
+ return new Set(Array.from(n2).map(e2));
1629
+ var r2 = Object.create(Object.getPrototypeOf(n2));
1630
+ for (var i2 in n2)
1631
+ r2[i2] = e2(n2[i2]);
1632
+ return u$2(n2, L) && (r2[L] = n2[L]), r2;
1633
+ }
1634
+ function f2(n2) {
1635
+ return r$2(n2) ? e2(n2) : n2;
1636
+ }
1637
+ var c2 = "add";
1638
+ m$1("Patches", { $: function(r2, t2) {
1639
+ return t2.forEach(function(t3) {
1640
+ for (var i2 = t3.path, u2 = t3.op, f3 = r2, s2 = 0; s2 < i2.length - 1; s2++) {
1641
+ var v2 = o(f3), p2 = "" + i2[s2];
1642
+ v2 !== 0 && v2 !== 1 || p2 !== "__proto__" && p2 !== "constructor" || n$2(24), typeof f3 == "function" && p2 === "prototype" && n$2(24), typeof (f3 = a(f3, p2)) != "object" && n$2(15, i2.join("/"));
1643
+ }
1644
+ var l2 = o(f3), d2 = e2(t3.value), h2 = i2[i2.length - 1];
1645
+ switch (u2) {
1646
+ case "replace":
1647
+ switch (l2) {
1648
+ case 2:
1649
+ return f3.set(h2, d2);
1650
+ case 3:
1651
+ n$2(16);
1652
+ default:
1653
+ return f3[h2] = d2;
1654
+ }
1655
+ case c2:
1656
+ switch (l2) {
1657
+ case 1:
1658
+ return h2 === "-" ? f3.push(d2) : f3.splice(h2, 0, d2);
1659
+ case 2:
1660
+ return f3.set(h2, d2);
1661
+ case 3:
1662
+ return f3.add(d2);
1663
+ default:
1664
+ return f3[h2] = d2;
1665
+ }
1666
+ case "remove":
1667
+ switch (l2) {
1668
+ case 1:
1669
+ return f3.splice(h2, 1);
1670
+ case 2:
1671
+ return f3.delete(h2);
1672
+ case 3:
1673
+ return f3.delete(t3.value);
1674
+ default:
1675
+ return delete f3[h2];
1676
+ }
1677
+ default:
1678
+ n$2(17, u2);
1679
+ }
1680
+ }), r2;
1681
+ }, R: function(n2, r2, t2, e3) {
1682
+ switch (n2.i) {
1683
+ case 0:
1684
+ case 4:
1685
+ case 2:
1686
+ return function(n3, r3, t3, e4) {
1687
+ var o2 = n3.t, s2 = n3.o;
1688
+ i(n3.D, function(n4, i2) {
1689
+ var v2 = a(o2, n4), p2 = a(s2, n4), l2 = i2 ? u$2(o2, n4) ? "replace" : c2 : "remove";
1690
+ if (v2 !== p2 || l2 !== "replace") {
1691
+ var d2 = r3.concat(n4);
1692
+ t3.push(l2 === "remove" ? { op: l2, path: d2 } : { op: l2, path: d2, value: p2 }), e4.push(l2 === c2 ? { op: "remove", path: d2 } : l2 === "remove" ? { op: c2, path: d2, value: f2(v2) } : { op: "replace", path: d2, value: f2(v2) });
1693
+ }
1694
+ });
1695
+ }(n2, r2, t2, e3);
1696
+ case 5:
1697
+ case 1:
1698
+ return function(n3, r3, t3, e4) {
1699
+ var i2 = n3.t, o2 = n3.D, u2 = n3.o;
1700
+ if (u2.length < i2.length) {
1701
+ var a2 = [u2, i2];
1702
+ i2 = a2[0], u2 = a2[1];
1703
+ var s2 = [e4, t3];
1704
+ t3 = s2[0], e4 = s2[1];
1705
+ }
1706
+ for (var v2 = 0; v2 < i2.length; v2++)
1707
+ if (o2[v2] && u2[v2] !== i2[v2]) {
1708
+ var p2 = r3.concat([v2]);
1709
+ t3.push({ op: "replace", path: p2, value: f2(u2[v2]) }), e4.push({ op: "replace", path: p2, value: f2(i2[v2]) });
1710
+ }
1711
+ for (var l2 = i2.length; l2 < u2.length; l2++) {
1712
+ var d2 = r3.concat([l2]);
1713
+ t3.push({ op: c2, path: d2, value: f2(u2[l2]) });
1714
+ }
1715
+ i2.length < u2.length && e4.push({ op: "replace", path: r3.concat(["length"]), value: i2.length });
1716
+ }(n2, r2, t2, e3);
1717
+ case 3:
1718
+ return function(n3, r3, t3, e4) {
1719
+ var i2 = n3.t, o2 = n3.o, u2 = 0;
1720
+ i2.forEach(function(n4) {
1721
+ if (!o2.has(n4)) {
1722
+ var i3 = r3.concat([u2]);
1723
+ t3.push({ op: "remove", path: i3, value: n4 }), e4.unshift({ op: c2, path: i3, value: n4 });
1724
+ }
1725
+ u2++;
1726
+ }), u2 = 0, o2.forEach(function(n4) {
1727
+ if (!i2.has(n4)) {
1728
+ var o3 = r3.concat([u2]);
1729
+ t3.push({ op: c2, path: o3, value: n4 }), e4.unshift({ op: "remove", path: o3, value: n4 });
1730
+ }
1731
+ u2++;
1732
+ });
1733
+ }(n2, r2, t2, e3);
1734
+ }
1735
+ }, M: function(n2, r2, t2, e3) {
1736
+ t2.push({ op: "replace", path: [], value: r2 === H ? void 0 : r2 }), e3.push({ op: "replace", path: [], value: n2 });
1737
+ } });
1738
+ }
1739
+ function C() {
1740
+ function r2(n2, r3) {
1741
+ function t2() {
1742
+ this.constructor = n2;
1743
+ }
1744
+ a2(n2, r3), n2.prototype = (t2.prototype = r3.prototype, new t2());
1745
+ }
1746
+ function e2(n2) {
1747
+ n2.o || (n2.D = /* @__PURE__ */ new Map(), n2.o = new Map(n2.t));
1748
+ }
1749
+ function o2(n2) {
1750
+ n2.o || (n2.o = /* @__PURE__ */ new Set(), n2.t.forEach(function(r3) {
1751
+ if (t$2(r3)) {
1752
+ var e3 = R(n2.A.h, r3, n2);
1753
+ n2.p.set(r3, e3), n2.o.add(e3);
1754
+ } else
1755
+ n2.o.add(r3);
1756
+ }));
1757
+ }
1758
+ function u2(r3) {
1759
+ r3.O && n$2(3, JSON.stringify(p$2(r3)));
1760
+ }
1761
+ var a2 = function(n2, r3) {
1762
+ return (a2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n3, r4) {
1763
+ n3.__proto__ = r4;
1764
+ } || function(n3, r4) {
1765
+ for (var t2 in r4)
1766
+ r4.hasOwnProperty(t2) && (n3[t2] = r4[t2]);
1767
+ })(n2, r3);
1768
+ }, f2 = function() {
1769
+ function n2(n3, r3) {
1770
+ return this[Q] = { i: 2, l: r3, A: r3 ? r3.A : _(), P: false, I: false, o: void 0, D: void 0, t: n3, k: this, C: false, O: false }, this;
1771
+ }
1772
+ r2(n2, Map);
1773
+ var o3 = n2.prototype;
1774
+ return Object.defineProperty(o3, "size", { get: function() {
1775
+ return p$2(this[Q]).size;
1776
+ } }), o3.has = function(n3) {
1777
+ return p$2(this[Q]).has(n3);
1778
+ }, o3.set = function(n3, r3) {
1779
+ var t2 = this[Q];
1780
+ return u2(t2), p$2(t2).has(n3) && p$2(t2).get(n3) === r3 || (e2(t2), k$1(t2), t2.D.set(n3, true), t2.o.set(n3, r3), t2.D.set(n3, true)), this;
1781
+ }, o3.delete = function(n3) {
1782
+ if (!this.has(n3))
1783
+ return false;
1784
+ var r3 = this[Q];
1785
+ return u2(r3), e2(r3), k$1(r3), r3.t.has(n3) ? r3.D.set(n3, false) : r3.D.delete(n3), r3.o.delete(n3), true;
1786
+ }, o3.clear = function() {
1787
+ var n3 = this[Q];
1788
+ u2(n3), p$2(n3).size && (e2(n3), k$1(n3), n3.D = /* @__PURE__ */ new Map(), i(n3.t, function(r3) {
1789
+ n3.D.set(r3, false);
1790
+ }), n3.o.clear());
1791
+ }, o3.forEach = function(n3, r3) {
1792
+ var t2 = this;
1793
+ p$2(this[Q]).forEach(function(e3, i2) {
1794
+ n3.call(r3, t2.get(i2), i2, t2);
1795
+ });
1796
+ }, o3.get = function(n3) {
1797
+ var r3 = this[Q];
1798
+ u2(r3);
1799
+ var i2 = p$2(r3).get(n3);
1800
+ if (r3.I || !t$2(i2))
1801
+ return i2;
1802
+ if (i2 !== r3.t.get(n3))
1803
+ return i2;
1804
+ var o4 = R(r3.A.h, i2, r3);
1805
+ return e2(r3), r3.o.set(n3, o4), o4;
1806
+ }, o3.keys = function() {
1807
+ return p$2(this[Q]).keys();
1808
+ }, o3.values = function() {
1809
+ var n3, r3 = this, t2 = this.keys();
1810
+ return (n3 = {})[V] = function() {
1811
+ return r3.values();
1812
+ }, n3.next = function() {
1813
+ var n4 = t2.next();
1814
+ return n4.done ? n4 : { done: false, value: r3.get(n4.value) };
1815
+ }, n3;
1816
+ }, o3.entries = function() {
1817
+ var n3, r3 = this, t2 = this.keys();
1818
+ return (n3 = {})[V] = function() {
1819
+ return r3.entries();
1820
+ }, n3.next = function() {
1821
+ var n4 = t2.next();
1822
+ if (n4.done)
1823
+ return n4;
1824
+ var e3 = r3.get(n4.value);
1825
+ return { done: false, value: [n4.value, e3] };
1826
+ }, n3;
1827
+ }, o3[V] = function() {
1828
+ return this.entries();
1829
+ }, n2;
1830
+ }(), c2 = function() {
1831
+ function n2(n3, r3) {
1832
+ return this[Q] = { i: 3, l: r3, A: r3 ? r3.A : _(), P: false, I: false, o: void 0, t: n3, k: this, p: /* @__PURE__ */ new Map(), O: false, C: false }, this;
1833
+ }
1834
+ r2(n2, Set);
1835
+ var t2 = n2.prototype;
1836
+ return Object.defineProperty(t2, "size", { get: function() {
1837
+ return p$2(this[Q]).size;
1838
+ } }), t2.has = function(n3) {
1839
+ var r3 = this[Q];
1840
+ return u2(r3), r3.o ? !!r3.o.has(n3) || !(!r3.p.has(n3) || !r3.o.has(r3.p.get(n3))) : r3.t.has(n3);
1841
+ }, t2.add = function(n3) {
1842
+ var r3 = this[Q];
1843
+ return u2(r3), this.has(n3) || (o2(r3), k$1(r3), r3.o.add(n3)), this;
1844
+ }, t2.delete = function(n3) {
1845
+ if (!this.has(n3))
1846
+ return false;
1847
+ var r3 = this[Q];
1848
+ return u2(r3), o2(r3), k$1(r3), r3.o.delete(n3) || !!r3.p.has(n3) && r3.o.delete(r3.p.get(n3));
1849
+ }, t2.clear = function() {
1850
+ var n3 = this[Q];
1851
+ u2(n3), p$2(n3).size && (o2(n3), k$1(n3), n3.o.clear());
1852
+ }, t2.values = function() {
1853
+ var n3 = this[Q];
1854
+ return u2(n3), o2(n3), n3.o.values();
1855
+ }, t2.entries = function() {
1856
+ var n3 = this[Q];
1857
+ return u2(n3), o2(n3), n3.o.entries();
1858
+ }, t2.keys = function() {
1859
+ return this.values();
1860
+ }, t2[V] = function() {
1861
+ return this.values();
1862
+ }, t2.forEach = function(n3, r3) {
1863
+ for (var t3 = this.values(), e3 = t3.next(); !e3.done; )
1864
+ n3.call(r3, e3.value, e3.value, this), e3 = t3.next();
1865
+ }, n2;
1866
+ }();
1867
+ m$1("MapSet", { N: function(n2, r3) {
1868
+ return new f2(n2, r3);
1869
+ }, T: function(n2, r3) {
1870
+ return new c2(n2, r3);
1871
+ } });
1872
+ }
1873
+ function K(n2) {
1874
+ return n2;
1875
+ }
1876
+ var G, U, W = typeof Symbol != "undefined" && typeof Symbol("x") == "symbol", X = typeof Map != "undefined", q$2 = typeof Set != "undefined", B = typeof Proxy != "undefined" && Proxy.revocable !== void 0 && typeof Reflect != "undefined", H = W ? Symbol.for("immer-nothing") : ((G = {})["immer-nothing"] = true, G), L = W ? Symbol.for("immer-draftable") : "__$immer_draftable", Q = W ? Symbol.for("immer-state") : "__$immer_state", V = typeof Symbol != "undefined" && Symbol.iterator || "@@iterator", Z = "" + Object.prototype.constructor, nn = typeof Reflect != "undefined" && Reflect.ownKeys ? Reflect.ownKeys : Object.getOwnPropertySymbols !== void 0 ? function(n2) {
1877
+ return Object.getOwnPropertyNames(n2).concat(Object.getOwnPropertySymbols(n2));
1878
+ } : Object.getOwnPropertyNames, rn = Object.getOwnPropertyDescriptors || function(n2) {
1879
+ var r2 = {};
1880
+ return nn(n2).forEach(function(t2) {
1881
+ r2[t2] = Object.getOwnPropertyDescriptor(n2, t2);
1882
+ }), r2;
1883
+ }, tn = {}, en = { get: function(n2, r2) {
1884
+ if (r2 === Q)
1885
+ return n2;
1886
+ var e2 = p$2(n2);
1887
+ if (!u$2(e2, r2))
1888
+ return function(n3, r3, t2) {
1889
+ var e3, i3 = I(r3, t2);
1890
+ return i3 ? "value" in i3 ? i3.value : (e3 = i3.get) === null || e3 === void 0 ? void 0 : e3.call(n3.k) : void 0;
1891
+ }(n2, e2, r2);
1892
+ var i2 = e2[r2];
1893
+ return n2.I || !t$2(i2) ? i2 : i2 === z(n2.t, r2) ? (E(n2), n2.o[r2] = R(n2.A.h, i2, n2)) : i2;
1894
+ }, has: function(n2, r2) {
1895
+ return r2 in p$2(n2);
1896
+ }, ownKeys: function(n2) {
1897
+ return Reflect.ownKeys(p$2(n2));
1898
+ }, set: function(n2, r2, t2) {
1899
+ var e2 = I(p$2(n2), r2);
1900
+ if (e2 == null ? void 0 : e2.set)
1901
+ return e2.set.call(n2.k, t2), true;
1902
+ if (!n2.P) {
1903
+ var i2 = z(p$2(n2), r2), o2 = i2 == null ? void 0 : i2[Q];
1904
+ if (o2 && o2.t === t2)
1905
+ return n2.o[r2] = t2, n2.D[r2] = false, true;
1906
+ if (c(t2, i2) && (t2 !== void 0 || u$2(n2.t, r2)))
1907
+ return true;
1908
+ E(n2), k$1(n2);
1909
+ }
1910
+ return n2.o[r2] === t2 && typeof t2 != "number" && (t2 !== void 0 || r2 in n2.o) || (n2.o[r2] = t2, n2.D[r2] = true, true);
1911
+ }, deleteProperty: function(n2, r2) {
1912
+ return z(n2.t, r2) !== void 0 || r2 in n2.t ? (n2.D[r2] = false, E(n2), k$1(n2)) : delete n2.D[r2], n2.o && delete n2.o[r2], true;
1913
+ }, getOwnPropertyDescriptor: function(n2, r2) {
1914
+ var t2 = p$2(n2), e2 = Reflect.getOwnPropertyDescriptor(t2, r2);
1915
+ return e2 ? { writable: true, configurable: n2.i !== 1 || r2 !== "length", enumerable: e2.enumerable, value: t2[r2] } : e2;
1916
+ }, defineProperty: function() {
1917
+ n$2(11);
1918
+ }, getPrototypeOf: function(n2) {
1919
+ return Object.getPrototypeOf(n2.t);
1920
+ }, setPrototypeOf: function() {
1921
+ n$2(12);
1922
+ } }, on = {};
1923
+ i(en, function(n2, r2) {
1924
+ on[n2] = function() {
1925
+ return arguments[0] = arguments[0][0], r2.apply(this, arguments);
1926
+ };
1927
+ }), on.deleteProperty = function(r2, t2) {
1928
+ return on.set.call(this, r2, t2, void 0);
1929
+ }, on.set = function(r2, t2, e2) {
1930
+ return en.set.call(this, r2[0], t2, e2, r2[0]);
1931
+ };
1932
+ var un = function() {
1933
+ function e2(r2) {
1934
+ var e3 = this;
1935
+ this.g = B, this.F = true, this.produce = function(r3, i3, o2) {
1936
+ if (typeof r3 == "function" && typeof i3 != "function") {
1937
+ var u2 = i3;
1938
+ i3 = r3;
1939
+ var a2 = e3;
1940
+ return function(n2) {
1941
+ var r4 = this;
1942
+ n2 === void 0 && (n2 = u2);
1943
+ for (var t2 = arguments.length, e4 = Array(t2 > 1 ? t2 - 1 : 0), o3 = 1; o3 < t2; o3++)
1944
+ e4[o3 - 1] = arguments[o3];
1945
+ return a2.produce(n2, function(n3) {
1946
+ var t3;
1947
+ return (t3 = i3).call.apply(t3, [r4, n3].concat(e4));
1948
+ });
1949
+ };
1950
+ }
1951
+ var f2;
1952
+ if (typeof i3 != "function" && n$2(6), o2 !== void 0 && typeof o2 != "function" && n$2(7), t$2(r3)) {
1953
+ var c2 = w$1(e3), s2 = R(e3, r3, void 0), v2 = true;
1954
+ try {
1955
+ f2 = i3(s2), v2 = false;
1956
+ } finally {
1957
+ v2 ? O(c2) : g(c2);
1958
+ }
1959
+ return typeof Promise != "undefined" && f2 instanceof Promise ? f2.then(function(n2) {
1960
+ return j(c2, o2), P(n2, c2);
1961
+ }, function(n2) {
1962
+ throw O(c2), n2;
1963
+ }) : (j(c2, o2), P(f2, c2));
1964
+ }
1965
+ if (!r3 || typeof r3 != "object") {
1966
+ if ((f2 = i3(r3)) === void 0 && (f2 = r3), f2 === H && (f2 = void 0), e3.F && d(f2, true), o2) {
1967
+ var p2 = [], l2 = [];
1968
+ b("Patches").M(r3, f2, p2, l2), o2(p2, l2);
1969
+ }
1970
+ return f2;
1971
+ }
1972
+ n$2(21, r3);
1973
+ }, this.produceWithPatches = function(n2, r3) {
1974
+ if (typeof n2 == "function")
1975
+ return function(r4) {
1976
+ for (var t3 = arguments.length, i4 = Array(t3 > 1 ? t3 - 1 : 0), o3 = 1; o3 < t3; o3++)
1977
+ i4[o3 - 1] = arguments[o3];
1978
+ return e3.produceWithPatches(r4, function(r5) {
1979
+ return n2.apply(void 0, [r5].concat(i4));
1980
+ });
1981
+ };
1982
+ var t2, i3, o2 = e3.produce(n2, r3, function(n3, r4) {
1983
+ t2 = n3, i3 = r4;
1984
+ });
1985
+ return typeof Promise != "undefined" && o2 instanceof Promise ? o2.then(function(n3) {
1986
+ return [n3, t2, i3];
1987
+ }) : [o2, t2, i3];
1988
+ }, typeof (r2 == null ? void 0 : r2.useProxies) == "boolean" && this.setUseProxies(r2.useProxies), typeof (r2 == null ? void 0 : r2.autoFreeze) == "boolean" && this.setAutoFreeze(r2.autoFreeze);
1989
+ }
1990
+ var i2 = e2.prototype;
1991
+ return i2.createDraft = function(e3) {
1992
+ t$2(e3) || n$2(8), r$2(e3) && (e3 = D(e3));
1993
+ var i3 = w$1(this), o2 = R(this, e3, void 0);
1994
+ return o2[Q].C = true, g(i3), o2;
1995
+ }, i2.finishDraft = function(r2, t2) {
1996
+ var e3 = r2 && r2[Q];
1997
+ var i3 = e3.A;
1998
+ return j(i3, t2), P(void 0, i3);
1999
+ }, i2.setAutoFreeze = function(n2) {
2000
+ this.F = n2;
2001
+ }, i2.setUseProxies = function(r2) {
2002
+ r2 && !B && n$2(20), this.g = r2;
2003
+ }, i2.applyPatches = function(n2, t2) {
2004
+ var e3;
2005
+ for (e3 = t2.length - 1; e3 >= 0; e3--) {
2006
+ var i3 = t2[e3];
2007
+ if (i3.path.length === 0 && i3.op === "replace") {
2008
+ n2 = i3.value;
2009
+ break;
2010
+ }
2011
+ }
2012
+ e3 > -1 && (t2 = t2.slice(e3 + 1));
2013
+ var o2 = b("Patches").$;
2014
+ return r$2(n2) ? o2(n2, t2) : this.produce(n2, function(n3) {
2015
+ return o2(n3, t2);
2016
+ });
2017
+ }, e2;
2018
+ }(), an = new un(), fn = an.produce;
2019
+ an.produceWithPatches.bind(an);
2020
+ an.setAutoFreeze.bind(an);
2021
+ an.setUseProxies.bind(an);
2022
+ var pn = an.applyPatches.bind(an);
2023
+ an.createDraft.bind(an);
2024
+ an.finishDraft.bind(an);
2025
+ var react = function equal(a2, b2) {
2026
+ if (a2 === b2)
2027
+ return true;
2028
+ if (a2 && b2 && typeof a2 == "object" && typeof b2 == "object") {
2029
+ if (a2.constructor !== b2.constructor)
2030
+ return false;
2031
+ var length2, i2, keys;
2032
+ if (Array.isArray(a2)) {
2033
+ length2 = a2.length;
2034
+ if (length2 != b2.length)
2035
+ return false;
2036
+ for (i2 = length2; i2-- !== 0; )
2037
+ if (!equal(a2[i2], b2[i2]))
2038
+ return false;
2039
+ return true;
2040
+ }
2041
+ if (a2 instanceof Map && b2 instanceof Map) {
2042
+ if (a2.size !== b2.size)
2043
+ return false;
2044
+ for (i2 of a2.entries())
2045
+ if (!b2.has(i2[0]))
2046
+ return false;
2047
+ for (i2 of a2.entries())
2048
+ if (!equal(i2[1], b2.get(i2[0])))
2049
+ return false;
2050
+ return true;
2051
+ }
2052
+ if (a2 instanceof Set && b2 instanceof Set) {
2053
+ if (a2.size !== b2.size)
2054
+ return false;
2055
+ for (i2 of a2.entries())
2056
+ if (!b2.has(i2[0]))
2057
+ return false;
2058
+ return true;
2059
+ }
2060
+ if (ArrayBuffer.isView(a2) && ArrayBuffer.isView(b2)) {
2061
+ length2 = a2.length;
2062
+ if (length2 != b2.length)
2063
+ return false;
2064
+ for (i2 = length2; i2-- !== 0; )
2065
+ if (a2[i2] !== b2[i2])
2066
+ return false;
2067
+ return true;
2068
+ }
2069
+ if (a2.constructor === RegExp)
2070
+ return a2.source === b2.source && a2.flags === b2.flags;
2071
+ if (a2.valueOf !== Object.prototype.valueOf)
2072
+ return a2.valueOf() === b2.valueOf();
2073
+ if (a2.toString !== Object.prototype.toString)
2074
+ return a2.toString() === b2.toString();
2075
+ keys = Object.keys(a2);
2076
+ length2 = keys.length;
2077
+ if (length2 !== Object.keys(b2).length)
2078
+ return false;
2079
+ for (i2 = length2; i2-- !== 0; )
2080
+ if (!Object.prototype.hasOwnProperty.call(b2, keys[i2]))
2081
+ return false;
2082
+ for (i2 = length2; i2-- !== 0; ) {
2083
+ var key = keys[i2];
2084
+ if (key === "_owner" && a2.$$typeof) {
2085
+ continue;
2086
+ }
2087
+ if (!equal(a2[key], b2[key]))
2088
+ return false;
2089
+ }
2090
+ return true;
2091
+ }
2092
+ return a2 !== a2 && b2 !== b2;
2093
+ };
2094
+ function createSelector(stringSelector) {
2095
+ const parts = stringSelector.split(".");
2096
+ return (state) => parts.reduce((v2, p2) => v2 instanceof Object && p2 in v2 ? v2[p2] : void 0, state);
2097
+ }
2098
+ function setWithSelector(state, stringSelector, value) {
2099
+ const parts = stringSelector.split(".");
2100
+ const prefix2 = parts.slice(0, -1);
2101
+ const last = parts[parts.length - 1];
2102
+ for (const part of prefix2) {
2103
+ if (state instanceof Object && part in state) {
2104
+ state = state[part];
2105
+ } else {
2106
+ throw Error(`Could not set ${stringSelector} because path ${stringSelector} doesn't exist`);
2107
+ }
2108
+ }
2109
+ if (state instanceof Object) {
2110
+ state[last] = value;
2111
+ } else {
2112
+ throw Error(`Could not set ${stringSelector} because path ${stringSelector} doesn't exist`);
2113
+ }
2114
+ }
2115
+ function throttle(fn2, ms) {
2116
+ let last = 0;
2117
+ let lastArgs;
2118
+ let timeout;
2119
+ function run() {
2120
+ const args = lastArgs;
2121
+ last = Date.now();
2122
+ lastArgs = void 0;
2123
+ timeout = void 0;
2124
+ fn2(...args);
2125
+ }
2126
+ return function(...args) {
2127
+ const now = Date.now();
2128
+ lastArgs = args;
2129
+ if (timeout)
2130
+ ;
2131
+ else if (now < last + ms) {
2132
+ timeout = setTimeout(run, last + ms - now);
2133
+ } else {
2134
+ run();
2135
+ }
2136
+ };
2137
+ }
2138
+ const RESTART_UPDATE = Symbol("RESTART_UPDATE");
2139
+ class Store$1 {
2140
+ constructor(state, { log = (...data) => console.error(...data) } = {}) {
2141
+ this.state = state;
2142
+ this.subscriptions = /* @__PURE__ */ new Set();
2143
+ this.batchCounter = 0;
2144
+ this.reactions = /* @__PURE__ */ new Set();
2145
+ this.patches = new Array();
2146
+ d(state, true);
2147
+ C();
2148
+ T();
2149
+ this.options = {
2150
+ log
2151
+ };
2152
+ }
2153
+ getState() {
2154
+ return this.state;
2155
+ }
2156
+ update(update) {
2157
+ this.state = fn(this.state, (draft) => update(draft, this.state), (patches) => this.patches.push(...patches));
2158
+ this.notify();
2159
+ }
2160
+ set(state) {
2161
+ this.state = fn(this.state, () => state, (patches) => this.patches.push(...patches));
2162
+ this.notify();
2163
+ }
2164
+ applyPatches(patches) {
2165
+ this.state = pn(this.state, patches);
2166
+ this.patches.push(...patches);
2167
+ this.notify();
2168
+ }
2169
+ batchUpdates(fn2) {
2170
+ try {
2171
+ this.batchCounter++;
2172
+ fn2();
2173
+ } finally {
2174
+ this.batchCounter--;
2175
+ if (this.batchCounter === 0) {
2176
+ this.notify();
2177
+ }
2178
+ }
2179
+ }
2180
+ subscribe(...args) {
2181
+ let selector, listener, options;
2182
+ if (args[1] instanceof Function) {
2183
+ [selector, listener, options] = args;
2184
+ if (typeof selector === "string") {
2185
+ selector = createSelector(selector);
2186
+ }
2187
+ } else {
2188
+ [selector, listener, options] = [(x2) => x2, ...args];
2189
+ }
2190
+ const { runNow = true, throttle: throttle$1 = 0, compare = react } = options !== null && options !== void 0 ? options : {};
2191
+ const throttledListener = throttle$1 ? throttle(listener, throttle$1) : listener;
2192
+ let value = selector(this.state);
2193
+ const internalListener = (state, _patches, init) => {
2194
+ try {
2195
+ this.lock = "subscription";
2196
+ const oldValue = value;
2197
+ value = selector(state);
2198
+ if (!init && compare(value, oldValue))
2199
+ return;
2200
+ (init ? listener : throttledListener)(value, oldValue, this.state);
2201
+ } catch (e2) {
2202
+ this.options.log("Failed to execute listener:", e2);
2203
+ } finally {
2204
+ delete this.lock;
2205
+ }
2206
+ };
2207
+ this.subscriptions.add(internalListener);
2208
+ if (runNow)
2209
+ internalListener(this.state, [], true);
2210
+ return () => {
2211
+ this.subscriptions.delete(internalListener);
2212
+ };
2213
+ }
2214
+ addReaction(...args) {
2215
+ let selector, reaction, options;
2216
+ if (args[1] instanceof Function) {
2217
+ [selector, reaction, options] = args;
2218
+ if (typeof selector === "string") {
2219
+ selector = createSelector(selector);
2220
+ }
2221
+ } else {
2222
+ [selector, reaction, options] = [(x2) => x2, ...args];
2223
+ }
2224
+ const { runNow = true, compare = react } = options !== null && options !== void 0 ? options : {};
2225
+ let value = selector(this.state);
2226
+ const internalListener = (init) => {
2227
+ let hasChanged = false;
2228
+ try {
2229
+ this.lock = "reaction";
2230
+ const oldValue = value;
2231
+ value = selector(this.state);
2232
+ if (!init && compare(value, oldValue))
2233
+ return;
2234
+ this.state = fn(this.state, (draft) => reaction(value, draft, this.state, oldValue), (patches) => {
2235
+ hasChanged = true;
2236
+ this.patches.push(...patches);
2237
+ });
2238
+ } catch (e2) {
2239
+ this.options.log("Failed to execute reaction:", e2);
2240
+ } finally {
2241
+ delete this.lock;
2242
+ }
2243
+ if (hasChanged && !init)
2244
+ throw RESTART_UPDATE;
2245
+ if (hasChanged && init)
2246
+ this.notify();
2247
+ };
2248
+ this.reactions.add(internalListener);
2249
+ if (runNow)
2250
+ internalListener(true);
2251
+ return () => {
2252
+ this.reactions.delete(internalListener);
2253
+ };
2254
+ }
2255
+ subscribePatches(listener) {
2256
+ const internalListener = (_state, patches) => {
2257
+ try {
2258
+ listener(patches);
2259
+ } catch (e2) {
2260
+ this.options.log("Failed to execute patch listener:", e2);
2261
+ }
2262
+ };
2263
+ this.subscriptions.add(internalListener);
2264
+ return () => {
2265
+ this.subscriptions.delete(internalListener);
2266
+ };
2267
+ }
2268
+ checkLock() {
2269
+ if (this.lock === "reaction") {
2270
+ throw Error("You cannot call update from within a reaction. Use the passed draft instead.");
2271
+ } else if (this.lock === "subscription") {
2272
+ throw Error("You cannot call update from within a subscription.");
2273
+ }
2274
+ }
2275
+ notify() {
2276
+ if (this.batchCounter > 0 || this.patches.length === 0)
2277
+ return;
2278
+ try {
2279
+ for (const reaction of this.reactions) {
2280
+ reaction();
2281
+ }
2282
+ } catch (e2) {
2283
+ return this.notify();
2284
+ }
2285
+ const patches = this.patches;
2286
+ this.patches = [];
2287
+ this.batchUpdates(() => {
2288
+ for (const subscription of this.subscriptions) {
2289
+ subscription(this.state, patches);
2290
+ }
2291
+ });
2292
+ }
2293
+ }
2294
+ var withSelector = { exports: {} };
2295
+ var withSelector_production_min = {};
2296
+ var shim = { exports: {} };
2297
+ var useSyncExternalStoreShim_production_min = {};
2298
+ /**
2299
+ * @license React
2300
+ * use-sync-external-store-shim.production.min.js
2301
+ *
2302
+ * Copyright (c) Facebook, Inc. and its affiliates.
2303
+ *
2304
+ * This source code is licensed under the MIT license found in the
2305
+ * LICENSE file in the root directory of this source tree.
2306
+ */
2307
+ var e = require$$0__default["default"];
2308
+ function h$1(a2, b2) {
2309
+ return a2 === b2 && (a2 !== 0 || 1 / a2 === 1 / b2) || a2 !== a2 && b2 !== b2;
2310
+ }
2311
+ var k = typeof Object.is === "function" ? Object.is : h$1, l = e.useState, m = e.useEffect, n$1 = e.useLayoutEffect, p$1 = e.useDebugValue;
2312
+ function q$1(a2, b2) {
2313
+ var d2 = b2(), f2 = l({ inst: { value: d2, getSnapshot: b2 } }), c2 = f2[0].inst, g2 = f2[1];
2314
+ n$1(function() {
2315
+ c2.value = d2;
2316
+ c2.getSnapshot = b2;
2317
+ r$1(c2) && g2({ inst: c2 });
2318
+ }, [a2, d2, b2]);
2319
+ m(function() {
2320
+ r$1(c2) && g2({ inst: c2 });
2321
+ return a2(function() {
2322
+ r$1(c2) && g2({ inst: c2 });
2323
+ });
2324
+ }, [a2]);
2325
+ p$1(d2);
2326
+ return d2;
2327
+ }
2328
+ function r$1(a2) {
2329
+ var b2 = a2.getSnapshot;
2330
+ a2 = a2.value;
2331
+ try {
2332
+ var d2 = b2();
2333
+ return !k(a2, d2);
2334
+ } catch (f2) {
2335
+ return true;
2336
+ }
2337
+ }
2338
+ function t$1(a2, b2) {
2339
+ return b2();
2340
+ }
2341
+ var u$1 = typeof window === "undefined" || typeof window.document === "undefined" || typeof window.document.createElement === "undefined" ? t$1 : q$1;
2342
+ useSyncExternalStoreShim_production_min.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : u$1;
2343
+ {
2344
+ shim.exports = useSyncExternalStoreShim_production_min;
2345
+ }
2346
+ /**
2347
+ * @license React
2348
+ * use-sync-external-store-shim/with-selector.production.min.js
2349
+ *
2350
+ * Copyright (c) Facebook, Inc. and its affiliates.
2351
+ *
2352
+ * This source code is licensed under the MIT license found in the
2353
+ * LICENSE file in the root directory of this source tree.
2354
+ */
2355
+ var h = require$$0__default["default"], n = shim.exports;
2356
+ function p(a2, b2) {
2357
+ return a2 === b2 && (a2 !== 0 || 1 / a2 === 1 / b2) || a2 !== a2 && b2 !== b2;
2358
+ }
2359
+ var q = typeof Object.is === "function" ? Object.is : p, r = n.useSyncExternalStore, t = h.useRef, u = h.useEffect, v = h.useMemo, w = h.useDebugValue;
2360
+ withSelector_production_min.useSyncExternalStoreWithSelector = function(a2, b2, e2, l2, g2) {
2361
+ var c2 = t(null);
2362
+ if (c2.current === null) {
2363
+ var f2 = { hasValue: false, value: null };
2364
+ c2.current = f2;
2365
+ } else
2366
+ f2 = c2.current;
2367
+ c2 = v(function() {
2368
+ function a3(a4) {
2369
+ if (!c3) {
2370
+ c3 = true;
2371
+ d3 = a4;
2372
+ a4 = l2(a4);
2373
+ if (g2 !== void 0 && f2.hasValue) {
2374
+ var b3 = f2.value;
2375
+ if (g2(b3, a4))
2376
+ return k2 = b3;
2377
+ }
2378
+ return k2 = a4;
2379
+ }
2380
+ b3 = k2;
2381
+ if (q(d3, a4))
2382
+ return b3;
2383
+ var e3 = l2(a4);
2384
+ if (g2 !== void 0 && g2(b3, e3))
2385
+ return b3;
2386
+ d3 = a4;
2387
+ return k2 = e3;
2388
+ }
2389
+ var c3 = false, d3, k2, m2 = e2 === void 0 ? null : e2;
2390
+ return [function() {
2391
+ return a3(b2());
2392
+ }, m2 === null ? void 0 : function() {
2393
+ return a3(m2());
2394
+ }];
2395
+ }, [b2, e2, l2, g2]);
2396
+ var d2 = r(a2, c2[0], c2[1]);
2397
+ u(function() {
2398
+ f2.hasValue = true;
2399
+ f2.value = d2;
2400
+ }, [d2]);
2401
+ w(d2);
2402
+ return d2;
2403
+ };
2404
+ {
2405
+ withSelector.exports = withSelector_production_min;
2406
+ }
2407
+ function useStoreState(store, ...args) {
2408
+ var _a, _b, _c, _d;
2409
+ let selector, options;
2410
+ if (args[0] instanceof Function) {
2411
+ selector = args[0];
2412
+ options = (_a = args[1]) !== null && _a !== void 0 ? _a : {};
2413
+ } else if (typeof args[0] === "string") {
2414
+ selector = createSelector(args[0]);
2415
+ options = (_b = args[1]) !== null && _b !== void 0 ? _b : {};
2416
+ } else {
2417
+ selector = (x2) => x2;
2418
+ options = (_c = args[0]) !== null && _c !== void 0 ? _c : {};
2419
+ }
2420
+ const subscribe = require$$0.useCallback((listener) => {
2421
+ return store.subscribe((x2) => x2, listener, {
2422
+ throttle: options.throttle,
2423
+ runNow: false,
2424
+ compare: (a2, b2) => a2 === b2
2425
+ });
2426
+ }, [store, options.throttle]);
2427
+ const value = withSelector.exports.useSyncExternalStoreWithSelector(subscribe, () => store.getState(), void 0, selector, (_d = options.compare) !== null && _d !== void 0 ? _d : react);
2428
+ require$$0.useDebugValue(value);
2429
+ return value;
2430
+ }
2431
+ function useStoreProp(store, selector) {
2432
+ const value = useStoreState(store, selector);
2433
+ const update = (value2) => store.update((state) => setWithSelector(state, selector, value2));
2434
+ return [value, update];
2435
+ }
2436
+ class Store extends Store$1 {
2437
+ useState(...args) {
2438
+ return useStoreState(this, ...args);
2439
+ }
2440
+ useProp(selector) {
2441
+ return useStoreProp(this, selector);
2442
+ }
2443
+ }
2444
+ class StoreScope {
2445
+ constructor(defaultValue) {
2446
+ this.defaultValue = defaultValue;
2447
+ this.Provider = ({ children, store }) => {
2448
+ const _store = require$$0.useMemo(() => store !== null && store !== void 0 ? store : new Store(this.defaultValue), [store]);
2449
+ return jsx$1(this.context.Provider, Object.assign({ value: _store }, { children }), void 0);
2450
+ };
2451
+ this.withScope = (Component) => {
2452
+ return (args) => jsx$1(this.Provider, { children: jsx$1(Component, Object.assign({}, args), void 0) }, void 0);
2453
+ };
2454
+ this.context = require$$0.createContext(new Store(defaultValue));
2455
+ }
2456
+ useStore() {
2457
+ return require$$0.useContext(this.context);
2458
+ }
2459
+ useState(...args) {
2460
+ const store = this.useStore();
2461
+ return useStoreState(store, ...args);
2462
+ }
2463
+ useProp(selector) {
2464
+ const store = this.useStore();
2465
+ return useStoreProp(store, selector);
2466
+ }
2467
+ }
2468
+ exports.ClassNames = ClassNames;
2469
+ exports.Fragment = Fragment;
2470
+ exports.K = K;
2471
+ exports.StoreScope = StoreScope;
2472
+ exports.css = css;
2473
+ exports.jsx = jsx;
2474
+ exports.jsxs = jsxs;
2475
+ //# sourceMappingURL=vendor.a5ec605d.js.map