-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbundle_umi.js
1134 lines (836 loc) · 230 KB
/
bundle_umi.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file in the browser devtools.
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
* or disable the default devtool with "devtool: false".
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
*/
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
/***/ "./index.js":
/*!******************!*\
!*** ./index.js ***!
\******************/
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
eval("const umi = __webpack_require__(/*! @metaplex-foundation/umi */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/index.cjs\");\r\nwindow.umi = umi;\r\nconsole.log(\"[ ] @metaplex-foundation/umi\", umi);\n\n//# sourceURL=webpack://mini/./index.js?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-options/dist/cjs/common.cjs":
/*!***************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-options/dist/cjs/common.cjs ***!
\***************************************************************************/
/***/ ((__unused_webpack_module, exports) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\n/**\n * Defines a type `T` that can also be `null`.\n * @category Utils — Options\n */\n\n/**\n * An implementation of the Rust Option type in JavaScript.\n * It can be one of the following:\n * - <code>{@link Some}<T></code>: Meaning there is a value of type T.\n * - <code>{@link None}</code>: Meaning there is no value.\n *\n * @category Utils — Options\n */\n\n/**\n * Defines a looser type that can be used when serializing an {@link Option}.\n * This allows us to pass null or the Option value directly whilst still\n * supporting the Option type for use-cases that need more type safety.\n *\n * @category Utils — Options\n */\n\n/**\n * Represents an option of type `T` that has a value.\n *\n * @see {@link Option}\n * @category Utils — Options\n */\n\n/**\n * Represents an option of type `T` that has no value.\n *\n * @see {@link Option}\n * @category Utils — Options\n */\n\n/**\n * Creates a new {@link Option} of type `T` that has a value.\n *\n * @see {@link Option}\n * @category Utils — Options\n */\nconst some = value => ({\n __option: 'Some',\n value\n});\n\n/**\n * Creates a new {@link Option} of type `T` that has no value.\n *\n * @see {@link Option}\n * @category Utils — Options\n */\nconst none = () => ({\n __option: 'None'\n});\n\n/**\n * Whether the given data is an {@link Option}.\n * @category Utils — Options\n */\nconst isOption = input => input && typeof input === 'object' && '__option' in input && (input.__option === 'Some' && 'value' in input || input.__option === 'None');\n\n/**\n * Whether the given {@link Option} is a {@link Some}.\n * @category Utils — Options\n */\nconst isSome = option => option.__option === 'Some';\n\n/**\n * Whether the given {@link Option} is a {@link None}.\n * @category Utils — Options\n */\nconst isNone = option => option.__option === 'None';\n\nexports.isNone = isNone;\nexports.isOption = isOption;\nexports.isSome = isSome;\nexports.none = none;\nexports.some = some;\n//# sourceMappingURL=common.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-options/dist/cjs/common.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-options/dist/cjs/index.cjs":
/*!**************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-options/dist/cjs/index.cjs ***!
\**************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar common = __webpack_require__(/*! ./common.cjs */ \"./node_modules/@metaplex-foundation/umi-options/dist/cjs/common.cjs\");\nvar unwrapOption = __webpack_require__(/*! ./unwrapOption.cjs */ \"./node_modules/@metaplex-foundation/umi-options/dist/cjs/unwrapOption.cjs\");\nvar unwrapOptionRecursively = __webpack_require__(/*! ./unwrapOptionRecursively.cjs */ \"./node_modules/@metaplex-foundation/umi-options/dist/cjs/unwrapOptionRecursively.cjs\");\n\n\n\nexports.isNone = common.isNone;\nexports.isOption = common.isOption;\nexports.isSome = common.isSome;\nexports.none = common.none;\nexports.some = common.some;\nexports.unwrapOption = unwrapOption.unwrapOption;\nexports.unwrapSome = unwrapOption.unwrapSome;\nexports.unwrapSomeOrElse = unwrapOption.unwrapSomeOrElse;\nexports.wrapNullable = unwrapOption.wrapNullable;\nexports.unwrapOptionRecursively = unwrapOptionRecursively.unwrapOptionRecursively;\n//# sourceMappingURL=index.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-options/dist/cjs/index.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-options/dist/cjs/unwrapOption.cjs":
/*!*********************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-options/dist/cjs/unwrapOption.cjs ***!
\*********************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar common = __webpack_require__(/*! ./common.cjs */ \"./node_modules/@metaplex-foundation/umi-options/dist/cjs/common.cjs\");\n\n/**\n * Unwraps the value of an {@link Option} of type `T`\n * or returns a fallback value that defaults to `null`.\n *\n * @category Utils — Options\n */\n\nfunction unwrapOption(option, fallback) {\n if (common.isSome(option)) return option.value;\n return fallback ? fallback() : null;\n}\n\n/**\n * Wraps a nullable value into an {@link Option}.\n *\n * @category Utils — Options\n */\nconst wrapNullable = nullable => nullable !== null ? common.some(nullable) : common.none();\n\n/**\n * Unwraps the value of an {@link Option} of type `T`.\n * If the option is a {@link Some}, it returns its value,\n * Otherwise, it returns `null`.\n *\n * @category Utils — Options\n * @deprecated Use {@link unwrapOption} instead.\n */\nconst unwrapSome = option => common.isSome(option) ? option.value : null;\n\n/**\n * Unwraps the value of an {@link Option} of type `T`\n * or returns a custom fallback value.\n * If the option is a {@link Some}, it returns its value,\n * Otherwise, it returns the return value of the provided fallback callback.\n *\n * @category Utils — Options\n * @deprecated Use {@link unwrapOption} instead.\n */\nconst unwrapSomeOrElse = (option, fallback) => common.isSome(option) ? option.value : fallback();\n\nexports.unwrapOption = unwrapOption;\nexports.unwrapSome = unwrapSome;\nexports.unwrapSomeOrElse = unwrapSomeOrElse;\nexports.wrapNullable = wrapNullable;\n//# sourceMappingURL=unwrapOption.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-options/dist/cjs/unwrapOption.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-options/dist/cjs/unwrapOptionRecursively.cjs":
/*!********************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-options/dist/cjs/unwrapOptionRecursively.cjs ***!
\********************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar common = __webpack_require__(/*! ./common.cjs */ \"./node_modules/@metaplex-foundation/umi-options/dist/cjs/common.cjs\");\n\n/**\n * A type that defines the recursive unwrapping of a type `T`\n * such that all nested {@link Option} types are unwrapped.\n *\n * For each nested {@link Option} type, if the option is a {@link Some},\n * it returns the type of its value, otherwise, it returns the provided\n * fallback type `U` which defaults to `null`.\n *\n * @category Utils — Options\n */\n\nfunction unwrapOptionRecursively(input, fallback) {\n // Types to bypass.\n if (!input || ArrayBuffer.isView(input)) {\n return input;\n }\n const next = x => fallback ? unwrapOptionRecursively(x, fallback) : unwrapOptionRecursively(x);\n\n // Handle Option.\n if (common.isOption(input)) {\n if (common.isSome(input)) return next(input.value);\n return fallback ? fallback() : null;\n }\n\n // Walk.\n if (Array.isArray(input)) {\n return input.map(next);\n }\n if (typeof input === 'object') {\n return Object.fromEntries(Object.entries(input).map(([k, v]) => [k, next(v)]));\n }\n return input;\n}\n\nexports.unwrapOptionRecursively = unwrapOptionRecursively;\n//# sourceMappingURL=unwrapOptionRecursively.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-options/dist/cjs/unwrapOptionRecursively.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-public-keys/dist/cjs/common.cjs":
/*!*******************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-public-keys/dist/cjs/common.cjs ***!
\*******************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar umiSerializersEncodings = __webpack_require__(/*! @metaplex-foundation/umi-serializers-encodings */ \"./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/index.cjs\");\nvar errors = __webpack_require__(/*! ./errors.cjs */ \"./node_modules/@metaplex-foundation/umi-public-keys/dist/cjs/errors.cjs\");\n\n/**\n * The amount of bytes in a public key.\n * @category Signers and PublicKeys\n */\nconst PUBLIC_KEY_LENGTH = 32;\n\n/**\n * Defines a public key as a base58 string.\n * @category Signers and PublicKeys\n */\n\nfunction publicKey(input, assertValidPublicKey = true) {\n const key = (() => {\n if (typeof input === 'string') {\n return input;\n }\n // HasPublicKey.\n if (typeof input === 'object' && 'publicKey' in input) {\n return input.publicKey;\n }\n // LegacyWeb3JsPublicKey.\n if (typeof input === 'object' && 'toBase58' in input) {\n return input.toBase58();\n }\n // Pda.\n if (Array.isArray(input)) {\n return input[0];\n }\n // PublicKeyBytes.\n return umiSerializersEncodings.base58.deserialize(input)[0];\n })();\n if (assertValidPublicKey) {\n assertPublicKey(key);\n }\n return key;\n}\n\n/**\n * Creates the default public key which is composed of all zero bytes.\n * @category Signers and PublicKeys\n */\nconst defaultPublicKey = () => '11111111111111111111111111111111';\n\n/**\n * Whether the given value is a valid public key.\n * @category Signers and PublicKeys\n */\nconst isPublicKey = value => {\n try {\n assertPublicKey(value);\n return true;\n } catch (error) {\n return false;\n }\n};\n\n/**\n * Whether the given value is a valid program-derived address.\n * @category Signers and PublicKeys\n */\nconst isPda = value => Array.isArray(value) && value.length === 2 && typeof value[1] === 'number' && isPublicKey(value[0]);\n\n/**\n * Ensures the given value is a valid public key.\n * @category Signers and PublicKeys\n */\nfunction assertPublicKey(value) {\n // Check value type.\n if (typeof value !== 'string') {\n throw new errors.InvalidPublicKeyError(value, 'Public keys must be strings.');\n }\n\n // Check base58 encoding and byte length.\n publicKeyBytes(value);\n}\n\n/**\n * Deduplicates the given array of public keys.\n * @category Signers and PublicKeys\n */\nconst uniquePublicKeys = publicKeys => [...new Set(publicKeys)];\n\n/**\n * Converts the given public key to a Uint8Array.\n * Throws an error if the public key is an invalid base58 string.\n * @category Signers and PublicKeys\n */\nconst publicKeyBytes = value => {\n // Check string length to avoid unnecessary base58 encoding.\n if (value.length < 32 || value.length > 44) {\n throw new errors.InvalidPublicKeyError(value, 'Public keys must be between 32 and 44 characters.');\n }\n\n // Check base58 encoding.\n let bytes;\n try {\n bytes = umiSerializersEncodings.base58.serialize(value);\n } catch (error) {\n throw new errors.InvalidPublicKeyError(value, 'Public keys must be base58 encoded.');\n }\n\n // Check byte length.\n if (bytes.length !== PUBLIC_KEY_LENGTH) {\n throw new errors.InvalidPublicKeyError(value, `Public keys must be ${PUBLIC_KEY_LENGTH} bytes.`);\n }\n return bytes;\n};\n\n/**\n * Converts the given public key to a base58 string.\n * @category Signers and PublicKeys\n * @deprecated Public keys are now represented directly as base58 strings.\n */\nconst base58PublicKey = key => publicKey(key);\n\n/**\n * Whether the given public keys are the same.\n * @category Signers and PublicKeys\n * @deprecated Use `left === right` instead now that public keys are base58 strings.\n */\nconst samePublicKey = (left, right) => publicKey(left) === publicKey(right);\n\nexports.PUBLIC_KEY_LENGTH = PUBLIC_KEY_LENGTH;\nexports.assertPublicKey = assertPublicKey;\nexports.base58PublicKey = base58PublicKey;\nexports.defaultPublicKey = defaultPublicKey;\nexports.isPda = isPda;\nexports.isPublicKey = isPublicKey;\nexports.publicKey = publicKey;\nexports.publicKeyBytes = publicKeyBytes;\nexports.samePublicKey = samePublicKey;\nexports.uniquePublicKeys = uniquePublicKeys;\n//# sourceMappingURL=common.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-public-keys/dist/cjs/common.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-public-keys/dist/cjs/errors.cjs":
/*!*******************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-public-keys/dist/cjs/errors.cjs ***!
\*******************************************************************************/
/***/ ((__unused_webpack_module, exports) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\n/** @category Errors */\nclass InvalidPublicKeyError extends Error {\n name = 'InvalidPublicKeyError';\n constructor(invalidPublicKey, reason) {\n reason = reason ? `. ${reason}` : '';\n super(`The provided public key is invalid: ${invalidPublicKey}${reason}`);\n this.invalidPublicKey = invalidPublicKey;\n }\n}\n\nexports.InvalidPublicKeyError = InvalidPublicKeyError;\n//# sourceMappingURL=errors.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-public-keys/dist/cjs/errors.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-public-keys/dist/cjs/index.cjs":
/*!******************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-public-keys/dist/cjs/index.cjs ***!
\******************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar common = __webpack_require__(/*! ./common.cjs */ \"./node_modules/@metaplex-foundation/umi-public-keys/dist/cjs/common.cjs\");\nvar errors = __webpack_require__(/*! ./errors.cjs */ \"./node_modules/@metaplex-foundation/umi-public-keys/dist/cjs/errors.cjs\");\n\n\n\nexports.PUBLIC_KEY_LENGTH = common.PUBLIC_KEY_LENGTH;\nexports.assertPublicKey = common.assertPublicKey;\nexports.base58PublicKey = common.base58PublicKey;\nexports.defaultPublicKey = common.defaultPublicKey;\nexports.isPda = common.isPda;\nexports.isPublicKey = common.isPublicKey;\nexports.publicKey = common.publicKey;\nexports.publicKeyBytes = common.publicKeyBytes;\nexports.samePublicKey = common.samePublicKey;\nexports.uniquePublicKeys = common.uniquePublicKeys;\nexports.InvalidPublicKeyError = errors.InvalidPublicKeyError;\n//# sourceMappingURL=index.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-public-keys/dist/cjs/index.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/bytes.cjs":
/*!***********************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/bytes.cjs ***!
\***********************************************************************************/
/***/ ((__unused_webpack_module, exports) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\n/**\n * Concatenates an array of `Uint8Array`s into a single `Uint8Array`.\n * @category Utils\n */\nconst mergeBytes = bytesArr => {\n const totalLength = bytesArr.reduce((total, arr) => total + arr.length, 0);\n const result = new Uint8Array(totalLength);\n let offset = 0;\n bytesArr.forEach(arr => {\n result.set(arr, offset);\n offset += arr.length;\n });\n return result;\n};\n\n/**\n * Pads a `Uint8Array` with zeroes to the specified length.\n * If the array is longer than the specified length, it is returned as-is.\n * @category Utils\n */\nconst padBytes = (bytes, length) => {\n if (bytes.length >= length) return bytes;\n const paddedBytes = new Uint8Array(length).fill(0);\n paddedBytes.set(bytes);\n return paddedBytes;\n};\n\n/**\n * Fixes a `Uint8Array` to the specified length.\n * If the array is longer than the specified length, it is truncated.\n * If the array is shorter than the specified length, it is padded with zeroes.\n * @category Utils\n */\nconst fixBytes = (bytes, length) => padBytes(bytes.slice(0, length), length);\n\nexports.fixBytes = fixBytes;\nexports.mergeBytes = mergeBytes;\nexports.padBytes = padBytes;\n//# sourceMappingURL=bytes.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/bytes.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/errors.cjs":
/*!************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/errors.cjs ***!
\************************************************************************************/
/***/ ((__unused_webpack_module, exports) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\n/** @category Errors */\nclass DeserializingEmptyBufferError extends Error {\n name = 'DeserializingEmptyBufferError';\n constructor(serializer) {\n super(`Serializer [${serializer}] cannot deserialize empty buffers.`);\n }\n}\n\n/** @category Errors */\nclass NotEnoughBytesError extends Error {\n name = 'NotEnoughBytesError';\n constructor(serializer, expected, actual) {\n super(`Serializer [${serializer}] expected ${expected} bytes, got ${actual}.`);\n }\n}\n\n/** @category Errors */\nclass ExpectedFixedSizeSerializerError extends Error {\n name = 'ExpectedFixedSizeSerializerError';\n constructor(message) {\n message ??= 'Expected a fixed-size serializer, got a variable-size one.';\n super(message);\n }\n}\n\nexports.DeserializingEmptyBufferError = DeserializingEmptyBufferError;\nexports.ExpectedFixedSizeSerializerError = ExpectedFixedSizeSerializerError;\nexports.NotEnoughBytesError = NotEnoughBytesError;\n//# sourceMappingURL=errors.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/errors.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/fixSerializer.cjs":
/*!*******************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/fixSerializer.cjs ***!
\*******************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar bytes = __webpack_require__(/*! ./bytes.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/bytes.cjs\");\nvar errors = __webpack_require__(/*! ./errors.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/errors.cjs\");\n\n/**\n * Creates a fixed-size serializer from a given serializer.\n *\n * @param serializer - The serializer to wrap into a fixed-size serializer.\n * @param fixedBytes - The fixed number of bytes to read.\n * @param description - A custom description for the serializer.\n *\n * @category Serializers\n */\nfunction fixSerializer(serializer, fixedBytes, description) {\n return {\n description: description ?? `fixed(${fixedBytes}, ${serializer.description})`,\n fixedSize: fixedBytes,\n maxSize: fixedBytes,\n serialize: value => bytes.fixBytes(serializer.serialize(value), fixedBytes),\n deserialize: (buffer, offset = 0) => {\n // Slice the buffer to the fixed size.\n buffer = buffer.slice(offset, offset + fixedBytes);\n // Ensure we have enough bytes.\n if (buffer.length < fixedBytes) {\n throw new errors.NotEnoughBytesError('fixSerializer', fixedBytes, buffer.length);\n }\n // If the nested serializer is fixed-size, pad and truncate the buffer accordingly.\n if (serializer.fixedSize !== null) {\n buffer = bytes.fixBytes(buffer, serializer.fixedSize);\n }\n // Deserialize the value using the nested serializer.\n const [value] = serializer.deserialize(buffer, 0);\n return [value, offset + fixedBytes];\n }\n };\n}\n\nexports.fixSerializer = fixSerializer;\n//# sourceMappingURL=fixSerializer.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/fixSerializer.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/index.cjs":
/*!***********************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/index.cjs ***!
\***********************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar bytes = __webpack_require__(/*! ./bytes.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/bytes.cjs\");\nvar errors = __webpack_require__(/*! ./errors.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/errors.cjs\");\nvar fixSerializer = __webpack_require__(/*! ./fixSerializer.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/fixSerializer.cjs\");\nvar mapSerializer = __webpack_require__(/*! ./mapSerializer.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/mapSerializer.cjs\");\nvar reverseSerializer = __webpack_require__(/*! ./reverseSerializer.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/reverseSerializer.cjs\");\n\n\n\nexports.fixBytes = bytes.fixBytes;\nexports.mergeBytes = bytes.mergeBytes;\nexports.padBytes = bytes.padBytes;\nexports.DeserializingEmptyBufferError = errors.DeserializingEmptyBufferError;\nexports.ExpectedFixedSizeSerializerError = errors.ExpectedFixedSizeSerializerError;\nexports.NotEnoughBytesError = errors.NotEnoughBytesError;\nexports.fixSerializer = fixSerializer.fixSerializer;\nexports.mapSerializer = mapSerializer.mapSerializer;\nexports.reverseSerializer = reverseSerializer.reverseSerializer;\n//# sourceMappingURL=index.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/index.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/mapSerializer.cjs":
/*!*******************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/mapSerializer.cjs ***!
\*******************************************************************************************/
/***/ ((__unused_webpack_module, exports) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\n/**\n * Converts a serializer A to a serializer B by mapping their values.\n * @category Serializers\n */\n\nfunction mapSerializer(serializer, unmap, map) {\n return {\n description: serializer.description,\n fixedSize: serializer.fixedSize,\n maxSize: serializer.maxSize,\n serialize: value => serializer.serialize(unmap(value)),\n deserialize: (buffer, offset = 0) => {\n const [value, length] = serializer.deserialize(buffer, offset);\n return map ? [map(value, buffer, offset), length] : [value, length];\n }\n };\n}\n\nexports.mapSerializer = mapSerializer;\n//# sourceMappingURL=mapSerializer.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/mapSerializer.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/reverseSerializer.cjs":
/*!***********************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/reverseSerializer.cjs ***!
\***********************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar bytes = __webpack_require__(/*! ./bytes.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/bytes.cjs\");\nvar errors = __webpack_require__(/*! ./errors.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/errors.cjs\");\n\n/**\n * Reverses the bytes of a fixed-size serializer.\n * @category Serializers\n */\nfunction reverseSerializer(serializer) {\n if (serializer.fixedSize === null) {\n throw new errors.ExpectedFixedSizeSerializerError('Cannot reverse a serializer of variable size.');\n }\n return {\n ...serializer,\n serialize: value => serializer.serialize(value).reverse(),\n deserialize: (bytes$1, offset = 0) => {\n const fixedSize = serializer.fixedSize;\n const newBytes = bytes.mergeBytes([bytes$1.slice(0, offset), bytes$1.slice(offset, offset + fixedSize).reverse(), bytes$1.slice(offset + fixedSize)]);\n return serializer.deserialize(newBytes, offset);\n }\n };\n}\n\nexports.reverseSerializer = reverseSerializer;\n//# sourceMappingURL=reverseSerializer.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/reverseSerializer.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/base10.cjs":
/*!*****************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/base10.cjs ***!
\*****************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar baseX = __webpack_require__(/*! ./baseX.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/baseX.cjs\");\n\n/**\n * A string serializer that uses base10 encoding.\n * @category Serializers\n */\nconst base10 = baseX.baseX('0123456789');\n\nexports.base10 = base10;\n//# sourceMappingURL=base10.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/base10.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/base16.cjs":
/*!*****************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/base16.cjs ***!
\*****************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar errors = __webpack_require__(/*! ./errors.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/errors.cjs\");\n\n/**\n * A string serializer that uses base16 encoding.\n * @category Serializers\n */\nconst base16 = {\n description: 'base16',\n fixedSize: null,\n maxSize: null,\n serialize(value) {\n const lowercaseValue = value.toLowerCase();\n if (!lowercaseValue.match(/^[0123456789abcdef]*$/)) {\n throw new errors.InvalidBaseStringError(value, 16);\n }\n const matches = lowercaseValue.match(/.{1,2}/g);\n return Uint8Array.from(matches ? matches.map(byte => parseInt(byte, 16)) : []);\n },\n deserialize(buffer, offset = 0) {\n const value = buffer.slice(offset).reduce((str, byte) => str + byte.toString(16).padStart(2, '0'), '');\n return [value, buffer.length];\n }\n};\n\nexports.base16 = base16;\n//# sourceMappingURL=base16.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/base16.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/base58.cjs":
/*!*****************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/base58.cjs ***!
\*****************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar baseX = __webpack_require__(/*! ./baseX.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/baseX.cjs\");\n\n/**\n * A string serializer that uses base58 encoding.\n * @category Serializers\n */\nconst base58 = baseX.baseX('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz');\n\nexports.base58 = base58;\n//# sourceMappingURL=base58.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/base58.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/base64.cjs":
/*!*****************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/base64.cjs ***!
\*****************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar umiSerializersCore = __webpack_require__(/*! @metaplex-foundation/umi-serializers-core */ \"./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/index.cjs\");\nvar baseXReslice = __webpack_require__(/*! ./baseXReslice.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/baseXReslice.cjs\");\n\n/**\n * A string serializer that uses base64 encoding.\n * @category Serializers\n */\nconst base64 = umiSerializersCore.mapSerializer(baseXReslice.baseXReslice('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/', 6), value => value.replace(/=/g, ''), value => value.padEnd(Math.ceil(value.length / 4) * 4, '='));\n\nexports.base64 = base64;\n//# sourceMappingURL=base64.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/base64.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/baseX.cjs":
/*!****************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/baseX.cjs ***!
\****************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar errors = __webpack_require__(/*! ./errors.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/errors.cjs\");\n\n/**\n * A string serializer that requires a custom alphabet and uses\n * the length of that alphabet as the base. It then divides\n * the input by the base as many times as necessary to get\n * the output. It also supports leading zeroes by using the\n * first character of the alphabet as the zero character.\n *\n * This can be used to create serializers such as base10 or base58.\n *\n * @category Serializers\n */\nconst baseX = alphabet => {\n const base = alphabet.length;\n const baseBigInt = BigInt(base);\n return {\n description: `base${base}`,\n fixedSize: null,\n maxSize: null,\n serialize(value) {\n // Check if the value is valid.\n if (!value.match(new RegExp(`^[${alphabet}]*$`))) {\n throw new errors.InvalidBaseStringError(value, base);\n }\n if (value === '') return new Uint8Array();\n\n // Handle leading zeroes.\n const chars = [...value];\n let trailIndex = chars.findIndex(c => c !== alphabet[0]);\n trailIndex = trailIndex === -1 ? chars.length : trailIndex;\n const leadingZeroes = Array(trailIndex).fill(0);\n if (trailIndex === chars.length) return Uint8Array.from(leadingZeroes);\n\n // From baseX to base10.\n const tailChars = chars.slice(trailIndex);\n let base10Number = 0n;\n let baseXPower = 1n;\n for (let i = tailChars.length - 1; i >= 0; i -= 1) {\n base10Number += baseXPower * BigInt(alphabet.indexOf(tailChars[i]));\n baseXPower *= baseBigInt;\n }\n\n // From base10 to bytes.\n const tailBytes = [];\n while (base10Number > 0n) {\n tailBytes.unshift(Number(base10Number % 256n));\n base10Number /= 256n;\n }\n return Uint8Array.from(leadingZeroes.concat(tailBytes));\n },\n deserialize(buffer, offset = 0) {\n if (buffer.length === 0) return ['', 0];\n\n // Handle leading zeroes.\n const bytes = buffer.slice(offset);\n let trailIndex = bytes.findIndex(n => n !== 0);\n trailIndex = trailIndex === -1 ? bytes.length : trailIndex;\n const leadingZeroes = alphabet[0].repeat(trailIndex);\n if (trailIndex === bytes.length) return [leadingZeroes, buffer.length];\n\n // From bytes to base10.\n let base10Number = bytes.slice(trailIndex).reduce((sum, byte) => sum * 256n + BigInt(byte), 0n);\n\n // From base10 to baseX.\n const tailChars = [];\n while (base10Number > 0n) {\n tailChars.unshift(alphabet[Number(base10Number % baseBigInt)]);\n base10Number /= baseBigInt;\n }\n return [leadingZeroes + tailChars.join(''), buffer.length];\n }\n };\n};\n\nexports.baseX = baseX;\n//# sourceMappingURL=baseX.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/baseX.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/baseXReslice.cjs":
/*!***********************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/baseXReslice.cjs ***!
\***********************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar errors = __webpack_require__(/*! ./errors.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/errors.cjs\");\n\n/* eslint-disable no-restricted-syntax */\n\n/**\n * A string serializer that reslices bytes into custom chunks\n * of bits that are then mapped to a custom alphabet.\n *\n * This can be used to create serializers whose alphabet\n * is a power of 2 such as base16 or base64.\n *\n * @category Serializers\n */\nconst baseXReslice = (alphabet, bits) => {\n const base = alphabet.length;\n const reslice = (input, inputBits, outputBits, useRemainder) => {\n const output = [];\n let accumulator = 0;\n let bitsInAccumulator = 0;\n const mask = (1 << outputBits) - 1;\n for (const value of input) {\n accumulator = accumulator << inputBits | value;\n bitsInAccumulator += inputBits;\n while (bitsInAccumulator >= outputBits) {\n bitsInAccumulator -= outputBits;\n output.push(accumulator >> bitsInAccumulator & mask);\n }\n }\n if (useRemainder && bitsInAccumulator > 0) {\n output.push(accumulator << outputBits - bitsInAccumulator & mask);\n }\n return output;\n };\n return {\n description: `base${base}`,\n fixedSize: null,\n maxSize: null,\n serialize(value) {\n // Check if the value is valid.\n if (!value.match(new RegExp(`^[${alphabet}]*$`))) {\n throw new errors.InvalidBaseStringError(value, base);\n }\n if (value === '') return new Uint8Array();\n const charIndices = [...value].map(c => alphabet.indexOf(c));\n const bytes = reslice(charIndices, bits, 8, false);\n return Uint8Array.from(bytes);\n },\n deserialize(buffer, offset = 0) {\n if (buffer.length === 0) return ['', 0];\n const bytes = [...buffer.slice(offset)];\n const charIndices = reslice(bytes, 8, bits, true);\n return [charIndices.map(i => alphabet[i]).join(''), buffer.length];\n }\n };\n};\n\nexports.baseXReslice = baseXReslice;\n//# sourceMappingURL=baseXReslice.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/baseXReslice.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/errors.cjs":
/*!*****************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/errors.cjs ***!
\*****************************************************************************************/
/***/ ((__unused_webpack_module, exports) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\n/** @category Errors */\nclass InvalidBaseStringError extends Error {\n name = 'InvalidBaseStringError';\n constructor(value, base, cause) {\n const message = `Expected a string of base ${base}, got [${value}].`;\n super(message);\n this.cause = cause;\n }\n}\n\nexports.InvalidBaseStringError = InvalidBaseStringError;\n//# sourceMappingURL=errors.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/errors.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/index.cjs":
/*!****************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/index.cjs ***!
\****************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar base10 = __webpack_require__(/*! ./base10.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/base10.cjs\");\nvar base16 = __webpack_require__(/*! ./base16.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/base16.cjs\");\nvar base58 = __webpack_require__(/*! ./base58.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/base58.cjs\");\nvar base64 = __webpack_require__(/*! ./base64.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/base64.cjs\");\nvar baseX = __webpack_require__(/*! ./baseX.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/baseX.cjs\");\nvar baseXReslice = __webpack_require__(/*! ./baseXReslice.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/baseXReslice.cjs\");\nvar errors = __webpack_require__(/*! ./errors.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/errors.cjs\");\nvar nullCharacters = __webpack_require__(/*! ./nullCharacters.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/nullCharacters.cjs\");\nvar utf8 = __webpack_require__(/*! ./utf8.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/utf8.cjs\");\n\n\n\nexports.base10 = base10.base10;\nexports.base16 = base16.base16;\nexports.base58 = base58.base58;\nexports.base64 = base64.base64;\nexports.baseX = baseX.baseX;\nexports.baseXReslice = baseXReslice.baseXReslice;\nexports.InvalidBaseStringError = errors.InvalidBaseStringError;\nexports.padNullCharacters = nullCharacters.padNullCharacters;\nexports.removeNullCharacters = nullCharacters.removeNullCharacters;\nexports.utf8 = utf8.utf8;\n//# sourceMappingURL=index.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/index.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/nullCharacters.cjs":
/*!*************************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/nullCharacters.cjs ***!
\*************************************************************************************************/
/***/ ((__unused_webpack_module, exports) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\n/**\n * Removes null characters from a string.\n * @category Utils\n */\nconst removeNullCharacters = value =>\n// eslint-disable-next-line no-control-regex\nvalue.replace(/\\u0000/g, '');\n\n/**\n * Pads a string with null characters at the end.\n * @category Utils\n */\nconst padNullCharacters = (value, chars) => value.padEnd(chars, '\\u0000');\n\nexports.padNullCharacters = padNullCharacters;\nexports.removeNullCharacters = removeNullCharacters;\n//# sourceMappingURL=nullCharacters.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/nullCharacters.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/utf8.cjs":
/*!***************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/utf8.cjs ***!
\***************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar nullCharacters = __webpack_require__(/*! ./nullCharacters.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/nullCharacters.cjs\");\n\n/**\n * A string serializer that uses UTF-8 encoding\n * using the native `TextEncoder` API.\n * @category Serializers\n */\nconst utf8 = {\n description: 'utf8',\n fixedSize: null,\n maxSize: null,\n serialize(value) {\n return new TextEncoder().encode(value);\n },\n deserialize(buffer, offset = 0) {\n const value = new TextDecoder().decode(buffer.slice(offset));\n return [nullCharacters.removeNullCharacters(value), buffer.length];\n }\n};\n\nexports.utf8 = utf8;\n//# sourceMappingURL=utf8.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/utf8.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/common.cjs":
/*!***************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/common.cjs ***!
\***************************************************************************************/
/***/ ((__unused_webpack_module, exports) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\n/**\n * Defines a serializer for numbers and bigints.\n * @category Serializers\n */\n\n/**\n * Defines the options for u8 and i8 serializers.\n * @category Serializers\n */\n\n/**\n * Defines the options for number serializers that use more than one byte.\n * @category Serializers\n */\n\n/**\n * Defines the endianness of a number serializer.\n * @category Serializers\n */\nexports.Endian = void 0;\n(function (Endian) {\n Endian[\"Little\"] = \"le\";\n Endian[\"Big\"] = \"be\";\n})(exports.Endian || (exports.Endian = {}));\n//# sourceMappingURL=common.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/common.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/errors.cjs":
/*!***************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/errors.cjs ***!
\***************************************************************************************/
/***/ ((__unused_webpack_module, exports) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\n/** @category Errors */\nclass NumberOutOfRangeError extends RangeError {\n name = 'NumberOutOfRangeError';\n constructor(serializer, min, max, actual) {\n super(`Serializer [${serializer}] expected number to be between ${min} and ${max}, got ${actual}.`);\n }\n}\n\nexports.NumberOutOfRangeError = NumberOutOfRangeError;\n//# sourceMappingURL=errors.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/errors.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/f32.cjs":
/*!************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/f32.cjs ***!
\************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar utils = __webpack_require__(/*! ./utils.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/utils.cjs\");\n\nconst f32 = (options = {}) => utils.numberFactory({\n name: 'f32',\n size: 4,\n set: (view, value, le) => view.setFloat32(0, Number(value), le),\n get: (view, le) => view.getFloat32(0, le),\n options\n});\n\nexports.f32 = f32;\n//# sourceMappingURL=f32.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/f32.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/f64.cjs":
/*!************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/f64.cjs ***!
\************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar utils = __webpack_require__(/*! ./utils.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/utils.cjs\");\n\nconst f64 = (options = {}) => utils.numberFactory({\n name: 'f64',\n size: 8,\n set: (view, value, le) => view.setFloat64(0, Number(value), le),\n get: (view, le) => view.getFloat64(0, le),\n options\n});\n\nexports.f64 = f64;\n//# sourceMappingURL=f64.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/f64.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/i128.cjs":
/*!*************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/i128.cjs ***!
\*************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar utils = __webpack_require__(/*! ./utils.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/utils.cjs\");\n\n/* eslint-disable no-bitwise */\nconst i128 = (options = {}) => utils.numberFactory({\n name: 'i128',\n size: 16,\n range: [-BigInt('0x7fffffffffffffffffffffffffffffff') - 1n, BigInt('0x7fffffffffffffffffffffffffffffff')],\n set: (view, value, le) => {\n const leftOffset = le ? 8 : 0;\n const rightOffset = le ? 0 : 8;\n const rightMask = 0xffffffffffffffffn;\n view.setBigInt64(leftOffset, BigInt(value) >> 64n, le);\n view.setBigUint64(rightOffset, BigInt(value) & rightMask, le);\n },\n get: (view, le) => {\n const leftOffset = le ? 8 : 0;\n const rightOffset = le ? 0 : 8;\n const left = view.getBigInt64(leftOffset, le);\n const right = view.getBigUint64(rightOffset, le);\n return (left << 64n) + right;\n },\n options\n});\n\nexports.i128 = i128;\n//# sourceMappingURL=i128.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/i128.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/i16.cjs":
/*!************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/i16.cjs ***!
\************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar utils = __webpack_require__(/*! ./utils.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/utils.cjs\");\n\nconst i16 = (options = {}) => utils.numberFactory({\n name: 'i16',\n size: 2,\n range: [-Number('0x7fff') - 1, Number('0x7fff')],\n set: (view, value, le) => view.setInt16(0, Number(value), le),\n get: (view, le) => view.getInt16(0, le),\n options\n});\n\nexports.i16 = i16;\n//# sourceMappingURL=i16.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/i16.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/i32.cjs":
/*!************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/i32.cjs ***!
\************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar utils = __webpack_require__(/*! ./utils.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/utils.cjs\");\n\nconst i32 = (options = {}) => utils.numberFactory({\n name: 'i32',\n size: 4,\n range: [-Number('0x7fffffff') - 1, Number('0x7fffffff')],\n set: (view, value, le) => view.setInt32(0, Number(value), le),\n get: (view, le) => view.getInt32(0, le),\n options\n});\n\nexports.i32 = i32;\n//# sourceMappingURL=i32.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/i32.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/i64.cjs":
/*!************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/i64.cjs ***!
\************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar utils = __webpack_require__(/*! ./utils.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/utils.cjs\");\n\nconst i64 = (options = {}) => utils.numberFactory({\n name: 'i64',\n size: 8,\n range: [-BigInt('0x7fffffffffffffff') - 1n, BigInt('0x7fffffffffffffff')],\n set: (view, value, le) => view.setBigInt64(0, BigInt(value), le),\n get: (view, le) => view.getBigInt64(0, le),\n options\n});\n\nexports.i64 = i64;\n//# sourceMappingURL=i64.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/i64.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/i8.cjs":
/*!***********************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/i8.cjs ***!
\***********************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar utils = __webpack_require__(/*! ./utils.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/utils.cjs\");\n\nconst i8 = (options = {}) => utils.numberFactory({\n name: 'i8',\n size: 1,\n range: [-Number('0x7f') - 1, Number('0x7f')],\n set: (view, value) => view.setInt8(0, Number(value)),\n get: view => view.getInt8(0),\n options\n});\n\nexports.i8 = i8;\n//# sourceMappingURL=i8.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/i8.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/index.cjs":
/*!**************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/index.cjs ***!
\**************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar common = __webpack_require__(/*! ./common.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/common.cjs\");\nvar errors = __webpack_require__(/*! ./errors.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/errors.cjs\");\nvar f32 = __webpack_require__(/*! ./f32.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/f32.cjs\");\nvar f64 = __webpack_require__(/*! ./f64.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/f64.cjs\");\nvar i8 = __webpack_require__(/*! ./i8.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/i8.cjs\");\nvar i16 = __webpack_require__(/*! ./i16.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/i16.cjs\");\nvar i32 = __webpack_require__(/*! ./i32.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/i32.cjs\");\nvar i64 = __webpack_require__(/*! ./i64.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/i64.cjs\");\nvar i128 = __webpack_require__(/*! ./i128.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/i128.cjs\");\nvar u8 = __webpack_require__(/*! ./u8.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/u8.cjs\");\nvar u16 = __webpack_require__(/*! ./u16.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/u16.cjs\");\nvar u32 = __webpack_require__(/*! ./u32.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/u32.cjs\");\nvar u64 = __webpack_require__(/*! ./u64.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/u64.cjs\");\nvar u128 = __webpack_require__(/*! ./u128.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/u128.cjs\");\nvar shortU16 = __webpack_require__(/*! ./shortU16.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/shortU16.cjs\");\n\n\n\nObject.defineProperty(exports, \"Endian\", ({\n\tenumerable: true,\n\tget: function () { return common.Endian; }\n}));\nexports.NumberOutOfRangeError = errors.NumberOutOfRangeError;\nexports.f32 = f32.f32;\nexports.f64 = f64.f64;\nexports.i8 = i8.i8;\nexports.i16 = i16.i16;\nexports.i32 = i32.i32;\nexports.i64 = i64.i64;\nexports.i128 = i128.i128;\nexports.u8 = u8.u8;\nexports.u16 = u16.u16;\nexports.u32 = u32.u32;\nexports.u64 = u64.u64;\nexports.u128 = u128.u128;\nexports.shortU16 = shortU16.shortU16;\n//# sourceMappingURL=index.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/index.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/shortU16.cjs":
/*!*****************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/shortU16.cjs ***!
\*****************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar utils = __webpack_require__(/*! ./utils.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/utils.cjs\");\n\n/* eslint-disable no-bitwise */\n\n/**\n * Defines the options for the shortU16 serializer.\n * @category Serializers\n */\n\n/**\n * Same as u16, but serialized with 1 to 3 bytes.\n *\n * If the value is above 0x7f, the top bit is set and the remaining\n * value is stored in the next bytes. Each byte follows the same\n * pattern until the 3rd byte. The 3rd byte, if needed, uses\n * all 8 bits to store the last byte of the original value.\n *\n * @category Serializers\n */\nconst shortU16 = (options = {}) => ({\n description: options.description ?? 'shortU16',\n fixedSize: null,\n maxSize: 3,\n serialize: value => {\n utils.assertRange('shortU16', 0, 65535, value);\n const bytes = [0];\n for (let ii = 0;; ii += 1) {\n // Shift the bits of the value over such that the next 7 bits are at the right edge.\n const alignedValue = value >> ii * 7;\n if (alignedValue === 0) {\n // No more bits to consume.\n break;\n }\n // Extract those 7 bits using a mask.\n const nextSevenBits = 0b1111111 & alignedValue;\n bytes[ii] = nextSevenBits;\n if (ii > 0) {\n // Set the continuation bit of the previous slice.\n bytes[ii - 1] |= 0b10000000;\n }\n }\n return new Uint8Array(bytes);\n },\n deserialize: (bytes, offset = 0) => {\n let value = 0;\n let byteCount = 0;\n while (++byteCount // eslint-disable-line no-plusplus\n ) {\n const byteIndex = byteCount - 1;\n const currentByte = bytes[offset + byteIndex];\n const nextSevenBits = 0b1111111 & currentByte;\n // Insert the next group of seven bits into the correct slot of the output value.\n value |= nextSevenBits << byteIndex * 7;\n if ((currentByte & 0b10000000) === 0) {\n // This byte does not have its continuation bit set. We're done.\n break;\n }\n }\n return [value, offset + byteCount];\n }\n});\n\nexports.shortU16 = shortU16;\n//# sourceMappingURL=shortU16.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/shortU16.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/u128.cjs":
/*!*************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/u128.cjs ***!
\*************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar utils = __webpack_require__(/*! ./utils.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/utils.cjs\");\n\n/* eslint-disable no-bitwise */\nconst u128 = (options = {}) => utils.numberFactory({\n name: 'u128',\n size: 16,\n range: [0, BigInt('0xffffffffffffffffffffffffffffffff')],\n set: (view, value, le) => {\n const leftOffset = le ? 8 : 0;\n const rightOffset = le ? 0 : 8;\n const rightMask = 0xffffffffffffffffn;\n view.setBigUint64(leftOffset, BigInt(value) >> 64n, le);\n view.setBigUint64(rightOffset, BigInt(value) & rightMask, le);\n },\n get: (view, le) => {\n const leftOffset = le ? 8 : 0;\n const rightOffset = le ? 0 : 8;\n const left = view.getBigUint64(leftOffset, le);\n const right = view.getBigUint64(rightOffset, le);\n return (left << 64n) + right;\n },\n options\n});\n\nexports.u128 = u128;\n//# sourceMappingURL=u128.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/u128.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/u16.cjs":
/*!************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/u16.cjs ***!
\************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar utils = __webpack_require__(/*! ./utils.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/utils.cjs\");\n\nconst u16 = (options = {}) => utils.numberFactory({\n name: 'u16',\n size: 2,\n range: [0, Number('0xffff')],\n set: (view, value, le) => view.setUint16(0, Number(value), le),\n get: (view, le) => view.getUint16(0, le),\n options\n});\n\nexports.u16 = u16;\n//# sourceMappingURL=u16.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/u16.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/u32.cjs":
/*!************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/u32.cjs ***!
\************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar utils = __webpack_require__(/*! ./utils.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/utils.cjs\");\n\nconst u32 = (options = {}) => utils.numberFactory({\n name: 'u32',\n size: 4,\n range: [0, Number('0xffffffff')],\n set: (view, value, le) => view.setUint32(0, Number(value), le),\n get: (view, le) => view.getUint32(0, le),\n options\n});\n\nexports.u32 = u32;\n//# sourceMappingURL=u32.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/u32.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/u64.cjs":
/*!************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/u64.cjs ***!
\************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar utils = __webpack_require__(/*! ./utils.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/utils.cjs\");\n\nconst u64 = (options = {}) => utils.numberFactory({\n name: 'u64',\n size: 8,\n range: [0, BigInt('0xffffffffffffffff')],\n set: (view, value, le) => view.setBigUint64(0, BigInt(value), le),\n get: (view, le) => view.getBigUint64(0, le),\n options\n});\n\nexports.u64 = u64;\n//# sourceMappingURL=u64.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/u64.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/u8.cjs":
/*!***********************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/u8.cjs ***!
\***********************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar utils = __webpack_require__(/*! ./utils.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/utils.cjs\");\n\nconst u8 = (options = {}) => utils.numberFactory({\n name: 'u8',\n size: 1,\n range: [0, Number('0xff')],\n set: (view, value) => view.setUint8(0, Number(value)),\n get: view => view.getUint8(0),\n options\n});\n\nexports.u8 = u8;\n//# sourceMappingURL=u8.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/u8.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/utils.cjs":
/*!**************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/utils.cjs ***!
\**************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar umiSerializersCore = __webpack_require__(/*! @metaplex-foundation/umi-serializers-core */ \"./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/index.cjs\");\nvar common = __webpack_require__(/*! ./common.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/common.cjs\");\nvar errors = __webpack_require__(/*! ./errors.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/errors.cjs\");\n\nfunction numberFactory(input) {\n let littleEndian;\n let defaultDescription = input.name;\n if (input.size > 1) {\n littleEndian = !('endian' in input.options) || input.options.endian === common.Endian.Little;\n defaultDescription += littleEndian ? '(le)' : '(be)';\n }\n return {\n description: input.options.description ?? defaultDescription,\n fixedSize: input.size,\n maxSize: input.size,\n serialize(value) {\n if (input.range) {\n assertRange(input.name, input.range[0], input.range[1], value);\n }\n const buffer = new ArrayBuffer(input.size);\n input.set(new DataView(buffer), value, littleEndian);\n return new Uint8Array(buffer);\n },\n deserialize(bytes, offset = 0) {\n const slice = bytes.slice(offset, offset + input.size);\n assertEnoughBytes('i8', slice, input.size);\n const view = toDataView(slice);\n return [input.get(view, littleEndian), offset + input.size];\n }\n };\n}\n\n/**\n * Helper function to ensure that the array buffer is converted properly from a uint8array\n * Source: https://stackoverflow.com/questions/37228285/uint8array-to-arraybuffer\n * @param {Uint8Array} array Uint8array that's being converted into an array buffer\n * @returns {ArrayBuffer} An array buffer that's necessary to construct a data view\n */\nconst toArrayBuffer = array => array.buffer.slice(array.byteOffset, array.byteLength + array.byteOffset);\nconst toDataView = array => new DataView(toArrayBuffer(array));\nconst assertRange = (serializer, min, max, value) => {\n if (value < min || value > max) {\n throw new errors.NumberOutOfRangeError(serializer, min, max, value);\n }\n};\nconst assertEnoughBytes = (serializer, bytes, expected) => {\n if (bytes.length === 0) {\n throw new umiSerializersCore.DeserializingEmptyBufferError(serializer);\n }\n if (bytes.length < expected) {\n throw new umiSerializersCore.NotEnoughBytesError(serializer, expected, bytes.length);\n }\n};\n\nexports.assertEnoughBytes = assertEnoughBytes;\nexports.assertRange = assertRange;\nexports.numberFactory = numberFactory;\nexports.toArrayBuffer = toArrayBuffer;\nexports.toDataView = toDataView;\n//# sourceMappingURL=utils.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/utils.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/array.cjs":
/*!******************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/array.cjs ***!
\******************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar umiSerializersCore = __webpack_require__(/*! @metaplex-foundation/umi-serializers-core */ \"./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/index.cjs\");\nvar umiSerializersNumbers = __webpack_require__(/*! @metaplex-foundation/umi-serializers-numbers */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/index.cjs\");\nvar errors = __webpack_require__(/*! ./errors.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/errors.cjs\");\nvar utils = __webpack_require__(/*! ./utils.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/utils.cjs\");\n\n/**\n * Defines the options for array serializers.\n * @category Serializers\n */\n\n/**\n * Creates a serializer for an array of items.\n *\n * @param item - The serializer to use for the array's items.\n * @param options - A set of options for the serializer.\n * @category Serializers\n */\nfunction array(item, options = {}) {\n const size = options.size ?? umiSerializersNumbers.u32();\n return {\n description: options.description ?? `array(${item.description}; ${utils.getSizeDescription(size)})`,\n fixedSize: utils.getSizeFromChildren(size, [item.fixedSize]),\n maxSize: utils.getSizeFromChildren(size, [item.maxSize]),\n serialize: value => {\n if (typeof size === 'number' && value.length !== size) {\n throw new errors.InvalidNumberOfItemsError('array', size, value.length);\n }\n return umiSerializersCore.mergeBytes([utils.getSizePrefix(size, value.length), ...value.map(v => item.serialize(v))]);\n },\n deserialize: (bytes, offset = 0) => {\n const values = [];\n if (typeof size === 'object' && bytes.slice(offset).length === 0) {\n return [values, offset];\n }\n if (size === 'remainder') {\n while (offset < bytes.length) {\n const [value, newOffset] = item.deserialize(bytes, offset);\n values.push(value);\n offset = newOffset;\n }\n return [values, offset];\n }\n const [resolvedSize, newOffset] = utils.getResolvedSize(size, bytes, offset);\n offset = newOffset;\n for (let i = 0; i < resolvedSize; i += 1) {\n const [value, newOffset] = item.deserialize(bytes, offset);\n values.push(value);\n offset = newOffset;\n }\n return [values, offset];\n }\n };\n}\n\nexports.array = array;\n//# sourceMappingURL=array.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/array.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/bitArray.cjs":
/*!*********************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/bitArray.cjs ***!
\*********************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar umiSerializersCore = __webpack_require__(/*! @metaplex-foundation/umi-serializers-core */ \"./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/index.cjs\");\n\n/* eslint-disable no-bitwise */\n\n/**\n * Defines the options for bitArray serializers.\n * @category Serializers\n */\n\n/**\n * An array of boolean serializer that\n * converts booleans to bits and vice versa.\n *\n * @param size - The amount of bytes to use for the bit array.\n * @param options - A set of options for the serializer.\n * @category Serializers\n */\nconst bitArray = (size, options = {}) => {\n const parsedOptions = typeof options === 'boolean' ? {\n backward: options\n } : options;\n const backward = parsedOptions.backward ?? false;\n const backwardSuffix = backward ? '; backward' : '';\n return {\n description: parsedOptions.description ?? `bitArray(${size}${backwardSuffix})`,\n fixedSize: size,\n maxSize: size,\n serialize(value) {\n const bytes = [];\n for (let i = 0; i < size; i += 1) {\n let byte = 0;\n for (let j = 0; j < 8; j += 1) {\n const feature = Number(value[i * 8 + j] ?? 0);\n byte |= feature << (backward ? j : 7 - j);\n }\n if (backward) {\n bytes.unshift(byte);\n } else {\n bytes.push(byte);\n }\n }\n return new Uint8Array(bytes);\n },\n deserialize(bytes, offset = 0) {\n const booleans = [];\n let slice = bytes.slice(offset, offset + size);\n slice = backward ? slice.reverse() : slice;\n if (slice.length !== size) {\n throw new umiSerializersCore.NotEnoughBytesError('bitArray', size, slice.length);\n }\n slice.forEach(byte => {\n for (let i = 0; i < 8; i += 1) {\n if (backward) {\n booleans.push(Boolean(byte & 1));\n byte >>= 1;\n } else {\n booleans.push(Boolean(byte & 0b1000_0000));\n byte <<= 1;\n }\n }\n });\n return [booleans, offset + size];\n }\n };\n};\n\nexports.bitArray = bitArray;\n//# sourceMappingURL=bitArray.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/bitArray.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/bool.cjs":
/*!*****************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/bool.cjs ***!
\*****************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar umiSerializersCore = __webpack_require__(/*! @metaplex-foundation/umi-serializers-core */ \"./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/index.cjs\");\nvar umiSerializersNumbers = __webpack_require__(/*! @metaplex-foundation/umi-serializers-numbers */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/index.cjs\");\n\n/**\n * Defines the options for boolean serializers.\n * @category Serializers\n */\n\n/**\n * Creates a boolean serializer.\n *\n * @param options - A set of options for the serializer.\n * @category Serializers\n */\nfunction bool(options = {}) {\n const size = options.size ?? umiSerializersNumbers.u8();\n if (size.fixedSize === null) {\n throw new umiSerializersCore.ExpectedFixedSizeSerializerError('Serializer [bool] requires a fixed size.');\n }\n return {\n description: options.description ?? `bool(${size.description})`,\n fixedSize: size.fixedSize,\n maxSize: size.fixedSize,\n serialize: value => size.serialize(value ? 1 : 0),\n deserialize: (bytes, offset = 0) => {\n if (bytes.slice(offset).length === 0) {\n throw new umiSerializersCore.DeserializingEmptyBufferError('bool');\n }\n const [value, vOffset] = size.deserialize(bytes, offset);\n return [value === 1, vOffset];\n }\n };\n}\n\nexports.bool = bool;\n//# sourceMappingURL=bool.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/bool.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/bytes.cjs":
/*!******************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/bytes.cjs ***!
\******************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar umiSerializersCore = __webpack_require__(/*! @metaplex-foundation/umi-serializers-core */ \"./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/index.cjs\");\nvar utils = __webpack_require__(/*! ./utils.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/utils.cjs\");\n\n/**\n * Defines the options for bytes serializers.\n * @category Serializers\n */\n\n/**\n * Creates a serializer that passes the buffer as-is.\n *\n * @param options - A set of options for the serializer.\n * @category Serializers\n */\nfunction bytes(options = {}) {\n const size = options.size ?? 'variable';\n const description = options.description ?? `bytes(${utils.getSizeDescription(size)})`;\n const byteSerializer = {\n description,\n fixedSize: null,\n maxSize: null,\n serialize: value => new Uint8Array(value),\n deserialize: (bytes, offset = 0) => {\n const slice = bytes.slice(offset);\n return [slice, offset + slice.length];\n }\n };\n if (size === 'variable') {\n return byteSerializer;\n }\n if (typeof size === 'number') {\n return umiSerializersCore.fixSerializer(byteSerializer, size, description);\n }\n return {\n description,\n fixedSize: null,\n maxSize: null,\n serialize: value => {\n const contentBytes = byteSerializer.serialize(value);\n const lengthBytes = size.serialize(contentBytes.length);\n return umiSerializersCore.mergeBytes([lengthBytes, contentBytes]);\n },\n deserialize: (buffer, offset = 0) => {\n if (buffer.slice(offset).length === 0) {\n throw new umiSerializersCore.DeserializingEmptyBufferError('bytes');\n }\n const [lengthBigInt, lengthOffset] = size.deserialize(buffer, offset);\n const length = Number(lengthBigInt);\n offset = lengthOffset;\n const contentBuffer = buffer.slice(offset, offset + length);\n if (contentBuffer.length < length) {\n throw new umiSerializersCore.NotEnoughBytesError('bytes', length, contentBuffer.length);\n }\n const [value, contentOffset] = byteSerializer.deserialize(contentBuffer);\n offset += contentOffset;\n return [value, offset];\n }\n };\n}\n\nexports.bytes = bytes;\n//# sourceMappingURL=bytes.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/bytes.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/dataEnum.cjs":
/*!*********************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/dataEnum.cjs ***!
\*********************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar umiSerializersCore = __webpack_require__(/*! @metaplex-foundation/umi-serializers-core */ \"./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/index.cjs\");\nvar umiSerializersNumbers = __webpack_require__(/*! @metaplex-foundation/umi-serializers-numbers */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/index.cjs\");\nvar errors = __webpack_require__(/*! ./errors.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/errors.cjs\");\nvar maxSerializerSizes = __webpack_require__(/*! ./maxSerializerSizes.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/maxSerializerSizes.cjs\");\nvar sumSerializerSizes = __webpack_require__(/*! ./sumSerializerSizes.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/sumSerializerSizes.cjs\");\n\n/**\n * Defines a data enum using discriminated union types.\n *\n * @example\n * ```ts\n * type WebPageEvent =\n * | { __kind: 'pageview', url: string }\n * | { __kind: 'click', x: number, y: number };\n * ```\n *\n * @category Serializers\n */\n\n/**\n * Creates a data enum serializer.\n *\n * @param variants - The variant serializers of the data enum.\n * @param options - A set of options for the serializer.\n * @category Serializers\n */\nfunction dataEnum(variants, options = {}) {\n const prefix = options.size ?? umiSerializersNumbers.u8();\n const fieldDescriptions = variants.map(([name, serializer]) => `${String(name)}${serializer ? `: ${serializer.description}` : ''}`).join(', ');\n const allVariantHaveTheSameFixedSize = variants.every((one, i, all) => one[1].fixedSize === all[0][1].fixedSize);\n const fixedVariantSize = allVariantHaveTheSameFixedSize ? variants[0][1].fixedSize : null;\n const maxVariantSize = maxSerializerSizes.maxSerializerSizes(variants.map(([, field]) => field.maxSize));\n return {\n description: options.description ?? `dataEnum(${fieldDescriptions}; ${prefix.description})`,\n fixedSize: variants.length === 0 ? prefix.fixedSize : sumSerializerSizes.sumSerializerSizes([prefix.fixedSize, fixedVariantSize]),\n maxSize: variants.length === 0 ? prefix.maxSize : sumSerializerSizes.sumSerializerSizes([prefix.maxSize, maxVariantSize]),\n serialize: variant => {\n const discriminator = variants.findIndex(([key]) => variant.__kind === key);\n if (discriminator < 0) {\n throw new errors.InvalidDataEnumVariantError(variant.__kind, variants.map(([key]) => key));\n }\n const variantPrefix = prefix.serialize(discriminator);\n const variantSerializer = variants[discriminator][1];\n const variantBytes = variantSerializer.serialize(variant);\n return umiSerializersCore.mergeBytes([variantPrefix, variantBytes]);\n },\n deserialize: (bytes, offset = 0) => {\n if (bytes.slice(offset).length === 0) {\n throw new umiSerializersCore.DeserializingEmptyBufferError('dataEnum');\n }\n const [discriminator, dOffset] = prefix.deserialize(bytes, offset);\n offset = dOffset;\n const variantField = variants[Number(discriminator)] ?? null;\n if (!variantField) {\n throw new errors.EnumDiscriminatorOutOfRangeError(discriminator, 0, variants.length - 1);\n }\n const [variant, vOffset] = variantField[1].deserialize(bytes, offset);\n offset = vOffset;\n return [{\n __kind: variantField[0],\n ...(variant ?? {})\n }, offset];\n }\n };\n}\n\nexports.dataEnum = dataEnum;\n//# sourceMappingURL=dataEnum.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/dataEnum.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/errors.cjs":
/*!*******************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/errors.cjs ***!
\*******************************************************************************/
/***/ ((__unused_webpack_module, exports) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\n/** @category Errors */\nclass InvalidNumberOfItemsError extends Error {\n name = 'InvalidNumberOfItemsError';\n constructor(serializer, expected, actual) {\n super(`Expected [${serializer}] to have ${expected} items, got ${actual}.`);\n }\n}\n\n/** @category Errors */\nclass InvalidArrayLikeRemainderSizeError extends Error {\n name = 'InvalidArrayLikeRemainderSizeError';\n constructor(remainderSize, itemSize) {\n super(`The remainder of the buffer (${remainderSize} bytes) cannot be split into chunks of ${itemSize} bytes. ` + `Serializers of \"remainder\" size must have a remainder that is a multiple of its item size. ` + `In other words, ${remainderSize} modulo ${itemSize} should be equal to zero.`);\n }\n}\n\n/** @category Errors */\nclass UnrecognizedArrayLikeSerializerSizeError extends Error {\n name = 'UnrecognizedArrayLikeSerializerSizeError';\n constructor(size) {\n super(`Unrecognized array-like serializer size: ${JSON.stringify(size)}`);\n }\n}\n\n/** @category Errors */\nclass InvalidDataEnumVariantError extends Error {\n name = 'InvalidDataEnumVariantError';\n constructor(invalidVariant, validVariants) {\n super(`Invalid data enum variant. ` + `Expected one of [${validVariants.join(', ')}], ` + `got \"${invalidVariant}\".`);\n }\n}\n\n/** @category Errors */\nclass InvalidScalarEnumVariantError extends Error {\n name = 'InvalidScalarEnumVariantError';\n constructor(invalidVariant, validVariants, min, max) {\n super(`Invalid scalar enum variant. ` + `Expected one of [${validVariants.join(', ')}] ` + `or a number between ${min} and ${max}, ` + `got \"${invalidVariant}\".`);\n }\n}\n\n/** @category Errors */\nclass EnumDiscriminatorOutOfRangeError extends RangeError {\n name = 'EnumDiscriminatorOutOfRangeError';\n constructor(discriminator, min, max) {\n super(`Enum discriminator out of range. ` + `Expected a number between ${min} and ${max}, got ${discriminator}.`);\n }\n}\n\nexports.EnumDiscriminatorOutOfRangeError = EnumDiscriminatorOutOfRangeError;\nexports.InvalidArrayLikeRemainderSizeError = InvalidArrayLikeRemainderSizeError;\nexports.InvalidDataEnumVariantError = InvalidDataEnumVariantError;\nexports.InvalidNumberOfItemsError = InvalidNumberOfItemsError;\nexports.InvalidScalarEnumVariantError = InvalidScalarEnumVariantError;\nexports.UnrecognizedArrayLikeSerializerSizeError = UnrecognizedArrayLikeSerializerSizeError;\n//# sourceMappingURL=errors.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/errors.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/index.cjs":
/*!******************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/index.cjs ***!
\******************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar umiSerializersCore = __webpack_require__(/*! @metaplex-foundation/umi-serializers-core */ \"./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/index.cjs\");\nvar umiSerializersEncodings = __webpack_require__(/*! @metaplex-foundation/umi-serializers-encodings */ \"./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/index.cjs\");\nvar umiSerializersNumbers = __webpack_require__(/*! @metaplex-foundation/umi-serializers-numbers */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/index.cjs\");\nvar array = __webpack_require__(/*! ./array.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/array.cjs\");\nvar bitArray = __webpack_require__(/*! ./bitArray.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/bitArray.cjs\");\nvar bool = __webpack_require__(/*! ./bool.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/bool.cjs\");\nvar bytes = __webpack_require__(/*! ./bytes.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/bytes.cjs\");\nvar dataEnum = __webpack_require__(/*! ./dataEnum.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/dataEnum.cjs\");\nvar errors = __webpack_require__(/*! ./errors.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/errors.cjs\");\nvar map = __webpack_require__(/*! ./map.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/map.cjs\");\nvar nullable = __webpack_require__(/*! ./nullable.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/nullable.cjs\");\nvar option = __webpack_require__(/*! ./option.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/option.cjs\");\nvar publicKey = __webpack_require__(/*! ./publicKey.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/publicKey.cjs\");\nvar scalarEnum = __webpack_require__(/*! ./scalarEnum.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/scalarEnum.cjs\");\nvar set = __webpack_require__(/*! ./set.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/set.cjs\");\nvar string = __webpack_require__(/*! ./string.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/string.cjs\");\nvar struct = __webpack_require__(/*! ./struct.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/struct.cjs\");\nvar tuple = __webpack_require__(/*! ./tuple.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/tuple.cjs\");\nvar unit = __webpack_require__(/*! ./unit.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/unit.cjs\");\nvar maxSerializerSizes = __webpack_require__(/*! ./maxSerializerSizes.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/maxSerializerSizes.cjs\");\nvar sumSerializerSizes = __webpack_require__(/*! ./sumSerializerSizes.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/sumSerializerSizes.cjs\");\n\n\n\nexports.array = array.array;\nexports.bitArray = bitArray.bitArray;\nexports.bool = bool.bool;\nexports.bytes = bytes.bytes;\nexports.dataEnum = dataEnum.dataEnum;\nexports.EnumDiscriminatorOutOfRangeError = errors.EnumDiscriminatorOutOfRangeError;\nexports.InvalidArrayLikeRemainderSizeError = errors.InvalidArrayLikeRemainderSizeError;\nexports.InvalidDataEnumVariantError = errors.InvalidDataEnumVariantError;\nexports.InvalidNumberOfItemsError = errors.InvalidNumberOfItemsError;\nexports.InvalidScalarEnumVariantError = errors.InvalidScalarEnumVariantError;\nexports.UnrecognizedArrayLikeSerializerSizeError = errors.UnrecognizedArrayLikeSerializerSizeError;\nexports.map = map.map;\nexports.nullable = nullable.nullable;\nexports.option = option.option;\nexports.publicKey = publicKey.publicKey;\nexports.scalarEnum = scalarEnum.scalarEnum;\nexports.set = set.set;\nexports.string = string.string;\nexports.struct = struct.struct;\nexports.tuple = tuple.tuple;\nexports.unit = unit.unit;\nexports.maxSerializerSizes = maxSerializerSizes.maxSerializerSizes;\nexports.sumSerializerSizes = sumSerializerSizes.sumSerializerSizes;\nObject.keys(umiSerializersCore).forEach(function (k) {\n\tif (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {\n\t\tenumerable: true,\n\t\tget: function () { return umiSerializersCore[k]; }\n\t});\n});\nObject.keys(umiSerializersEncodings).forEach(function (k) {\n\tif (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {\n\t\tenumerable: true,\n\t\tget: function () { return umiSerializersEncodings[k]; }\n\t});\n});\nObject.keys(umiSerializersNumbers).forEach(function (k) {\n\tif (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {\n\t\tenumerable: true,\n\t\tget: function () { return umiSerializersNumbers[k]; }\n\t});\n});\n//# sourceMappingURL=index.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/index.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/map.cjs":
/*!****************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/map.cjs ***!
\****************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar umiSerializersCore = __webpack_require__(/*! @metaplex-foundation/umi-serializers-core */ \"./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/index.cjs\");\nvar umiSerializersNumbers = __webpack_require__(/*! @metaplex-foundation/umi-serializers-numbers */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/index.cjs\");\nvar errors = __webpack_require__(/*! ./errors.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/errors.cjs\");\nvar utils = __webpack_require__(/*! ./utils.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/utils.cjs\");\n\n/**\n * Defines the options for `Map` serializers.\n * @category Serializers\n */\n\n/**\n * Creates a serializer for a map.\n *\n * @param key - The serializer to use for the map's keys.\n * @param value - The serializer to use for the map's values.\n * @param options - A set of options for the serializer.\n * @category Serializers\n */\nfunction map(key, value, options = {}) {\n const size = options.size ?? umiSerializersNumbers.u32();\n return {\n description: options.description ?? `map(${key.description}, ${value.description}; ${utils.getSizeDescription(size)})`,\n fixedSize: utils.getSizeFromChildren(size, [key.fixedSize, value.fixedSize]),\n maxSize: utils.getSizeFromChildren(size, [key.maxSize, value.maxSize]),\n serialize: map => {\n if (typeof size === 'number' && map.size !== size) {\n throw new errors.InvalidNumberOfItemsError('map', size, map.size);\n }\n const itemBytes = Array.from(map, ([k, v]) => umiSerializersCore.mergeBytes([key.serialize(k), value.serialize(v)]));\n return umiSerializersCore.mergeBytes([utils.getSizePrefix(size, map.size), ...itemBytes]);\n },\n deserialize: (bytes, offset = 0) => {\n const map = new Map();\n if (typeof size === 'object' && bytes.slice(offset).length === 0) {\n return [map, offset];\n }\n if (size === 'remainder') {\n while (offset < bytes.length) {\n const [deserializedKey, kOffset] = key.deserialize(bytes, offset);\n offset = kOffset;\n const [deserializedValue, vOffset] = value.deserialize(bytes, offset);\n offset = vOffset;\n map.set(deserializedKey, deserializedValue);\n }\n return [map, offset];\n }\n const [resolvedSize, newOffset] = utils.getResolvedSize(size, bytes, offset);\n offset = newOffset;\n for (let i = 0; i < resolvedSize; i += 1) {\n const [deserializedKey, kOffset] = key.deserialize(bytes, offset);\n offset = kOffset;\n const [deserializedValue, vOffset] = value.deserialize(bytes, offset);\n offset = vOffset;\n map.set(deserializedKey, deserializedValue);\n }\n return [map, offset];\n }\n };\n}\n\nexports.map = map;\n//# sourceMappingURL=map.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/map.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/maxSerializerSizes.cjs":
/*!*******************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/maxSerializerSizes.cjs ***!
\*******************************************************************************************/
/***/ ((__unused_webpack_module, exports) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nfunction maxSerializerSizes(sizes) {\n return sizes.reduce((all, size) => all === null || size === null ? null : Math.max(all, size), 0);\n}\n\nexports.maxSerializerSizes = maxSerializerSizes;\n//# sourceMappingURL=maxSerializerSizes.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/maxSerializerSizes.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/nullable.cjs":
/*!*********************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/nullable.cjs ***!
\*********************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar umiSerializersCore = __webpack_require__(/*! @metaplex-foundation/umi-serializers-core */ \"./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/index.cjs\");\nvar umiSerializersNumbers = __webpack_require__(/*! @metaplex-foundation/umi-serializers-numbers */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/index.cjs\");\nvar sumSerializerSizes = __webpack_require__(/*! ./sumSerializerSizes.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/sumSerializerSizes.cjs\");\nvar utils = __webpack_require__(/*! ./utils.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/utils.cjs\");\n\n/**\n * Defines the options for `Nullable` serializers.\n * @category Serializers\n */\n\n/**\n * Creates a serializer for an optional value using `null` as the `None` value.\n *\n * @param item - The serializer to use for the value that may be present.\n * @param options - A set of options for the serializer.\n * @category Serializers\n */\nfunction nullable(item, options = {}) {\n const prefix = options.prefix ?? umiSerializersNumbers.u8();\n const fixed = options.fixed ?? false;\n let descriptionSuffix = `; ${utils.getSizeDescription(prefix)}`;\n let fixedSize = item.fixedSize === 0 ? prefix.fixedSize : null;\n if (fixed) {\n if (item.fixedSize === null || prefix.fixedSize === null) {\n throw new umiSerializersCore.ExpectedFixedSizeSerializerError('Fixed nullables can only be used with fixed-size serializers');\n }\n descriptionSuffix += '; fixed';\n fixedSize = prefix.fixedSize + item.fixedSize;\n }\n return {\n description: options.description ?? `nullable(${item.description + descriptionSuffix})`,\n fixedSize,\n maxSize: sumSerializerSizes.sumSerializerSizes([prefix.maxSize, item.maxSize]),\n serialize: option => {\n const prefixByte = prefix.serialize(Number(option !== null));\n if (fixed) {\n const itemFixedSize = item.fixedSize;\n const itemBytes = option !== null ? item.serialize(option).slice(0, itemFixedSize) : new Uint8Array(itemFixedSize).fill(0);\n return umiSerializersCore.mergeBytes([prefixByte, itemBytes]);\n }\n const itemBytes = option !== null ? item.serialize(option) : new Uint8Array();\n return umiSerializersCore.mergeBytes([prefixByte, itemBytes]);\n },\n deserialize: (bytes, offset = 0) => {\n if (bytes.slice(offset).length === 0) {\n return [null, offset];\n }\n const fixedOffset = offset + (prefix.fixedSize ?? 0) + (item.fixedSize ?? 0);\n const [isSome, prefixOffset] = prefix.deserialize(bytes, offset);\n offset = prefixOffset;\n if (isSome === 0) {\n return [null, fixed ? fixedOffset : offset];\n }\n const [value, newOffset] = item.deserialize(bytes, offset);\n offset = newOffset;\n return [value, fixed ? fixedOffset : offset];\n }\n };\n}\n\nexports.nullable = nullable;\n//# sourceMappingURL=nullable.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/nullable.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/option.cjs":
/*!*******************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/option.cjs ***!
\*******************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar umiOptions = __webpack_require__(/*! @metaplex-foundation/umi-options */ \"./node_modules/@metaplex-foundation/umi-options/dist/cjs/index.cjs\");\nvar umiSerializersCore = __webpack_require__(/*! @metaplex-foundation/umi-serializers-core */ \"./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/index.cjs\");\nvar umiSerializersNumbers = __webpack_require__(/*! @metaplex-foundation/umi-serializers-numbers */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/index.cjs\");\nvar sumSerializerSizes = __webpack_require__(/*! ./sumSerializerSizes.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/sumSerializerSizes.cjs\");\nvar utils = __webpack_require__(/*! ./utils.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/utils.cjs\");\n\n/**\n * Defines the options for `Option` serializers.\n * @category Serializers\n */\n\n/**\n * Creates a serializer for an optional value using the {@link Option} type.\n *\n * @param item - The serializer to use for the value that may be present.\n * @param options - A set of options for the serializer.\n * @category Serializers\n */\nfunction option(item, options = {}) {\n const prefix = options.prefix ?? umiSerializersNumbers.u8();\n const fixed = options.fixed ?? false;\n let descriptionSuffix = `; ${utils.getSizeDescription(prefix)}`;\n let fixedSize = item.fixedSize === 0 ? prefix.fixedSize : null;\n if (fixed) {\n if (item.fixedSize === null || prefix.fixedSize === null) {\n throw new umiSerializersCore.ExpectedFixedSizeSerializerError('Fixed options can only be used with fixed-size serializers');\n }\n descriptionSuffix += '; fixed';\n fixedSize = prefix.fixedSize + item.fixedSize;\n }\n return {\n description: options.description ?? `option(${item.description + descriptionSuffix})`,\n fixedSize,\n maxSize: sumSerializerSizes.sumSerializerSizes([prefix.maxSize, item.maxSize]),\n serialize: optionOrNullable => {\n const option = umiOptions.isOption(optionOrNullable) ? optionOrNullable : umiOptions.wrapNullable(optionOrNullable);\n const prefixByte = prefix.serialize(Number(umiOptions.isSome(option)));\n if (fixed) {\n const itemFixedSize = item.fixedSize;\n const itemBytes = umiOptions.isSome(option) ? item.serialize(option.value).slice(0, itemFixedSize) : new Uint8Array(itemFixedSize).fill(0);\n return umiSerializersCore.mergeBytes([prefixByte, itemBytes]);\n }\n const itemBytes = umiOptions.isSome(option) ? item.serialize(option.value) : new Uint8Array();\n return umiSerializersCore.mergeBytes([prefixByte, itemBytes]);\n },\n deserialize: (bytes, offset = 0) => {\n if (bytes.slice(offset).length === 0) {\n return [umiOptions.none(), offset];\n }\n const fixedOffset = offset + (prefix.fixedSize ?? 0) + (item.fixedSize ?? 0);\n const [isSome, prefixOffset] = prefix.deserialize(bytes, offset);\n offset = prefixOffset;\n if (isSome === 0) {\n return [umiOptions.none(), fixed ? fixedOffset : offset];\n }\n const [value, newOffset] = item.deserialize(bytes, offset);\n offset = newOffset;\n return [umiOptions.some(value), fixed ? fixedOffset : offset];\n }\n };\n}\n\nexports.option = option;\n//# sourceMappingURL=option.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/option.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/publicKey.cjs":
/*!**********************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/publicKey.cjs ***!
\**********************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar umiPublicKeys = __webpack_require__(/*! @metaplex-foundation/umi-public-keys */ \"./node_modules/@metaplex-foundation/umi-public-keys/dist/cjs/index.cjs\");\nvar umiSerializersCore = __webpack_require__(/*! @metaplex-foundation/umi-serializers-core */ \"./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/index.cjs\");\n\n/**\n * Defines the options for `PublicKey` serializers.\n * @category Serializers\n */\n\n/**\n * Creates a serializer for base58 encoded public keys.\n *\n * @param options - A set of options for the serializer.\n * @category Serializers\n */\nfunction publicKey(options = {}) {\n return {\n description: options.description ?? 'publicKey',\n fixedSize: 32,\n maxSize: 32,\n serialize: value => umiPublicKeys.publicKeyBytes(umiPublicKeys.publicKey(value)),\n deserialize: (bytes, offset = 0) => {\n const pubkeyBytes = bytes.slice(offset, offset + 32);\n if (pubkeyBytes.length === 0) {\n throw new umiSerializersCore.DeserializingEmptyBufferError('publicKey');\n }\n if (pubkeyBytes.length < umiPublicKeys.PUBLIC_KEY_LENGTH) {\n throw new umiSerializersCore.NotEnoughBytesError('publicKey', umiPublicKeys.PUBLIC_KEY_LENGTH, pubkeyBytes.length);\n }\n return [umiPublicKeys.publicKey(pubkeyBytes), offset + 32];\n }\n };\n}\n\nexports.publicKey = publicKey;\n//# sourceMappingURL=publicKey.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/publicKey.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/scalarEnum.cjs":
/*!***********************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/scalarEnum.cjs ***!
\***********************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar umiSerializersCore = __webpack_require__(/*! @metaplex-foundation/umi-serializers-core */ \"./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/index.cjs\");\nvar umiSerializersNumbers = __webpack_require__(/*! @metaplex-foundation/umi-serializers-numbers */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/index.cjs\");\nvar errors = __webpack_require__(/*! ./errors.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/errors.cjs\");\n\n/**\n * Defines a scalar enum as a type from its constructor.\n *\n * @example\n * ```ts\n * enum Direction { Left, Right };\n * type DirectionType = ScalarEnum<Direction>;\n * ```\n *\n * @category Serializers\n */\n\n/**\n * Creates a scalar enum serializer.\n *\n * @param constructor - The constructor of the scalar enum.\n * @param options - A set of options for the serializer.\n * @category Serializers\n */\nfunction scalarEnum(constructor, options = {}) {\n const prefix = options.size ?? umiSerializersNumbers.u8();\n const enumKeys = Object.keys(constructor);\n const enumValues = Object.values(constructor);\n const isNumericEnum = enumValues.some(v => typeof v === 'number');\n const valueDescriptions = enumValues.filter(v => typeof v === 'string').join(', ');\n const minRange = 0;\n const maxRange = isNumericEnum ? enumValues.length / 2 - 1 : enumValues.length - 1;\n const stringValues = isNumericEnum ? [...enumKeys] : [...new Set([...enumKeys, ...enumValues])];\n function assertValidVariant(variant) {\n const isInvalidNumber = typeof variant === 'number' && (variant < minRange || variant > maxRange);\n const isInvalidString = typeof variant === 'string' && !stringValues.includes(variant);\n if (isInvalidNumber || isInvalidString) {\n throw new errors.InvalidScalarEnumVariantError(variant, stringValues, minRange, maxRange);\n }\n }\n return {\n description: options.description ?? `enum(${valueDescriptions}; ${prefix.description})`,\n fixedSize: prefix.fixedSize,\n maxSize: prefix.maxSize,\n serialize: value => {\n assertValidVariant(value);\n if (typeof value === 'number') return prefix.serialize(value);\n const valueIndex = enumValues.indexOf(value);\n if (valueIndex >= 0) return prefix.serialize(valueIndex);\n return prefix.serialize(enumKeys.indexOf(value));\n },\n deserialize: (bytes, offset = 0) => {\n if (bytes.slice(offset).length === 0) {\n throw new umiSerializersCore.DeserializingEmptyBufferError('enum');\n }\n const [value, newOffset] = prefix.deserialize(bytes, offset);\n const valueAsNumber = Number(value);\n offset = newOffset;\n if (valueAsNumber < minRange || valueAsNumber > maxRange) {\n throw new errors.EnumDiscriminatorOutOfRangeError(valueAsNumber, minRange, maxRange);\n }\n return [isNumericEnum ? valueAsNumber : enumValues[valueAsNumber], offset];\n }\n };\n}\n\nexports.scalarEnum = scalarEnum;\n//# sourceMappingURL=scalarEnum.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/scalarEnum.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/set.cjs":
/*!****************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/set.cjs ***!
\****************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar umiSerializersCore = __webpack_require__(/*! @metaplex-foundation/umi-serializers-core */ \"./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/index.cjs\");\nvar umiSerializersNumbers = __webpack_require__(/*! @metaplex-foundation/umi-serializers-numbers */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/index.cjs\");\nvar errors = __webpack_require__(/*! ./errors.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/errors.cjs\");\nvar utils = __webpack_require__(/*! ./utils.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/utils.cjs\");\n\n/**\n * Defines the options for `Set` serializers.\n * @category Serializers\n */\n\n/**\n * Creates a serializer for a set.\n *\n * @param item - The serializer to use for the set's items.\n * @param options - A set of options for the serializer.\n * @category Serializers\n */\nfunction set(item, options = {}) {\n const size = options.size ?? umiSerializersNumbers.u32();\n return {\n description: options.description ?? `set(${item.description}; ${utils.getSizeDescription(size)})`,\n fixedSize: utils.getSizeFromChildren(size, [item.fixedSize]),\n maxSize: utils.getSizeFromChildren(size, [item.maxSize]),\n serialize: set => {\n if (typeof size === 'number' && set.size !== size) {\n throw new errors.InvalidNumberOfItemsError('set', size, set.size);\n }\n const itemBytes = Array.from(set, value => item.serialize(value));\n return umiSerializersCore.mergeBytes([utils.getSizePrefix(size, set.size), ...itemBytes]);\n },\n deserialize: (bytes, offset = 0) => {\n const set = new Set();\n if (typeof size === 'object' && bytes.slice(offset).length === 0) {\n return [set, offset];\n }\n if (size === 'remainder') {\n while (offset < bytes.length) {\n const [value, newOffset] = item.deserialize(bytes, offset);\n set.add(value);\n offset = newOffset;\n }\n return [set, offset];\n }\n const [resolvedSize, newOffset] = utils.getResolvedSize(size, bytes, offset);\n offset = newOffset;\n for (let i = 0; i < resolvedSize; i += 1) {\n const [value, newOffset] = item.deserialize(bytes, offset);\n set.add(value);\n offset = newOffset;\n }\n return [set, offset];\n }\n };\n}\n\nexports.set = set;\n//# sourceMappingURL=set.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/set.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/string.cjs":
/*!*******************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/string.cjs ***!
\*******************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar umiSerializersCore = __webpack_require__(/*! @metaplex-foundation/umi-serializers-core */ \"./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/index.cjs\");\nvar umiSerializersEncodings = __webpack_require__(/*! @metaplex-foundation/umi-serializers-encodings */ \"./node_modules/@metaplex-foundation/umi-serializers-encodings/dist/cjs/index.cjs\");\nvar umiSerializersNumbers = __webpack_require__(/*! @metaplex-foundation/umi-serializers-numbers */ \"./node_modules/@metaplex-foundation/umi-serializers-numbers/dist/cjs/index.cjs\");\nvar utils = __webpack_require__(/*! ./utils.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/utils.cjs\");\n\n/**\n * Defines the options for string serializers.\n * @category Serializers\n */\n\n/**\n * Creates a string serializer.\n *\n * @param options - A set of options for the serializer.\n * @category Serializers\n */\nfunction string(options = {}) {\n const size = options.size ?? umiSerializersNumbers.u32();\n const encoding = options.encoding ?? umiSerializersEncodings.utf8;\n const description = options.description ?? `string(${encoding.description}; ${utils.getSizeDescription(size)})`;\n if (size === 'variable') {\n return {\n ...encoding,\n description\n };\n }\n if (typeof size === 'number') {\n return umiSerializersCore.fixSerializer(encoding, size, description);\n }\n return {\n description,\n fixedSize: null,\n maxSize: null,\n serialize: value => {\n const contentBytes = encoding.serialize(value);\n const lengthBytes = size.serialize(contentBytes.length);\n return umiSerializersCore.mergeBytes([lengthBytes, contentBytes]);\n },\n deserialize: (buffer, offset = 0) => {\n if (buffer.slice(offset).length === 0) {\n throw new umiSerializersCore.DeserializingEmptyBufferError('string');\n }\n const [lengthBigInt, lengthOffset] = size.deserialize(buffer, offset);\n const length = Number(lengthBigInt);\n offset = lengthOffset;\n const contentBuffer = buffer.slice(offset, offset + length);\n if (contentBuffer.length < length) {\n throw new umiSerializersCore.NotEnoughBytesError('string', length, contentBuffer.length);\n }\n const [value, contentOffset] = encoding.deserialize(contentBuffer);\n offset += contentOffset;\n return [value, offset];\n }\n };\n}\n\nexports.string = string;\n//# sourceMappingURL=string.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/string.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/struct.cjs":
/*!*******************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/struct.cjs ***!
\*******************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar umiSerializersCore = __webpack_require__(/*! @metaplex-foundation/umi-serializers-core */ \"./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/index.cjs\");\nvar sumSerializerSizes = __webpack_require__(/*! ./sumSerializerSizes.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/sumSerializerSizes.cjs\");\n\n/**\n * Get the name and serializer of each field in a struct.\n * @category Serializers\n */\n\n/**\n * Creates a serializer for a custom object.\n *\n * @param fields - The name and serializer of each field.\n * @param options - A set of options for the serializer.\n * @category Serializers\n */\nfunction struct(fields, options = {}) {\n const fieldDescriptions = fields.map(([name, serializer]) => `${String(name)}: ${serializer.description}`).join(', ');\n return {\n description: options.description ?? `struct(${fieldDescriptions})`,\n fixedSize: sumSerializerSizes.sumSerializerSizes(fields.map(([, field]) => field.fixedSize)),\n maxSize: sumSerializerSizes.sumSerializerSizes(fields.map(([, field]) => field.maxSize)),\n serialize: struct => {\n const fieldBytes = fields.map(([key, serializer]) => serializer.serialize(struct[key]));\n return umiSerializersCore.mergeBytes(fieldBytes);\n },\n deserialize: (bytes, offset = 0) => {\n const struct = {};\n fields.forEach(([key, serializer]) => {\n const [value, newOffset] = serializer.deserialize(bytes, offset);\n offset = newOffset;\n struct[key] = value;\n });\n return [struct, offset];\n }\n };\n}\n\nexports.struct = struct;\n//# sourceMappingURL=struct.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/struct.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/sumSerializerSizes.cjs":
/*!*******************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/sumSerializerSizes.cjs ***!
\*******************************************************************************************/
/***/ ((__unused_webpack_module, exports) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nfunction sumSerializerSizes(sizes) {\n return sizes.reduce((all, size) => all === null || size === null ? null : all + size, 0);\n}\n\nexports.sumSerializerSizes = sumSerializerSizes;\n//# sourceMappingURL=sumSerializerSizes.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/sumSerializerSizes.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/tuple.cjs":
/*!******************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/tuple.cjs ***!
\******************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar umiSerializersCore = __webpack_require__(/*! @metaplex-foundation/umi-serializers-core */ \"./node_modules/@metaplex-foundation/umi-serializers-core/dist/cjs/index.cjs\");\nvar sumSerializerSizes = __webpack_require__(/*! ./sumSerializerSizes.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/sumSerializerSizes.cjs\");\nvar errors = __webpack_require__(/*! ./errors.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/errors.cjs\");\n\n/**\n * Defines the options for tuple serializers.\n * @category Serializers\n */\n\n/**\n * Creates a serializer for a tuple-like array.\n *\n * @param items - The serializers to use for each item in the tuple.\n * @param options - A set of options for the serializer.\n * @category Serializers\n */\nfunction tuple(items, options = {}) {\n const itemDescriptions = items.map(item => item.description).join(', ');\n return {\n description: options.description ?? `tuple(${itemDescriptions})`,\n fixedSize: sumSerializerSizes.sumSerializerSizes(items.map(item => item.fixedSize)),\n maxSize: sumSerializerSizes.sumSerializerSizes(items.map(item => item.maxSize)),\n serialize: value => {\n if (value.length !== items.length) {\n throw new errors.InvalidNumberOfItemsError('tuple', items.length, value.length);\n }\n return umiSerializersCore.mergeBytes(items.map((item, index) => item.serialize(value[index])));\n },\n deserialize: (bytes, offset = 0) => {\n const values = [];\n items.forEach(serializer => {\n const [newValue, newOffset] = serializer.deserialize(bytes, offset);\n values.push(newValue);\n offset = newOffset;\n });\n return [values, offset];\n }\n };\n}\n\nexports.tuple = tuple;\n//# sourceMappingURL=tuple.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/tuple.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/unit.cjs":
/*!*****************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/unit.cjs ***!
\*****************************************************************************/
/***/ ((__unused_webpack_module, exports) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\n/**\n * Defines the options for unit serializers.\n * @category Serializers\n */\n\n/**\n * Creates a void serializer.\n *\n * @param options - A set of options for the serializer.\n */\nfunction unit(options = {}) {\n return {\n description: options.description ?? 'unit',\n fixedSize: 0,\n maxSize: 0,\n serialize: () => new Uint8Array(),\n deserialize: (_bytes, offset = 0) => [undefined, offset]\n };\n}\n\nexports.unit = unit;\n//# sourceMappingURL=unit.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/unit.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/utils.cjs":
/*!******************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/utils.cjs ***!
\******************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar errors = __webpack_require__(/*! ./errors.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/errors.cjs\");\nvar sumSerializerSizes = __webpack_require__(/*! ./sumSerializerSizes.cjs */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/sumSerializerSizes.cjs\");\n\nfunction getResolvedSize(size, bytes, offset) {\n if (typeof size === 'number') {\n return [size, offset];\n }\n if (typeof size === 'object') {\n return size.deserialize(bytes, offset);\n }\n throw new errors.UnrecognizedArrayLikeSerializerSizeError(size);\n}\nfunction getSizeDescription(size) {\n return typeof size === 'object' ? size.description : `${size}`;\n}\nfunction getSizeFromChildren(size, childrenSizes) {\n if (typeof size !== 'number') return null;\n if (size === 0) return 0;\n const childrenSize = sumSerializerSizes.sumSerializerSizes(childrenSizes);\n return childrenSize === null ? null : childrenSize * size;\n}\nfunction getSizePrefix(size, realSize) {\n return typeof size === 'object' ? size.serialize(realSize) : new Uint8Array();\n}\n\nexports.getResolvedSize = getResolvedSize;\nexports.getSizeDescription = getSizeDescription;\nexports.getSizeFromChildren = getSizeFromChildren;\nexports.getSizePrefix = getSizePrefix;\n//# sourceMappingURL=utils.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/utils.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi/dist/cjs/Account.cjs":
/*!********************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi/dist/cjs/Account.cjs ***!
\********************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar UnexpectedAccountError = __webpack_require__(/*! ./errors/UnexpectedAccountError.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/errors/UnexpectedAccountError.cjs\");\nvar AccountNotFoundError = __webpack_require__(/*! ./errors/AccountNotFoundError.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/errors/AccountNotFoundError.cjs\");\n\n/**\n * The size of an account header in bytes.\n * @category Accounts\n */\nconst ACCOUNT_HEADER_SIZE = 128;\n\n/**\n * Describes the header of an account.\n * @category Accounts\n */\n\n/**\n * Given an account data serializer,\n * returns a deserialized account from a raw account.\n * @category Accounts\n */\nfunction deserializeAccount(rawAccount, dataSerializer) {\n const {\n data,\n publicKey,\n ...rest\n } = rawAccount;\n try {\n const [parsedData] = dataSerializer.deserialize(data);\n return {\n publicKey,\n header: rest,\n ...parsedData\n };\n } catch (error) {\n throw new UnexpectedAccountError.UnexpectedAccountError(publicKey, dataSerializer.description, error);\n }\n}\n\n/**\n * Ensures an account that may or may not exist actually exists.\n * @category Accounts\n */\nfunction assertAccountExists(account, name, solution) {\n if (!account.exists) {\n throw new AccountNotFoundError.AccountNotFoundError(account.publicKey, name, solution);\n }\n}\n\nexports.ACCOUNT_HEADER_SIZE = ACCOUNT_HEADER_SIZE;\nexports.assertAccountExists = assertAccountExists;\nexports.deserializeAccount = deserializeAccount;\n//# sourceMappingURL=Account.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi/dist/cjs/Account.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi/dist/cjs/Amount.cjs":
/*!*******************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi/dist/cjs/Amount.cjs ***!
\*******************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar umiSerializers = __webpack_require__(/*! @metaplex-foundation/umi-serializers */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/index.cjs\");\nvar BigInt$1 = __webpack_require__(/*! ./BigInt.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/BigInt.cjs\");\nvar UnexpectedAmountError = __webpack_require__(/*! ./errors/UnexpectedAmountError.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/errors/UnexpectedAmountError.cjs\");\nvar AmountMismatchError = __webpack_require__(/*! ./errors/AmountMismatchError.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/errors/AmountMismatchError.cjs\");\n\n/**\n * The identifier of an amount.\n * @category Utils — Amounts\n */\n\n/**\n * Creates an amount from the provided basis points, identifier, and decimals.\n * @category Utils — Amounts\n */\nconst createAmount = (basisPoints, identifier, decimals) => ({\n basisPoints: BigInt$1.createBigInt(basisPoints),\n identifier,\n decimals\n});\n\n/**\n * Creates an amount from a decimal value which will be converted to the lowest\n * possible unit using the provided decimals.\n * @category Utils — Amounts\n */\nconst createAmountFromDecimals = (decimalAmount, identifier, decimals) => {\n const exponentAmount = createAmount(BigInt(10) ** BigInt(decimals ?? 0), identifier, decimals);\n return multiplyAmount(exponentAmount, decimalAmount);\n};\n\n/**\n * Creates a percentage amount from the provided decimal value.\n * @category Utils — Amounts\n */\nconst percentAmount = (percent, decimals = 2) => createAmountFromDecimals(percent, '%', decimals);\n\n/**\n * Creates an amount of SPL tokens from the provided decimal value.\n * @category Utils — Amounts\n */\nconst tokenAmount = (tokens, identifier, decimals) => createAmountFromDecimals(tokens, identifier ?? 'splToken', decimals ?? 0);\n\n/**\n * Creates a {@link SolAmount} from the provided lamports.\n * @category Utils — Amounts\n */\nconst lamports = lamports => createAmount(lamports, 'SOL', 9);\n\n/**\n * Creates a {@link SolAmount} from the provided decimal value in SOL.\n * @category Utils — Amounts\n */\nconst sol = sol => createAmountFromDecimals(sol, 'SOL', 9);\n\n/**\n * Creates a {@link UsdAmount} from the provided decimal value in USD.\n * @category Utils — Amounts\n */\nconst usd = usd => createAmountFromDecimals(usd, 'USD', 2);\n\n/**\n * Determines whether a given amount has the provided identifier and decimals.\n * @category Utils — Amounts\n */\nconst isAmount = (amount, identifier, decimals) => amount.identifier === identifier && amount.decimals === decimals;\n\n/**\n * Determines whether a given amount is a {@link SolAmount}.\n * @category Utils — Amounts\n */\nconst isSolAmount = amount => isAmount(amount, 'SOL', 9);\n\n/**\n * Determines whether two amounts are of the same type.\n * @category Utils — Amounts\n */\nconst sameAmounts = (left, right) => isAmount(left, right.identifier, right.decimals);\n\n/**\n * Ensures that a given amount has the provided identifier and decimals.\n * @category Utils — Amounts\n */\nfunction assertAmount(amount, identifier, decimals) {\n if (!isAmount(amount, identifier, decimals)) {\n throw new UnexpectedAmountError.UnexpectedAmountError(amount, identifier, decimals);\n }\n}\n\n/**\n * Ensures that a given amount is a {@link SolAmount}.\n * @category Utils — Amounts\n */\nfunction assertSolAmount(actual) {\n assertAmount(actual, 'SOL', 9);\n}\n\n/**\n * Ensures that two amounts are of the same type.\n * @category Utils — Amounts\n */\nfunction assertSameAmounts(left, right, operation) {\n if (!sameAmounts(left, right)) {\n throw new AmountMismatchError.AmountMismatchError(left, right, operation);\n }\n}\n\n/**\n * Adds two amounts of the same type.\n * @category Utils — Amounts\n */\nconst addAmounts = (left, right) => {\n assertSameAmounts(left, right, 'add');\n return {\n ...left,\n basisPoints: left.basisPoints + right.basisPoints\n };\n};\n\n/**\n * Subtracts two amounts of the same type.\n * @category Utils — Amounts\n */\nconst subtractAmounts = (left, right) => {\n assertSameAmounts(left, right, 'subtract');\n return {\n ...left,\n basisPoints: left.basisPoints - right.basisPoints\n };\n};\n\n/**\n * Multiplies an amount by a given multiplier.\n * @category Utils — Amounts\n */\nconst multiplyAmount = (left, multiplier) => {\n if (typeof multiplier === 'bigint') {\n return {\n ...left,\n basisPoints: left.basisPoints * multiplier\n };\n }\n const [units, decimals] = multiplier.toString().split('.');\n const multiplierBasisPoints = BigInt(units + (decimals ?? ''));\n const multiplierExponents = BigInt(10) ** BigInt(decimals?.length ?? 0);\n return {\n ...left,\n basisPoints: left.basisPoints * multiplierBasisPoints / multiplierExponents\n };\n};\n\n/**\n * Divides an amount by a given divisor.\n * @category Utils — Amounts\n */\nconst divideAmount = (left, divisor) => {\n if (typeof divisor === 'bigint') {\n return {\n ...left,\n basisPoints: left.basisPoints / divisor\n };\n }\n const [units, decimals] = divisor.toString().split('.');\n const divisorBasisPoints = BigInt(units + (decimals ?? ''));\n const divisorExponents = BigInt(10) ** BigInt(decimals?.length ?? 0);\n return {\n ...left,\n basisPoints: left.basisPoints * divisorExponents / divisorBasisPoints\n };\n};\n\n/**\n * Returns the absolute value of an amount.\n * @category Utils — Amounts\n */\nconst absoluteAmount = value => {\n const x = value.basisPoints;\n return {\n ...value,\n basisPoints: x < 0 ? -x : x\n };\n};\n\n/**\n * Compares two amounts of the same type.\n * @category Utils — Amounts\n */\nconst compareAmounts = (left, right) => {\n assertSameAmounts(left, right, 'compare');\n if (left.basisPoints > right.basisPoints) return 1;\n if (left.basisPoints < right.basisPoints) return -1;\n return 0;\n};\n\n/**\n * Determines whether two amounts are equal.\n * An optional tolerance can be provided to allow for small differences.\n * When using {@link SolAmount}, this is usually due to transaction or small storage fees.\n * @category Utils — Amounts\n */\nconst isEqualToAmount = (left, right, tolerance) => {\n tolerance = tolerance ?? createAmount(0, left.identifier, left.decimals);\n assertSameAmounts(left, right, 'isEqualToAmount');\n assertSameAmounts(left, tolerance, 'isEqualToAmount');\n const delta = absoluteAmount(subtractAmounts(left, right));\n return isLessThanOrEqualToAmount(delta, tolerance);\n};\n\n/**\n * Whether the left amount is less than the right amount.\n * @category Utils — Amounts\n */\nconst isLessThanAmount = (left, right) => compareAmounts(left, right) < 0;\n\n/**\n * Whether the left amount is less than or equal to the right amount.\n * @category Utils — Amounts\n */\nconst isLessThanOrEqualToAmount = (left, right) => compareAmounts(left, right) <= 0;\n\n/**\n * Whether the left amount is greater than the right amount.\n * @category Utils — Amounts\n */\nconst isGreaterThanAmount = (left, right) => compareAmounts(left, right) > 0;\n\n/**\n * Whether the left amount is greater than or equal to the right amount.\n * @category Utils — Amounts\n */\nconst isGreaterThanOrEqualToAmount = (left, right) => compareAmounts(left, right) >= 0;\n\n/**\n * Whether the amount is zero.\n * @category Utils — Amounts\n */\nconst isZeroAmount = value => value.basisPoints === BigInt(0);\n\n/**\n * Whether the amount is positive.\n * @category Utils — Amounts\n */\nconst isPositiveAmount = value => value.basisPoints >= BigInt(0);\n\n/**\n * Whether the amount is negative.\n * @category Utils — Amounts\n */\nconst isNegativeAmount = value => value.basisPoints < BigInt(0);\n\n/**\n * Converts an amount to a string by using the amount's decimals.\n * @category Utils — Amounts\n */\nconst amountToString = (value, maxDecimals) => {\n let text = value.basisPoints.toString();\n if (value.decimals === 0) {\n return text;\n }\n const sign = text.startsWith('-') ? '-' : '';\n text = text.replace('-', '');\n text = text.padStart(value.decimals + 1, '0');\n const units = text.slice(0, -value.decimals);\n let decimals = text.slice(-value.decimals);\n if (maxDecimals !== undefined) {\n decimals = decimals.slice(0, maxDecimals);\n }\n return `${sign + units}.${decimals}`;\n};\n\n/**\n * Converts an amount to a number by using the amount's decimals.\n * Note that this may throw an error if the amount is too large to fit in a JavaScript number.\n * @category Utils — Amounts\n */\nconst amountToNumber = value => parseFloat(amountToString(value));\n\n/**\n * Displays an amount as a string by using the amount's decimals and identifier.\n * @category Utils — Amounts\n */\nconst displayAmount = (value, maxDecimals) => {\n const amountAsString = amountToString(value, maxDecimals);\n switch (value.identifier) {\n case '%':\n return `${amountAsString}%`;\n case 'splToken':\n return /^1(\\.0+)?$/.test(amountAsString) ? `${amountAsString} Token` : `${amountAsString} Tokens`;\n default:\n if (value.identifier.startsWith('splToken.')) {\n const [, identifier] = value.identifier.split('.');\n return `${identifier} ${amountAsString}`;\n }\n return `${value.identifier} ${amountAsString}`;\n }\n};\n\n/**\n * Converts a number serializer into an amount serializer\n * by providing an amount identifier and decimals.\n * @category Utils — Amounts\n */\nconst mapAmountSerializer = (serializer, identifier, decimals) => umiSerializers.mapSerializer(serializer, value => value.basisPoints > Number.MAX_SAFE_INTEGER ? value.basisPoints : Number(value.basisPoints), value => createAmount(value, identifier, decimals));\n\nexports.absoluteAmount = absoluteAmount;\nexports.addAmounts = addAmounts;\nexports.amountToNumber = amountToNumber;\nexports.amountToString = amountToString;\nexports.assertAmount = assertAmount;\nexports.assertSameAmounts = assertSameAmounts;\nexports.assertSolAmount = assertSolAmount;\nexports.compareAmounts = compareAmounts;\nexports.createAmount = createAmount;\nexports.createAmountFromDecimals = createAmountFromDecimals;\nexports.displayAmount = displayAmount;\nexports.divideAmount = divideAmount;\nexports.isAmount = isAmount;\nexports.isEqualToAmount = isEqualToAmount;\nexports.isGreaterThanAmount = isGreaterThanAmount;\nexports.isGreaterThanOrEqualToAmount = isGreaterThanOrEqualToAmount;\nexports.isLessThanAmount = isLessThanAmount;\nexports.isLessThanOrEqualToAmount = isLessThanOrEqualToAmount;\nexports.isNegativeAmount = isNegativeAmount;\nexports.isPositiveAmount = isPositiveAmount;\nexports.isSolAmount = isSolAmount;\nexports.isZeroAmount = isZeroAmount;\nexports.lamports = lamports;\nexports.mapAmountSerializer = mapAmountSerializer;\nexports.multiplyAmount = multiplyAmount;\nexports.percentAmount = percentAmount;\nexports.sameAmounts = sameAmounts;\nexports.sol = sol;\nexports.subtractAmounts = subtractAmounts;\nexports.tokenAmount = tokenAmount;\nexports.usd = usd;\n//# sourceMappingURL=Amount.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi/dist/cjs/Amount.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi/dist/cjs/BigInt.cjs":
/*!*******************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi/dist/cjs/BigInt.cjs ***!
\*******************************************************************/
/***/ ((__unused_webpack_module, exports) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\n/**\n * Defines all the types that can be used to create\n * a BigInt via the <code>{@link createBigInt}</code> function.\n * @category Utils — Amounts\n */\n\n/**\n * Creates a BigInt from a number, string, boolean, or Uint8Array.\n * @category Utils — Amounts\n */\nconst createBigInt = input => {\n input = typeof input === 'object' ? input.toString() : input;\n return BigInt(input);\n};\n\nexports.createBigInt = createBigInt;\n//# sourceMappingURL=BigInt.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi/dist/cjs/BigInt.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi/dist/cjs/Cluster.cjs":
/*!********************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi/dist/cjs/Cluster.cjs ***!
\********************************************************************/
/***/ ((__unused_webpack_module, exports) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\n/**\n * Defines the available Solana clusters.\n * @category Utils — Cluster\n */\n\n/**\n * Helper type to helps the end-user selecting a cluster.\n * They can either provide a specific cluster or use the\n * special values 'current' or '*' to select the current\n * cluster or all clusters respectively.\n * @category Utils — Cluster\n */\n\nconst MAINNET_BETA_DOMAINS = ['api.mainnet-beta.solana.com', 'ssc-dao.genesysgo.net'];\nconst DEVNET_DOMAINS = ['api.devnet.solana.com', 'psytrbhymqlkfrhudd.dev.genesysgo.net'];\nconst TESTNET_DOMAINS = ['api.testnet.solana.com'];\nconst LOCALNET_DOMAINS = ['localhost', '127.0.0.1'];\n\n/**\n * Helper method that tries its best to resolve a cluster from a given endpoint.\n * @category Utils — Cluster\n */\nconst resolveClusterFromEndpoint = endpoint => {\n const domain = new URL(endpoint).hostname;\n if (MAINNET_BETA_DOMAINS.includes(domain)) return 'mainnet-beta';\n if (DEVNET_DOMAINS.includes(domain)) return 'devnet';\n if (TESTNET_DOMAINS.includes(domain)) return 'testnet';\n if (LOCALNET_DOMAINS.includes(domain)) return 'localnet';\n if (endpoint.includes('mainnet')) return 'mainnet-beta';\n if (endpoint.includes('devnet')) return 'devnet';\n if (endpoint.includes('testnet')) return 'testnet';\n if (endpoint.includes('local')) return 'localnet';\n return 'custom';\n};\n\nexports.resolveClusterFromEndpoint = resolveClusterFromEndpoint;\n//# sourceMappingURL=Cluster.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi/dist/cjs/Cluster.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi/dist/cjs/Context.cjs":
/*!********************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi/dist/cjs/Context.cjs ***!
\********************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar DownloaderInterface = __webpack_require__(/*! ./DownloaderInterface.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/DownloaderInterface.cjs\");\nvar EddsaInterface = __webpack_require__(/*! ./EddsaInterface.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/EddsaInterface.cjs\");\nvar HttpInterface = __webpack_require__(/*! ./HttpInterface.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/HttpInterface.cjs\");\nvar ProgramRepositoryInterface = __webpack_require__(/*! ./ProgramRepositoryInterface.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/ProgramRepositoryInterface.cjs\");\nvar RpcInterface = __webpack_require__(/*! ./RpcInterface.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/RpcInterface.cjs\");\nvar SerializerInterface = __webpack_require__(/*! ./SerializerInterface.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/SerializerInterface.cjs\");\nvar Signer = __webpack_require__(/*! ./Signer.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/Signer.cjs\");\nvar TransactionFactoryInterface = __webpack_require__(/*! ./TransactionFactoryInterface.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/TransactionFactoryInterface.cjs\");\nvar UploaderInterface = __webpack_require__(/*! ./UploaderInterface.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/UploaderInterface.cjs\");\n\n/**\n * A Umi context object that uses all of the interfaces provided by Umi.\n * Once created, the end-user can pass this object to any function that\n * requires some or all of these interfaces.\n *\n * @category Context and Interfaces\n */\n\n/**\n * A helper method that creates a Umi context object using only\n * Null implementations of the interfaces. This can be useful to\n * create a full Umi context object when only a few of the interfaces\n * are needed.\n *\n * @category Context and Interfaces\n */\nconst createNullContext = () => ({\n downloader: DownloaderInterface.createNullDownloader(),\n eddsa: EddsaInterface.createNullEddsa(),\n http: HttpInterface.createNullHttp(),\n identity: Signer.createNullSigner(),\n payer: Signer.createNullSigner(),\n programs: ProgramRepositoryInterface.createNullProgramRepository(),\n rpc: RpcInterface.createNullRpc(),\n serializer: SerializerInterface.createNullSerializer(),\n transactions: TransactionFactoryInterface.createNullTransactionFactory(),\n uploader: UploaderInterface.createNullUploader()\n});\n\nexports.createNullContext = createNullContext;\n//# sourceMappingURL=Context.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi/dist/cjs/Context.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi/dist/cjs/DateTime.cjs":
/*!*********************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi/dist/cjs/DateTime.cjs ***!
\*********************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar umiSerializers = __webpack_require__(/*! @metaplex-foundation/umi-serializers */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/index.cjs\");\nvar BigInt = __webpack_require__(/*! ./BigInt.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/BigInt.cjs\");\n\n/**\n * Defines a string that can be parsed into a Date object.\n * For instance, `\"2020-01-01T00:00:00.000Z\"`.\n * @category Utils — DateTime\n */\n\n/**\n * Creates a {@link DateTime} from a {@link DateTimeInput}.\n * @category Utils — DateTime\n */\nconst dateTime = value => {\n if (typeof value === 'string' || isDateObject(value)) {\n const date = new Date(value);\n const timestamp = Math.floor(date.getTime() / 1000);\n return BigInt.createBigInt(timestamp);\n }\n return BigInt.createBigInt(value);\n};\n\n/**\n * Helper function to get the current time as a {@link DateTime}.\n * @category Utils — DateTime\n */\nconst now = () => dateTime(new Date(Date.now()));\n\n/**\n * Whether the given value is a Date object.\n * @category Utils — DateTime\n */\nconst isDateObject = value => Object.prototype.toString.call(value) === '[object Date]';\n\n/**\n * Formats a {@link DateTime} as a string.\n * @category Utils — DateTime\n */\nconst formatDateTime = (value, locales = 'en-US', options = {\n month: 'short',\n day: 'numeric',\n year: 'numeric',\n hour: 'numeric',\n minute: 'numeric'\n}) => {\n const date = new Date(Number(value * 1000n));\n return date.toLocaleDateString(locales, options);\n};\n\n/**\n * Converts a number serializer into a DateTime serializer.\n * @category Utils — DateTime\n */\nconst mapDateTimeSerializer = serializer => umiSerializers.mapSerializer(serializer, value => {\n const date = dateTime(value);\n return date > Number.MAX_SAFE_INTEGER ? date : Number(date);\n}, value => dateTime(value));\n\nexports.dateTime = dateTime;\nexports.formatDateTime = formatDateTime;\nexports.mapDateTimeSerializer = mapDateTimeSerializer;\nexports.now = now;\n//# sourceMappingURL=DateTime.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi/dist/cjs/DateTime.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi/dist/cjs/DownloaderInterface.cjs":
/*!********************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi/dist/cjs/DownloaderInterface.cjs ***!
\********************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar InterfaceImplementationMissingError = __webpack_require__(/*! ./errors/InterfaceImplementationMissingError.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/errors/InterfaceImplementationMissingError.cjs\");\n\n/**\n * An implementation of the {@link DownloaderInterface} that throws an error when called.\n * @category Storage\n */\nfunction createNullDownloader() {\n const errorHandler = () => {\n throw new InterfaceImplementationMissingError.InterfaceImplementationMissingError('DownloaderInterface', 'downloader');\n };\n return {\n download: errorHandler,\n downloadJson: errorHandler\n };\n}\n\nexports.createNullDownloader = createNullDownloader;\n//# sourceMappingURL=DownloaderInterface.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi/dist/cjs/DownloaderInterface.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi/dist/cjs/EddsaInterface.cjs":
/*!***************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi/dist/cjs/EddsaInterface.cjs ***!
\***************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar InterfaceImplementationMissingError = __webpack_require__(/*! ./errors/InterfaceImplementationMissingError.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/errors/InterfaceImplementationMissingError.cjs\");\n\n/**\n * An implementation of the {@link EddsaInterface} that throws an error when called.\n * @category Signers and PublicKeys\n */\nfunction createNullEddsa() {\n const errorHandler = () => {\n throw new InterfaceImplementationMissingError.InterfaceImplementationMissingError('EddsaInterface', 'eddsa');\n };\n return {\n generateKeypair: errorHandler,\n createKeypairFromSecretKey: errorHandler,\n createKeypairFromSeed: errorHandler,\n isOnCurve: errorHandler,\n findPda: errorHandler,\n sign: errorHandler,\n verify: errorHandler\n };\n}\n\nexports.createNullEddsa = createNullEddsa;\n//# sourceMappingURL=EddsaInterface.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi/dist/cjs/EddsaInterface.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi/dist/cjs/GenericFile.cjs":
/*!************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi/dist/cjs/GenericFile.cjs ***!
\************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar umiSerializers = __webpack_require__(/*! @metaplex-foundation/umi-serializers */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/index.cjs\");\nvar randomStrings = __webpack_require__(/*! ./utils/randomStrings.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/utils/randomStrings.cjs\");\n\n/**\n * A generic definition of a File represented as a buffer with\n * extra metadata such as a file name, content type, and tags.\n *\n * @category Storage\n */\n\n/**\n * Creates a new {@link GenericFile} from a buffer and a file name.\n * @category Storage\n */\nconst createGenericFile = (content, fileName, options = {}) => ({\n buffer: typeof content === 'string' ? umiSerializers.utf8.serialize(content) : content,\n fileName,\n displayName: options.displayName ?? fileName,\n uniqueName: options.uniqueName ?? randomStrings.generateRandomString(),\n contentType: options.contentType ?? null,\n extension: options.extension ?? getExtension(fileName),\n tags: options.tags ?? []\n});\n\n/**\n * Creates a new {@link GenericFile} from a {@link BrowserFile}.\n * @category Storage\n */\nconst createGenericFileFromBrowserFile = async (browserFile, options = {}) => createGenericFile(new Uint8Array(await browserFile.arrayBuffer()), browserFile.name, options);\n\n/**\n * Creates a new {@link GenericFile} from a JSON object.\n * @category Storage\n */\nconst createGenericFileFromJson = (json, fileName = 'inline.json', options = {}) => createGenericFile(JSON.stringify(json), fileName, {\n contentType: 'application/json',\n ...options\n});\n\n/**\n * Creates a new {@link BrowserFile} from a {@link GenericFile}.\n * @category Storage\n */\nconst createBrowserFileFromGenericFile = file => new File([file.buffer], file.fileName);\n\n/**\n * Returns the content of a {@link GenericFile} as a parsed JSON object.\n * @category Storage\n */\nconst parseJsonFromGenericFile = file => JSON.parse(new TextDecoder().decode(file.buffer));\n\n/**\n * Returns the total size of a list of {@link GenericFile} in bytes.\n * @category Storage\n */\nconst getBytesFromGenericFiles = (...files) => files.reduce((acc, file) => acc + file.buffer.byteLength, 0);\n\n/**\n * Whether the given value is a {@link GenericFile}.\n * @category Storage\n */\nconst isGenericFile = file => file != null && typeof file === 'object' && 'buffer' in file && 'fileName' in file && 'displayName' in file && 'uniqueName' in file && 'contentType' in file && 'extension' in file && 'tags' in file;\n\n/**\n * Returns the extension of a file name.\n * @category Storage\n */\nconst getExtension = fileName => {\n const lastDotIndex = fileName.lastIndexOf('.');\n return lastDotIndex < 0 ? null : fileName.slice(lastDotIndex + 1);\n};\n\nexports.createBrowserFileFromGenericFile = createBrowserFileFromGenericFile;\nexports.createGenericFile = createGenericFile;\nexports.createGenericFileFromBrowserFile = createGenericFileFromBrowserFile;\nexports.createGenericFileFromJson = createGenericFileFromJson;\nexports.getBytesFromGenericFiles = getBytesFromGenericFiles;\nexports.isGenericFile = isGenericFile;\nexports.parseJsonFromGenericFile = parseJsonFromGenericFile;\n//# sourceMappingURL=GenericFile.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi/dist/cjs/GenericFile.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi/dist/cjs/GpaBuilder.cjs":
/*!***********************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi/dist/cjs/GpaBuilder.cjs ***!
\***********************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar umiPublicKeys = __webpack_require__(/*! @metaplex-foundation/umi-public-keys */ \"./node_modules/@metaplex-foundation/umi-public-keys/dist/cjs/index.cjs\");\nvar umiSerializers = __webpack_require__(/*! @metaplex-foundation/umi-serializers */ \"./node_modules/@metaplex-foundation/umi-serializers/dist/cjs/index.cjs\");\nvar SdkError = __webpack_require__(/*! ./errors/SdkError.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/errors/SdkError.cjs\");\n\n/**\n * Builder for `getProgramAccounts` RPC requests.\n * @category Utils — GpaBuilder\n */\nclass GpaBuilder {\n constructor(context, programId, options = {}) {\n this.context = context;\n this.programId = programId;\n this.options = options;\n }\n reset() {\n return new GpaBuilder(this.context, this.programId, {\n fields: this.options.fields,\n deserializeCallback: this.options.deserializeCallback\n });\n }\n registerFields(fields) {\n return new GpaBuilder(this.context, this.programId, {\n ...this.options,\n fields\n });\n }\n registerFieldsFromStruct(structFields) {\n let offset = 0;\n const fields = structFields.reduce((acc, [field, serializer]) => {\n acc[field] = [offset, serializer];\n offset = offset === null || serializer.fixedSize === null ? null : offset + serializer.fixedSize;\n return acc;\n }, {});\n return this.registerFields(fields);\n }\n deserializeUsing(callback) {\n return new GpaBuilder(this.context, this.programId, {\n ...this.options,\n deserializeCallback: callback\n });\n }\n slice(offset, length) {\n return new GpaBuilder(this.context, this.programId, {\n ...this.options,\n dataSlice: {\n offset,\n length\n }\n });\n }\n sliceField(field, offset) {\n const [effectiveOffset, serializer] = this.getField(field, offset);\n if (!serializer.fixedSize) {\n throw new SdkError.SdkError(`Cannot slice field [${field}] because its size is variable.`);\n }\n return this.slice(effectiveOffset, serializer.fixedSize);\n }\n withoutData() {\n return this.slice(0, 0);\n }\n addFilter(...filters) {\n return new GpaBuilder(this.context, this.programId, {\n ...this.options,\n filters: [...(this.options.filters ?? []), ...filters]\n });\n }\n where(offset, data) {\n let bytes;\n if (typeof data === 'string') {\n bytes = umiSerializers.base58.serialize(data);\n } else if (typeof data === 'number' || typeof data === 'bigint' || typeof data === 'boolean') {\n bytes = umiSerializers.base10.serialize(BigInt(data).toString());\n } else {\n bytes = new Uint8Array(data);\n }\n return this.addFilter({\n memcmp: {\n offset,\n bytes\n }\n });\n }\n whereField(field, data, offset) {\n const [effectiveOffset, serializer] = this.getField(field, offset);\n return this.where(effectiveOffset, serializer.serialize(data));\n }\n whereSize(dataSize) {\n return this.addFilter({\n dataSize\n });\n }\n sortUsing(callback) {\n return new GpaBuilder(this.context, this.programId, {\n ...this.options,\n sortCallback: callback\n });\n }\n async get(options = {}) {\n const accounts = await this.context.rpc.getProgramAccounts(this.programId, {\n ...options,\n dataSlice: options.dataSlice ?? this.options.dataSlice,\n filters: [...(options.filters ?? []), ...(this.options.filters ?? [])]\n });\n if (this.options.sortCallback) {\n accounts.sort(this.options.sortCallback);\n }\n return accounts;\n }\n async getAndMap(callback, options = {}) {\n return (await this.get(options)).map(callback);\n }\n async getDeserialized(options = {}) {\n const rpcAccounts = await this.get(options);\n if (!this.options.deserializeCallback) return rpcAccounts;\n return rpcAccounts.map(this.options.deserializeCallback);\n }\n async getPublicKeys(options = {}) {\n return this.getAndMap(account => account.publicKey, options);\n }\n async getDataAsPublicKeys(options = {}) {\n return this.getAndMap(account => {\n try {\n return umiPublicKeys.publicKey(account.data);\n } catch (error) {\n const message = `Following a getProgramAccount call, you are trying to use an ` + `account's data (or a slice of it) as a public key. ` + `However, we encountered an account ` + `[${account.publicKey}] whose data ` + `[base64=${umiSerializers.base64.deserialize(account.data)}] ` + `is not a valid public key.`;\n throw new SdkError.SdkError(message);\n }\n }, options);\n }\n getField(fieldName, forcedOffset) {\n if (!this.options.fields) {\n throw new SdkError.SdkError('Fields are not defined in this GpaBuilder.');\n }\n const field = this.options.fields[fieldName];\n if (!field) {\n throw new SdkError.SdkError(`Field [${fieldName}] is not defined in this GpaBuilder.`);\n }\n const [offset, serializer] = field;\n if (forcedOffset !== undefined) {\n return [forcedOffset, serializer];\n }\n if (offset === null) {\n throw new SdkError.SdkError(`Field [${fieldName}] does not have a fixed offset. ` + `This is likely because it is not in the fixed part of ` + `the account's data. In other words, it is located after ` + `a field of variable length which means we cannot find a ` + `fixed offset for the filter. You may go around this by ` + `providing an offset explicitly.`);\n }\n return [offset, serializer];\n }\n}\n\n/**\n * Creates a new {@link GpaBuilder} instance.\n * @category Utils — GpaBuilder\n */\nconst gpaBuilder = (context, programId) => new GpaBuilder(context, programId);\n\nexports.GpaBuilder = GpaBuilder;\nexports.gpaBuilder = gpaBuilder;\n//# sourceMappingURL=GpaBuilder.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi/dist/cjs/GpaBuilder.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi/dist/cjs/HttpInterface.cjs":
/*!**************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi/dist/cjs/HttpInterface.cjs ***!
\**************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar InterfaceImplementationMissingError = __webpack_require__(/*! ./errors/InterfaceImplementationMissingError.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/errors/InterfaceImplementationMissingError.cjs\");\n\n/**\n * An implementation of the {@link HttpInterface} that throws an error when called.\n * @category Http\n */\nfunction createNullHttp() {\n const errorHandler = () => {\n throw new InterfaceImplementationMissingError.InterfaceImplementationMissingError('HttpInterface', 'http');\n };\n return {\n send: errorHandler\n };\n}\n\nexports.createNullHttp = createNullHttp;\n//# sourceMappingURL=HttpInterface.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi/dist/cjs/HttpInterface.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi/dist/cjs/HttpRequest.cjs":
/*!************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi/dist/cjs/HttpRequest.cjs ***!
\************************************************************************/
/***/ ((__unused_webpack_module, exports) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\n/** Defines a number in milliseconds. */\n\n/**\n * Defines a HTTP Request with custom data.\n * @category Http\n */\n\n/**\n * Creates a new {@link HttpRequestBuilder} instance.\n * @category Http\n */\nconst request = () => new HttpRequestBuilder({\n method: 'get',\n data: undefined,\n headers: {},\n url: ''\n});\n\n/**\n * A builder for constructing {@link HttpRequest} instances.\n * @category Http\n */\nclass HttpRequestBuilder {\n constructor(request) {\n this.request = request;\n }\n asJson() {\n return this.contentType('application/json');\n }\n asMultipart() {\n return this.contentType('multipart/form-data');\n }\n asForm() {\n return this.contentType('application/x-www-form-urlencoded');\n }\n accept(contentType) {\n return this.withHeader('accept', contentType);\n }\n contentType(contentType) {\n return this.withHeader('content-type', contentType);\n }\n userAgent(userAgent) {\n return this.withHeader('user-agent', userAgent);\n }\n withToken(token, type = 'Bearer') {\n return this.withHeader('authorization', `${type} ${token}`);\n }\n withHeader(key, value) {\n return this.withHeaders({\n [key]: value\n });\n }\n withHeaders(headers) {\n return new HttpRequestBuilder({\n ...this.request,\n headers: {\n ...this.request.headers,\n ...headers\n }\n });\n }\n dontFollowRedirects() {\n return this.followRedirects(0);\n }\n followRedirects(maxRedirects) {\n return new HttpRequestBuilder({\n ...this.request,\n maxRedirects\n });\n }\n withoutTimeout() {\n return this.withTimeout(0);\n }\n withTimeout(timeout) {\n return new HttpRequestBuilder({\n ...this.request,\n timeout\n });\n }\n withAbortSignal(signal) {\n return new HttpRequestBuilder({\n ...this.request,\n signal\n });\n }\n withEndpoint(method, url) {\n return new HttpRequestBuilder({\n ...this.request,\n method,\n url\n });\n }\n withParams(params) {\n const url = new URL(this.request.url);\n const newSearch = new URLSearchParams(params);\n const search = new URLSearchParams(url.searchParams);\n [...newSearch.entries()].forEach(([key, val]) => {\n search.append(key, val);\n });\n url.search = search.toString();\n return new HttpRequestBuilder({\n ...this.request,\n url: url.toString()\n });\n }\n withData(data) {\n return new HttpRequestBuilder({\n ...this.request,\n data\n });\n }\n get(url) {\n return this.withEndpoint('get', url);\n }\n post(url) {\n return this.withEndpoint('post', url);\n }\n put(url) {\n return this.withEndpoint('put', url);\n }\n patch(url) {\n return this.withEndpoint('patch', url);\n }\n delete(url) {\n return this.withEndpoint('delete', url);\n }\n get method() {\n return this.request.method;\n }\n get url() {\n return this.request.url;\n }\n get data() {\n return this.request.data;\n }\n get headers() {\n return this.request.headers;\n }\n get maxRedirects() {\n return this.request.maxRedirects;\n }\n get timeout() {\n return this.request.timeout;\n }\n get signal() {\n return this.request.signal;\n }\n}\n\n/**\n * Defines a HTTP method as a string.\n * @category Http\n */\n\nexports.HttpRequestBuilder = HttpRequestBuilder;\nexports.request = request;\n//# sourceMappingURL=HttpRequest.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi/dist/cjs/HttpRequest.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi/dist/cjs/Keypair.cjs":
/*!********************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi/dist/cjs/Keypair.cjs ***!
\********************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar Transaction = __webpack_require__(/*! ./Transaction.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/Transaction.cjs\");\n\n/**\n * Represents a keypair with a public key and a secret key.\n * @category Signers and PublicKeys\n */\n\n/**\n * Generate a new random {@link KeypairSigner} using the Eddsa interface.\n * @category Signers and PublicKeys\n */\nconst generateSigner = context => createSignerFromKeypair(context, context.eddsa.generateKeypair());\n\n/**\n * Creates a {@link KeypairSigner} from a {@link Keypair} object.\n * @category Signers and PublicKeys\n */\nconst createSignerFromKeypair = (context, keypair) => ({\n publicKey: keypair.publicKey,\n secretKey: keypair.secretKey,\n async signMessage(message) {\n return context.eddsa.sign(message, keypair);\n },\n async signTransaction(transaction) {\n const message = transaction.serializedMessage;\n const signature = context.eddsa.sign(message, keypair);\n return Transaction.addTransactionSignature(transaction, signature, keypair.publicKey);\n },\n async signAllTransactions(transactions) {\n return Promise.all(transactions.map(transaction => this.signTransaction(transaction)));\n }\n});\n\n/**\n * Whether the given signer is a {@link KeypairSigner}.\n * @category Signers and PublicKeys\n */\nconst isKeypairSigner = signer => signer.secretKey !== undefined;\n\nexports.createSignerFromKeypair = createSignerFromKeypair;\nexports.generateSigner = generateSigner;\nexports.isKeypairSigner = isKeypairSigner;\n//# sourceMappingURL=Keypair.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi/dist/cjs/Keypair.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi/dist/cjs/Program.cjs":
/*!********************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi/dist/cjs/Program.cjs ***!
\********************************************************************/
/***/ ((__unused_webpack_module, exports) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\n/**\n * An error that contains Program logs.\n * @category Programs\n */\n\n/**\n * An error that contains a Program error code.\n * @category Programs\n */\n\n/**\n * Whether the given value is an instance of {@link ErrorWithLogs}.\n * @category Programs\n */\nconst isErrorWithLogs = error => error instanceof Error && 'logs' in error;\n\n/**\n * Defines a Solana Program that can be\n * registered in Umi's program repository.\n *\n * @category Programs\n */\n\nexports.isErrorWithLogs = isErrorWithLogs;\n//# sourceMappingURL=Program.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi/dist/cjs/Program.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi/dist/cjs/ProgramRepositoryInterface.cjs":
/*!***************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi/dist/cjs/ProgramRepositoryInterface.cjs ***!
\***************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar InterfaceImplementationMissingError = __webpack_require__(/*! ./errors/InterfaceImplementationMissingError.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/errors/InterfaceImplementationMissingError.cjs\");\n\n/**\n * Defines the interface for a program repository.\n * It allows us to register and retrieve programs when needed.\n *\n * @category Context and Interfaces\n */\n\n/**\n * An implementation of the {@link ProgramRepositoryInterface} that throws an error when called.\n * @category Programs\n */\nfunction createNullProgramRepository() {\n const errorHandler = () => {\n throw new InterfaceImplementationMissingError.InterfaceImplementationMissingError('ProgramRepositoryInterface', 'programs');\n };\n return {\n has: errorHandler,\n get: errorHandler,\n getPublicKey: errorHandler,\n all: errorHandler,\n add: errorHandler,\n bind: errorHandler,\n unbind: errorHandler,\n clone: errorHandler,\n resolveError: errorHandler\n };\n}\n\nexports.createNullProgramRepository = createNullProgramRepository;\n//# sourceMappingURL=ProgramRepositoryInterface.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi/dist/cjs/ProgramRepositoryInterface.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi/dist/cjs/RpcInterface.cjs":
/*!*************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi/dist/cjs/RpcInterface.cjs ***!
\*************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar InterfaceImplementationMissingError = __webpack_require__(/*! ./errors/InterfaceImplementationMissingError.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/errors/InterfaceImplementationMissingError.cjs\");\n\n/**\n * Defines the interface for an RPC client.\n * It allows us to interact with the Solana blockchain.\n *\n * @category Context and Interfaces\n */\n\n/**\n * An implementation of the {@link RpcInterface} that throws an error when called.\n * @category Rpc\n */\nfunction createNullRpc() {\n const errorHandler = () => {\n throw new InterfaceImplementationMissingError.InterfaceImplementationMissingError('RpcInterface', 'rpc');\n };\n return {\n getEndpoint: errorHandler,\n getCluster: errorHandler,\n getAccount: errorHandler,\n getAccounts: errorHandler,\n getProgramAccounts: errorHandler,\n getBlockTime: errorHandler,\n getBalance: errorHandler,\n getRent: errorHandler,\n getSlot: errorHandler,\n getLatestBlockhash: errorHandler,\n getTransaction: errorHandler,\n getSignatureStatuses: errorHandler,\n accountExists: errorHandler,\n airdrop: errorHandler,\n call: errorHandler,\n sendTransaction: errorHandler,\n confirmTransaction: errorHandler\n };\n}\n\nexports.createNullRpc = createNullRpc;\n//# sourceMappingURL=RpcInterface.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi/dist/cjs/RpcInterface.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi/dist/cjs/SerializerInterface.cjs":
/*!********************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi/dist/cjs/SerializerInterface.cjs ***!
\********************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar InterfaceImplementationMissingError = __webpack_require__(/*! ./errors/InterfaceImplementationMissingError.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/errors/InterfaceImplementationMissingError.cjs\");\n\n/**\n * Defines the interface for a set of serializers\n * that can be used to serialize/deserialize any Serde types.\n *\n * @category Context and Interfaces\n * @deprecated This interface is deprecated.\n * You can now directly use `@metaplex-foundation/umi/serializers` instead.\n */\n\n/**\n * An implementation of the {@link SerializerInterface} that throws an error when called.\n * @category Serializers\n */\nfunction createNullSerializer() {\n const errorHandler = () => {\n throw new InterfaceImplementationMissingError.InterfaceImplementationMissingError('SerializerInterface', 'serializer');\n };\n return {\n tuple: errorHandler,\n array: errorHandler,\n map: errorHandler,\n set: errorHandler,\n option: errorHandler,\n nullable: errorHandler,\n struct: errorHandler,\n enum: errorHandler,\n dataEnum: errorHandler,\n string: errorHandler,\n bool: errorHandler,\n unit: errorHandler,\n u8: errorHandler,\n u16: errorHandler,\n u32: errorHandler,\n u64: errorHandler,\n u128: errorHandler,\n i8: errorHandler,\n i16: errorHandler,\n i32: errorHandler,\n i64: errorHandler,\n i128: errorHandler,\n f32: errorHandler,\n f64: errorHandler,\n bytes: errorHandler,\n publicKey: errorHandler\n };\n}\n\nexports.createNullSerializer = createNullSerializer;\n//# sourceMappingURL=SerializerInterface.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi/dist/cjs/SerializerInterface.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi/dist/cjs/Signer.cjs":
/*!*******************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi/dist/cjs/Signer.cjs ***!
\*******************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar arrays = __webpack_require__(/*! ./utils/arrays.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/utils/arrays.cjs\");\n\n/**\n * Defines a public key that can sign transactions and messages.\n * @category Context and Interfaces\n */\n\n/**\n * Signs a transaction using the provided signers.\n * @category Signers and PublicKeys\n */\nconst signTransaction = async (transaction, signers) => signers.reduce(async (promise, signer) => {\n const unsigned = await promise;\n return signer.signTransaction(unsigned);\n}, Promise.resolve(transaction));\n\n/**\n * Signs multiple transactions using the provided signers\n * such that signers that need to sign multiple transactions\n * sign them all at once using the `signAllTransactions` method.\n *\n * @category Signers and PublicKeys\n */\nconst signAllTransactions = async transactionsWithSigners => {\n const transactions = transactionsWithSigners.map(item => item.transaction);\n const signersWithTransactions = transactionsWithSigners.reduce((all, {\n signers\n }, index) => {\n signers.forEach(signer => {\n const item = all.find(item => item.signer.publicKey === signer.publicKey);\n if (item) {\n item.indices.push(index);\n } else {\n all.push({\n signer,\n indices: [index]\n });\n }\n });\n return all;\n }, []);\n return signersWithTransactions.reduce(async (promise, {\n signer,\n indices\n }) => {\n const transactions = await promise;\n if (indices.length === 1) {\n const unsigned = transactions[indices[0]];\n transactions[indices[0]] = await signer.signTransaction(unsigned);\n return transactions;\n }\n const unsigned = indices.map(index => transactions[index]);\n const signed = await signer.signAllTransactions(unsigned);\n indices.forEach((index, position) => {\n transactions[index] = signed[position];\n });\n return transactions;\n }, Promise.resolve(transactions));\n};\n\n/**\n * Whether the provided value is a `Signer`.\n * @category Signers and PublicKeys\n */\nconst isSigner = value => typeof value === 'object' && 'publicKey' in value && 'signMessage' in value;\n\n/**\n * Deduplicates the provided signers by public key.\n * @category Signers and PublicKeys\n */\nconst uniqueSigners = signers => arrays.uniqueBy(signers, (a, b) => a.publicKey === b.publicKey);\n\n/**\n * Creates a `Signer` that, when required to sign, does nothing.\n * This can be useful when libraries require a `Signer` but\n * we don't have one in the current environment. For example,\n * if the transaction will then be signed in a backend server.\n *\n * @category Signers and PublicKeys\n */\nconst createNoopSigner = publicKey => ({\n publicKey,\n async signMessage(message) {\n return message;\n },\n async signTransaction(transaction) {\n return transaction;\n },\n async signAllTransactions(transactions) {\n return transactions;\n }\n});\n\n/**\n * Creates a `Signer` that, when required to sign, throws an error.\n * @category Signers and PublicKeys\n */\nfunction createNullSigner() {\n const error = new Error('Trying to use a NullSigner. ' + 'Did you forget to set a Signer on your Umi instance? ' + 'See the `signerIdentity` method for more information.');\n const errorHandler = () => {\n throw error;\n };\n return {\n get publicKey() {\n throw error;\n },\n signMessage: errorHandler,\n signTransaction: errorHandler,\n signAllTransactions: errorHandler\n };\n}\n\nexports.createNoopSigner = createNoopSigner;\nexports.createNullSigner = createNullSigner;\nexports.isSigner = isSigner;\nexports.signAllTransactions = signAllTransactions;\nexports.signTransaction = signTransaction;\nexports.uniqueSigners = uniqueSigners;\n//# sourceMappingURL=Signer.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi/dist/cjs/Signer.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi/dist/cjs/SignerPlugins.cjs":
/*!**************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi/dist/cjs/SignerPlugins.cjs ***!
\**************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar Keypair = __webpack_require__(/*! ./Keypair.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/Keypair.cjs\");\n\n/**\n * Umi plugin that sets the identity and the payer to the given signer.\n * @category Signers and PublicKeys\n */\nconst signerIdentity = (signer, setPayer = true) => ({\n install(umi) {\n umi.identity = signer;\n if (setPayer) {\n umi.payer = signer;\n }\n }\n});\n\n/**\n * Umi plugin that only sets the payer to the given signer.\n * @category Signers and PublicKeys\n */\nconst signerPayer = signer => ({\n install(umi) {\n umi.payer = signer;\n }\n});\n\n/**\n * Umi plugin that sets the identity and the payer to a randomly generated signer.\n * @category Signers and PublicKeys\n */\nconst generatedSignerIdentity = (setPayer = true) => ({\n install(umi) {\n const signer = Keypair.generateSigner(umi);\n umi.use(signerIdentity(signer, setPayer));\n }\n});\n\n/**\n * Umi plugin that only sets the payer to a randomly generated signer.\n * @category Signers and PublicKeys\n */\nconst generatedSignerPayer = () => ({\n install(umi) {\n const signer = Keypair.generateSigner(umi);\n umi.use(signerPayer(signer));\n }\n});\n\n/**\n * Umi plugin that sets the identity and the payer to a provided keypair.\n * @category Signers and PublicKeys\n */\nconst keypairIdentity = (keypair, setPayer = true) => ({\n install(umi) {\n const signer = Keypair.createSignerFromKeypair(umi, keypair);\n umi.use(signerIdentity(signer, setPayer));\n }\n});\n\n/**\n * Umi plugin that only sets the payer to a provided keypair.\n * @category Signers and PublicKeys\n */\nconst keypairPayer = keypair => ({\n install(umi) {\n const signer = Keypair.createSignerFromKeypair(umi, keypair);\n umi.use(signerPayer(signer));\n }\n});\n\nexports.generatedSignerIdentity = generatedSignerIdentity;\nexports.generatedSignerPayer = generatedSignerPayer;\nexports.keypairIdentity = keypairIdentity;\nexports.keypairPayer = keypairPayer;\nexports.signerIdentity = signerIdentity;\nexports.signerPayer = signerPayer;\n//# sourceMappingURL=SignerPlugins.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi/dist/cjs/SignerPlugins.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi/dist/cjs/Transaction.cjs":
/*!************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi/dist/cjs/Transaction.cjs ***!
\************************************************************************/
/***/ ((__unused_webpack_module, exports) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\n/**\n * The maximum amount of bytes that can be used for a transaction.\n * @category Transactions\n */\nconst TRANSACTION_SIZE_LIMIT = 1232;\n\n/**\n * The version of a transaction.\n * - Legacy is the very first iteration of Solana transactions.\n * - V0 introduces the concept of versionned transaction for\n * the first time and adds supports for address lookup tables.\n *\n * @category Transactions\n */\n\n/**\n * Adds a given signature to the transaction's signature array\n * and returns the updated transaction as a new object.\n *\n * @category Transactions\n */\nconst addTransactionSignature = (transaction, signature, signerPublicKey) => {\n const maxSigners = transaction.message.header.numRequiredSignatures;\n const signerPublicKeys = transaction.message.accounts.slice(0, maxSigners);\n const signerIndex = signerPublicKeys.findIndex(key => key === signerPublicKey);\n if (signerIndex < 0) {\n throw new Error('The provided signer is not required to sign this transaction.');\n }\n const newSignatures = [...transaction.signatures];\n newSignatures[signerIndex] = signature;\n return {\n ...transaction,\n signatures: newSignatures\n };\n};\n\nexports.TRANSACTION_SIZE_LIMIT = TRANSACTION_SIZE_LIMIT;\nexports.addTransactionSignature = addTransactionSignature;\n//# sourceMappingURL=Transaction.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi/dist/cjs/Transaction.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi/dist/cjs/TransactionBuilder.cjs":
/*!*******************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi/dist/cjs/TransactionBuilder.cjs ***!
\*******************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar Signer = __webpack_require__(/*! ./Signer.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/Signer.cjs\");\nvar Transaction = __webpack_require__(/*! ./Transaction.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/Transaction.cjs\");\nvar SdkError = __webpack_require__(/*! ./errors/SdkError.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/errors/SdkError.cjs\");\n\n/**\n * Defines an generic object with wrapped instructions,\n * such as a {@link TransactionBuilder}.\n * @category Transactions\n */\n\n/**\n * A builder that helps construct transactions.\n * @category Transactions\n */\nclass TransactionBuilder {\n constructor(items = [], options = {}) {\n this.items = items;\n this.options = options;\n }\n empty() {\n return new TransactionBuilder([], this.options);\n }\n setItems(input) {\n return new TransactionBuilder(this.parseItems(input), this.options);\n }\n prepend(input) {\n return new TransactionBuilder([...this.parseItems(input), ...this.items], this.options);\n }\n append(input) {\n return new TransactionBuilder([...this.items, ...this.parseItems(input)], this.options);\n }\n add(input) {\n return this.append(input);\n }\n mapInstructions(fn) {\n return new TransactionBuilder(this.items.map(fn), this.options);\n }\n addRemainingAccounts(accountMeta, instructionIndex) {\n instructionIndex = instructionIndex ?? this.items.length - 1;\n const metas = Array.isArray(accountMeta) ? accountMeta : [accountMeta];\n const extraKeys = metas.map(meta => 'pubkey' in meta ? meta : {\n pubkey: meta.signer.publicKey,\n isSigner: true,\n isWritable: meta.isWritable\n });\n const extraSigners = metas.flatMap(meta => 'pubkey' in meta ? [] : [meta.signer]);\n return this.mapInstructions((wrappedInstruction, index) => {\n if (index !== instructionIndex) return wrappedInstruction;\n const keys = [...wrappedInstruction.instruction.keys, ...extraKeys];\n return {\n ...wrappedInstruction,\n instruction: {\n ...wrappedInstruction.instruction,\n keys\n },\n signers: [...wrappedInstruction.signers, ...extraSigners]\n };\n });\n }\n splitByIndex(index) {\n return [new TransactionBuilder(this.items.slice(0, index), this.options), new TransactionBuilder(this.items.slice(index), this.options)];\n }\n\n /**\n * Split the builder into multiple builders, such that\n * each of them should fit in a single transaction.\n *\n * This method is unsafe for several reasons:\n * - Because transactions are atomic, splitting the builder\n * into multiple transactions may cause undesired side effects.\n * For example, if the first transaction succeeds but the second\n * one fails, you may end up with an inconsistent account state.\n * This is why it is recommended to manually split your transactions\n * such that each of them is valid on its own.\n * - It can only split the instructions of the builder. Meaning that,\n * if the builder has a single instruction that is too big to fit in\n * a single transaction, it will not be able to split it.\n */\n unsafeSplitByTransactionSize(context) {\n return this.items.reduce((builders, item) => {\n const lastBuilder = builders.pop();\n const lastBuilderWithItem = lastBuilder.add(item);\n if (lastBuilderWithItem.fitsInOneTransaction(context)) {\n builders.push(lastBuilderWithItem);\n } else {\n builders.push(lastBuilder);\n builders.push(lastBuilder.empty().add(item));\n }\n return builders;\n }, [this.empty()]);\n }\n setFeePayer(feePayer) {\n return new TransactionBuilder(this.items, {\n ...this.options,\n feePayer\n });\n }\n getFeePayer(context) {\n return this.options.feePayer ?? context.payer;\n }\n setVersion(version) {\n return new TransactionBuilder(this.items, {\n ...this.options,\n version\n });\n }\n useLegacyVersion() {\n return this.setVersion('legacy');\n }\n useV0() {\n return this.setVersion(0);\n }\n setAddressLookupTables(addressLookupTables) {\n return new TransactionBuilder(this.items, {\n ...this.options,\n addressLookupTables\n });\n }\n getBlockhash() {\n return typeof this.options.blockhash === 'object' ? this.options.blockhash.blockhash : this.options.blockhash;\n }\n setBlockhash(blockhash) {\n return new TransactionBuilder(this.items, {\n ...this.options,\n blockhash\n });\n }\n async setLatestBlockhash(context, options = {}) {\n return this.setBlockhash(await context.rpc.getLatestBlockhash(options));\n }\n getInstructions() {\n return this.items.map(item => item.instruction);\n }\n getSigners(context) {\n return Signer.uniqueSigners([this.getFeePayer(context), ...this.items.flatMap(item => item.signers)]);\n }\n getBytesCreatedOnChain() {\n return this.items.reduce((sum, item) => sum + item.bytesCreatedOnChain, 0);\n }\n async getRentCreatedOnChain(context) {\n return context.rpc.getRent(this.getBytesCreatedOnChain(), {\n includesHeaderBytes: true\n });\n }\n getTransactionSize(context) {\n return context.transactions.serialize(this.setBlockhash('11111111111111111111111111111111').build(context)).length;\n }\n minimumTransactionsRequired(context) {\n return Math.ceil(this.getTransactionSize(context) / Transaction.TRANSACTION_SIZE_LIMIT);\n }\n fitsInOneTransaction(context) {\n return this.minimumTransactionsRequired(context) === 1;\n }\n build(context) {\n const blockhash = this.getBlockhash();\n if (!blockhash) {\n throw new SdkError.SdkError('Setting a blockhash is required to build a transaction. ' + 'Please use the `setBlockhash` or `setLatestBlockhash` methods.');\n }\n const input = {\n version: this.options.version ?? 0,\n payer: this.getFeePayer(context).publicKey,\n instructions: this.getInstructions(),\n blockhash\n };\n if (input.version === 0 && this.options.addressLookupTables) {\n input.addressLookupTables = this.options.addressLookupTables;\n }\n return context.transactions.create(input);\n }\n async buildWithLatestBlockhash(context, options = {}) {\n let builder = this;\n if (!this.options.blockhash) {\n builder = await this.setLatestBlockhash(context, options);\n }\n return builder.build(context);\n }\n async buildAndSign(context) {\n return Signer.signTransaction(await this.buildWithLatestBlockhash(context), this.getSigners(context));\n }\n async send(context, options = {}) {\n const transaction = await this.buildAndSign(context);\n return context.rpc.sendTransaction(transaction, options);\n }\n async confirm(context, signature, options = {}) {\n let builder = this;\n if (!this.options.blockhash) {\n builder = await this.setLatestBlockhash(context);\n }\n let strategy;\n if (options.strategy) {\n strategy = options.strategy;\n } else {\n const blockhash = typeof builder.options.blockhash === 'object' ? builder.options.blockhash : await context.rpc.getLatestBlockhash();\n strategy = options.strategy ?? {\n type: 'blockhash',\n ...blockhash\n };\n }\n return context.rpc.confirmTransaction(signature, {\n ...options,\n strategy\n });\n }\n async sendAndConfirm(context, options = {}) {\n let builder = this;\n if (!this.options.blockhash) {\n builder = await this.setLatestBlockhash(context);\n }\n const signature = await builder.send(context, options.send);\n const result = await builder.confirm(context, signature, options.confirm);\n return {\n signature,\n result\n };\n }\n parseItems(input) {\n return (Array.isArray(input) ? input : [input]).flatMap(item => 'items' in item ? item.items : [item]);\n }\n}\n\n/**\n * Creates a new transaction builder.\n * @category Transactions\n */\nconst transactionBuilder = (items = []) => new TransactionBuilder(items);\n\nexports.TransactionBuilder = TransactionBuilder;\nexports.transactionBuilder = transactionBuilder;\n//# sourceMappingURL=TransactionBuilder.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi/dist/cjs/TransactionBuilder.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi/dist/cjs/TransactionBuilderGroup.cjs":
/*!************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi/dist/cjs/TransactionBuilderGroup.cjs ***!
\************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar Signer = __webpack_require__(/*! ./Signer.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/Signer.cjs\");\nvar TransactionBuilder = __webpack_require__(/*! ./TransactionBuilder.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/TransactionBuilder.cjs\");\nvar arrays = __webpack_require__(/*! ./utils/arrays.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/utils/arrays.cjs\");\n\nclass TransactionBuilderGroup {\n constructor(builders = [], options = {}) {\n this.builders = builders;\n this.options = options;\n }\n prepend(builder) {\n const newBuilders = Array.isArray(builder) ? builder : [builder];\n return new TransactionBuilderGroup([...newBuilders, ...this.builders], this.options);\n }\n append(builder) {\n const newBuilders = Array.isArray(builder) ? builder : [builder];\n return new TransactionBuilderGroup([...this.builders, ...newBuilders], this.options);\n }\n add(builder) {\n return this.append(builder);\n }\n sequential() {\n return new TransactionBuilderGroup(this.builders, {\n ...this.options,\n parallel: false\n });\n }\n parallel() {\n return new TransactionBuilderGroup(this.builders, {\n ...this.options,\n parallel: true\n });\n }\n isParallel() {\n return this.options.parallel ?? false;\n }\n merge() {\n if (this.builders.length === 0) {\n return new TransactionBuilder.TransactionBuilder();\n }\n return this.builders.reduce((builder, next) => builder.add(next), this.builders[0].empty());\n }\n build(context) {\n return this.builders.map(builder => builder.build(context));\n }\n async setLatestBlockhash(context) {\n const hasBlockhashlessBuilder = this.builders.some(builder => !builder.options.blockhash);\n if (!hasBlockhashlessBuilder) return this;\n const blockhash = await context.rpc.getLatestBlockhash();\n return this.map(builder => builder.options.blockhash ? builder : builder.setBlockhash(blockhash));\n }\n async buildWithLatestBlockhash(context) {\n return (await this.setLatestBlockhash(context)).build(context);\n }\n async buildAndSign(context) {\n const transactions = await this.buildWithLatestBlockhash(context);\n const signers = this.builders.map(builder => builder.getSigners(context));\n return Signer.signAllTransactions(arrays.zipMap(transactions, signers, (transaction, txSigners) => ({\n transaction,\n signers: txSigners ?? []\n })));\n }\n async send(context, options = {}) {\n return this.runAll(await this.buildAndSign(context), async tx => context.rpc.sendTransaction(tx, options));\n }\n async sendAndConfirm(context, options = {}) {\n const blockhashWithExpiryBlockHeight = this.builders.find(builder => typeof builder.options.blockhash === 'object')?.options.blockhash;\n let strategy;\n if (options.confirm?.strategy) {\n strategy = options.confirm.strategy;\n } else {\n const blockhash = blockhashWithExpiryBlockHeight ?? (await context.rpc.getLatestBlockhash());\n strategy = options.confirm?.strategy ?? {\n type: 'blockhash',\n ...blockhash\n };\n }\n return this.runAll(await this.buildAndSign(context), async tx => {\n const signature = await context.rpc.sendTransaction(tx, options.send);\n const result = await context.rpc.confirmTransaction(signature, {\n ...options.confirm,\n strategy\n });\n return {\n signature,\n result\n };\n });\n }\n map(fn) {\n return new TransactionBuilderGroup(this.builders.map(fn));\n }\n filter(fn) {\n return new TransactionBuilderGroup(this.builders.filter(fn));\n }\n async runAll(array, fn) {\n if (this.isParallel()) {\n return Promise.all(array.map(fn));\n }\n return array.reduce(async (promise, ...args) => [...(await promise), await fn(...args)], Promise.resolve([]));\n }\n}\nfunction transactionBuilderGroup(builders = []) {\n return new TransactionBuilderGroup(builders);\n}\n\nexports.TransactionBuilderGroup = TransactionBuilderGroup;\nexports.transactionBuilderGroup = transactionBuilderGroup;\n//# sourceMappingURL=TransactionBuilderGroup.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi/dist/cjs/TransactionBuilderGroup.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi/dist/cjs/TransactionFactoryInterface.cjs":
/*!****************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi/dist/cjs/TransactionFactoryInterface.cjs ***!
\****************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar InterfaceImplementationMissingError = __webpack_require__(/*! ./errors/InterfaceImplementationMissingError.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/errors/InterfaceImplementationMissingError.cjs\");\n\n/**\n * An implementation of the {@link TransactionFactoryInterface} that throws an error when called.\n * @category Transactions\n */\nfunction createNullTransactionFactory() {\n const errorHandler = () => {\n throw new InterfaceImplementationMissingError.InterfaceImplementationMissingError('TransactionFactoryInterface', 'transactions');\n };\n return {\n create: errorHandler,\n serialize: errorHandler,\n deserialize: errorHandler,\n serializeMessage: errorHandler,\n deserializeMessage: errorHandler\n };\n}\n\nexports.createNullTransactionFactory = createNullTransactionFactory;\n//# sourceMappingURL=TransactionFactoryInterface.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi/dist/cjs/TransactionFactoryInterface.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi/dist/cjs/Umi.cjs":
/*!****************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi/dist/cjs/Umi.cjs ***!
\****************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar Context = __webpack_require__(/*! ./Context.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/Context.cjs\");\n\n/**\n * Creates a Umi instance using only Null implementations of the interfaces.\n * The `use` method can then be used to install plugins and replace the\n * Null implementations with real implementations.\n *\n * @category Context and Interfaces\n */\nconst createUmi = () => ({\n ...Context.createNullContext(),\n use(plugin) {\n plugin.install(this);\n return this;\n }\n});\n\nexports.createUmi = createUmi;\n//# sourceMappingURL=Umi.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi/dist/cjs/Umi.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi/dist/cjs/UploaderInterface.cjs":
/*!******************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi/dist/cjs/UploaderInterface.cjs ***!
\******************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar InterfaceImplementationMissingError = __webpack_require__(/*! ./errors/InterfaceImplementationMissingError.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/errors/InterfaceImplementationMissingError.cjs\");\n\n/**\n * An implementation of the {@link UploaderInterface} that throws an error when called.\n * @category Storage\n */\nfunction createNullUploader() {\n const errorHandler = () => {\n throw new InterfaceImplementationMissingError.InterfaceImplementationMissingError('UploaderInterface', 'uploader');\n };\n return {\n upload: errorHandler,\n uploadJson: errorHandler,\n getUploadPrice: errorHandler\n };\n}\n\nexports.createNullUploader = createNullUploader;\n//# sourceMappingURL=UploaderInterface.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi/dist/cjs/UploaderInterface.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi/dist/cjs/errors/AccountNotFoundError.cjs":
/*!****************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi/dist/cjs/errors/AccountNotFoundError.cjs ***!
\****************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar SdkError = __webpack_require__(/*! ./SdkError.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/errors/SdkError.cjs\");\n\n/** @category Errors */\nclass AccountNotFoundError extends SdkError.SdkError {\n name = 'AccountNotFoundError';\n constructor(publicKey, accountType, solution) {\n const message = `${accountType ? `The account of type [${accountType}] was not found` : 'No account was found'} at the provided address [${publicKey}].${solution ? ` ${solution}` : ''}`;\n super(message);\n }\n}\n\nexports.AccountNotFoundError = AccountNotFoundError;\n//# sourceMappingURL=AccountNotFoundError.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi/dist/cjs/errors/AccountNotFoundError.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi/dist/cjs/errors/AmountMismatchError.cjs":
/*!***************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi/dist/cjs/errors/AmountMismatchError.cjs ***!
\***************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar SdkError = __webpack_require__(/*! ./SdkError.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/errors/SdkError.cjs\");\n\n/** @category Errors */\nclass AmountMismatchError extends SdkError.SdkError {\n name = 'AmountMismatchError';\n constructor(left, right, operation) {\n const wrappedOperation = operation ? ` [${operation}]` : '';\n const message = `The SDK tried to execute an operation${wrappedOperation} on two amounts of different types: ` + `[${left.identifier} with ${left.decimals} decimals] and ` + `[${right.identifier} with ${right.decimals} decimals]. ` + `Provide both amounts in the same type to perform this operation.`;\n super(message);\n this.left = left;\n this.right = right;\n this.operation = operation;\n }\n}\n\nexports.AmountMismatchError = AmountMismatchError;\n//# sourceMappingURL=AmountMismatchError.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi/dist/cjs/errors/AmountMismatchError.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi/dist/cjs/errors/InterfaceImplementationMissingError.cjs":
/*!*******************************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi/dist/cjs/errors/InterfaceImplementationMissingError.cjs ***!
\*******************************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar SdkError = __webpack_require__(/*! ./SdkError.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/errors/SdkError.cjs\");\n\n/** @category Errors */\nclass InterfaceImplementationMissingError extends SdkError.SdkError {\n name = 'InterfaceImplementationMissingError';\n constructor(interfaceName, contextVariable) {\n const interfaceBasename = interfaceName.replace(/Interface$/, '');\n const message = `Tried using ${interfaceName} but no implementation of that interface was found. ` + `Make sure an implementation is registered, ` + `e.g. via \"context.${contextVariable} = new My${interfaceBasename}();\".`;\n super(message);\n }\n}\n\nexports.InterfaceImplementationMissingError = InterfaceImplementationMissingError;\n//# sourceMappingURL=InterfaceImplementationMissingError.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi/dist/cjs/errors/InterfaceImplementationMissingError.cjs?");
/***/ }),
/***/ "./node_modules/@metaplex-foundation/umi/dist/cjs/errors/InvalidBaseStringError.cjs":
/*!******************************************************************************************!*\
!*** ./node_modules/@metaplex-foundation/umi/dist/cjs/errors/InvalidBaseStringError.cjs ***!
\******************************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n\nvar SdkError = __webpack_require__(/*! ./SdkError.cjs */ \"./node_modules/@metaplex-foundation/umi/dist/cjs/errors/SdkError.cjs\");\n\n/** @category Errors */\nclass InvalidBaseStringError extends SdkError.SdkError {\n name = 'InvalidBaseStringError';\n constructor(value, base, cause) {\n const message = `Expected a string of base ${base}, got [${value}].`;\n super(message, cause);\n }\n}\n\nexports.InvalidBaseStringError = InvalidBaseStringError;\n//# sourceMappingURL=InvalidBaseStringError.cjs.map\n\n\n//# sourceURL=webpack://mini/./node_modules/@metaplex-foundation/umi/dist/cjs/errors/InvalidBaseStringError.cjs?");
/***/ }),