@pezkuwi/react-identicon 3.16.6

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 (115) hide show
  1. package/README.md +34 -0
  2. package/build/Identicon.d.ts +5 -0
  3. package/build/Identicon.js +104 -0
  4. package/build/LICENSE +201 -0
  5. package/build/README.md +34 -0
  6. package/build/bundle-pezkuwi-react-identicon.js +2858 -0
  7. package/build/bundle.d.ts +3 -0
  8. package/build/bundle.js +3 -0
  9. package/build/cjs/Identicon.d.ts +5 -0
  10. package/build/cjs/Identicon.js +108 -0
  11. package/build/cjs/bundle.d.ts +3 -0
  12. package/build/cjs/bundle.js +9 -0
  13. package/build/cjs/icons/Beachball.d.ts +5 -0
  14. package/build/cjs/icons/Beachball.js +17 -0
  15. package/build/cjs/icons/Empty.d.ts +5 -0
  16. package/build/cjs/icons/Empty.js +10 -0
  17. package/build/cjs/icons/Ethereum.d.ts +5 -0
  18. package/build/cjs/icons/Ethereum.js +18 -0
  19. package/build/cjs/icons/Jdenticon.d.ts +5 -0
  20. package/build/cjs/icons/Jdenticon.js +12 -0
  21. package/build/cjs/icons/Polkadot.d.ts +5 -0
  22. package/build/cjs/icons/Polkadot.js +15 -0
  23. package/build/cjs/icons/index.d.ts +5 -0
  24. package/build/cjs/icons/index.js +13 -0
  25. package/build/cjs/index.d.ts +4 -0
  26. package/build/cjs/index.js +7 -0
  27. package/build/cjs/package.json +3 -0
  28. package/build/cjs/packageDetect.d.ts +1 -0
  29. package/build/cjs/packageDetect.js +7 -0
  30. package/build/cjs/packageInfo.d.ts +6 -0
  31. package/build/cjs/packageInfo.js +4 -0
  32. package/build/cjs/styled.d.ts +1 -0
  33. package/build/cjs/styled.js +5 -0
  34. package/build/cjs/types.d.ts +23 -0
  35. package/build/cjs/types.js +2 -0
  36. package/build/icons/Beachball.d.ts +5 -0
  37. package/build/icons/Beachball.js +13 -0
  38. package/build/icons/Empty.d.ts +5 -0
  39. package/build/icons/Empty.js +6 -0
  40. package/build/icons/Ethereum.d.ts +5 -0
  41. package/build/icons/Ethereum.js +14 -0
  42. package/build/icons/Jdenticon.d.ts +5 -0
  43. package/build/icons/Jdenticon.js +8 -0
  44. package/build/icons/Polkadot.d.ts +5 -0
  45. package/build/icons/Polkadot.js +11 -0
  46. package/build/icons/index.d.ts +5 -0
  47. package/build/icons/index.js +5 -0
  48. package/build/index.d.ts +4 -0
  49. package/build/index.js +4 -0
  50. package/build/package.json +249 -0
  51. package/build/packageDetect.d.ts +1 -0
  52. package/build/packageDetect.js +5 -0
  53. package/build/packageInfo.d.ts +6 -0
  54. package/build/packageInfo.js +1 -0
  55. package/build/styled.d.ts +1 -0
  56. package/build/styled.js +1 -0
  57. package/build/types.d.ts +23 -0
  58. package/build/types.js +1 -0
  59. package/build-tsc/Identicon.d.ts +5 -0
  60. package/build-tsc/bundle.d.ts +3 -0
  61. package/build-tsc/icons/Beachball.d.ts +5 -0
  62. package/build-tsc/icons/Empty.d.ts +5 -0
  63. package/build-tsc/icons/Ethereum.d.ts +5 -0
  64. package/build-tsc/icons/Jdenticon.d.ts +5 -0
  65. package/build-tsc/icons/Polkadot.d.ts +5 -0
  66. package/build-tsc/icons/index.d.ts +5 -0
  67. package/build-tsc/index.d.ts +4 -0
  68. package/build-tsc/packageDetect.d.ts +1 -0
  69. package/build-tsc/packageInfo.d.ts +6 -0
  70. package/build-tsc/styled.d.ts +1 -0
  71. package/build-tsc/types.d.ts +23 -0
  72. package/build-tsc-cjs/Identicon.js +108 -0
  73. package/build-tsc-cjs/bundle.js +9 -0
  74. package/build-tsc-cjs/icons/Beachball.js +17 -0
  75. package/build-tsc-cjs/icons/Empty.js +10 -0
  76. package/build-tsc-cjs/icons/Ethereum.js +18 -0
  77. package/build-tsc-cjs/icons/Jdenticon.js +12 -0
  78. package/build-tsc-cjs/icons/Polkadot.js +15 -0
  79. package/build-tsc-cjs/icons/index.js +13 -0
  80. package/build-tsc-cjs/index.js +7 -0
  81. package/build-tsc-cjs/packageDetect.js +7 -0
  82. package/build-tsc-cjs/packageInfo.js +4 -0
  83. package/build-tsc-cjs/styled.js +5 -0
  84. package/build-tsc-cjs/types.js +2 -0
  85. package/build-tsc-esm/Identicon.js +104 -0
  86. package/build-tsc-esm/bundle.js +3 -0
  87. package/build-tsc-esm/icons/Beachball.js +13 -0
  88. package/build-tsc-esm/icons/Empty.js +6 -0
  89. package/build-tsc-esm/icons/Ethereum.js +14 -0
  90. package/build-tsc-esm/icons/Jdenticon.js +8 -0
  91. package/build-tsc-esm/icons/Polkadot.js +11 -0
  92. package/build-tsc-esm/icons/index.js +5 -0
  93. package/build-tsc-esm/index.js +4 -0
  94. package/build-tsc-esm/packageDetect.js +5 -0
  95. package/build-tsc-esm/packageInfo.js +1 -0
  96. package/build-tsc-esm/styled.js +1 -0
  97. package/build-tsc-esm/types.js +1 -0
  98. package/demo.png +0 -0
  99. package/index.html +17 -0
  100. package/package.json +48 -0
  101. package/src/Identicon.tsx +154 -0
  102. package/src/bundle.ts +6 -0
  103. package/src/icons/Beachball.tsx +32 -0
  104. package/src/icons/Empty.tsx +20 -0
  105. package/src/icons/Ethereum.tsx +37 -0
  106. package/src/icons/Jdenticon.tsx +24 -0
  107. package/src/icons/Polkadot.tsx +59 -0
  108. package/src/icons/index.ts +8 -0
  109. package/src/index.ts +10 -0
  110. package/src/packageDetect.ts +13 -0
  111. package/src/packageInfo.ts +6 -0
  112. package/src/styled.ts +4 -0
  113. package/src/types.ts +30 -0
  114. package/tsconfig.build.json +12 -0
  115. package/tsconfig.build.tsbuildinfo +1 -0
@@ -0,0 +1,2858 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('@pezkuwi/ui-settings'), require('@pezkuwi/util'), require('@pezkuwi/util-crypto')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'react', '@pezkuwi/ui-settings', '@pezkuwi/util', '@pezkuwi/util-crypto'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.pezkuwiReactIdenticon = {}, global.React, global.pezkuwiUiSettings, global.pezkuwiUtil, global.pezkuwiUtilCrypto));
5
+ })(this, (function (exports, o$1, uiSettings, util, utilCrypto) { 'use strict';
6
+
7
+ const global = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : window;
8
+
9
+ var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
10
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
11
+
12
+ function getDefaultExportFromCjs (x) {
13
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
14
+ }
15
+
16
+ var jsxRuntime = {exports: {}};
17
+
18
+ var reactJsxRuntime_production_min = {};
19
+
20
+ /**
21
+ * @license React
22
+ * react-jsx-runtime.production.min.js
23
+ *
24
+ * Copyright (c) Facebook, Inc. and its affiliates.
25
+ *
26
+ * This source code is licensed under the MIT license found in the
27
+ * LICENSE file in the root directory of this source tree.
28
+ */
29
+ var hasRequiredReactJsxRuntime_production_min;
30
+ function requireReactJsxRuntime_production_min () {
31
+ if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
32
+ hasRequiredReactJsxRuntime_production_min = 1;
33
+ var f=o$1,k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};
34
+ function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
35
+ return reactJsxRuntime_production_min;
36
+ }
37
+
38
+ var reactJsxRuntime_development = {};
39
+
40
+ /**
41
+ * @license React
42
+ * react-jsx-runtime.development.js
43
+ *
44
+ * Copyright (c) Facebook, Inc. and its affiliates.
45
+ *
46
+ * This source code is licensed under the MIT license found in the
47
+ * LICENSE file in the root directory of this source tree.
48
+ */
49
+ var hasRequiredReactJsxRuntime_development;
50
+ function requireReactJsxRuntime_development () {
51
+ if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
52
+ hasRequiredReactJsxRuntime_development = 1;
53
+ if (process.env.NODE_ENV !== "production") {
54
+ (function() {
55
+ var React = o$1;
56
+ var REACT_ELEMENT_TYPE = Symbol.for('react.element');
57
+ var REACT_PORTAL_TYPE = Symbol.for('react.portal');
58
+ var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
59
+ var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
60
+ var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
61
+ var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
62
+ var REACT_CONTEXT_TYPE = Symbol.for('react.context');
63
+ var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
64
+ var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
65
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
66
+ var REACT_MEMO_TYPE = Symbol.for('react.memo');
67
+ var REACT_LAZY_TYPE = Symbol.for('react.lazy');
68
+ var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
69
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
70
+ var FAUX_ITERATOR_SYMBOL = '@@iterator';
71
+ function getIteratorFn(maybeIterable) {
72
+ if (maybeIterable === null || typeof maybeIterable !== 'object') {
73
+ return null;
74
+ }
75
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
76
+ if (typeof maybeIterator === 'function') {
77
+ return maybeIterator;
78
+ }
79
+ return null;
80
+ }
81
+ var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
82
+ function error(format) {
83
+ {
84
+ {
85
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
86
+ args[_key2 - 1] = arguments[_key2];
87
+ }
88
+ printWarning('error', format, args);
89
+ }
90
+ }
91
+ }
92
+ function printWarning(level, format, args) {
93
+ {
94
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
95
+ var stack = ReactDebugCurrentFrame.getStackAddendum();
96
+ if (stack !== '') {
97
+ format += '%s';
98
+ args = args.concat([stack]);
99
+ }
100
+ var argsWithFormat = args.map(function (item) {
101
+ return String(item);
102
+ });
103
+ argsWithFormat.unshift('Warning: ' + format);
104
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
105
+ }
106
+ }
107
+ var enableScopeAPI = false;
108
+ var enableCacheElement = false;
109
+ var enableTransitionTracing = false;
110
+ var enableLegacyHidden = false;
111
+ var enableDebugTracing = false;
112
+ var REACT_MODULE_REFERENCE;
113
+ {
114
+ REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
115
+ }
116
+ function isValidElementType(type) {
117
+ if (typeof type === 'string' || typeof type === 'function') {
118
+ return true;
119
+ }
120
+ if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
121
+ return true;
122
+ }
123
+ if (typeof type === 'object' && type !== null) {
124
+ if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE ||
125
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
126
+ return true;
127
+ }
128
+ }
129
+ return false;
130
+ }
131
+ function getWrappedName(outerType, innerType, wrapperName) {
132
+ var displayName = outerType.displayName;
133
+ if (displayName) {
134
+ return displayName;
135
+ }
136
+ var functionName = innerType.displayName || innerType.name || '';
137
+ return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
138
+ }
139
+ function getContextName(type) {
140
+ return type.displayName || 'Context';
141
+ }
142
+ function getComponentNameFromType(type) {
143
+ if (type == null) {
144
+ return null;
145
+ }
146
+ {
147
+ if (typeof type.tag === 'number') {
148
+ error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
149
+ }
150
+ }
151
+ if (typeof type === 'function') {
152
+ return type.displayName || type.name || null;
153
+ }
154
+ if (typeof type === 'string') {
155
+ return type;
156
+ }
157
+ switch (type) {
158
+ case REACT_FRAGMENT_TYPE:
159
+ return 'Fragment';
160
+ case REACT_PORTAL_TYPE:
161
+ return 'Portal';
162
+ case REACT_PROFILER_TYPE:
163
+ return 'Profiler';
164
+ case REACT_STRICT_MODE_TYPE:
165
+ return 'StrictMode';
166
+ case REACT_SUSPENSE_TYPE:
167
+ return 'Suspense';
168
+ case REACT_SUSPENSE_LIST_TYPE:
169
+ return 'SuspenseList';
170
+ }
171
+ if (typeof type === 'object') {
172
+ switch (type.$$typeof) {
173
+ case REACT_CONTEXT_TYPE:
174
+ var context = type;
175
+ return getContextName(context) + '.Consumer';
176
+ case REACT_PROVIDER_TYPE:
177
+ var provider = type;
178
+ return getContextName(provider._context) + '.Provider';
179
+ case REACT_FORWARD_REF_TYPE:
180
+ return getWrappedName(type, type.render, 'ForwardRef');
181
+ case REACT_MEMO_TYPE:
182
+ var outerName = type.displayName || null;
183
+ if (outerName !== null) {
184
+ return outerName;
185
+ }
186
+ return getComponentNameFromType(type.type) || 'Memo';
187
+ case REACT_LAZY_TYPE:
188
+ {
189
+ var lazyComponent = type;
190
+ var payload = lazyComponent._payload;
191
+ var init = lazyComponent._init;
192
+ try {
193
+ return getComponentNameFromType(init(payload));
194
+ } catch (x) {
195
+ return null;
196
+ }
197
+ }
198
+ }
199
+ }
200
+ return null;
201
+ }
202
+ var assign = Object.assign;
203
+ var disabledDepth = 0;
204
+ var prevLog;
205
+ var prevInfo;
206
+ var prevWarn;
207
+ var prevError;
208
+ var prevGroup;
209
+ var prevGroupCollapsed;
210
+ var prevGroupEnd;
211
+ function disabledLog() {}
212
+ disabledLog.__reactDisabledLog = true;
213
+ function disableLogs() {
214
+ {
215
+ if (disabledDepth === 0) {
216
+ prevLog = console.log;
217
+ prevInfo = console.info;
218
+ prevWarn = console.warn;
219
+ prevError = console.error;
220
+ prevGroup = console.group;
221
+ prevGroupCollapsed = console.groupCollapsed;
222
+ prevGroupEnd = console.groupEnd;
223
+ var props = {
224
+ configurable: true,
225
+ enumerable: true,
226
+ value: disabledLog,
227
+ writable: true
228
+ };
229
+ Object.defineProperties(console, {
230
+ info: props,
231
+ log: props,
232
+ warn: props,
233
+ error: props,
234
+ group: props,
235
+ groupCollapsed: props,
236
+ groupEnd: props
237
+ });
238
+ }
239
+ disabledDepth++;
240
+ }
241
+ }
242
+ function reenableLogs() {
243
+ {
244
+ disabledDepth--;
245
+ if (disabledDepth === 0) {
246
+ var props = {
247
+ configurable: true,
248
+ enumerable: true,
249
+ writable: true
250
+ };
251
+ Object.defineProperties(console, {
252
+ log: assign({}, props, {
253
+ value: prevLog
254
+ }),
255
+ info: assign({}, props, {
256
+ value: prevInfo
257
+ }),
258
+ warn: assign({}, props, {
259
+ value: prevWarn
260
+ }),
261
+ error: assign({}, props, {
262
+ value: prevError
263
+ }),
264
+ group: assign({}, props, {
265
+ value: prevGroup
266
+ }),
267
+ groupCollapsed: assign({}, props, {
268
+ value: prevGroupCollapsed
269
+ }),
270
+ groupEnd: assign({}, props, {
271
+ value: prevGroupEnd
272
+ })
273
+ });
274
+ }
275
+ if (disabledDepth < 0) {
276
+ error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
277
+ }
278
+ }
279
+ }
280
+ var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
281
+ var prefix;
282
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
283
+ {
284
+ if (prefix === undefined) {
285
+ try {
286
+ throw Error();
287
+ } catch (x) {
288
+ var match = x.stack.trim().match(/\n( *(at )?)/);
289
+ prefix = match && match[1] || '';
290
+ }
291
+ }
292
+ return '\n' + prefix + name;
293
+ }
294
+ }
295
+ var reentry = false;
296
+ var componentFrameCache;
297
+ {
298
+ var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
299
+ componentFrameCache = new PossiblyWeakMap();
300
+ }
301
+ function describeNativeComponentFrame(fn, construct) {
302
+ if ( !fn || reentry) {
303
+ return '';
304
+ }
305
+ {
306
+ var frame = componentFrameCache.get(fn);
307
+ if (frame !== undefined) {
308
+ return frame;
309
+ }
310
+ }
311
+ var control;
312
+ reentry = true;
313
+ var previousPrepareStackTrace = Error.prepareStackTrace;
314
+ Error.prepareStackTrace = undefined;
315
+ var previousDispatcher;
316
+ {
317
+ previousDispatcher = ReactCurrentDispatcher.current;
318
+ ReactCurrentDispatcher.current = null;
319
+ disableLogs();
320
+ }
321
+ try {
322
+ if (construct) {
323
+ var Fake = function () {
324
+ throw Error();
325
+ };
326
+ Object.defineProperty(Fake.prototype, 'props', {
327
+ set: function () {
328
+ throw Error();
329
+ }
330
+ });
331
+ if (typeof Reflect === 'object' && Reflect.construct) {
332
+ try {
333
+ Reflect.construct(Fake, []);
334
+ } catch (x) {
335
+ control = x;
336
+ }
337
+ Reflect.construct(fn, [], Fake);
338
+ } else {
339
+ try {
340
+ Fake.call();
341
+ } catch (x) {
342
+ control = x;
343
+ }
344
+ fn.call(Fake.prototype);
345
+ }
346
+ } else {
347
+ try {
348
+ throw Error();
349
+ } catch (x) {
350
+ control = x;
351
+ }
352
+ fn();
353
+ }
354
+ } catch (sample) {
355
+ if (sample && control && typeof sample.stack === 'string') {
356
+ var sampleLines = sample.stack.split('\n');
357
+ var controlLines = control.stack.split('\n');
358
+ var s = sampleLines.length - 1;
359
+ var c = controlLines.length - 1;
360
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
361
+ c--;
362
+ }
363
+ for (; s >= 1 && c >= 0; s--, c--) {
364
+ if (sampleLines[s] !== controlLines[c]) {
365
+ if (s !== 1 || c !== 1) {
366
+ do {
367
+ s--;
368
+ c--;
369
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
370
+ var _frame = '\n' + sampleLines[s].replace(' at new ', ' at ');
371
+ if (fn.displayName && _frame.includes('<anonymous>')) {
372
+ _frame = _frame.replace('<anonymous>', fn.displayName);
373
+ }
374
+ {
375
+ if (typeof fn === 'function') {
376
+ componentFrameCache.set(fn, _frame);
377
+ }
378
+ }
379
+ return _frame;
380
+ }
381
+ } while (s >= 1 && c >= 0);
382
+ }
383
+ break;
384
+ }
385
+ }
386
+ }
387
+ } finally {
388
+ reentry = false;
389
+ {
390
+ ReactCurrentDispatcher.current = previousDispatcher;
391
+ reenableLogs();
392
+ }
393
+ Error.prepareStackTrace = previousPrepareStackTrace;
394
+ }
395
+ var name = fn ? fn.displayName || fn.name : '';
396
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
397
+ {
398
+ if (typeof fn === 'function') {
399
+ componentFrameCache.set(fn, syntheticFrame);
400
+ }
401
+ }
402
+ return syntheticFrame;
403
+ }
404
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
405
+ {
406
+ return describeNativeComponentFrame(fn, false);
407
+ }
408
+ }
409
+ function shouldConstruct(Component) {
410
+ var prototype = Component.prototype;
411
+ return !!(prototype && prototype.isReactComponent);
412
+ }
413
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
414
+ if (type == null) {
415
+ return '';
416
+ }
417
+ if (typeof type === 'function') {
418
+ {
419
+ return describeNativeComponentFrame(type, shouldConstruct(type));
420
+ }
421
+ }
422
+ if (typeof type === 'string') {
423
+ return describeBuiltInComponentFrame(type);
424
+ }
425
+ switch (type) {
426
+ case REACT_SUSPENSE_TYPE:
427
+ return describeBuiltInComponentFrame('Suspense');
428
+ case REACT_SUSPENSE_LIST_TYPE:
429
+ return describeBuiltInComponentFrame('SuspenseList');
430
+ }
431
+ if (typeof type === 'object') {
432
+ switch (type.$$typeof) {
433
+ case REACT_FORWARD_REF_TYPE:
434
+ return describeFunctionComponentFrame(type.render);
435
+ case REACT_MEMO_TYPE:
436
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
437
+ case REACT_LAZY_TYPE:
438
+ {
439
+ var lazyComponent = type;
440
+ var payload = lazyComponent._payload;
441
+ var init = lazyComponent._init;
442
+ try {
443
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
444
+ } catch (x) {}
445
+ }
446
+ }
447
+ }
448
+ return '';
449
+ }
450
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
451
+ var loggedTypeFailures = {};
452
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
453
+ function setCurrentlyValidatingElement(element) {
454
+ {
455
+ if (element) {
456
+ var owner = element._owner;
457
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
458
+ ReactDebugCurrentFrame.setExtraStackFrame(stack);
459
+ } else {
460
+ ReactDebugCurrentFrame.setExtraStackFrame(null);
461
+ }
462
+ }
463
+ }
464
+ function checkPropTypes(typeSpecs, values, location, componentName, element) {
465
+ {
466
+ var has = Function.call.bind(hasOwnProperty);
467
+ for (var typeSpecName in typeSpecs) {
468
+ if (has(typeSpecs, typeSpecName)) {
469
+ var error$1 = void 0;
470
+ try {
471
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
472
+ var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
473
+ err.name = 'Invariant Violation';
474
+ throw err;
475
+ }
476
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
477
+ } catch (ex) {
478
+ error$1 = ex;
479
+ }
480
+ if (error$1 && !(error$1 instanceof Error)) {
481
+ setCurrentlyValidatingElement(element);
482
+ error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);
483
+ setCurrentlyValidatingElement(null);
484
+ }
485
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
486
+ loggedTypeFailures[error$1.message] = true;
487
+ setCurrentlyValidatingElement(element);
488
+ error('Failed %s type: %s', location, error$1.message);
489
+ setCurrentlyValidatingElement(null);
490
+ }
491
+ }
492
+ }
493
+ }
494
+ }
495
+ var isArrayImpl = Array.isArray;
496
+ function isArray(a) {
497
+ return isArrayImpl(a);
498
+ }
499
+ function typeName(value) {
500
+ {
501
+ var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
502
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
503
+ return type;
504
+ }
505
+ }
506
+ function willCoercionThrow(value) {
507
+ {
508
+ try {
509
+ testStringCoercion(value);
510
+ return false;
511
+ } catch (e) {
512
+ return true;
513
+ }
514
+ }
515
+ }
516
+ function testStringCoercion(value) {
517
+ return '' + value;
518
+ }
519
+ function checkKeyStringCoercion(value) {
520
+ {
521
+ if (willCoercionThrow(value)) {
522
+ error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
523
+ return testStringCoercion(value);
524
+ }
525
+ }
526
+ }
527
+ var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
528
+ var RESERVED_PROPS = {
529
+ key: true,
530
+ ref: true,
531
+ __self: true,
532
+ __source: true
533
+ };
534
+ var specialPropKeyWarningShown;
535
+ var specialPropRefWarningShown;
536
+ var didWarnAboutStringRefs;
537
+ {
538
+ didWarnAboutStringRefs = {};
539
+ }
540
+ function hasValidRef(config) {
541
+ {
542
+ if (hasOwnProperty.call(config, 'ref')) {
543
+ var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
544
+ if (getter && getter.isReactWarning) {
545
+ return false;
546
+ }
547
+ }
548
+ }
549
+ return config.ref !== undefined;
550
+ }
551
+ function hasValidKey(config) {
552
+ {
553
+ if (hasOwnProperty.call(config, 'key')) {
554
+ var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
555
+ if (getter && getter.isReactWarning) {
556
+ return false;
557
+ }
558
+ }
559
+ }
560
+ return config.key !== undefined;
561
+ }
562
+ function warnIfStringRefCannotBeAutoConverted(config, self) {
563
+ {
564
+ if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
565
+ var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
566
+ if (!didWarnAboutStringRefs[componentName]) {
567
+ error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
568
+ didWarnAboutStringRefs[componentName] = true;
569
+ }
570
+ }
571
+ }
572
+ }
573
+ function defineKeyPropWarningGetter(props, displayName) {
574
+ {
575
+ var warnAboutAccessingKey = function () {
576
+ if (!specialPropKeyWarningShown) {
577
+ specialPropKeyWarningShown = true;
578
+ error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
579
+ }
580
+ };
581
+ warnAboutAccessingKey.isReactWarning = true;
582
+ Object.defineProperty(props, 'key', {
583
+ get: warnAboutAccessingKey,
584
+ configurable: true
585
+ });
586
+ }
587
+ }
588
+ function defineRefPropWarningGetter(props, displayName) {
589
+ {
590
+ var warnAboutAccessingRef = function () {
591
+ if (!specialPropRefWarningShown) {
592
+ specialPropRefWarningShown = true;
593
+ error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
594
+ }
595
+ };
596
+ warnAboutAccessingRef.isReactWarning = true;
597
+ Object.defineProperty(props, 'ref', {
598
+ get: warnAboutAccessingRef,
599
+ configurable: true
600
+ });
601
+ }
602
+ }
603
+ var ReactElement = function (type, key, ref, self, source, owner, props) {
604
+ var element = {
605
+ $$typeof: REACT_ELEMENT_TYPE,
606
+ type: type,
607
+ key: key,
608
+ ref: ref,
609
+ props: props,
610
+ _owner: owner
611
+ };
612
+ {
613
+ element._store = {};
614
+ Object.defineProperty(element._store, 'validated', {
615
+ configurable: false,
616
+ enumerable: false,
617
+ writable: true,
618
+ value: false
619
+ });
620
+ Object.defineProperty(element, '_self', {
621
+ configurable: false,
622
+ enumerable: false,
623
+ writable: false,
624
+ value: self
625
+ });
626
+ Object.defineProperty(element, '_source', {
627
+ configurable: false,
628
+ enumerable: false,
629
+ writable: false,
630
+ value: source
631
+ });
632
+ if (Object.freeze) {
633
+ Object.freeze(element.props);
634
+ Object.freeze(element);
635
+ }
636
+ }
637
+ return element;
638
+ };
639
+ function jsxDEV(type, config, maybeKey, source, self) {
640
+ {
641
+ var propName;
642
+ var props = {};
643
+ var key = null;
644
+ var ref = null;
645
+ if (maybeKey !== undefined) {
646
+ {
647
+ checkKeyStringCoercion(maybeKey);
648
+ }
649
+ key = '' + maybeKey;
650
+ }
651
+ if (hasValidKey(config)) {
652
+ {
653
+ checkKeyStringCoercion(config.key);
654
+ }
655
+ key = '' + config.key;
656
+ }
657
+ if (hasValidRef(config)) {
658
+ ref = config.ref;
659
+ warnIfStringRefCannotBeAutoConverted(config, self);
660
+ }
661
+ for (propName in config) {
662
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
663
+ props[propName] = config[propName];
664
+ }
665
+ }
666
+ if (type && type.defaultProps) {
667
+ var defaultProps = type.defaultProps;
668
+ for (propName in defaultProps) {
669
+ if (props[propName] === undefined) {
670
+ props[propName] = defaultProps[propName];
671
+ }
672
+ }
673
+ }
674
+ if (key || ref) {
675
+ var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
676
+ if (key) {
677
+ defineKeyPropWarningGetter(props, displayName);
678
+ }
679
+ if (ref) {
680
+ defineRefPropWarningGetter(props, displayName);
681
+ }
682
+ }
683
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
684
+ }
685
+ }
686
+ var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
687
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
688
+ function setCurrentlyValidatingElement$1(element) {
689
+ {
690
+ if (element) {
691
+ var owner = element._owner;
692
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
693
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
694
+ } else {
695
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
696
+ }
697
+ }
698
+ }
699
+ var propTypesMisspellWarningShown;
700
+ {
701
+ propTypesMisspellWarningShown = false;
702
+ }
703
+ function isValidElement(object) {
704
+ {
705
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
706
+ }
707
+ }
708
+ function getDeclarationErrorAddendum() {
709
+ {
710
+ if (ReactCurrentOwner$1.current) {
711
+ var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
712
+ if (name) {
713
+ return '\n\nCheck the render method of `' + name + '`.';
714
+ }
715
+ }
716
+ return '';
717
+ }
718
+ }
719
+ function getSourceInfoErrorAddendum(source) {
720
+ {
721
+ return '';
722
+ }
723
+ }
724
+ var ownerHasKeyUseWarning = {};
725
+ function getCurrentComponentErrorInfo(parentType) {
726
+ {
727
+ var info = getDeclarationErrorAddendum();
728
+ if (!info) {
729
+ var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
730
+ if (parentName) {
731
+ info = "\n\nCheck the top-level render call using <" + parentName + ">.";
732
+ }
733
+ }
734
+ return info;
735
+ }
736
+ }
737
+ function validateExplicitKey(element, parentType) {
738
+ {
739
+ if (!element._store || element._store.validated || element.key != null) {
740
+ return;
741
+ }
742
+ element._store.validated = true;
743
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
744
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
745
+ return;
746
+ }
747
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
748
+ var childOwner = '';
749
+ if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
750
+ childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
751
+ }
752
+ setCurrentlyValidatingElement$1(element);
753
+ error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
754
+ setCurrentlyValidatingElement$1(null);
755
+ }
756
+ }
757
+ function validateChildKeys(node, parentType) {
758
+ {
759
+ if (typeof node !== 'object') {
760
+ return;
761
+ }
762
+ if (isArray(node)) {
763
+ for (var i = 0; i < node.length; i++) {
764
+ var child = node[i];
765
+ if (isValidElement(child)) {
766
+ validateExplicitKey(child, parentType);
767
+ }
768
+ }
769
+ } else if (isValidElement(node)) {
770
+ if (node._store) {
771
+ node._store.validated = true;
772
+ }
773
+ } else if (node) {
774
+ var iteratorFn = getIteratorFn(node);
775
+ if (typeof iteratorFn === 'function') {
776
+ if (iteratorFn !== node.entries) {
777
+ var iterator = iteratorFn.call(node);
778
+ var step;
779
+ while (!(step = iterator.next()).done) {
780
+ if (isValidElement(step.value)) {
781
+ validateExplicitKey(step.value, parentType);
782
+ }
783
+ }
784
+ }
785
+ }
786
+ }
787
+ }
788
+ }
789
+ function validatePropTypes(element) {
790
+ {
791
+ var type = element.type;
792
+ if (type === null || type === undefined || typeof type === 'string') {
793
+ return;
794
+ }
795
+ var propTypes;
796
+ if (typeof type === 'function') {
797
+ propTypes = type.propTypes;
798
+ } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE ||
799
+ type.$$typeof === REACT_MEMO_TYPE)) {
800
+ propTypes = type.propTypes;
801
+ } else {
802
+ return;
803
+ }
804
+ if (propTypes) {
805
+ var name = getComponentNameFromType(type);
806
+ checkPropTypes(propTypes, element.props, 'prop', name, element);
807
+ } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
808
+ propTypesMisspellWarningShown = true;
809
+ var _name = getComponentNameFromType(type);
810
+ error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
811
+ }
812
+ if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
813
+ error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
814
+ }
815
+ }
816
+ }
817
+ function validateFragmentProps(fragment) {
818
+ {
819
+ var keys = Object.keys(fragment.props);
820
+ for (var i = 0; i < keys.length; i++) {
821
+ var key = keys[i];
822
+ if (key !== 'children' && key !== 'key') {
823
+ setCurrentlyValidatingElement$1(fragment);
824
+ error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
825
+ setCurrentlyValidatingElement$1(null);
826
+ break;
827
+ }
828
+ }
829
+ if (fragment.ref !== null) {
830
+ setCurrentlyValidatingElement$1(fragment);
831
+ error('Invalid attribute `ref` supplied to `React.Fragment`.');
832
+ setCurrentlyValidatingElement$1(null);
833
+ }
834
+ }
835
+ }
836
+ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
837
+ {
838
+ var validType = isValidElementType(type);
839
+ if (!validType) {
840
+ var info = '';
841
+ if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
842
+ info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
843
+ }
844
+ var sourceInfo = getSourceInfoErrorAddendum();
845
+ if (sourceInfo) {
846
+ info += sourceInfo;
847
+ } else {
848
+ info += getDeclarationErrorAddendum();
849
+ }
850
+ var typeString;
851
+ if (type === null) {
852
+ typeString = 'null';
853
+ } else if (isArray(type)) {
854
+ typeString = 'array';
855
+ } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
856
+ typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
857
+ info = ' Did you accidentally export a JSX literal instead of a component?';
858
+ } else {
859
+ typeString = typeof type;
860
+ }
861
+ error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
862
+ }
863
+ var element = jsxDEV(type, props, key, source, self);
864
+ if (element == null) {
865
+ return element;
866
+ }
867
+ if (validType) {
868
+ var children = props.children;
869
+ if (children !== undefined) {
870
+ if (isStaticChildren) {
871
+ if (isArray(children)) {
872
+ for (var i = 0; i < children.length; i++) {
873
+ validateChildKeys(children[i], type);
874
+ }
875
+ if (Object.freeze) {
876
+ Object.freeze(children);
877
+ }
878
+ } else {
879
+ error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');
880
+ }
881
+ } else {
882
+ validateChildKeys(children, type);
883
+ }
884
+ }
885
+ }
886
+ if (type === REACT_FRAGMENT_TYPE) {
887
+ validateFragmentProps(element);
888
+ } else {
889
+ validatePropTypes(element);
890
+ }
891
+ return element;
892
+ }
893
+ }
894
+ function jsxWithValidationStatic(type, props, key) {
895
+ {
896
+ return jsxWithValidation(type, props, key, true);
897
+ }
898
+ }
899
+ function jsxWithValidationDynamic(type, props, key) {
900
+ {
901
+ return jsxWithValidation(type, props, key, false);
902
+ }
903
+ }
904
+ var jsx = jsxWithValidationDynamic ;
905
+ var jsxs = jsxWithValidationStatic ;
906
+ reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
907
+ reactJsxRuntime_development.jsx = jsx;
908
+ reactJsxRuntime_development.jsxs = jsxs;
909
+ })();
910
+ }
911
+ return reactJsxRuntime_development;
912
+ }
913
+
914
+ if (process.env.NODE_ENV === 'production') {
915
+ jsxRuntime.exports = requireReactJsxRuntime_production_min();
916
+ } else {
917
+ jsxRuntime.exports = requireReactJsxRuntime_development();
918
+ }
919
+ var jsxRuntimeExports = jsxRuntime.exports;
920
+ getDefaultExportFromCjs(jsxRuntimeExports);
921
+
922
+ const COLORS = [
923
+ '#ffe119', '#4363d8', '#f58231', '#fabebe', '#e6beff', '#800000', '#000075', '#a9a9a9', '#ffffff', '#000000'
924
+ ];
925
+ const SHAPE_COUNT = 5;
926
+
927
+ const SVG_NS = 'http://www.w3.org/2000/svg';
928
+ function svg(type) {
929
+ return document.createElementNS(SVG_NS, type);
930
+ }
931
+
932
+ function circle$1(r, cx, cy) {
933
+ const elem = svg('circle');
934
+ elem.setAttributeNS('', 'cx', `${cx}`);
935
+ elem.setAttributeNS('', 'cy', `${cy}`);
936
+ elem.setAttributeNS('', 'r', `${r}`);
937
+ return elem;
938
+ }
939
+
940
+ function circle(seeder, fill, diameter, count) {
941
+ const center = diameter / 2;
942
+ const angle = seeder() * 360;
943
+ const radius = (((SHAPE_COUNT - count) / SHAPE_COUNT) * (diameter / 2)) + ((diameter / 8) * seeder());
944
+ const offset = (diameter / 4) * (seeder() + ((count + 1) / SHAPE_COUNT));
945
+ const cx = (offset * Math.sin(angle)) + center;
946
+ const cy = (offset * Math.cos(angle)) + center;
947
+ const svg = circle$1(radius, cx, cy);
948
+ svg.setAttributeNS('', 'fill', fill);
949
+ return svg;
950
+ }
951
+
952
+ function element(size, type = 'svg', x = 0, y = 0) {
953
+ const elem = svg(type);
954
+ elem.setAttributeNS('', 'x', `${x}`);
955
+ elem.setAttributeNS('', 'y', `${y}`);
956
+ elem.setAttributeNS('', 'width', `${size}`);
957
+ elem.setAttributeNS('', 'height', `${size}`);
958
+ return elem;
959
+ }
960
+
961
+ var r={grad:.9,turn:360,rad:360/(2*Math.PI)},t=function(r){return "string"==typeof r?r.length>0:"number"==typeof r},n=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*r)/n+0},e=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),r>n?n:r>t?r:t},u=function(r){return (r=isFinite(r)?r%360:0)>0?r:r+360},a=function(r){return {r:e(r.r,0,255),g:e(r.g,0,255),b:e(r.b,0,255),a:e(r.a)}},o=function(r){return {r:n(r.r),g:n(r.g),b:n(r.b),a:n(r.a,3)}},i=/^#([0-9a-f]{3,8})$/i,s=function(r){var t=r.toString(16);return t.length<2?"0"+t:t},h=function(r){var t=r.r,n=r.g,e=r.b,u=r.a,a=Math.max(t,n,e),o=a-Math.min(t,n,e),i=o?a===t?(n-e)/o:a===n?2+(e-t)/o:4+(t-n)/o:0;return {h:60*(i<0?i+6:i),s:a?o/a*100:0,v:a/255*100,a:u}},b$1=function(r){var t=r.h,n=r.s,e=r.v,u=r.a;t=t/360*6,n/=100,e/=100;var a=Math.floor(t),o=e*(1-n),i=e*(1-(t-a)*n),s=e*(1-(1-t+a)*n),h=a%6;return {r:255*[e,i,o,o,s,e][h],g:255*[s,e,e,i,o,o][h],b:255*[o,o,s,e,e,i][h],a:u}},g=function(r){return {h:u(r.h),s:e(r.s,0,100),l:e(r.l,0,100),a:e(r.a)}},d=function(r){return {h:n(r.h),s:n(r.s),l:n(r.l),a:n(r.a,3)}},f$1=function(r){return b$1((n=(t=r).s,{h:t.h,s:(n*=((e=t.l)<50?e:100-e)/100)>0?2*n/(e+n)*100:0,v:e+n,a:t.a}));var t,n,e;},c=function(r){return {h:(t=h(r)).h,s:(u=(200-(n=t.s))*(e=t.v)/100)>0&&u<200?n*e/100/(u<=100?u:200-u)*100:0,l:u/2,a:t.a};var t,n,e,u;},l=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,p=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,v$1=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,m=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y$1={string:[[function(r){var t=i.exec(r);return t?(r=t[1]).length<=4?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:4===r.length?n(parseInt(r[3]+r[3],16)/255,2):1}:6===r.length||8===r.length?{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.substr(4,2),16),a:8===r.length?n(parseInt(r.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(r){var t=v$1.exec(r)||m.exec(r);return t?t[2]!==t[4]||t[4]!==t[6]?null:a({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(t){var n=l.exec(t)||p.exec(t);if(!n)return null;var e,u,a=g({h:(e=n[1],u=n[2],void 0===u&&(u="deg"),Number(e)*(r[u]||1)),s:Number(n[3]),l:Number(n[4]),a:void 0===n[5]?1:Number(n[5])/(n[6]?100:1)});return f$1(a)},"hsl"]],object:[[function(r){var n=r.r,e=r.g,u=r.b,o=r.a,i=void 0===o?1:o;return t(n)&&t(e)&&t(u)?a({r:Number(n),g:Number(e),b:Number(u),a:Number(i)}):null},"rgb"],[function(r){var n=r.h,e=r.s,u=r.l,a=r.a,o=void 0===a?1:a;if(!t(n)||!t(e)||!t(u))return null;var i=g({h:Number(n),s:Number(e),l:Number(u),a:Number(o)});return f$1(i)},"hsl"],[function(r){var n=r.h,a=r.s,o=r.v,i=r.a,s=void 0===i?1:i;if(!t(n)||!t(a)||!t(o))return null;var h=function(r){return {h:u(r.h),s:e(r.s,0,100),v:e(r.v,0,100),a:e(r.a)}}({h:Number(n),s:Number(a),v:Number(o),a:Number(s)});return b$1(h)},"hsv"]]},N$1=function(r,t){for(var n=0;n<t.length;n++){var e=t[n][0](r);if(e)return [e,t[n][1]]}return [null,void 0]},x$1=function(r){return "string"==typeof r?N$1(r.trim(),y$1.string):"object"==typeof r&&null!==r?N$1(r,y$1.object):[null,void 0]},M$1=function(r,t){var n=c(r);return {h:n.h,s:e(n.s+100*t,0,100),l:n.l,a:n.a}},H$1=function(r){return (299*r.r+587*r.g+114*r.b)/1e3/255},$$1=function(r,t){var n=c(r);return {h:n.h,s:n.s,l:e(n.l+100*t,0,100),a:n.a}},j$1=function(){function r(r){this.parsed=x$1(r)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1};}return r.prototype.isValid=function(){return null!==this.parsed},r.prototype.brightness=function(){return n(H$1(this.rgba),2)},r.prototype.isDark=function(){return H$1(this.rgba)<.5},r.prototype.isLight=function(){return H$1(this.rgba)>=.5},r.prototype.toHex=function(){return r=o(this.rgba),t=r.r,e=r.g,u=r.b,i=(a=r.a)<1?s(n(255*a)):"","#"+s(t)+s(e)+s(u)+i;var r,t,e,u,a,i;},r.prototype.toRgb=function(){return o(this.rgba)},r.prototype.toRgbString=function(){return r=o(this.rgba),t=r.r,n=r.g,e=r.b,(u=r.a)<1?"rgba("+t+", "+n+", "+e+", "+u+")":"rgb("+t+", "+n+", "+e+")";var r,t,n,e,u;},r.prototype.toHsl=function(){return d(c(this.rgba))},r.prototype.toHslString=function(){return r=d(c(this.rgba)),t=r.h,n=r.s,e=r.l,(u=r.a)<1?"hsla("+t+", "+n+"%, "+e+"%, "+u+")":"hsl("+t+", "+n+"%, "+e+"%)";var r,t,n,e,u;},r.prototype.toHsv=function(){return r=h(this.rgba),{h:n(r.h),s:n(r.s),v:n(r.v),a:n(r.a,3)};var r;},r.prototype.invert=function(){return w$1({r:255-(r=this.rgba).r,g:255-r.g,b:255-r.b,a:r.a});var r;},r.prototype.saturate=function(r){return void 0===r&&(r=.1),w$1(M$1(this.rgba,r))},r.prototype.desaturate=function(r){return void 0===r&&(r=.1),w$1(M$1(this.rgba,-r))},r.prototype.grayscale=function(){return w$1(M$1(this.rgba,-1))},r.prototype.lighten=function(r){return void 0===r&&(r=.1),w$1($$1(this.rgba,r))},r.prototype.darken=function(r){return void 0===r&&(r=.1),w$1($$1(this.rgba,-r))},r.prototype.rotate=function(r){return void 0===r&&(r=15),this.hue(this.hue()+r)},r.prototype.alpha=function(r){return "number"==typeof r?w$1({r:(t=this.rgba).r,g:t.g,b:t.b,a:r}):n(this.rgba.a,3);var t;},r.prototype.hue=function(r){var t=c(this.rgba);return "number"==typeof r?w$1({h:r,s:t.s,l:t.l,a:t.a}):n(t.h)},r.prototype.isEqual=function(r){return this.toHex()===w$1(r).toHex()},r}(),w$1=function(r){return r instanceof j$1?r:new j$1(r)};
962
+
963
+ const WOBBLE = 30;
964
+ function colors(seeder) {
965
+ const amount = (seeder() * WOBBLE) - (WOBBLE / 2);
966
+ const all = COLORS.map((hex) => w$1(hex).rotate(amount));
967
+ return (alpha = 1) => {
968
+ const index = Math.floor(all.length * seeder());
969
+ return all.splice(index, 1)[0]
970
+ .alpha(alpha)
971
+ .toHslString();
972
+ };
973
+ }
974
+
975
+ function container(diameter, background = 'white', className = '', _style = {}) {
976
+ const element = document.createElement('div');
977
+ const style = Object.assign({
978
+ background,
979
+ borderRadius: `${diameter / 2}px`,
980
+ display: 'inline-block',
981
+ height: `${diameter}px`,
982
+ margin: '0px',
983
+ overflow: 'hidden',
984
+ padding: '0px',
985
+ width: `${diameter}px`
986
+ }, _style);
987
+ element.className = className;
988
+ element.style.background = background;
989
+ Object.keys(style).forEach((key) => {
990
+ element.style[key] = style[key];
991
+ });
992
+ return element;
993
+ }
994
+
995
+ const DIVISOR = 256 * 256;
996
+ function seeder(_seed = new Uint8Array(32)) {
997
+ const seed = util.isU8a(_seed)
998
+ ? _seed
999
+ : util.stringToU8a(_seed);
1000
+ let index = (seed[Math.floor(seed.length / 2)] % seed.length) - 1;
1001
+ const next = () => {
1002
+ index += 1;
1003
+ if (index === seed.length) {
1004
+ index = 0;
1005
+ }
1006
+ return seed[index];
1007
+ };
1008
+ return () => {
1009
+ return ((next() * 256) + next()) / DIVISOR;
1010
+ };
1011
+ }
1012
+
1013
+ function beachballIcon(seed, { size = 256 }, className = '', style) {
1014
+ const seeder$1 = seeder(seed);
1015
+ const colorGen = colors(seeder$1);
1016
+ const outer = container(size, 'white', className, style);
1017
+ const container$1 = container(size, colorGen());
1018
+ const svg = element(size);
1019
+ outer.appendChild(container$1);
1020
+ container$1.appendChild(svg);
1021
+ for (let count = 0; count < SHAPE_COUNT; count++) {
1022
+ const fill = colorGen();
1023
+ const shape = circle(seeder$1, fill, size, count);
1024
+ svg.appendChild(shape);
1025
+ }
1026
+ return outer;
1027
+ }
1028
+
1029
+ const S$1 = 64;
1030
+ const C$1 = S$1 / 2;
1031
+ const Z$1 = S$1 / 64 * 5;
1032
+ const SCHEMES = [
1033
+ { colors: [0, 28, 0, 0, 28, 0, 0, 28, 0, 0, 28, 0, 0, 28, 0, 0, 28, 0, 1], freq: 1 },
1034
+ { colors: [0, 1, 3, 2, 4, 3, 0, 1, 3, 2, 4, 3, 0, 1, 3, 2, 4, 3, 5], freq: 20 },
1035
+ { colors: [1, 2, 3, 1, 2, 4, 5, 5, 4, 1, 2, 3, 1, 2, 4, 5, 5, 4, 0], freq: 16 },
1036
+ { colors: [0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 3], freq: 32 },
1037
+ { colors: [0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6], freq: 32 },
1038
+ { colors: [0, 1, 2, 3, 4, 5, 3, 4, 2, 0, 1, 6, 7, 8, 9, 7, 8, 6, 10], freq: 128 },
1039
+ { colors: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 8, 6, 7, 5, 3, 4, 2, 11], freq: 128 }
1040
+ ];
1041
+ const SCHEMES_TOTAL = SCHEMES
1042
+ .map((s) => s.freq)
1043
+ .reduce((a, b) => a + b);
1044
+ const OUTER_CIRCLE = {
1045
+ cx: C$1,
1046
+ cy: C$1,
1047
+ fill: '#eee',
1048
+ r: C$1
1049
+ };
1050
+ let zeroHash = new Uint8Array();
1051
+ function getRotation(isSixPoint) {
1052
+ const r = isSixPoint
1053
+ ? (C$1 / 8 * 5)
1054
+ : (C$1 / 4 * 3);
1055
+ const rroot3o2 = r * Math.sqrt(3) / 2;
1056
+ const ro2 = r / 2;
1057
+ const rroot3o4 = r * Math.sqrt(3) / 4;
1058
+ const ro4 = r / 4;
1059
+ const r3o4 = r * 3 / 4;
1060
+ return { r, r3o4, ro2, ro4, rroot3o2, rroot3o4 };
1061
+ }
1062
+ function getCircleXY(isSixPoint = false) {
1063
+ const { r, r3o4, ro2, ro4, rroot3o2, rroot3o4 } = getRotation(isSixPoint);
1064
+ return [
1065
+ [C$1, C$1 - r],
1066
+ [C$1, C$1 - ro2],
1067
+ [C$1 - rroot3o4, C$1 - r3o4],
1068
+ [C$1 - rroot3o2, C$1 - ro2],
1069
+ [C$1 - rroot3o4, C$1 - ro4],
1070
+ [C$1 - rroot3o2, C$1],
1071
+ [C$1 - rroot3o2, C$1 + ro2],
1072
+ [C$1 - rroot3o4, C$1 + ro4],
1073
+ [C$1 - rroot3o4, C$1 + r3o4],
1074
+ [C$1, C$1 + r],
1075
+ [C$1, C$1 + ro2],
1076
+ [C$1 + rroot3o4, C$1 + r3o4],
1077
+ [C$1 + rroot3o2, C$1 + ro2],
1078
+ [C$1 + rroot3o4, C$1 + ro4],
1079
+ [C$1 + rroot3o2, C$1],
1080
+ [C$1 + rroot3o2, C$1 - ro2],
1081
+ [C$1 + rroot3o4, C$1 - ro4],
1082
+ [C$1 + rroot3o4, C$1 - r3o4],
1083
+ [C$1, C$1]
1084
+ ];
1085
+ }
1086
+ function findScheme(d) {
1087
+ let cum = 0;
1088
+ const schema = SCHEMES.find((schema) => {
1089
+ cum += schema.freq;
1090
+ return d < cum;
1091
+ });
1092
+ if (!schema) {
1093
+ throw new Error('Unable to find schema');
1094
+ }
1095
+ return schema;
1096
+ }
1097
+ function addressToId(address) {
1098
+ if (!zeroHash.length) {
1099
+ zeroHash = utilCrypto.blake2AsU8a(new Uint8Array(32), 512);
1100
+ }
1101
+ return utilCrypto.blake2AsU8a(utilCrypto.decodeAddress(address), 512).map((x, i) => (x + 256 - zeroHash[i]) % 256);
1102
+ }
1103
+ function getColors(address) {
1104
+ const id = addressToId(address);
1105
+ const d = Math.floor((id[30] + id[31] * 256) % SCHEMES_TOTAL);
1106
+ const rot = (id[28] % 6) * 3;
1107
+ const sat = (Math.floor(id[29] * 70 / 256 + 26) % 80) + 30;
1108
+ const scheme = findScheme(d);
1109
+ const palette = Array.from(id).map((x, i) => {
1110
+ const b = (x + i % 28 * 58) % 256;
1111
+ if (b === 0) {
1112
+ return '#444';
1113
+ }
1114
+ else if (b === 255) {
1115
+ return 'transparent';
1116
+ }
1117
+ const h = Math.floor(b % 64 * 360 / 64);
1118
+ const l = [53, 15, 35, 75][Math.floor(b / 64)];
1119
+ return `hsl(${h}, ${sat}%, ${l}%)`;
1120
+ });
1121
+ return scheme.colors.map((_, i) => palette[scheme.colors[i < 18 ? (i + rot) % 18 : 18]]);
1122
+ }
1123
+ function polkadotIcon(address, { isAlternative }) {
1124
+ const xy = getCircleXY(isAlternative);
1125
+ let colors;
1126
+ try {
1127
+ colors = getColors(address);
1128
+ }
1129
+ catch {
1130
+ colors = new Array(xy.length).fill('#ddd');
1131
+ }
1132
+ return [OUTER_CIRCLE].concat(xy.map(([cx, cy], index) => ({
1133
+ cx, cy, fill: colors[index], r: Z$1
1134
+ })));
1135
+ }
1136
+
1137
+ function Identicon$5({ address, className = '', size, style = {} }) {
1138
+ const updateElem = o$1.useCallback((node) => {
1139
+ if (node) {
1140
+ node.innerHTML = '';
1141
+ node.appendChild(beachballIcon(address, { isAlternative: false, size }));
1142
+ }
1143
+ }, [address, size]);
1144
+ return (jsxRuntimeExports.jsx("div", { className: className, ref: updateElem, style: style }));
1145
+ }
1146
+ const Beachball = o$1.memo(Identicon$5);
1147
+
1148
+ function Identicon$4({ className = '', size, style = {} }) {
1149
+ return (jsxRuntimeExports.jsx("svg", { className: className, height: size, style: style, viewBox: '0 0 64 64', width: size }));
1150
+ }
1151
+ const Empty = o$1.memo(Identicon$4);
1152
+
1153
+ var main = {exports: {}};
1154
+
1155
+ (function (module, exports) {
1156
+ (function webpackUniversalModuleDefinition(root, factory) {
1157
+ module.exports = factory();
1158
+ })(commonjsGlobal, function() {
1159
+ return (function(modules) {
1160
+ var installedModules = {};
1161
+ function __webpack_require__(moduleId) {
1162
+ if(installedModules[moduleId])
1163
+ return installedModules[moduleId].exports;
1164
+ var module = installedModules[moduleId] = {
1165
+ exports: {},
1166
+ id: moduleId,
1167
+ loaded: false
1168
+ };
1169
+ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
1170
+ module.loaded = true;
1171
+ return module.exports;
1172
+ }
1173
+ __webpack_require__.m = modules;
1174
+ __webpack_require__.c = installedModules;
1175
+ __webpack_require__.p = "";
1176
+ return __webpack_require__(0);
1177
+ })
1178
+ ([
1179
+ function(module, exports, __webpack_require__) {
1180
+ const pnglib = __webpack_require__(1);
1181
+ const hsl2rgb = __webpack_require__(2);
1182
+ const randseed = new Array(4);
1183
+ function seedrand(seed) {
1184
+ for (let i = 0; i < randseed.length; i++) {
1185
+ randseed[i] = 0;
1186
+ }
1187
+ for (let i = 0; i < seed.length; i++) {
1188
+ randseed[i % 4] = (randseed[i % 4] << 5) - randseed[i % 4] + seed.charCodeAt(i);
1189
+ }
1190
+ }
1191
+ function rand() {
1192
+ const t = randseed[0] ^ (randseed[0] << 11);
1193
+ randseed[0] = randseed[1];
1194
+ randseed[1] = randseed[2];
1195
+ randseed[2] = randseed[3];
1196
+ randseed[3] = randseed[3] ^ (randseed[3] >> 19) ^ t ^ (t >> 8);
1197
+ return (randseed[3] >>> 0) / (1 << 31 >>> 0);
1198
+ }
1199
+ function createColor() {
1200
+ const h = Math.floor(rand() * 360);
1201
+ const s = rand() * 60 + 40;
1202
+ const l = (rand() + rand() + rand() + rand()) * 25 ;
1203
+ return [h / 360, s / 100, l / 100];
1204
+ }
1205
+ function createImageData(size) {
1206
+ const width = size;
1207
+ const height = size;
1208
+ const dataWidth = Math.ceil(width / 2);
1209
+ const mirrorWidth = width - dataWidth;
1210
+ const data = [];
1211
+ for (let y = 0; y < height; y++) {
1212
+ let row = [];
1213
+ for (let x = 0; x < dataWidth; x++) {
1214
+ row[x] = Math.floor(rand() * 2.3);
1215
+ }
1216
+ const r = row.slice(0, mirrorWidth).reverse();
1217
+ row = row.concat(r);
1218
+ for (let i = 0; i < row.length; i++) {
1219
+ data.push(row[i]);
1220
+ }
1221
+ }
1222
+ return data;
1223
+ }
1224
+ function fillRect(png, x, y, w, h, color) {
1225
+ for(let i = 0; i < w; i++) {
1226
+ for (let j = 0; j < h; j++) {
1227
+ png.buffer[png.index(x + i, y + j)] = color;
1228
+ }
1229
+ }
1230
+ }
1231
+ function buildOpts(opts) {
1232
+ if (!opts.seed) {
1233
+ throw new Error('No seed provided');
1234
+ }
1235
+ seedrand(opts.seed);
1236
+ return Object.assign({
1237
+ size: 8,
1238
+ scale: 16,
1239
+ color: createColor(),
1240
+ bgcolor: createColor(),
1241
+ spotcolor: createColor(),
1242
+ }, opts)
1243
+ }
1244
+ function makeBlockie(address) {
1245
+ const opts = buildOpts({ seed: address.toLowerCase() });
1246
+ const imageData = createImageData(opts.size);
1247
+ const width = Math.sqrt(imageData.length);
1248
+ const p = new pnglib(opts.size * opts.scale, opts.size * opts.scale, 3);
1249
+ p.color(...hsl2rgb(...opts.bgcolor));
1250
+ const color = p.color(...hsl2rgb(...opts.color));
1251
+ const spotcolor = p.color(...hsl2rgb(...opts.spotcolor));
1252
+ for (let i = 0; i < imageData.length; i++) {
1253
+ const row = Math.floor(i / width);
1254
+ const col = i % width;
1255
+ if (imageData[i]) {
1256
+ const pngColor = imageData[i] == 1 ? color : spotcolor;
1257
+ fillRect(p, col * opts.scale, row * opts.scale, opts.scale, opts.scale, pngColor);
1258
+ }
1259
+ }
1260
+ return `data:image/png;base64,${p.getBase64()}`;
1261
+ }
1262
+ module.exports = makeBlockie;
1263
+ },
1264
+ function(module, exports) {
1265
+ /**
1266
+ * A handy class to calculate color values.
1267
+ *
1268
+ * @version 1.0
1269
+ * @author Robert Eisele <robert@xarg.org>
1270
+ * @copyright Copyright (c) 2010, Robert Eisele
1271
+ * @link http://www.xarg.org/2010/03/generate-client-side-png-files-using-javascript/
1272
+ * @license http://www.opensource.org/licenses/bsd-license.php BSD License
1273
+ *
1274
+ */
1275
+ module.exports = function(width,height,depth) {
1276
+ function write(buffer, offs) {
1277
+ for (var i = 2; i < arguments.length; i++) {
1278
+ for (var j = 0; j < arguments[i].length; j++) {
1279
+ buffer[offs++] = arguments[i].charAt(j);
1280
+ }
1281
+ }
1282
+ }
1283
+ function byte2(w) {
1284
+ return String.fromCharCode((w >> 8) & 255, w & 255);
1285
+ }
1286
+ function byte4(w) {
1287
+ return String.fromCharCode((w >> 24) & 255, (w >> 16) & 255, (w >> 8) & 255, w & 255);
1288
+ }
1289
+ function byte2lsb(w) {
1290
+ return String.fromCharCode(w & 255, (w >> 8) & 255);
1291
+ }
1292
+ this.width = width;
1293
+ this.height = height;
1294
+ this.depth = depth;
1295
+ this.pix_size = height * (width + 1);
1296
+ this.data_size = 2 + this.pix_size + 5 * Math.floor((0xfffe + this.pix_size) / 0xffff) + 4;
1297
+ this.ihdr_offs = 0;
1298
+ this.ihdr_size = 4 + 4 + 13 + 4;
1299
+ this.plte_offs = this.ihdr_offs + this.ihdr_size;
1300
+ this.plte_size = 4 + 4 + 3 * depth + 4;
1301
+ this.trns_offs = this.plte_offs + this.plte_size;
1302
+ this.trns_size = 4 + 4 + depth + 4;
1303
+ this.idat_offs = this.trns_offs + this.trns_size;
1304
+ this.idat_size = 4 + 4 + this.data_size + 4;
1305
+ this.iend_offs = this.idat_offs + this.idat_size;
1306
+ this.iend_size = 4 + 4 + 4;
1307
+ this.buffer_size = this.iend_offs + this.iend_size;
1308
+ this.buffer = new Array();
1309
+ this.palette = new Object();
1310
+ this.pindex = 0;
1311
+ var _crc32 = new Array();
1312
+ for (var i = 0; i < this.buffer_size; i++) {
1313
+ this.buffer[i] = "\x00";
1314
+ }
1315
+ write(this.buffer, this.ihdr_offs, byte4(this.ihdr_size - 12), 'IHDR', byte4(width), byte4(height), "\x08\x03");
1316
+ write(this.buffer, this.plte_offs, byte4(this.plte_size - 12), 'PLTE');
1317
+ write(this.buffer, this.trns_offs, byte4(this.trns_size - 12), 'tRNS');
1318
+ write(this.buffer, this.idat_offs, byte4(this.idat_size - 12), 'IDAT');
1319
+ write(this.buffer, this.iend_offs, byte4(this.iend_size - 12), 'IEND');
1320
+ var header = ((8 + (7 << 4)) << 8) | (3 << 6);
1321
+ header+= 31 - (header % 31);
1322
+ write(this.buffer, this.idat_offs + 8, byte2(header));
1323
+ for (var i = 0; (i << 16) - 1 < this.pix_size; i++) {
1324
+ var size, bits;
1325
+ if (i + 0xffff < this.pix_size) {
1326
+ size = 0xffff;
1327
+ bits = "\x00";
1328
+ } else {
1329
+ size = this.pix_size - (i << 16) - i;
1330
+ bits = "\x01";
1331
+ }
1332
+ write(this.buffer, this.idat_offs + 8 + 2 + (i << 16) + (i << 2), bits, byte2lsb(size), byte2lsb(~size));
1333
+ }
1334
+ for (var i = 0; i < 256; i++) {
1335
+ var c = i;
1336
+ for (var j = 0; j < 8; j++) {
1337
+ if (c & 1) {
1338
+ c = -306674912 ^ ((c >> 1) & 0x7fffffff);
1339
+ } else {
1340
+ c = (c >> 1) & 0x7fffffff;
1341
+ }
1342
+ }
1343
+ _crc32[i] = c;
1344
+ }
1345
+ this.index = function(x,y) {
1346
+ var i = y * (this.width + 1) + x + 1;
1347
+ var j = this.idat_offs + 8 + 2 + 5 * Math.floor((i / 0xffff) + 1) + i;
1348
+ return j;
1349
+ };
1350
+ this.color = function(red, green, blue, alpha) {
1351
+ alpha = alpha >= 0 ? alpha : 255;
1352
+ var color = (((((alpha << 8) | red) << 8) | green) << 8) | blue;
1353
+ if (typeof this.palette[color] == "undefined") {
1354
+ if (this.pindex == this.depth) return "\x00";
1355
+ var ndx = this.plte_offs + 8 + 3 * this.pindex;
1356
+ this.buffer[ndx + 0] = String.fromCharCode(red);
1357
+ this.buffer[ndx + 1] = String.fromCharCode(green);
1358
+ this.buffer[ndx + 2] = String.fromCharCode(blue);
1359
+ this.buffer[this.trns_offs+8+this.pindex] = String.fromCharCode(alpha);
1360
+ this.palette[color] = String.fromCharCode(this.pindex++);
1361
+ }
1362
+ return this.palette[color];
1363
+ };
1364
+ this.getBase64 = function() {
1365
+ var s = this.getDump();
1366
+ var ch = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
1367
+ var c1, c2, c3, e1, e2, e3, e4;
1368
+ var l = s.length;
1369
+ var i = 0;
1370
+ var r = "";
1371
+ do {
1372
+ c1 = s.charCodeAt(i);
1373
+ e1 = c1 >> 2;
1374
+ c2 = s.charCodeAt(i+1);
1375
+ e2 = ((c1 & 3) << 4) | (c2 >> 4);
1376
+ c3 = s.charCodeAt(i+2);
1377
+ if (l < i+2) { e3 = 64; } else { e3 = ((c2 & 0xf) << 2) | (c3 >> 6); }
1378
+ if (l < i+3) { e4 = 64; } else { e4 = c3 & 0x3f; }
1379
+ r+= ch.charAt(e1) + ch.charAt(e2) + ch.charAt(e3) + ch.charAt(e4);
1380
+ } while ((i+= 3) < l);
1381
+ return r;
1382
+ };
1383
+ this.getDump = function() {
1384
+ var BASE = 65521;
1385
+ var NMAX = 5552;
1386
+ var s1 = 1;
1387
+ var s2 = 0;
1388
+ var n = NMAX;
1389
+ for (var y = 0; y < this.height; y++) {
1390
+ for (var x = -1; x < this.width; x++) {
1391
+ s1+= this.buffer[this.index(x, y)].charCodeAt(0);
1392
+ s2+= s1;
1393
+ if ((n-= 1) == 0) {
1394
+ s1%= BASE;
1395
+ s2%= BASE;
1396
+ n = NMAX;
1397
+ }
1398
+ }
1399
+ }
1400
+ s1%= BASE;
1401
+ s2%= BASE;
1402
+ write(this.buffer, this.idat_offs + this.idat_size - 8, byte4((s2 << 16) | s1));
1403
+ function crc32(png, offs, size) {
1404
+ var crc = -1;
1405
+ for (var i = 4; i < size-4; i += 1) {
1406
+ crc = _crc32[(crc ^ png[offs+i].charCodeAt(0)) & 0xff] ^ ((crc >> 8) & 0x00ffffff);
1407
+ }
1408
+ write(png, offs+size-4, byte4(crc ^ -1));
1409
+ }
1410
+ crc32(this.buffer, this.ihdr_offs, this.ihdr_size);
1411
+ crc32(this.buffer, this.plte_offs, this.plte_size);
1412
+ crc32(this.buffer, this.trns_offs, this.trns_size);
1413
+ crc32(this.buffer, this.idat_offs, this.idat_size);
1414
+ crc32(this.buffer, this.iend_offs, this.iend_size);
1415
+ return "\x89PNG\r\n\x1a\n" + this.buffer.join('');
1416
+ };
1417
+ };
1418
+ },
1419
+ function(module, exports) {
1420
+ function hue2rgb(p, q, t) {
1421
+ if(t < 0) t += 1;
1422
+ if(t > 1) t -= 1;
1423
+ if(t < 1/6) return p + (q - p) * 6 * t;
1424
+ if(t < 1/2) return q;
1425
+ if(t < 2/3) return p + (q - p) * (2/3 - t) * 6;
1426
+ return p;
1427
+ }
1428
+ function hsl2rgb(h, s, l){
1429
+ let r, g, b;
1430
+ if (s == 0) {
1431
+ r = g = b = l;
1432
+ } else {
1433
+ const q = l < 0.5 ? l * (1 + s) : l + s - l * s;
1434
+ const p = 2 * l - q;
1435
+ r = hue2rgb(p, q, h + 1/3);
1436
+ g = hue2rgb(p, q, h);
1437
+ b = hue2rgb(p, q, h - 1/3);
1438
+ }
1439
+ return [Math.round(r * 255), Math.round(g * 255), Math.round(b * 255), 255];
1440
+ }
1441
+ module.exports = hsl2rgb;
1442
+ }
1443
+ ])
1444
+ });
1445
+ } (main));
1446
+ var mainExports = main.exports;
1447
+ const makeBlockie = getDefaultExportFromCjs(mainExports);
1448
+
1449
+ var __assign = function() {
1450
+ __assign = Object.assign || function __assign(t) {
1451
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
1452
+ s = arguments[i];
1453
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
1454
+ }
1455
+ return t;
1456
+ };
1457
+ return __assign.apply(this, arguments);
1458
+ };
1459
+ function __spreadArray(to, from, pack) {
1460
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
1461
+ if (ar || !(i in from)) {
1462
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
1463
+ ar[i] = from[i];
1464
+ }
1465
+ }
1466
+ return to.concat(ar || Array.prototype.slice.call(from));
1467
+ }
1468
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
1469
+ var e = new Error(message);
1470
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
1471
+ };
1472
+
1473
+ function memoize(fn) {
1474
+ var cache = Object.create(null);
1475
+ return function (arg) {
1476
+ if (cache[arg] === undefined) cache[arg] = fn(arg);
1477
+ return cache[arg];
1478
+ };
1479
+ }
1480
+
1481
+ var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
1482
+ var isPropValid = memoize(function (prop) {
1483
+ return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
1484
+ && prop.charCodeAt(1) === 110
1485
+ && prop.charCodeAt(2) < 91;
1486
+ }
1487
+ );
1488
+
1489
+ var shallowequal = function shallowEqual(objA, objB, compare, compareContext) {
1490
+ var ret = compare ? compare.call(compareContext, objA, objB) : void 0;
1491
+ if (ret !== void 0) {
1492
+ return !!ret;
1493
+ }
1494
+ if (objA === objB) {
1495
+ return true;
1496
+ }
1497
+ if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) {
1498
+ return false;
1499
+ }
1500
+ var keysA = Object.keys(objA);
1501
+ var keysB = Object.keys(objB);
1502
+ if (keysA.length !== keysB.length) {
1503
+ return false;
1504
+ }
1505
+ var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);
1506
+ for (var idx = 0; idx < keysA.length; idx++) {
1507
+ var key = keysA[idx];
1508
+ if (!bHasOwnProperty(key)) {
1509
+ return false;
1510
+ }
1511
+ var valueA = objA[key];
1512
+ var valueB = objB[key];
1513
+ ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;
1514
+ if (ret === false || (ret === void 0 && valueA !== valueB)) {
1515
+ return false;
1516
+ }
1517
+ }
1518
+ return true;
1519
+ };
1520
+ getDefaultExportFromCjs(shallowequal);
1521
+
1522
+ var MS = '-ms-';
1523
+ var MOZ = '-moz-';
1524
+ var WEBKIT = '-webkit-';
1525
+ var COMMENT = 'comm';
1526
+ var RULESET = 'rule';
1527
+ var DECLARATION = 'decl';
1528
+ var IMPORT = '@import';
1529
+ var KEYFRAMES = '@keyframes';
1530
+ var LAYER = '@layer';
1531
+
1532
+ var abs = Math.abs;
1533
+ var from = String.fromCharCode;
1534
+ var assign = Object.assign;
1535
+ function hash (value, length) {
1536
+ return charat(value, 0) ^ 45 ? (((((((length << 2) ^ charat(value, 0)) << 2) ^ charat(value, 1)) << 2) ^ charat(value, 2)) << 2) ^ charat(value, 3) : 0
1537
+ }
1538
+ function trim (value) {
1539
+ return value.trim()
1540
+ }
1541
+ function match (value, pattern) {
1542
+ return (value = pattern.exec(value)) ? value[0] : value
1543
+ }
1544
+ function replace (value, pattern, replacement) {
1545
+ return value.replace(pattern, replacement)
1546
+ }
1547
+ function indexof (value, search) {
1548
+ return value.indexOf(search)
1549
+ }
1550
+ function charat (value, index) {
1551
+ return value.charCodeAt(index) | 0
1552
+ }
1553
+ function substr (value, begin, end) {
1554
+ return value.slice(begin, end)
1555
+ }
1556
+ function strlen (value) {
1557
+ return value.length
1558
+ }
1559
+ function sizeof (value) {
1560
+ return value.length
1561
+ }
1562
+ function append (value, array) {
1563
+ return array.push(value), value
1564
+ }
1565
+ function combine (array, callback) {
1566
+ return array.map(callback).join('')
1567
+ }
1568
+ function filter (array, pattern) {
1569
+ return array.filter(function (value) { return !match(value, pattern) })
1570
+ }
1571
+
1572
+ var line = 1;
1573
+ var column = 1;
1574
+ var length = 0;
1575
+ var position = 0;
1576
+ var character = 0;
1577
+ var characters = '';
1578
+ function node (value, root, parent, type, props, children, length, siblings) {
1579
+ return {value: value, root: root, parent: parent, type: type, props: props, children: children, line: line, column: column, length: length, return: '', siblings: siblings}
1580
+ }
1581
+ function copy$1 (root, props) {
1582
+ return assign(node('', null, null, '', null, null, 0, root.siblings), root, {length: -root.length}, props)
1583
+ }
1584
+ function lift (root) {
1585
+ while (root.root)
1586
+ root = copy$1(root.root, {children: [root]});
1587
+ append(root, root.siblings);
1588
+ }
1589
+ function char () {
1590
+ return character
1591
+ }
1592
+ function prev () {
1593
+ character = position > 0 ? charat(characters, --position) : 0;
1594
+ if (column--, character === 10)
1595
+ column = 1, line--;
1596
+ return character
1597
+ }
1598
+ function next () {
1599
+ character = position < length ? charat(characters, position++) : 0;
1600
+ if (column++, character === 10)
1601
+ column = 1, line++;
1602
+ return character
1603
+ }
1604
+ function peek () {
1605
+ return charat(characters, position)
1606
+ }
1607
+ function caret () {
1608
+ return position
1609
+ }
1610
+ function slice (begin, end) {
1611
+ return substr(characters, begin, end)
1612
+ }
1613
+ function token (type) {
1614
+ switch (type) {
1615
+ case 0: case 9: case 10: case 13: case 32:
1616
+ return 5
1617
+ case 33: case 43: case 44: case 47: case 62: case 64: case 126:
1618
+ case 59: case 123: case 125:
1619
+ return 4
1620
+ case 58:
1621
+ return 3
1622
+ case 34: case 39: case 40: case 91:
1623
+ return 2
1624
+ case 41: case 93:
1625
+ return 1
1626
+ }
1627
+ return 0
1628
+ }
1629
+ function alloc (value) {
1630
+ return line = column = 1, length = strlen(characters = value), position = 0, []
1631
+ }
1632
+ function dealloc (value) {
1633
+ return characters = '', value
1634
+ }
1635
+ function delimit (type) {
1636
+ return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))
1637
+ }
1638
+ function whitespace (type) {
1639
+ while (character = peek())
1640
+ if (character < 33)
1641
+ next();
1642
+ else
1643
+ break
1644
+ return token(type) > 2 || token(character) > 3 ? '' : ' '
1645
+ }
1646
+ function escaping (index, count) {
1647
+ while (--count && next())
1648
+ if (character < 48 || character > 102 || (character > 57 && character < 65) || (character > 70 && character < 97))
1649
+ break
1650
+ return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32))
1651
+ }
1652
+ function delimiter (type) {
1653
+ while (next())
1654
+ switch (character) {
1655
+ case type:
1656
+ return position
1657
+ case 34: case 39:
1658
+ if (type !== 34 && type !== 39)
1659
+ delimiter(character);
1660
+ break
1661
+ case 40:
1662
+ if (type === 41)
1663
+ delimiter(type);
1664
+ break
1665
+ case 92:
1666
+ next();
1667
+ break
1668
+ }
1669
+ return position
1670
+ }
1671
+ function commenter (type, index) {
1672
+ while (next())
1673
+ if (type + character === 47 + 10)
1674
+ break
1675
+ else if (type + character === 42 + 42 && peek() === 47)
1676
+ break
1677
+ return '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next())
1678
+ }
1679
+ function identifier (index) {
1680
+ while (!token(peek()))
1681
+ next();
1682
+ return slice(index, position)
1683
+ }
1684
+
1685
+ function compile (value) {
1686
+ return dealloc(parse('', null, null, null, [''], value = alloc(value), 0, [0], value))
1687
+ }
1688
+ function parse (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
1689
+ var index = 0;
1690
+ var offset = 0;
1691
+ var length = pseudo;
1692
+ var atrule = 0;
1693
+ var property = 0;
1694
+ var previous = 0;
1695
+ var variable = 1;
1696
+ var scanning = 1;
1697
+ var ampersand = 1;
1698
+ var character = 0;
1699
+ var type = '';
1700
+ var props = rules;
1701
+ var children = rulesets;
1702
+ var reference = rule;
1703
+ var characters = type;
1704
+ while (scanning)
1705
+ switch (previous = character, character = next()) {
1706
+ case 40:
1707
+ if (previous != 108 && charat(characters, length - 1) == 58) {
1708
+ if (indexof(characters += replace(delimit(character), '&', '&\f'), '&\f') != -1)
1709
+ ampersand = -1;
1710
+ break
1711
+ }
1712
+ case 34: case 39: case 91:
1713
+ characters += delimit(character);
1714
+ break
1715
+ case 9: case 10: case 13: case 32:
1716
+ characters += whitespace(previous);
1717
+ break
1718
+ case 92:
1719
+ characters += escaping(caret() - 1, 7);
1720
+ continue
1721
+ case 47:
1722
+ switch (peek()) {
1723
+ case 42: case 47:
1724
+ append(comment(commenter(next(), caret()), root, parent, declarations), declarations);
1725
+ break
1726
+ default:
1727
+ characters += '/';
1728
+ }
1729
+ break
1730
+ case 123 * variable:
1731
+ points[index++] = strlen(characters) * ampersand;
1732
+ case 125 * variable: case 59: case 0:
1733
+ switch (character) {
1734
+ case 0: case 125: scanning = 0;
1735
+ case 59 + offset: if (ampersand == -1) characters = replace(characters, /\f/g, '');
1736
+ if (property > 0 && (strlen(characters) - length))
1737
+ append(property > 32 ? declaration(characters + ';', rule, parent, length - 1, declarations) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2, declarations), declarations);
1738
+ break
1739
+ case 59: characters += ';';
1740
+ default:
1741
+ append(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length, rulesets), rulesets);
1742
+ if (character === 123)
1743
+ if (offset === 0)
1744
+ parse(characters, root, reference, reference, props, rulesets, length, points, children);
1745
+ else
1746
+ switch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {
1747
+ case 100: case 108: case 109: case 115:
1748
+ parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length, children), children), rules, children, length, points, rule ? props : children);
1749
+ break
1750
+ default:
1751
+ parse(characters, reference, reference, reference, [''], children, 0, points, children);
1752
+ }
1753
+ }
1754
+ index = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo;
1755
+ break
1756
+ case 58:
1757
+ length = 1 + strlen(characters), property = previous;
1758
+ default:
1759
+ if (variable < 1)
1760
+ if (character == 123)
1761
+ --variable;
1762
+ else if (character == 125 && variable++ == 0 && prev() == 125)
1763
+ continue
1764
+ switch (characters += from(character), character * variable) {
1765
+ case 38:
1766
+ ampersand = offset > 0 ? 1 : (characters += '\f', -1);
1767
+ break
1768
+ case 44:
1769
+ points[index++] = (strlen(characters) - 1) * ampersand, ampersand = 1;
1770
+ break
1771
+ case 64:
1772
+ if (peek() === 45)
1773
+ characters += delimit(next());
1774
+ atrule = peek(), offset = length = strlen(type = characters += identifier(caret())), character++;
1775
+ break
1776
+ case 45:
1777
+ if (previous === 45 && strlen(characters) == 2)
1778
+ variable = 0;
1779
+ }
1780
+ }
1781
+ return rulesets
1782
+ }
1783
+ function ruleset (value, root, parent, index, offset, rules, points, type, props, children, length, siblings) {
1784
+ var post = offset - 1;
1785
+ var rule = offset === 0 ? rules : [''];
1786
+ var size = sizeof(rule);
1787
+ for (var i = 0, j = 0, k = 0; i < index; ++i)
1788
+ for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
1789
+ if (z = trim(j > 0 ? rule[x] + ' ' + y : replace(y, /&\f/g, rule[x])))
1790
+ props[k++] = z;
1791
+ return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length, siblings)
1792
+ }
1793
+ function comment (value, root, parent, siblings) {
1794
+ return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0, siblings)
1795
+ }
1796
+ function declaration (value, root, parent, length, siblings) {
1797
+ return node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length, siblings)
1798
+ }
1799
+
1800
+ function prefix (value, length, children) {
1801
+ switch (hash(value, length)) {
1802
+ case 5103:
1803
+ return WEBKIT + 'print-' + value + value
1804
+ case 5737: case 4201: case 3177: case 3433: case 1641: case 4457: case 2921:
1805
+ case 5572: case 6356: case 5844: case 3191: case 6645: case 3005:
1806
+ case 6391: case 5879: case 5623: case 6135: case 4599: case 4855:
1807
+ case 4215: case 6389: case 5109: case 5365: case 5621: case 3829:
1808
+ return WEBKIT + value + value
1809
+ case 4789:
1810
+ return MOZ + value + value
1811
+ case 5349: case 4246: case 4810: case 6968: case 2756:
1812
+ return WEBKIT + value + MOZ + value + MS + value + value
1813
+ case 5936:
1814
+ switch (charat(value, length + 11)) {
1815
+ case 114:
1816
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value
1817
+ case 108:
1818
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value
1819
+ case 45:
1820
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value
1821
+ }
1822
+ case 6828: case 4268: case 2903:
1823
+ return WEBKIT + value + MS + value + value
1824
+ case 6165:
1825
+ return WEBKIT + value + MS + 'flex-' + value + value
1826
+ case 5187:
1827
+ return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value
1828
+ case 5443:
1829
+ return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/g, '') + (!match(value, /flex-|baseline/) ? MS + 'grid-row-' + replace(value, /flex-|-self/g, '') : '') + value
1830
+ case 4675:
1831
+ return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/g, '') + value
1832
+ case 5548:
1833
+ return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value
1834
+ case 5292:
1835
+ return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value
1836
+ case 6060:
1837
+ return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value
1838
+ case 4554:
1839
+ return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value
1840
+ case 6187:
1841
+ return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value
1842
+ case 5495: case 3959:
1843
+ return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1')
1844
+ case 4968:
1845
+ return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value
1846
+ case 4200:
1847
+ if (!match(value, /flex-|baseline/)) return MS + 'grid-column-align' + substr(value, length) + value
1848
+ break
1849
+ case 2592: case 3360:
1850
+ return MS + replace(value, 'template-', '') + value
1851
+ case 4384: case 3616:
1852
+ if (children && children.some(function (element, index) { return length = index, match(element.props, /grid-\w+-end/) })) {
1853
+ return ~indexof(value + (children = children[length].value), 'span') ? value : (MS + replace(value, '-start', '') + value + MS + 'grid-row-span:' + (~indexof(children, 'span') ? match(children, /\d+/) : +match(children, /\d+/) - +match(value, /\d+/)) + ';')
1854
+ }
1855
+ return MS + replace(value, '-start', '') + value
1856
+ case 4896: case 4128:
1857
+ return (children && children.some(function (element) { return match(element.props, /grid-\w+-start/) })) ? value : MS + replace(replace(value, '-end', '-span'), 'span ', '') + value
1858
+ case 4095: case 3583: case 4068: case 2532:
1859
+ return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value
1860
+ case 8116: case 7059: case 5753: case 5535:
1861
+ case 5445: case 5701: case 4933: case 4677:
1862
+ case 5533: case 5789: case 5021: case 4765:
1863
+ if (strlen(value) - 1 - length > 6)
1864
+ switch (charat(value, length + 1)) {
1865
+ case 109:
1866
+ if (charat(value, length + 4) !== 45)
1867
+ break
1868
+ case 102:
1869
+ return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value
1870
+ case 115:
1871
+ return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length, children) + value : value
1872
+ }
1873
+ break
1874
+ case 5152: case 5920:
1875
+ return replace(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function (_, a, b, c, d, e, f) { return (MS + a + ':' + b + f) + (c ? (MS + a + '-span:' + (d ? e : +e - +b)) + f : '') + value })
1876
+ case 4949:
1877
+ if (charat(value, length + 6) === 121)
1878
+ return replace(value, ':', ':' + WEBKIT) + value
1879
+ break
1880
+ case 6444:
1881
+ switch (charat(value, charat(value, 14) === 45 ? 18 : 11)) {
1882
+ case 120:
1883
+ return replace(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value
1884
+ case 100:
1885
+ return replace(value, ':', ':' + MS) + value
1886
+ }
1887
+ break
1888
+ case 5719: case 2647: case 2135: case 3927: case 2391:
1889
+ return replace(value, 'scroll-', 'scroll-snap-') + value
1890
+ }
1891
+ return value
1892
+ }
1893
+
1894
+ function serialize (children, callback) {
1895
+ var output = '';
1896
+ for (var i = 0; i < children.length; i++)
1897
+ output += callback(children[i], i, children, callback) || '';
1898
+ return output
1899
+ }
1900
+ function stringify (element, index, children, callback) {
1901
+ switch (element.type) {
1902
+ case LAYER: if (element.children.length) break
1903
+ case IMPORT: case DECLARATION: return element.return = element.return || element.value
1904
+ case COMMENT: return ''
1905
+ case KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'
1906
+ case RULESET: if (!strlen(element.value = element.props.join(','))) return ''
1907
+ }
1908
+ return strlen(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : ''
1909
+ }
1910
+
1911
+ function middleware (collection) {
1912
+ var length = sizeof(collection);
1913
+ return function (element, index, children, callback) {
1914
+ var output = '';
1915
+ for (var i = 0; i < length; i++)
1916
+ output += collection[i](element, index, children, callback) || '';
1917
+ return output
1918
+ }
1919
+ }
1920
+ function rulesheet (callback) {
1921
+ return function (element) {
1922
+ if (!element.root)
1923
+ if (element = element.return)
1924
+ callback(element);
1925
+ }
1926
+ }
1927
+ function prefixer (element, index, children, callback) {
1928
+ if (element.length > -1)
1929
+ if (!element.return)
1930
+ switch (element.type) {
1931
+ case DECLARATION: element.return = prefix(element.value, element.length, children);
1932
+ return
1933
+ case KEYFRAMES:
1934
+ return serialize([copy$1(element, {value: replace(element.value, '@', '@' + WEBKIT)})], callback)
1935
+ case RULESET:
1936
+ if (element.length)
1937
+ return combine(children = element.props, function (value) {
1938
+ switch (match(value, callback = /(::plac\w+|:read-\w+)/)) {
1939
+ case ':read-only': case ':read-write':
1940
+ lift(copy$1(element, {props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]}));
1941
+ lift(copy$1(element, {props: [value]}));
1942
+ assign(element, {props: filter(children, callback)});
1943
+ break
1944
+ case '::placeholder':
1945
+ lift(copy$1(element, {props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]}));
1946
+ lift(copy$1(element, {props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]}));
1947
+ lift(copy$1(element, {props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]}));
1948
+ lift(copy$1(element, {props: [value]}));
1949
+ assign(element, {props: filter(children, callback)});
1950
+ break
1951
+ }
1952
+ return ''
1953
+ })
1954
+ }
1955
+ }
1956
+
1957
+ var unitlessKeys = {
1958
+ animationIterationCount: 1,
1959
+ aspectRatio: 1,
1960
+ borderImageOutset: 1,
1961
+ borderImageSlice: 1,
1962
+ borderImageWidth: 1,
1963
+ boxFlex: 1,
1964
+ boxFlexGroup: 1,
1965
+ boxOrdinalGroup: 1,
1966
+ columnCount: 1,
1967
+ columns: 1,
1968
+ flex: 1,
1969
+ flexGrow: 1,
1970
+ flexPositive: 1,
1971
+ flexShrink: 1,
1972
+ flexNegative: 1,
1973
+ flexOrder: 1,
1974
+ gridRow: 1,
1975
+ gridRowEnd: 1,
1976
+ gridRowSpan: 1,
1977
+ gridRowStart: 1,
1978
+ gridColumn: 1,
1979
+ gridColumnEnd: 1,
1980
+ gridColumnSpan: 1,
1981
+ gridColumnStart: 1,
1982
+ msGridRow: 1,
1983
+ msGridRowSpan: 1,
1984
+ msGridColumn: 1,
1985
+ msGridColumnSpan: 1,
1986
+ fontWeight: 1,
1987
+ lineHeight: 1,
1988
+ opacity: 1,
1989
+ order: 1,
1990
+ orphans: 1,
1991
+ tabSize: 1,
1992
+ widows: 1,
1993
+ zIndex: 1,
1994
+ zoom: 1,
1995
+ WebkitLineClamp: 1,
1996
+ fillOpacity: 1,
1997
+ floodOpacity: 1,
1998
+ stopOpacity: 1,
1999
+ strokeDasharray: 1,
2000
+ strokeDashoffset: 1,
2001
+ strokeMiterlimit: 1,
2002
+ strokeOpacity: 1,
2003
+ strokeWidth: 1
2004
+ };
2005
+
2006
+ var f="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",y="undefined"!=typeof window&&"HTMLElement"in window,v=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),S=/invalid hook call/i,w=new Set,b=function(t,n){if("production"!==process.env.NODE_ENV){var o=n?' with the id of "'.concat(n,'"'):"",s="The component ".concat(t).concat(o," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];S.test(t)?(a=!1,w.delete(s)):i.apply(void 0,__spreadArray([t],n,!1));},o$1.useRef(),a&&!w.has(s)&&(console.warn(s),w.add(s));}catch(e){S.test(e.message)&&w.delete(s);}finally{console.error=i;}}},E=Object.freeze([]),N=Object.freeze({});function P(e,t,n){return void 0===n&&(n=N),e.theme!==n.theme&&e.theme||t||n.theme}var _=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),C=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,I=/(^-|-$)/g;function A(e){return e.replace(C,"-").replace(I,"")}var O=/(a)(d)/gi,D=function(e){return String.fromCharCode(e+(e>25?39:97))};function R(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=D(t%52)+n;return (D(t%52)+n).replace(O,"$1-$2")}var T,k=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},j=function(e){return k(5381,e)};function x(e){return R(j(e)>>>0)}function V(e){return "production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function F(e){return "string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var M="function"==typeof Symbol&&Symbol.for,$=M?Symbol.for("react.memo"):60115,z=M?Symbol.for("react.forward_ref"):60112,B={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},L={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},G={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Y=((T={})[z]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},T[$]=G,T);function W(e){return ("type"in(t=e)&&t.type.$$typeof)===$?G:"$$typeof"in e?Y[e.$$typeof]:B;var t;}var q=Object.defineProperty,H=Object.getOwnPropertyNames,U=Object.getOwnPropertySymbols,J=Object.getOwnPropertyDescriptor,X=Object.getPrototypeOf,Z=Object.prototype;function K(e,t,n){if("string"!=typeof t){if(Z){var o=X(t);o&&o!==Z&&K(e,o,n);}var r=H(t);U&&(r=r.concat(U(t)));for(var s=W(e),i=W(t),a=0;a<r.length;++a){var c=r[a];if(!(c in L||n&&n[c]||i&&c in i||s&&c in s)){var l=J(t,c);try{q(e,c,l);}catch(e){}}}}return e}function Q(e){return "function"==typeof e}function ee(e){return "object"==typeof e&&"styledComponentId"in e}function te(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ne(e,t){if(0===e.length)return "";for(var n=e[0],o=1;o<e.length;o++)n+=e[o];return n}function oe(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function re(e,t,n){if(void 0===n&&(n=!1),!n&&!oe(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=re(e[o],t[o]);else if(oe(t))for(var o in t)e[o]=re(e[o],t[o]);return e}function se(e,t){Object.defineProperty(e,"toString",{value:t});}var ie="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function ae(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],o=[],r=1,s=e.length;r<s;r+=1)o.push(e[r]);return o.forEach(function(e){n=n.replace(/%[a-z]/,e);}),n}function ce(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return "production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(ae.apply(void 0,__spreadArray([ie[t]],n,!1)).trim())}var le=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)if((r<<=1)<0)throw ce(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var s=o;s<r;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++);},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n);}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,s=o;s<r;s++)t+="".concat(this.tag.getRule(s)).concat("/*!sc*/\n");return t},e}(),ue=new Map,pe=new Map,de=1,he=function(e){if(ue.has(e))return ue.get(e);for(;pe.has(de);)de++;var t=de++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>1073741824))throw ce(16,"".concat(t));return ue.set(e,t),pe.set(t,e),t},fe=function(e,t){de=t+1,ue.set(e,t),pe.set(t,e);},me="style[".concat(f,"][").concat("data-styled-version",'="').concat("6.1.1",'"]'),ye=new RegExp("^".concat(f,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ve=function(e,t,n){for(var o,r=n.split(","),s=0,i=r.length;s<i;s++)(o=r[s])&&e.registerName(t,o);},ge=function(e,t){for(var n,o=(null!==(n=t.textContent)&&void 0!==n?n:"").split("/*!sc*/\n"),r=[],s=0,i=o.length;s<i;s++){var a=o[s].trim();if(a){var c=a.match(ye);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(fe(u,l),ve(e,u,c[3]),e.getTag().insertRules(l,r)),r.length=0;}else r.push(a);}}};function Se(){return "undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var we=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(f,"]")));return t[t.length-1]}(n),s=void 0!==r?r.nextSibling:null;o.setAttribute(f,"active"),o.setAttribute("data-styled-version","6.1.1");var i=Se();return i&&o.setAttribute("nonce",i),n.insertBefore(o,s),o},be=function(){function e(e){this.element=we(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}throw ce(17)}(this.element),this.length=0;}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return !1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Ee=function(){function e(e){this.element=we(e),this.nodes=this.element.childNodes,this.length=0;}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return !1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Ne=function(){function e(e){this.rules=[],this.length=0;}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Pe=y,_e={isServer:!y,useCSSOMInjection:!v},Ce=function(){function e(e,n,o){void 0===e&&(e=N),void 0===n&&(n={});var r=this;this.options=__assign(__assign({},_e),e),this.gs=n,this.names=new Map(o),this.server=!!e.isServer,!this.server&&y&&Pe&&(Pe=!1,function(e){for(var t=document.querySelectorAll(me),n=0,o=t.length;n<o;n++){var r=t[n];r&&"active"!==r.getAttribute(f)&&(ge(e,r),r.parentNode&&r.parentNode.removeChild(r));}}(this)),se(this,function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=function(n){var r=function(e){return pe.get(e)}(n);if(void 0===r)return "continue";var s=e.names.get(r),i=t.getGroup(n);if(void 0===s||0===i.length)return "continue";var a="".concat(f,".g").concat(n,'[id="').concat(r,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","));}),o+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat("/*!sc*/\n");},s=0;s<n;s++)r(s);return o}(r)});}return e.registerId=function(e){return he(e)},e.prototype.reconstructWithOptions=function(n,o){return void 0===o&&(o=!0),new e(__assign(__assign({},this.options),n),this.gs,o&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Ne(n):t?new be(n):new Ee(n)}(this.options),new le(e)));var e;},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(he(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(he(e),n);},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},e.prototype.clearRules=function(e){this.getTag().clearGroup(he(e)),this.clearNames(e);},e.prototype.clearTag=function(){this.tag=void 0;},e}(),Ie=/&/g,Ae=/^\s*\/\/.*$/gm;function Oe(e,t){return e.map(function(e){return "rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return "".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Oe(e.children,t)),e})}function De(e){var t,n,o,r=N,s=r.options,i=void 0===s?N:s,a=r.plugins,c=void 0===a?E:a,l=function(e,o,r){return r===n||r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(t):e},u=c.slice();u.push(function(e){e.type===RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Ie,n).replace(o,l));}),i.prefix&&u.push(prefixer),u.push(stringify);var p=function(e,r,s,a){void 0===r&&(r=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=r,o=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(Ae,""),l=compile(s||r?"".concat(s," ").concat(r," { ").concat(c," }"):c);i.namespace&&(l=Oe(l,i.namespace));var p=[];return serialize(l,middleware(u.concat(rulesheet(function(e){return p.push(e)})))),p};return p.hash=c.length?c.reduce(function(e,t){return t.name||ce(15),k(e,t.name)},5381).toString():"",p}var Re=new Ce,Te=De(),ke=o$1.createContext({shouldForwardProp:void 0,styleSheet:Re,stylis:Te});ke.Consumer;o$1.createContext(void 0);function Ve(){return o$1.useContext(ke)}var Me=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Te);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"));},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,se(this,function(){throw ce(12,String(n.name))});}return e.prototype.getName=function(e){return void 0===e&&(e=Te),this.name+e.hash},e}(),$e=function(e){return e>="A"&&e<="Z"};function ze(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;$e(o)?t+="-"+o.toLowerCase():t+=o;}return t.startsWith("ms-")?"-"+t:t}var Be=function(e){return null==e||!1===e||""===e},Le=function(t){var n,o,r=[];for(var s in t){var i=t[s];t.hasOwnProperty(s)&&!Be(i)&&(Array.isArray(i)&&i.isCss||Q(i)?r.push("".concat(ze(s),":"),i,";"):oe(i)?r.push.apply(r,__spreadArray(__spreadArray(["".concat(s," {")],Le(i),!1),["}"],!1)):r.push("".concat(ze(s),": ").concat((n=s,null==(o=i)||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in unitlessKeys||n.startsWith("--")?String(o).trim():"".concat(o,"px")),";")));}return r};function Ge(e,t,n,o){if(Be(e))return [];if(ee(e))return [".".concat(e.styledComponentId)];if(Q(e)){if(!Q(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return [e];var r=e(t);return "production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||r instanceof Me||oe(r)||null===r||console.error("".concat(V(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Ge(r,t,n,o)}var s;return e instanceof Me?n?(e.inject(n,o),[e.getName(o)]):[e]:oe(e)?Le(e):Array.isArray(e)?Array.prototype.concat.apply(E,e.map(function(e){return Ge(e,t,n,o)})):[e.toString()]}function Ye(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Q(n)&&!ee(n))return !1}return !0}var We=j("6.1.1"),qe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Ye(e),this.componentId=t,this.baseHash=k(We,t),this.baseStyle=n,Ce.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=te(o,this.staticRulesId);else {var r=ne(Ge(this.rules,e,t,n)),s=R(k(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(r,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i);}o=te(o,s),this.staticRulesId=s;}else {for(var a=k(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u,"production"!==process.env.NODE_ENV&&(a=k(a,u));else if(u){var p=ne(Ge(u,e,t,n));a=k(a,p+l),c+=p;}}if(c){var d=R(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),o=te(o,d);}}return o},e}(),He=o$1.createContext(void 0);He.Consumer;var Ze={},Ke=new Set;function Qe(e,r,s){var i=ee(e),a=e,c=!F(e),p=r.attrs,d=void 0===p?E:p,h=r.componentId,f=void 0===h?function(e,t){var n="string"!=typeof e?"sc":A(e);Ze[n]=(Ze[n]||0)+1;var o="".concat(n,"-").concat(x("6.1.1"+n+Ze[n]));return t?"".concat(t,"-").concat(o):o}(r.displayName,r.parentComponentId):h,m=r.displayName,y=void 0===m?function(e){return F(e)?"styled.".concat(e):"Styled(".concat(V(e),")")}(e):m,v=r.displayName&&r.componentId?"".concat(A(r.displayName),"-").concat(r.componentId):r.componentId||f,g=i&&a.attrs?a.attrs.concat(d).filter(Boolean):d,S=r.shouldForwardProp;if(i&&a.shouldForwardProp){var w=a.shouldForwardProp;if(r.shouldForwardProp){var C=r.shouldForwardProp;S=function(e,t){return w(e,t)&&C(e,t)};}else S=w;}var I=new qe(s,v,i?a.componentStyle:void 0);function O(e,r){return function(e,r,s){var i=e.attrs,a=e.componentStyle,c=e.defaultProps,p=e.foldedComponentIds,d=e.styledComponentId,h=e.target,f=o$1.useContext(He),m=Ve(),y=e.shouldForwardProp||m.shouldForwardProp;"production"!==process.env.NODE_ENV&&o$1.useDebugValue(d);var v=function(e,n,o){for(var r,s=__assign(__assign({},n),{className:void 0,theme:o}),i=0;i<e.length;i+=1){var a=Q(r=e[i])?r(s):r;for(var c in a)s[c]="className"===c?te(s[c],a[c]):"style"===c?__assign(__assign({},s[c]),a[c]):a[c];}return n.className&&(s.className=te(s.className,n.className)),s}(i,r,P(r,f,c)||N),g=v.as||h,S={};for(var w in v)void 0===v[w]||"$"===w[0]||"as"===w||"theme"===w||("forwardedAs"===w?S.as=v.forwardedAs:y&&!y(w,g)||(S[w]=v[w],y||"development"!==process.env.NODE_ENV||isPropValid(w)||Ke.has(w)||!_.has(g)||(Ke.add(w),console.warn('styled-components: it looks like an unknown prop "'.concat(w,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var b=function(e,t){var n=Ve(),o=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return "production"!==process.env.NODE_ENV&&o$1.useDebugValue(o),o}(a,v);"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(b);var E=te(p,d);return b&&(E+=" "+b),v.className&&(E+=" "+v.className),S[F(g)&&!_.has(g)?"class":"className"]=E,S.ref=s,o$1.createElement(g,S)}(D,e,r)}O.displayName=y;var D=o$1.forwardRef(O);return D.attrs=g,D.componentStyle=I,D.displayName=y,D.shouldForwardProp=S,D.foldedComponentIds=i?te(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=v,D.target=i?a.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++)re(e,r[o],!0);return e}({},a.defaultProps,e):e;}}),"production"!==process.env.NODE_ENV&&(b(y,v),D.warnTooManyClasses=function(e,t){var n={},o=!1;return function(r){if(!o&&(n[r]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),o=!0,n={};}}}(y,v)),se(D,function(){return ".".concat(D.styledComponentId)}),c&&K(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function et(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n}var tt=function(e){return Object.assign(e,{isCss:!0})};function nt(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(Q(t)||oe(t)){var r=t;return tt(Ge(et(E,__spreadArray([r],n,!0))))}var s=t;return 0===n.length&&1===s.length&&"string"==typeof s[0]?Ge(s):tt(Ge(et(s,n)))}function ot(n,o,r){if(void 0===r&&(r=N),!o)throw ce(1,o);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(o,r,nt.apply(void 0,__spreadArray([t],s,!1)))};return s.attrs=function(e){return ot(n,o,__assign(__assign({},r),{attrs:Array.prototype.concat(r.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return ot(n,o,__assign(__assign({},r),e))},s}var rt=function(e){return ot(Qe,e)},st=rt;_.forEach(function(e){st[e]=rt(e);});"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var dt="__sc-".concat(f,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[dt]||(window[dt]=0),1===window[dt]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[dt]+=1);
2007
+
2008
+ function Identicon$3({ address, className = '', size, style = {} }) {
2009
+ const imgSrc = o$1.useMemo(() => makeBlockie(address), [address]);
2010
+ return (jsxRuntimeExports.jsx(StyledImg, { className: className, size: size, src: imgSrc, style: style }));
2011
+ }
2012
+ const StyledImg = st.img(({ size }) => `
2013
+ display: block;
2014
+ height: ${size}px;
2015
+ width: ${size}px;
2016
+ `);
2017
+ const Ethereum = o$1.memo(Identicon$3);
2018
+
2019
+ function parseHex(hash, startPosition, octets) {
2020
+ return parseInt(hash.substr(startPosition, octets), 16);
2021
+ }
2022
+ function decToHex(v) {
2023
+ v |= 0;
2024
+ return v < 0 ? "00" :
2025
+ v < 16 ? "0" + v.toString(16) :
2026
+ v < 256 ? v.toString(16) :
2027
+ "ff";
2028
+ }
2029
+ function hueToRgb(m1, m2, h) {
2030
+ h = h < 0 ? h + 6 : h > 6 ? h - 6 : h;
2031
+ return decToHex(255 * (
2032
+ h < 1 ? m1 + (m2 - m1) * h :
2033
+ h < 3 ? m2 :
2034
+ h < 4 ? m1 + (m2 - m1) * (4 - h) :
2035
+ m1));
2036
+ }
2037
+ function parseColor(color) {
2038
+ if (/^#[0-9a-f]{3,8}$/i.test(color)) {
2039
+ let result;
2040
+ const colorLength = color.length;
2041
+ if (colorLength < 6) {
2042
+ const r = color[1],
2043
+ g = color[2],
2044
+ b = color[3],
2045
+ a = color[4] || "";
2046
+ result = "#" + r + r + g + g + b + b + a + a;
2047
+ }
2048
+ if (colorLength == 7 || colorLength > 8) {
2049
+ result = color;
2050
+ }
2051
+ return result;
2052
+ }
2053
+ }
2054
+ function hsl(hue, saturation, lightness) {
2055
+ let result;
2056
+ if (saturation == 0) {
2057
+ const partialHex = decToHex(lightness * 255);
2058
+ result = partialHex + partialHex + partialHex;
2059
+ }
2060
+ else {
2061
+ const m2 = lightness <= 0.5 ? lightness * (saturation + 1) : lightness + saturation - lightness * saturation,
2062
+ m1 = lightness * 2 - m2;
2063
+ result =
2064
+ hueToRgb(m1, m2, hue * 6 + 2) +
2065
+ hueToRgb(m1, m2, hue * 6) +
2066
+ hueToRgb(m1, m2, hue * 6 - 2);
2067
+ }
2068
+ return "#" + result;
2069
+ }
2070
+ function correctedHsl(hue, saturation, lightness) {
2071
+ const correctors = [ 0.55, 0.5, 0.5, 0.46, 0.6, 0.55, 0.55 ],
2072
+ corrector = correctors[(hue * 6 + 0.5) | 0];
2073
+ lightness = lightness < 0.5 ? lightness * corrector * 2 : corrector + (lightness - 0.5) * (1 - corrector) * 2;
2074
+ return hsl(hue, saturation, lightness);
2075
+ }
2076
+ const GLOBAL =
2077
+ typeof window !== "undefined" ? window :
2078
+ typeof self !== "undefined" ? self :
2079
+ typeof global !== "undefined" ? global :
2080
+ {};
2081
+ const CONFIG_PROPERTIES = {
2082
+ V: "jdenticon_config",
2083
+ n: "config",
2084
+ };
2085
+ var rootConfigurationHolder = {};
2086
+ function getConfiguration(paddingOrLocalConfig, defaultPadding) {
2087
+ const configObject =
2088
+ rootConfigurationHolder[CONFIG_PROPERTIES.n] ||
2089
+ GLOBAL[CONFIG_PROPERTIES.V] ||
2090
+ { },
2091
+ lightnessConfig = configObject["lightness"] || { },
2092
+ saturation = configObject["saturation"] || { },
2093
+ colorSaturation = "color" in saturation ? saturation["color"] : saturation,
2094
+ grayscaleSaturation = saturation["grayscale"],
2095
+ backColor = configObject["backColor"],
2096
+ padding = configObject["padding"];
2097
+ function lightness(configName, defaultRange) {
2098
+ let range = lightnessConfig[configName];
2099
+ if (!(range && range.length > 1)) {
2100
+ range = defaultRange;
2101
+ }
2102
+ return function (value) {
2103
+ value = range[0] + value * (range[1] - range[0]);
2104
+ return value < 0 ? 0 : value > 1 ? 1 : value;
2105
+ };
2106
+ }
2107
+ function hueFunction(originalHue) {
2108
+ const hueConfig = configObject["hues"];
2109
+ let hue;
2110
+ if (hueConfig && hueConfig.length > 0) {
2111
+ hue = hueConfig[0 | (0.999 * originalHue * hueConfig.length)];
2112
+ }
2113
+ return typeof hue == "number" ?
2114
+ ((((hue / 360) % 1) + 1) % 1) :
2115
+ originalHue;
2116
+ }
2117
+ return {
2118
+ W: hueFunction,
2119
+ o: typeof colorSaturation == "number" ? colorSaturation : 0.5,
2120
+ D: typeof grayscaleSaturation == "number" ? grayscaleSaturation : 0,
2121
+ p: lightness("color", [0.4, 0.8]),
2122
+ F: lightness("grayscale", [0.3, 0.9]),
2123
+ G: parseColor(backColor),
2124
+ X:
2125
+ typeof padding == "number" ? padding :
2126
+ defaultPadding
2127
+ }
2128
+ }
2129
+ class Point {
2130
+ constructor(x, y) {
2131
+ this.x = x;
2132
+ this.y = y;
2133
+ }
2134
+ }
2135
+ class Transform {
2136
+ constructor(x, y, size, rotation) {
2137
+ this.q = x;
2138
+ this.t = y;
2139
+ this.H = size;
2140
+ this.Y = rotation;
2141
+ }
2142
+ I(x, y, w, h) {
2143
+ const right = this.q + this.H,
2144
+ bottom = this.t + this.H,
2145
+ rotation = this.Y;
2146
+ return rotation === 1 ? new Point(right - y - (h || 0), this.t + x) :
2147
+ rotation === 2 ? new Point(right - x - (w || 0), bottom - y - (h || 0)) :
2148
+ rotation === 3 ? new Point(this.q + y, bottom - x - (w || 0)) :
2149
+ new Point(this.q + x, this.t + y);
2150
+ }
2151
+ }
2152
+ const NO_TRANSFORM = new Transform(0, 0, 0, 0);
2153
+ class Graphics {
2154
+ constructor(renderer) {
2155
+ this.J = renderer;
2156
+ this.u = NO_TRANSFORM;
2157
+ }
2158
+ g(points, invert) {
2159
+ const di = invert ? -2 : 2,
2160
+ transformedPoints = [];
2161
+ for (let i = invert ? points.length - 2 : 0; i < points.length && i >= 0; i += di) {
2162
+ transformedPoints.push(this.u.I(points[i], points[i + 1]));
2163
+ }
2164
+ this.J.g(transformedPoints);
2165
+ }
2166
+ h(x, y, size, invert) {
2167
+ const p = this.u.I(x, y, size, size);
2168
+ this.J.h(p, size, invert);
2169
+ }
2170
+ i(x, y, w, h, invert) {
2171
+ this.g([
2172
+ x, y,
2173
+ x + w, y,
2174
+ x + w, y + h,
2175
+ x, y + h
2176
+ ], invert);
2177
+ }
2178
+ j(x, y, w, h, r, invert) {
2179
+ const points = [
2180
+ x + w, y,
2181
+ x + w, y + h,
2182
+ x, y + h,
2183
+ x, y
2184
+ ];
2185
+ points.splice(((r || 0) % 4) * 2, 2);
2186
+ this.g(points, invert);
2187
+ }
2188
+ K(x, y, w, h, invert) {
2189
+ this.g([
2190
+ x + w / 2, y,
2191
+ x + w, y + h / 2,
2192
+ x + w / 2, y + h,
2193
+ x, y + h / 2
2194
+ ], invert);
2195
+ }
2196
+ }
2197
+ function centerShape(index, g, cell, positionIndex) {
2198
+ index = index % 14;
2199
+ let k, m, w, h, inner, outer;
2200
+ !index ? (
2201
+ k = cell * 0.42,
2202
+ g.g([
2203
+ 0, 0,
2204
+ cell, 0,
2205
+ cell, cell - k * 2,
2206
+ cell - k, cell,
2207
+ 0, cell
2208
+ ])) :
2209
+ index == 1 ? (
2210
+ w = 0 | (cell * 0.5),
2211
+ h = 0 | (cell * 0.8),
2212
+ g.j(cell - w, 0, w, h, 2)) :
2213
+ index == 2 ? (
2214
+ w = 0 | (cell / 3),
2215
+ g.i(w, w, cell - w, cell - w)) :
2216
+ index == 3 ? (
2217
+ inner = cell * 0.1,
2218
+ outer =
2219
+ cell < 6 ? 1 :
2220
+ cell < 8 ? 2 :
2221
+ (0 | (cell * 0.25)),
2222
+ inner =
2223
+ inner > 1 ? (0 | inner) :
2224
+ inner > 0.5 ? 1 :
2225
+ inner,
2226
+ g.i(outer, outer, cell - inner - outer, cell - inner - outer)) :
2227
+ index == 4 ? (
2228
+ m = 0 | (cell * 0.15),
2229
+ w = 0 | (cell * 0.5),
2230
+ g.h(cell - w - m, cell - w - m, w)) :
2231
+ index == 5 ? (
2232
+ inner = cell * 0.1,
2233
+ outer = inner * 4,
2234
+ outer > 3 && (outer = 0 | outer),
2235
+ g.i(0, 0, cell, cell),
2236
+ g.g([
2237
+ outer, outer,
2238
+ cell - inner, outer,
2239
+ outer + (cell - outer - inner) / 2, cell - inner
2240
+ ], true)) :
2241
+ index == 6 ?
2242
+ g.g([
2243
+ 0, 0,
2244
+ cell, 0,
2245
+ cell, cell * 0.7,
2246
+ cell * 0.4, cell * 0.4,
2247
+ cell * 0.7, cell,
2248
+ 0, cell
2249
+ ]) :
2250
+ index == 7 ?
2251
+ g.j(cell / 2, cell / 2, cell / 2, cell / 2, 3) :
2252
+ index == 8 ? (
2253
+ g.i(0, 0, cell, cell / 2),
2254
+ g.i(0, cell / 2, cell / 2, cell / 2),
2255
+ g.j(cell / 2, cell / 2, cell / 2, cell / 2, 1)) :
2256
+ index == 9 ? (
2257
+ inner = cell * 0.14,
2258
+ outer =
2259
+ cell < 4 ? 1 :
2260
+ cell < 6 ? 2 :
2261
+ (0 | (cell * 0.35)),
2262
+ inner =
2263
+ cell < 8 ? inner :
2264
+ (0 | inner),
2265
+ g.i(0, 0, cell, cell),
2266
+ g.i(outer, outer, cell - outer - inner, cell - outer - inner, true)) :
2267
+ index == 10 ? (
2268
+ inner = cell * 0.12,
2269
+ outer = inner * 3,
2270
+ g.i(0, 0, cell, cell),
2271
+ g.h(outer, outer, cell - inner - outer, true)) :
2272
+ index == 11 ?
2273
+ g.j(cell / 2, cell / 2, cell / 2, cell / 2, 3) :
2274
+ index == 12 ? (
2275
+ m = cell * 0.25,
2276
+ g.i(0, 0, cell, cell),
2277
+ g.K(m, m, cell - m, cell - m, true)) :
2278
+ (
2279
+ !positionIndex && (
2280
+ m = cell * 0.4, w = cell * 1.2,
2281
+ g.h(m, m, w)
2282
+ )
2283
+ );
2284
+ }
2285
+ function outerShape(index, g, cell) {
2286
+ index = index % 4;
2287
+ let m;
2288
+ !index ?
2289
+ g.j(0, 0, cell, cell, 0) :
2290
+ index == 1 ?
2291
+ g.j(0, cell / 2, cell, cell / 2, 0) :
2292
+ index == 2 ?
2293
+ g.K(0, 0, cell, cell) :
2294
+ (
2295
+ m = cell / 6,
2296
+ g.h(m, m, cell - 2 * m)
2297
+ );
2298
+ }
2299
+ function colorTheme(hue, config) {
2300
+ hue = config.W(hue);
2301
+ return [
2302
+ correctedHsl(hue, config.D, config.F(0)),
2303
+ correctedHsl(hue, config.o, config.p(0.5)),
2304
+ correctedHsl(hue, config.D, config.F(1)),
2305
+ correctedHsl(hue, config.o, config.p(1)),
2306
+ correctedHsl(hue, config.o, config.p(0))
2307
+ ];
2308
+ }
2309
+ function iconGenerator(renderer, hash, config) {
2310
+ const parsedConfig = getConfiguration(config, 0.08);
2311
+ if (parsedConfig.G) {
2312
+ renderer.m(parsedConfig.G);
2313
+ }
2314
+ let size = renderer.k;
2315
+ const padding = (0.5 + size * parsedConfig.X) | 0;
2316
+ size -= padding * 2;
2317
+ const graphics = new Graphics(renderer);
2318
+ const cell = 0 | (size / 4);
2319
+ const x = 0 | (padding + size / 2 - cell * 2);
2320
+ const y = 0 | (padding + size / 2 - cell * 2);
2321
+ function renderShape(colorIndex, shapes, index, rotationIndex, positions) {
2322
+ const shapeIndex = parseHex(hash, index, 1);
2323
+ let r = rotationIndex ? parseHex(hash, rotationIndex, 1) : 0;
2324
+ renderer.L(availableColors[selectedColorIndexes[colorIndex]]);
2325
+ for (let i = 0; i < positions.length; i++) {
2326
+ graphics.u = new Transform(x + positions[i][0] * cell, y + positions[i][1] * cell, cell, r++ % 4);
2327
+ shapes(shapeIndex, graphics, cell, i);
2328
+ }
2329
+ renderer.M();
2330
+ }
2331
+ const hue = parseHex(hash, -7) / 0xfffffff,
2332
+ availableColors = colorTheme(hue, parsedConfig),
2333
+ selectedColorIndexes = [];
2334
+ let index;
2335
+ function isDuplicate(values) {
2336
+ if (values.indexOf(index) >= 0) {
2337
+ for (let i = 0; i < values.length; i++) {
2338
+ if (selectedColorIndexes.indexOf(values[i]) >= 0) {
2339
+ return true;
2340
+ }
2341
+ }
2342
+ }
2343
+ }
2344
+ for (let i = 0; i < 3; i++) {
2345
+ index = parseHex(hash, 8 + i, 1) % availableColors.length;
2346
+ if (isDuplicate([0, 4]) ||
2347
+ isDuplicate([2, 3])) {
2348
+ index = 1;
2349
+ }
2350
+ selectedColorIndexes.push(index);
2351
+ }
2352
+ renderShape(0, outerShape, 2, 3, [[1, 0], [2, 0], [2, 3], [1, 3], [0, 1], [3, 1], [3, 2], [0, 2]]);
2353
+ renderShape(1, outerShape, 4, 5, [[0, 0], [3, 0], [3, 3], [0, 3]]);
2354
+ renderShape(2, centerShape, 1, null, [[1, 1], [2, 1], [2, 2], [1, 2]]);
2355
+ renderer.finish();
2356
+ }
2357
+ function sha1(message) {
2358
+ const HASH_SIZE_HALF_BYTES = 40;
2359
+ const BLOCK_SIZE_WORDS = 16;
2360
+ var i = 0,
2361
+ f = 0,
2362
+ urlEncodedMessage = encodeURI(message) + "%80",
2363
+ data = [],
2364
+ dataSize,
2365
+ hashBuffer = [],
2366
+ a = 0x67452301,
2367
+ b = 0xefcdab89,
2368
+ c = ~a,
2369
+ d = ~b,
2370
+ e = 0xc3d2e1f0,
2371
+ hash = [a, b, c, d, e],
2372
+ blockStartIndex = 0,
2373
+ hexHash = "";
2374
+ function rotl(value, shift) {
2375
+ return (value << shift) | (value >>> (32 - shift));
2376
+ }
2377
+ for ( ; i < urlEncodedMessage.length; f++) {
2378
+ data[f >> 2] = data[f >> 2] |
2379
+ (
2380
+ (
2381
+ urlEncodedMessage[i] == "%"
2382
+ ? parseInt(urlEncodedMessage.substring(i + 1, i += 3), 16)
2383
+ : urlEncodedMessage.charCodeAt(i++)
2384
+ )
2385
+ << ((3 - (f & 3)) * 8)
2386
+ );
2387
+ }
2388
+ dataSize = (((f + 7) >> 6) + 1) * BLOCK_SIZE_WORDS;
2389
+ data[dataSize - 1] = f * 8 - 8;
2390
+ for ( ; blockStartIndex < dataSize; blockStartIndex += BLOCK_SIZE_WORDS) {
2391
+ for (i = 0; i < 80; i++) {
2392
+ f = rotl(a, 5) + e + (
2393
+ i < 20 ? ((b & c) ^ ((~b) & d)) + 0x5a827999 :
2394
+ i < 40 ? (b ^ c ^ d) + 0x6ed9eba1 :
2395
+ i < 60 ? ((b & c) ^ (b & d) ^ (c & d)) + 0x8f1bbcdc :
2396
+ (b ^ c ^ d) + 0xca62c1d6
2397
+ ) + (
2398
+ hashBuffer[i] = i < BLOCK_SIZE_WORDS
2399
+ ? (data[blockStartIndex + i] | 0)
2400
+ : rotl(hashBuffer[i - 3] ^ hashBuffer[i - 8] ^ hashBuffer[i - 14] ^ hashBuffer[i - 16], 1)
2401
+ );
2402
+ e = d;
2403
+ d = c;
2404
+ c = rotl(b, 30);
2405
+ b = a;
2406
+ a = f;
2407
+ }
2408
+ hash[0] = a = ((hash[0] + a) | 0);
2409
+ hash[1] = b = ((hash[1] + b) | 0);
2410
+ hash[2] = c = ((hash[2] + c) | 0);
2411
+ hash[3] = d = ((hash[3] + d) | 0);
2412
+ hash[4] = e = ((hash[4] + e) | 0);
2413
+ }
2414
+ for (i = 0; i < HASH_SIZE_HALF_BYTES; i++) {
2415
+ hexHash += (
2416
+ (
2417
+ hash[i >> 3] >>>
2418
+ ((7 - (i & 7)) * 4)
2419
+ )
2420
+ & 0xf
2421
+ ).toString(16);
2422
+ }
2423
+ return hexHash;
2424
+ }
2425
+ function isValidHash(hashCandidate) {
2426
+ return /^[0-9a-f]{11,}$/i.test(hashCandidate) && hashCandidate;
2427
+ }
2428
+ function computeHash(value) {
2429
+ return sha1(value == null ? "" : "" + value);
2430
+ }
2431
+ function svgValue(value) {
2432
+ return ((value * 10 + 0.5) | 0) / 10;
2433
+ }
2434
+ class SvgPath {
2435
+ constructor() {
2436
+ this.v = "";
2437
+ }
2438
+ g(points) {
2439
+ let dataString = "";
2440
+ for (let i = 0; i < points.length; i++) {
2441
+ dataString += (i ? "L" : "M") + svgValue(points[i].x) + " " + svgValue(points[i].y);
2442
+ }
2443
+ this.v += dataString + "Z";
2444
+ }
2445
+ h(point, diameter, counterClockwise) {
2446
+ const sweepFlag = counterClockwise ? 0 : 1,
2447
+ svgRadius = svgValue(diameter / 2),
2448
+ svgDiameter = svgValue(diameter),
2449
+ svgArc = "a" + svgRadius + "," + svgRadius + " 0 1," + sweepFlag + " ";
2450
+ this.v +=
2451
+ "M" + svgValue(point.x) + " " + svgValue(point.y + diameter / 2) +
2452
+ svgArc + svgDiameter + ",0" +
2453
+ svgArc + (-svgDiameter) + ",0";
2454
+ }
2455
+ }
2456
+ class SvgRenderer {
2457
+ constructor(target) {
2458
+ this.A;
2459
+ this.B = { };
2460
+ this.N = target;
2461
+ this.k = target.k;
2462
+ }
2463
+ m(fillColor) {
2464
+ const match = /^(#......)(..)?/.exec(fillColor),
2465
+ opacity = match[2] ? parseHex(match[2], 0) / 255 : 1;
2466
+ this.N.m(match[1], opacity);
2467
+ }
2468
+ L(color) {
2469
+ this.A = this.B[color] || (this.B[color] = new SvgPath());
2470
+ }
2471
+ M() { }
2472
+ g(points) {
2473
+ this.A.g(points);
2474
+ }
2475
+ h(point, diameter, counterClockwise) {
2476
+ this.A.h(point, diameter, counterClockwise);
2477
+ }
2478
+ finish() {
2479
+ const pathsByColor = this.B;
2480
+ for (let color in pathsByColor) {
2481
+ if (pathsByColor.hasOwnProperty(color)) {
2482
+ this.N.O(color, pathsByColor[color].v);
2483
+ }
2484
+ }
2485
+ }
2486
+ }
2487
+ const SVG_CONSTANTS = {
2488
+ P: "http://www.w3.org/2000/svg",
2489
+ R: "width",
2490
+ S: "height",
2491
+ };
2492
+ class SvgWriter {
2493
+ constructor(iconSize) {
2494
+ this.k = iconSize;
2495
+ this.C =
2496
+ '<svg xmlns="' + SVG_CONSTANTS.P + '" width="' +
2497
+ iconSize + '" height="' + iconSize + '" viewBox="0 0 ' +
2498
+ iconSize + ' ' + iconSize + '">';
2499
+ }
2500
+ m(fillColor, opacity) {
2501
+ if (opacity) {
2502
+ this.C += '<rect width="100%" height="100%" fill="' +
2503
+ fillColor + '" opacity="' + opacity.toFixed(2) + '"/>';
2504
+ }
2505
+ }
2506
+ O(color, dataString) {
2507
+ this.C += '<path fill="' + color + '" d="' + dataString + '"/>';
2508
+ }
2509
+ toString() {
2510
+ return this.C + "</svg>";
2511
+ }
2512
+ }
2513
+ function toSvg(hashOrValue, size, config) {
2514
+ const writer = new SvgWriter(size);
2515
+ iconGenerator(new SvgRenderer(writer),
2516
+ isValidHash(hashOrValue) || computeHash(hashOrValue),
2517
+ config);
2518
+ return writer.toString();
2519
+ }
2520
+ (
2521
+ typeof document !== "undefined" && document.querySelectorAll.bind(document));
2522
+
2523
+ function Identicon$2({ className = '', publicKey, size, style = {} }) {
2524
+ const html = o$1.useMemo(() => ({ __html: toSvg(publicKey.substring(2), size) }), [publicKey, size]);
2525
+ return (jsxRuntimeExports.jsx("div", { className: className, dangerouslySetInnerHTML: html, style: style }));
2526
+ }
2527
+ const Jdenticon = o$1.memo(Identicon$2);
2528
+
2529
+ function renderCircle({ cx, cy, fill, r }, key) {
2530
+ return (jsxRuntimeExports.jsx("circle", { cx: cx, cy: cy, fill: fill, r: r }, key));
2531
+ }
2532
+ function Identicon$1({ address, className = '', isAlternative = false, size, style = {} }) {
2533
+ const circles = o$1.useMemo(() => polkadotIcon(address, { isAlternative }), [address, isAlternative]);
2534
+ return (jsxRuntimeExports.jsx("svg", { className: className, height: size, id: address, name: address, style: style, viewBox: '0 0 64 64', width: size, children: circles.map(renderCircle) }));
2535
+ }
2536
+ const Polkadot = o$1.memo(Identicon$1);
2537
+
2538
+ var Component = {};
2539
+
2540
+ var toggleSelection = function () {
2541
+ var selection = document.getSelection();
2542
+ if (!selection.rangeCount) {
2543
+ return function () {};
2544
+ }
2545
+ var active = document.activeElement;
2546
+ var ranges = [];
2547
+ for (var i = 0; i < selection.rangeCount; i++) {
2548
+ ranges.push(selection.getRangeAt(i));
2549
+ }
2550
+ switch (active.tagName.toUpperCase()) {
2551
+ case 'INPUT':
2552
+ case 'TEXTAREA':
2553
+ active.blur();
2554
+ break;
2555
+ default:
2556
+ active = null;
2557
+ break;
2558
+ }
2559
+ selection.removeAllRanges();
2560
+ return function () {
2561
+ selection.type === 'Caret' &&
2562
+ selection.removeAllRanges();
2563
+ if (!selection.rangeCount) {
2564
+ ranges.forEach(function(range) {
2565
+ selection.addRange(range);
2566
+ });
2567
+ }
2568
+ active &&
2569
+ active.focus();
2570
+ };
2571
+ };
2572
+ getDefaultExportFromCjs(toggleSelection);
2573
+
2574
+ var deselectCurrent = toggleSelection;
2575
+ var clipboardToIE11Formatting = {
2576
+ "text/plain": "Text",
2577
+ "text/html": "Url",
2578
+ "default": "Text"
2579
+ };
2580
+ var defaultMessage = "Copy to clipboard: #{key}, Enter";
2581
+ function format(message) {
2582
+ var copyKey = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
2583
+ return message.replace(/#{\s*key\s*}/g, copyKey);
2584
+ }
2585
+ function copy(text, options) {
2586
+ var debug,
2587
+ message,
2588
+ reselectPrevious,
2589
+ range,
2590
+ selection,
2591
+ mark,
2592
+ success = false;
2593
+ if (!options) {
2594
+ options = {};
2595
+ }
2596
+ debug = options.debug || false;
2597
+ try {
2598
+ reselectPrevious = deselectCurrent();
2599
+ range = document.createRange();
2600
+ selection = document.getSelection();
2601
+ mark = document.createElement("span");
2602
+ mark.textContent = text;
2603
+ mark.style.all = "unset";
2604
+ mark.style.position = "fixed";
2605
+ mark.style.top = 0;
2606
+ mark.style.clip = "rect(0, 0, 0, 0)";
2607
+ mark.style.whiteSpace = "pre";
2608
+ mark.style.webkitUserSelect = "text";
2609
+ mark.style.MozUserSelect = "text";
2610
+ mark.style.msUserSelect = "text";
2611
+ mark.style.userSelect = "text";
2612
+ mark.addEventListener("copy", function(e) {
2613
+ e.stopPropagation();
2614
+ if (options.format) {
2615
+ e.preventDefault();
2616
+ if (typeof e.clipboardData === "undefined") {
2617
+ debug && console.warn("unable to use e.clipboardData");
2618
+ debug && console.warn("trying IE specific stuff");
2619
+ window.clipboardData.clearData();
2620
+ var format = clipboardToIE11Formatting[options.format] || clipboardToIE11Formatting["default"];
2621
+ window.clipboardData.setData(format, text);
2622
+ } else {
2623
+ e.clipboardData.clearData();
2624
+ e.clipboardData.setData(options.format, text);
2625
+ }
2626
+ }
2627
+ if (options.onCopy) {
2628
+ e.preventDefault();
2629
+ options.onCopy(e.clipboardData);
2630
+ }
2631
+ });
2632
+ document.body.appendChild(mark);
2633
+ range.selectNodeContents(mark);
2634
+ selection.addRange(range);
2635
+ var successful = document.execCommand("copy");
2636
+ if (!successful) {
2637
+ throw new Error("copy command was unsuccessful");
2638
+ }
2639
+ success = true;
2640
+ } catch (err) {
2641
+ debug && console.error("unable to copy using execCommand: ", err);
2642
+ debug && console.warn("trying IE specific stuff");
2643
+ try {
2644
+ window.clipboardData.setData(options.format || "text", text);
2645
+ options.onCopy && options.onCopy(window.clipboardData);
2646
+ success = true;
2647
+ } catch (err) {
2648
+ debug && console.error("unable to copy using clipboardData: ", err);
2649
+ debug && console.error("falling back to prompt");
2650
+ message = format("message" in options ? options.message : defaultMessage);
2651
+ window.prompt(message, text);
2652
+ }
2653
+ } finally {
2654
+ if (selection) {
2655
+ if (typeof selection.removeRange == "function") {
2656
+ selection.removeRange(range);
2657
+ } else {
2658
+ selection.removeAllRanges();
2659
+ }
2660
+ }
2661
+ if (mark) {
2662
+ document.body.removeChild(mark);
2663
+ }
2664
+ reselectPrevious();
2665
+ }
2666
+ return success;
2667
+ }
2668
+ var copyToClipboard = copy;
2669
+ getDefaultExportFromCjs(copyToClipboard);
2670
+
2671
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2672
+ Object.defineProperty(Component, "__esModule", {
2673
+ value: true
2674
+ });
2675
+ Component.CopyToClipboard = void 0;
2676
+ var _react = _interopRequireDefault(o$1);
2677
+ var _copyToClipboard = _interopRequireDefault(copyToClipboard);
2678
+ var _excluded = ["text", "onCopy", "options", "children"];
2679
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
2680
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2681
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2682
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
2683
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
2684
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2685
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
2686
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
2687
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
2688
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
2689
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
2690
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
2691
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
2692
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
2693
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
2694
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2695
+ var CopyToClipboard$2 = function (_React$PureComponent) {
2696
+ _inherits(CopyToClipboard, _React$PureComponent);
2697
+ var _super = _createSuper(CopyToClipboard);
2698
+ function CopyToClipboard() {
2699
+ var _this;
2700
+ _classCallCheck(this, CopyToClipboard);
2701
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2702
+ args[_key] = arguments[_key];
2703
+ }
2704
+ _this = _super.call.apply(_super, [this].concat(args));
2705
+ _defineProperty(_assertThisInitialized(_this), "onClick", function (event) {
2706
+ var _this$props = _this.props,
2707
+ text = _this$props.text,
2708
+ onCopy = _this$props.onCopy,
2709
+ children = _this$props.children,
2710
+ options = _this$props.options;
2711
+ var elem = _react["default"].Children.only(children);
2712
+ var result = (0, _copyToClipboard["default"])(text, options);
2713
+ if (onCopy) {
2714
+ onCopy(text, result);
2715
+ }
2716
+ if (elem && elem.props && typeof elem.props.onClick === 'function') {
2717
+ elem.props.onClick(event);
2718
+ }
2719
+ });
2720
+ return _this;
2721
+ }
2722
+ _createClass(CopyToClipboard, [{
2723
+ key: "render",
2724
+ value: function render() {
2725
+ var _this$props2 = this.props;
2726
+ _this$props2.text;
2727
+ _this$props2.onCopy;
2728
+ _this$props2.options;
2729
+ var children = _this$props2.children,
2730
+ props = _objectWithoutProperties(_this$props2, _excluded);
2731
+ var elem = _react["default"].Children.only(children);
2732
+ return _react["default"].cloneElement(elem, _objectSpread(_objectSpread({}, props), {}, {
2733
+ onClick: this.onClick
2734
+ }));
2735
+ }
2736
+ }]);
2737
+ return CopyToClipboard;
2738
+ }(_react["default"].PureComponent);
2739
+ Component.CopyToClipboard = CopyToClipboard$2;
2740
+ _defineProperty(CopyToClipboard$2, "defaultProps", {
2741
+ onCopy: undefined,
2742
+ options: undefined
2743
+ });
2744
+
2745
+ var _require = Component,
2746
+ CopyToClipboard = _require.CopyToClipboard;
2747
+ CopyToClipboard.CopyToClipboard = CopyToClipboard;
2748
+ var lib = CopyToClipboard;
2749
+ const CopyToClipboard$1 = getDefaultExportFromCjs(lib);
2750
+
2751
+ const Fallback = Beachball;
2752
+ const DEFAULT_SIZE = 64;
2753
+ const Components = {
2754
+ beachball: Beachball,
2755
+ empty: Empty,
2756
+ ethereum: Ethereum,
2757
+ jdenticon: Jdenticon,
2758
+ polkadot: Polkadot,
2759
+ substrate: Jdenticon
2760
+ };
2761
+ class BaseIcon extends o$1.PureComponent {
2762
+ state = {
2763
+ address: '',
2764
+ publicKey: '0x'
2765
+ };
2766
+ static prefix = undefined;
2767
+ static setDefaultPrefix(prefix) {
2768
+ BaseIcon.prefix = prefix;
2769
+ }
2770
+ static getDerivedStateFromProps({ prefix = BaseIcon.prefix, theme, value }, prevState) {
2771
+ if (theme === 'ethereum') {
2772
+ const address = util.isU8a(value)
2773
+ ? utilCrypto.ethereumEncode(value)
2774
+ : value || '';
2775
+ return { address, publicKey: '' };
2776
+ }
2777
+ try {
2778
+ const address = util.isU8a(value) || util.isHex(value)
2779
+ ? utilCrypto.encodeAddress(value, prefix)
2780
+ : (value || '');
2781
+ const publicKey = util.u8aToHex(utilCrypto.decodeAddress(address, false, prefix));
2782
+ return address === prevState.address
2783
+ ? null
2784
+ : {
2785
+ address,
2786
+ publicKey
2787
+ };
2788
+ }
2789
+ catch {
2790
+ return {
2791
+ address: '',
2792
+ publicKey: '0x'
2793
+ };
2794
+ }
2795
+ }
2796
+ render() {
2797
+ const { address } = this.state;
2798
+ const wrapped = this.getWrapped(this.state, this.props);
2799
+ return !address
2800
+ ? wrapped
2801
+ : (jsxRuntimeExports.jsx(CopyToClipboard$1, { onCopy: this.onCopy, text: address, children: wrapped }));
2802
+ }
2803
+ getWrapped({ address, publicKey }, { Custom }) {
2804
+ const { className = '', isAlternative, isHighlight, size = DEFAULT_SIZE, style = {}, theme = uiSettings.settings.icon } = this.props;
2805
+ const Component = !address
2806
+ ? Empty
2807
+ : Custom || Components[theme === 'default' ? uiSettings.ICON_DEFAULT_HOST : theme] || Fallback;
2808
+ return (jsxRuntimeExports.jsx(StyledDiv, { className: `ui--IdentityIcon ${className}`, style: style, children: jsxRuntimeExports.jsx(Component, { address: address, className: isHighlight ? 'highlight' : '', isAlternative: isAlternative, publicKey: publicKey, size: size }) }, address));
2809
+ }
2810
+ onCopy = () => {
2811
+ const { onCopy } = this.props;
2812
+ const { address } = this.state;
2813
+ if (address && onCopy) {
2814
+ onCopy(address);
2815
+ }
2816
+ };
2817
+ }
2818
+ function Icon(props) {
2819
+ return jsxRuntimeExports.jsx(BaseIcon, { ...props });
2820
+ }
2821
+ const StyledDiv = st.div `
2822
+ cursor: copy;
2823
+ display: inline-block;
2824
+ line-height: 0;
2825
+
2826
+ > .container {
2827
+ position: relative;
2828
+
2829
+ > div,
2830
+ > svg {
2831
+ position: relative;
2832
+ }
2833
+
2834
+ &.highlight:before {
2835
+ position: absolute;
2836
+ top: 0;
2837
+ left: 0;
2838
+ right: 0;
2839
+ bottom: 0;
2840
+ border-radius: 50%;
2841
+ box-shadow: 0 0 5px 2px #aaa;
2842
+ content: '';
2843
+ }
2844
+ }
2845
+ `;
2846
+ const Identicon = o$1.memo(Icon);
2847
+
2848
+ const packageInfo = { name: '@pezkuwi/react-identicon', path: (({ url: (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-pezkuwi-react-identicon.js', document.baseURI).href)) }) && (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-pezkuwi-react-identicon.js', document.baseURI).href))) ? new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-pezkuwi-react-identicon.js', document.baseURI).href))).pathname.substring(0, new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-pezkuwi-react-identicon.js', document.baseURI).href))).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '3.16.6' };
2849
+
2850
+ exports.Beachball = Beachball;
2851
+ exports.Empty = Empty;
2852
+ exports.Ethereum = Ethereum;
2853
+ exports.Identicon = Identicon;
2854
+ exports.Jdenticon = Jdenticon;
2855
+ exports.Polkadot = Polkadot;
2856
+ exports.packageInfo = packageInfo;
2857
+
2858
+ }));