@suigar/mcp 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/bin.cjs +1 -1
  3. package/dist/bin.mjs +1 -1
  4. package/dist/index.cjs +43 -50
  5. package/dist/index.d.cts +818 -8
  6. package/dist/index.d.mts +818 -8
  7. package/dist/index.mjs +1 -8
  8. package/{node_modules/@suigar/sui-rpc-pool/dist/index.cjs → dist/server-BD-123-u.mjs} +2084 -671
  9. package/{node_modules/@suigar/sui-rpc-pool/dist/index.mjs → dist/server-Cmo8UaHE.cjs} +2341 -645
  10. package/dist/server.cjs +3 -432
  11. package/dist/server.mjs +1 -430
  12. package/package.json +75 -61
  13. package/dist/client.cjs +0 -46
  14. package/dist/client.d.cts +0 -17
  15. package/dist/client.d.mts +0 -17
  16. package/dist/client.mjs +0 -43
  17. package/dist/coin.cjs +0 -86
  18. package/dist/coin.d.cts +0 -35
  19. package/dist/coin.d.mts +0 -35
  20. package/dist/coin.mjs +0 -86
  21. package/dist/config.cjs +0 -183
  22. package/dist/config.d.cts +0 -15
  23. package/dist/config.d.mts +0 -15
  24. package/dist/config.mjs +0 -174
  25. package/dist/mcp-support.cjs +0 -62
  26. package/dist/mcp-support.d.cts +0 -16
  27. package/dist/mcp-support.d.mts +0 -16
  28. package/dist/mcp-support.mjs +0 -60
  29. package/dist/metadata.cjs +0 -51
  30. package/dist/metadata.d.cts +0 -52
  31. package/dist/metadata.d.mts +0 -52
  32. package/dist/metadata.mjs +0 -47
  33. package/dist/tools.cjs +0 -617
  34. package/dist/tools.d.cts +0 -158
  35. package/dist/tools.d.mts +0 -158
  36. package/dist/tools.mjs +0 -608
  37. package/dist/transactions.cjs +0 -294
  38. package/dist/transactions.d.cts +0 -40
  39. package/dist/transactions.d.mts +0 -40
  40. package/dist/transactions.mjs +0 -286
  41. package/dist/types.d.cts +0 -111
  42. package/dist/types.d.mts +0 -111
  43. package/node_modules/@suigar/currency-registry/dist/index.cjs +0 -121
  44. package/node_modules/@suigar/currency-registry/dist/index.d.cts +0 -50
  45. package/node_modules/@suigar/currency-registry/dist/index.d.mts +0 -50
  46. package/node_modules/@suigar/currency-registry/dist/index.mjs +0 -110
  47. package/node_modules/@suigar/currency-registry/package.json +0 -31
  48. package/node_modules/@suigar/game-registry/dist/index.cjs +0 -310
  49. package/node_modules/@suigar/game-registry/dist/index.d.cts +0 -65
  50. package/node_modules/@suigar/game-registry/dist/index.d.mts +0 -65
  51. package/node_modules/@suigar/game-registry/dist/index.mjs +0 -292
  52. package/node_modules/@suigar/game-registry/package.json +0 -31
  53. package/node_modules/@suigar/sui-rpc-pool/dist/index.d.cts +0 -465
  54. package/node_modules/@suigar/sui-rpc-pool/dist/index.d.mts +0 -465
  55. package/node_modules/@suigar/sui-rpc-pool/package.json +0 -31
@@ -1,8 +1,701 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region \0rolldown/runtime.js
3
- var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
1
+ import { SuiGrpcClient } from "@mysten/sui/grpc";
2
+ import { suigar } from "@suigar/sdk";
3
+ import { SUI_CLOCK_OBJECT_ID, SUI_RANDOM_OBJECT_ID, SUI_TYPE_ARG, normalizeSuiAddress } from "@mysten/sui/utils";
4
+ import { DEFAULT_GAS_BUDGET_MIST, DEFAULT_LIMBO_MULTIPLIER_SCALE, DEFAULT_RANGE_SCALE, toBigInt, toU8 } from "@suigar/sdk/utils";
5
+ import { Transaction } from "@mysten/sui/transactions";
6
+ import { Server } from "@modelcontextprotocol/sdk/server/index.js";
7
+ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
8
+ import { CallToolRequestSchema, ListToolsRequestSchema } from "@modelcontextprotocol/sdk/types.js";
9
+ //#region ../currency-registry/dist/index.mjs
10
+ const CURRENCY_FAMILIES = [{
11
+ id: "sui",
12
+ symbol: "SUI",
13
+ name: "Sui",
14
+ decimals: 9,
15
+ suffixes: ["::sui::sui", "::test_sui::test_sui"]
16
+ }, {
17
+ id: "usdc",
18
+ symbol: "USDC",
19
+ name: "USDC",
20
+ decimals: 6,
21
+ suffixes: ["::usdc::usdc", "::test_usdc::test_usdc"]
22
+ }];
23
+ const CONFIGURED_CURRENCY_SPECS = [{
24
+ id: "sui",
25
+ familyId: "sui",
26
+ symbol: "SUI",
27
+ name: "Sui",
28
+ configKey: "suiCoinType"
29
+ }, {
30
+ id: "usdc",
31
+ familyId: "usdc",
32
+ symbol: "USDC",
33
+ name: "USDC",
34
+ configKey: "usdcCoinType"
35
+ }];
36
+ const DEFAULT_COIN_SYMBOL = "COIN";
37
+ const DEFAULT_COIN_NAME = "Coin";
38
+ const DEFAULT_COIN_DECIMALS = 9;
39
+ const trimCoinType = (coinType) => typeof coinType === "string" ? coinType.trim() : "";
40
+ const normalizeCoinType = (coinType) => {
41
+ if (!coinType) return coinType;
42
+ const parts = coinType.split("::");
43
+ if (parts.length < 3) return `0x${((coinType.startsWith("0x") ? coinType.slice(2) : coinType).replace(/^0+/, "") || "0").toLowerCase()}`;
44
+ const [rawAddress, module, ...rest] = parts;
45
+ return [
46
+ `0x${((rawAddress.startsWith("0x") ? rawAddress.slice(2) : rawAddress).replace(/^0+/, "") || "0").toLowerCase()}`,
47
+ module,
48
+ ...rest
49
+ ].join("::");
50
+ };
51
+ const normalizeCoinTypeKey = (coinType) => {
52
+ const trimmed = trimCoinType(coinType);
53
+ return trimmed ? normalizeCoinType(trimmed).toLowerCase() : "";
54
+ };
55
+ const resolveFallbackSymbol = (coinType, fallback = DEFAULT_COIN_SYMBOL) => {
56
+ const trimmed = trimCoinType(coinType);
57
+ if (!trimmed) return fallback;
58
+ const parts = trimmed.split("::").filter(Boolean);
59
+ return (parts[parts.length - 1] ?? trimmed).replace(/\s+/g, "_").trim().toUpperCase() || fallback;
60
+ };
61
+ const dedupeCurrenciesByType = (currencies) => {
62
+ const seen = /* @__PURE__ */ new Set();
63
+ return currencies.filter((currency) => {
64
+ const normalizedType = normalizeCoinTypeKey(currency.type);
65
+ if (seen.has(normalizedType)) return false;
66
+ seen.add(normalizedType);
67
+ return true;
68
+ });
69
+ };
70
+ const resolveCoinFamily = (coinType) => {
71
+ const normalized = normalizeCoinTypeKey(coinType);
72
+ if (!normalized) return null;
73
+ for (const family of CURRENCY_FAMILIES) if (family.suffixes.some((suffix) => normalized.endsWith(suffix))) return family;
74
+ return null;
75
+ };
76
+ const buildConfiguredCurrencies = (config) => dedupeCurrenciesByType(CONFIGURED_CURRENCY_SPECS.flatMap((spec) => {
77
+ const type = trimCoinType(config[spec.configKey]);
78
+ if (!type) return [];
79
+ return [{
80
+ id: spec.id,
81
+ familyId: spec.familyId,
82
+ symbol: spec.symbol,
83
+ name: spec.name,
84
+ type,
85
+ normalizedType: normalizeCoinType(type),
86
+ decimals: CURRENCY_FAMILIES.find((family) => family.id === spec.familyId)?.decimals ?? DEFAULT_COIN_DECIMALS
87
+ }];
88
+ }));
89
+ const resolveConfiguredCurrency = (coinType, configuredCurrencies) => {
90
+ const normalized = normalizeCoinTypeKey(coinType);
91
+ if (!normalized) return null;
92
+ return configuredCurrencies.find((currency) => normalizeCoinTypeKey(currency.type) === normalized) ?? null;
93
+ };
94
+ const resolveCurrencyMetadata = (coinType, configuredCurrencies = [], fallbacks = {}) => {
95
+ const configuredCurrency = resolveConfiguredCurrency(coinType, configuredCurrencies);
96
+ if (configuredCurrency) return {
97
+ symbol: configuredCurrency.symbol,
98
+ name: configuredCurrency.name,
99
+ decimals: configuredCurrency.decimals
100
+ };
101
+ const family = resolveCoinFamily(coinType);
102
+ if (family) return {
103
+ symbol: family.symbol,
104
+ name: family.name,
105
+ decimals: family.decimals
106
+ };
107
+ const fallbackSymbol = resolveFallbackSymbol(coinType, fallbacks.symbol ?? DEFAULT_COIN_SYMBOL);
108
+ return {
109
+ symbol: fallbackSymbol,
110
+ name: fallbacks.name ?? fallbackSymbol ?? DEFAULT_COIN_NAME,
111
+ decimals: fallbacks.decimals ?? DEFAULT_COIN_DECIMALS
112
+ };
113
+ };
4
114
  //#endregion
5
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/utils/suins.mjs
115
+ //#region ../game-registry/dist/index.mjs
116
+ const GAME_DEFINITIONS = [
117
+ {
118
+ id: "coinflip",
119
+ name: "Coinflip",
120
+ module: "coinflip",
121
+ eventTypeName: "CoinFlip",
122
+ description: "Heads or tails - double or nothing!",
123
+ aliases: ["coinflip", "coinflipv2"],
124
+ tags: [
125
+ "solo",
126
+ "fast",
127
+ "classic"
128
+ ],
129
+ status: "active",
130
+ updatedAt: "2025-10-18"
131
+ },
132
+ {
133
+ id: "pvp-coinflip",
134
+ name: "PvP Coinflip",
135
+ module: "pvp_coinflip",
136
+ eventTypeName: "PvpCoinflip",
137
+ description: "Challenge another player in a heads-or-tails duel.",
138
+ aliases: [
139
+ "pvp-coinflip",
140
+ "pvp_coinflip",
141
+ "pvpcoinflip",
142
+ "coinflip-pvp"
143
+ ],
144
+ tags: [
145
+ "multiplayer",
146
+ "pvp",
147
+ "coinflip",
148
+ "live"
149
+ ],
150
+ status: "active",
151
+ updatedAt: "2026-04-06"
152
+ },
153
+ {
154
+ id: "lootbox",
155
+ name: "Lootbox",
156
+ module: "lootbox",
157
+ eventTypeName: "LootboxRevealedEvent",
158
+ description: "Open sweet boxes for amazing rewards",
159
+ aliases: ["lootbox"],
160
+ tags: ["solo", "drops"],
161
+ status: "disabled",
162
+ updatedAt: "2025-09-02"
163
+ },
164
+ {
165
+ id: "slots",
166
+ name: "Candy Rush",
167
+ module: "slots",
168
+ eventTypeName: "Slots",
169
+ description: "Spin 7x7 candy clusters, charge the Sugar Meter, and chase free spins.",
170
+ aliases: [
171
+ "slots",
172
+ "slot",
173
+ "candy-rush",
174
+ "sugar-rush",
175
+ "sugar-rush-1000"
176
+ ],
177
+ tags: [
178
+ "solo",
179
+ "slots",
180
+ "cluster-pays",
181
+ "cascades",
182
+ "free-spins",
183
+ "high-volatility"
184
+ ],
185
+ status: "active",
186
+ updatedAt: "2026-05-27"
187
+ },
188
+ {
189
+ id: "limbo",
190
+ name: "Limbo",
191
+ module: "limbo",
192
+ eventTypeName: "Limbo",
193
+ description: "How high can you pump the balloon?",
194
+ aliases: ["limbo"],
195
+ tags: [
196
+ "solo",
197
+ "risk",
198
+ "multiplier"
199
+ ],
200
+ status: "active",
201
+ updatedAt: "2025-11-12"
202
+ },
203
+ {
204
+ id: "plinko",
205
+ name: "Plinko",
206
+ module: "plinko",
207
+ eventTypeName: "Plinko",
208
+ description: "Drop the ball and watch it bounce!",
209
+ aliases: ["plinko"],
210
+ tags: ["solo", "classic"],
211
+ status: "active",
212
+ updatedAt: "2025-12-08"
213
+ },
214
+ {
215
+ id: "wheel",
216
+ name: "Wheel",
217
+ module: "wheel",
218
+ eventTypeName: "Wheel",
219
+ description: "Spin the wheel and chase the multiplier.",
220
+ aliases: [
221
+ "wheel",
222
+ "luckywheel",
223
+ "lucky-wheel"
224
+ ],
225
+ tags: [
226
+ "solo",
227
+ "spin",
228
+ "multipliers"
229
+ ],
230
+ status: "active",
231
+ updatedAt: "2026-04-30T21:08:34+02:00"
232
+ },
233
+ {
234
+ id: "range",
235
+ name: "Range",
236
+ module: "range",
237
+ eventTypeName: "Range",
238
+ description: "Pick your range and hit the target",
239
+ aliases: ["range"],
240
+ tags: ["solo", "custom-odds"],
241
+ status: "active",
242
+ updatedAt: "2025-11-27"
243
+ },
244
+ {
245
+ id: "soccer",
246
+ name: "Soccer",
247
+ module: "soccer",
248
+ eventTypeName: "Soccer",
249
+ description: "Pick a country, take soccer shots, and climb the World Cup boards.",
250
+ aliases: [
251
+ "soccer",
252
+ "football",
253
+ "world-cup",
254
+ "worldcup",
255
+ "suigar-world-cup"
256
+ ],
257
+ tags: [
258
+ "solo",
259
+ "soccer",
260
+ "football",
261
+ "event",
262
+ "world-cup",
263
+ "multiplier"
264
+ ],
265
+ status: "active",
266
+ updatedAt: "2026-06-02"
267
+ }
268
+ ];
269
+ const ONCHAIN_GAME_SETTINGS_DEFINITIONS = [
270
+ {
271
+ id: "coinflip",
272
+ moduleName: "coinflip",
273
+ keyName: "CoinFlipSettingsKey",
274
+ settingsStructName: "CoinFlipSettings",
275
+ parametersStructName: "Parameters"
276
+ },
277
+ {
278
+ id: "pvp-coinflip",
279
+ moduleName: "pvp_coinflip",
280
+ keyName: "PvpCoinflipSettingsKey",
281
+ settingsStructName: "PvpCoinflipSettings",
282
+ parametersStructName: "Parameters"
283
+ },
284
+ {
285
+ id: "range",
286
+ moduleName: "range",
287
+ keyName: "RangeSettingsKey",
288
+ settingsStructName: "RangeSettings",
289
+ parametersStructName: "Parameters"
290
+ },
291
+ {
292
+ id: "limbo",
293
+ moduleName: "limbo",
294
+ keyName: "LimboSettingsKey",
295
+ settingsStructName: "LimboSettings",
296
+ parametersStructName: "Parameters"
297
+ },
298
+ {
299
+ id: "wheel",
300
+ moduleName: "wheel",
301
+ keyName: "WheelSettingsKey",
302
+ settingsStructName: "WheelSettings",
303
+ parametersStructName: "Parameters"
304
+ },
305
+ {
306
+ id: "plinko",
307
+ moduleName: "plinko",
308
+ keyName: "PlinkoSettingsKey",
309
+ settingsStructName: "PlinkoSettings",
310
+ parametersStructName: "Parameters"
311
+ },
312
+ {
313
+ id: "soccer",
314
+ moduleName: "soccer",
315
+ keyName: "SoccerSettingsKey",
316
+ settingsStructName: "SoccerSettings",
317
+ parametersStructName: "Parameters"
318
+ },
319
+ {
320
+ id: "rps",
321
+ moduleName: "rps",
322
+ keyName: "RpsSettingsKey",
323
+ settingsStructName: "RpsSettings",
324
+ parametersStructName: "Parameters"
325
+ }
326
+ ];
327
+ const normalizeKey = (value) => typeof value === "string" ? value.trim().toLowerCase() : "";
328
+ const normalizeStatus = (value) => typeof value === "string" ? value.trim().toLowerCase() : "active";
329
+ const GAME_BY_ID = new Map(GAME_DEFINITIONS.map((game) => [normalizeKey(game.id), game]));
330
+ new Map(GAME_DEFINITIONS.map((game) => [normalizeKey(game.module), game]));
331
+ const GAME_BY_ALIAS = /* @__PURE__ */ new Map();
332
+ const ONCHAIN_GAME_SETTINGS_BY_ID = new Map(ONCHAIN_GAME_SETTINGS_DEFINITIONS.map((definition) => [normalizeKey(definition.id), definition]));
333
+ GAME_DEFINITIONS.forEach((game) => {
334
+ game.aliases.forEach((alias) => GAME_BY_ALIAS.set(normalizeKey(alias), game));
335
+ GAME_BY_ALIAS.set(normalizeKey(game.id), game);
336
+ GAME_BY_ALIAS.set(normalizeKey(game.module), game);
337
+ });
338
+ const getGameById = (id) => GAME_BY_ID.get(normalizeKey(id));
339
+ const getGameByAlias = (alias) => GAME_BY_ALIAS.get(normalizeKey(alias));
340
+ const isGameActive = (game) => normalizeStatus(game?.status) !== "disabled";
341
+ const getActiveGames = () => GAME_DEFINITIONS.filter(isGameActive);
342
+ const getOnchainGameSettingsDefinition = (id) => ONCHAIN_GAME_SETTINGS_BY_ID.get(normalizeKey(id));
343
+ const buildOnchainGameSettingsObjectType = (packageId, definition) => `${packageId}::${definition.moduleName}::${definition.settingsStructName}`;
344
+ const buildOnchainGameParametersTypePrefix = (packageId, definition) => `${packageId}::${definition.moduleName}::${definition.parametersStructName}<`;
345
+ //#endregion
346
+ //#region src/mcp-support.ts
347
+ const SUPPORTED_MCP_TOOL_NAMES = [
348
+ "read_config",
349
+ "read_game_metadata",
350
+ "build_coinflip_transaction",
351
+ "build_limbo_transaction",
352
+ "build_plinko_transaction",
353
+ "build_wheel_transaction",
354
+ "build_range_transaction",
355
+ "build_pvp_coinflip_create_transaction",
356
+ "build_pvp_coinflip_join_transaction",
357
+ "build_pvp_coinflip_cancel_transaction"
358
+ ];
359
+ const GAME_MCP_SUPPORT_BY_ID = {
360
+ coinflip: {
361
+ executionSurface: "onchain",
362
+ toolSupported: true,
363
+ primaryToolName: "build_coinflip_transaction"
364
+ },
365
+ limbo: {
366
+ executionSurface: "onchain",
367
+ toolSupported: true,
368
+ primaryToolName: "build_limbo_transaction"
369
+ },
370
+ plinko: {
371
+ executionSurface: "onchain",
372
+ toolSupported: true,
373
+ primaryToolName: "build_plinko_transaction"
374
+ },
375
+ wheel: {
376
+ executionSurface: "onchain",
377
+ toolSupported: true,
378
+ primaryToolName: "build_wheel_transaction"
379
+ },
380
+ range: {
381
+ executionSurface: "onchain",
382
+ toolSupported: true,
383
+ primaryToolName: "build_range_transaction"
384
+ },
385
+ "pvp-coinflip": {
386
+ executionSurface: "onchain",
387
+ toolSupported: true,
388
+ primaryToolName: "build_pvp_coinflip_create_transaction"
389
+ }
390
+ };
391
+ const getMcpSupportForGame = (gameId) => {
392
+ const support = GAME_MCP_SUPPORT_BY_ID[gameId];
393
+ if (support) return support;
394
+ return {
395
+ executionSurface: gameId === "slots" ? "backend" : "onchain",
396
+ toolSupported: false,
397
+ primaryToolName: null
398
+ };
399
+ };
400
+ const buildMcpSupportCatalog = () => Object.freeze({
401
+ serverName: "suigar",
402
+ supportedToolNames: [...SUPPORTED_MCP_TOOL_NAMES]
403
+ });
404
+ //#endregion
405
+ //#region src/config.ts
406
+ const EMPTY = "";
407
+ const DEFAULT_NETWORK = "testnet";
408
+ const DEFAULT_SUI_COIN_TYPE = "0x2::sui::SUI";
409
+ const SDK_CONFIG_NETWORKS = /* @__PURE__ */ new Set(["mainnet", "testnet"]);
410
+ const DEFAULT_GRAPHQL_URL = (network) => `https://graphql.${network}.sui.io/graphql`;
411
+ const DEFAULT_PROVIDER_URL = (network) => {
412
+ switch (network) {
413
+ case "mainnet": return "https://fullnode.mainnet.sui.io:443";
414
+ case "devnet": return "https://fullnode.devnet.sui.io:443";
415
+ case "localnet": return "http://127.0.0.1:9000";
416
+ default: return "https://fullnode.testnet.sui.io:443";
417
+ }
418
+ };
419
+ const parseApiLikeUrl = (value) => value?.trim().replace(/\/+$/, "") ?? EMPTY;
420
+ const trim = (value) => value?.trim() ?? EMPTY;
421
+ const pickFirst = (...values) => {
422
+ for (const value of values) if (typeof value === "string" && value.trim().length > 0) return value.trim();
423
+ return EMPTY;
424
+ };
425
+ const env = (...keys) => pickFirst(...keys.map((key) => process.env[key]));
426
+ const normalizeNetwork$1 = (value) => {
427
+ const normalized = value?.trim().toLowerCase();
428
+ return normalized ? normalized : DEFAULT_NETWORK;
429
+ };
430
+ const resolveSdkConfig = (network) => {
431
+ if (!SDK_CONFIG_NETWORKS.has(network)) return null;
432
+ try {
433
+ return new SuiGrpcClient({
434
+ baseUrl: DEFAULT_PROVIDER_URL(network),
435
+ network
436
+ }).$extend(suigar()).suigar.getConfig();
437
+ } catch {
438
+ return null;
439
+ }
440
+ };
441
+ const resolveSharedPackageId = (input) => pickFirst(input.suigarPackageId, env("SUIGAR_PACKAGE_ID", "VITE_SUIGAR_PACKAGE_ID"));
442
+ const resolveSuigarConfig = (input = {}) => {
443
+ const mergedInput = {
444
+ ...input.config ?? {},
445
+ ...input
446
+ };
447
+ const network = normalizeNetwork$1(mergedInput.network ?? env("SUIGAR_NETWORK", "VITE_NETWORK", "NETWORK"));
448
+ const sdkConfig = resolveSdkConfig(network);
449
+ const explicitSharedPackageId = resolveSharedPackageId(mergedInput);
450
+ const sharedPackageId = pickFirst(explicitSharedPackageId, sdkConfig?.packageIds.core);
451
+ return {
452
+ network,
453
+ providerUrl: pickFirst(mergedInput.providerUrl, env("SUIGAR_PROVIDER_URL", "VITE_SUI_GRPC_URL")) || DEFAULT_PROVIDER_URL(network),
454
+ graphqlUrl: pickFirst(mergedInput.graphqlUrl, env("SUIGAR_GRAPHQL_URL", "VITE_SUI_GRAPHQL_URL")) || DEFAULT_GRAPHQL_URL(network),
455
+ siteUrl: pickFirst(mergedInput.siteUrl, env("SUIGAR_SITE_URL", "VITE_SITE_URL")) || "https://suigar.com",
456
+ suigarPackageId: sharedPackageId,
457
+ coinflipPackageId: pickFirst(mergedInput.coinflipPackageId, env("COINFLIP_PACKAGE_ID", "VITE_COINFLIP_PACKAGE_ID"), explicitSharedPackageId, sdkConfig?.packageIds.coinflip),
458
+ pvpCoinflipPackageId: pickFirst(mergedInput.pvpCoinflipPackageId, env("PVP_COINFLIP_PACKAGE_ID", "VITE_PVP_COINFLIP_PACKAGE_ID"), explicitSharedPackageId, sdkConfig?.packageIds.pvpCoinflip),
459
+ plinkoPackageId: pickFirst(mergedInput.plinkoPackageId, env("PLINKO_PACKAGE_ID", "VITE_PLINKO_PACKAGE_ID"), explicitSharedPackageId, sdkConfig?.packageIds.plinko),
460
+ limboPackageId: pickFirst(mergedInput.limboPackageId, env("LIMBO_PACKAGE_ID", "VITE_LIMBO_PACKAGE_ID"), explicitSharedPackageId, sdkConfig?.packageIds.limbo),
461
+ rangePackageId: pickFirst(mergedInput.rangePackageId, env("RANGE_PACKAGE_ID", "VITE_RANGE_PACKAGE_ID"), explicitSharedPackageId, sdkConfig?.packageIds.range),
462
+ wheelPackageId: pickFirst(mergedInput.wheelPackageId, env("WHEEL_PACKAGE_ID", "VITE_WHEEL_PACKAGE_ID"), explicitSharedPackageId, sdkConfig?.packageIds.wheel),
463
+ sweethouseId: pickFirst(mergedInput.sweethouseId, env("SWEETHOUSE_ID", "VITE_SWEETHOUSE_ID"), sdkConfig?.packageIds.sweetHouse),
464
+ suiCoinType: pickFirst(mergedInput.suiCoinType, env("SUI_COIN_TYPE", "VITE_SUI_COIN_TYPE"), sdkConfig?.coinTypes.sui) || DEFAULT_SUI_COIN_TYPE,
465
+ usdcCoinType: pickFirst(mergedInput.usdcCoinType, env("USDC_COIN_TYPE", "VITE_USDC_COIN_TYPE"), sdkConfig?.coinTypes.usdc),
466
+ suiPythPriceInfoObjectId: pickFirst(mergedInput.suiPythPriceInfoObjectId, env("SUI_PYTH_PRICE_INFO_OBJECT_ID", "VITE_SUI_PYTH_PRICE_INFO_OBJECT_ID"), sdkConfig?.priceInfoObjectIds.sui),
467
+ usdcPythPriceInfoObjectId: pickFirst(mergedInput.usdcPythPriceInfoObjectId, env("USDC_PYTH_PRICE_INFO_OBJECT_ID", "VITE_USDC_PYTH_PRICE_INFO_OBJECT_ID"), sdkConfig?.priceInfoObjectIds.usdc),
468
+ coinflipSettingsId: pickFirst(mergedInput.coinflipSettingsId, env("COINFLIP_SETTINGS_ID", "VITE_COINFLIP_SETTINGS_ID")),
469
+ pvpCoinflipSettingsId: pickFirst(mergedInput.pvpCoinflipSettingsId, env("PVP_COINFLIP_SETTINGS_ID", "VITE_PVP_COINFLIP_SETTINGS_ID")),
470
+ plinkoSettingsId: pickFirst(mergedInput.plinkoSettingsId, env("PLINKO_SETTINGS_ID", "VITE_PLINKO_SETTINGS_ID")),
471
+ limboSettingsId: pickFirst(mergedInput.limboSettingsId, env("LIMBO_SETTINGS_ID", "VITE_LIMBO_SETTINGS_ID")),
472
+ rangeSettingsId: pickFirst(mergedInput.rangeSettingsId, env("RANGE_SETTINGS_ID", "VITE_RANGE_SETTINGS_ID")),
473
+ wheelSettingsId: pickFirst(mergedInput.wheelSettingsId, env("WHEEL_SETTINGS_ID", "VITE_WHEEL_SETTINGS_ID")),
474
+ pvpCoinflipRegistryId: pickFirst(mergedInput.pvpCoinflipRegistryId, env("PVP_COINFLIP_REGISTRY_ID", "VITE_PVP_COINFLIP_REGISTRY_ID"), sdkConfig?.registryIds.pvpCoinflip)
475
+ };
476
+ };
477
+ const REQUIRED_CONFIG_KEYS_BY_GAME = {
478
+ coinflip: [
479
+ "coinflipPackageId",
480
+ "sweethouseId",
481
+ "suiCoinType",
482
+ "suiPythPriceInfoObjectId"
483
+ ],
484
+ limbo: [
485
+ "limboPackageId",
486
+ "sweethouseId",
487
+ "suiCoinType",
488
+ "suiPythPriceInfoObjectId"
489
+ ],
490
+ plinko: [
491
+ "plinkoPackageId",
492
+ "sweethouseId",
493
+ "suiCoinType",
494
+ "suiPythPriceInfoObjectId"
495
+ ],
496
+ wheel: [
497
+ "wheelPackageId",
498
+ "sweethouseId",
499
+ "suiCoinType",
500
+ "suiPythPriceInfoObjectId"
501
+ ],
502
+ range: [
503
+ "rangePackageId",
504
+ "sweethouseId",
505
+ "suiCoinType",
506
+ "suiPythPriceInfoObjectId"
507
+ ],
508
+ "pvp-coinflip": [
509
+ "pvpCoinflipPackageId",
510
+ "sweethouseId",
511
+ "suiCoinType"
512
+ ]
513
+ };
514
+ const getRequiredConfigKeysForGame = (game) => REQUIRED_CONFIG_KEYS_BY_GAME[game];
515
+ const inspectResolvedConfig = (input = {}) => {
516
+ const config = resolveSuigarConfig(input);
517
+ const configuredCurrencies = buildConfiguredCurrencies({
518
+ suiCoinType: config.suiCoinType,
519
+ usdcCoinType: config.usdcCoinType
520
+ });
521
+ const missingValues = Object.entries(config).flatMap(([key, value]) => trim(value) ? [] : [key]);
522
+ return {
523
+ config,
524
+ configuredCurrencies,
525
+ availableGames: getActiveGames().map((game) => ({
526
+ ...game,
527
+ mcpSupport: getMcpSupportForGame(game.id)
528
+ })),
529
+ missingValues,
530
+ mcp: buildMcpSupportCatalog()
531
+ };
532
+ };
533
+ const resolvePythPriceInfoId = (coinType, configInput = {}) => {
534
+ const config = resolveSuigarConfig(configInput);
535
+ const normalizedCoinType = normalizeCoinTypeKey(coinType);
536
+ if (normalizedCoinType === normalizeCoinTypeKey(config.suiCoinType) && config.suiPythPriceInfoObjectId) return config.suiPythPriceInfoObjectId;
537
+ if ([config.usdcCoinType].filter((value) => Boolean(trim(value))).map((value) => normalizeCoinTypeKey(value)).includes(normalizedCoinType) && config.usdcPythPriceInfoObjectId) return config.usdcPythPriceInfoObjectId;
538
+ if (resolveCurrencyMetadata(coinType, inspectResolvedConfig(config).configuredCurrencies).symbol === "USDC" && config.usdcPythPriceInfoObjectId) return config.usdcPythPriceInfoObjectId;
539
+ throw new Error(`Missing Pyth price object configuration for coin type ${coinType}`);
540
+ };
541
+ const resolveGamePackageId = (game, configInput = {}) => {
542
+ const config = resolveSuigarConfig(configInput);
543
+ switch (game) {
544
+ case "coinflip": return config.coinflipPackageId;
545
+ case "limbo": return config.limboPackageId;
546
+ case "plinko": return config.plinkoPackageId;
547
+ case "wheel": return config.wheelPackageId;
548
+ case "range": return config.rangePackageId;
549
+ case "pvp-coinflip": return config.pvpCoinflipPackageId;
550
+ }
551
+ };
552
+ const resolveGameSettingsId = (game, configInput = {}) => {
553
+ const config = resolveSuigarConfig(configInput);
554
+ switch (game) {
555
+ case "coinflip": return config.coinflipSettingsId;
556
+ case "limbo": return config.limboSettingsId;
557
+ case "plinko": return config.plinkoSettingsId;
558
+ case "wheel": return config.wheelSettingsId;
559
+ case "range": return config.rangeSettingsId;
560
+ case "pvp-coinflip": return config.pvpCoinflipSettingsId;
561
+ }
562
+ };
563
+ const assertRequiredConfig = (game, configInput = {}) => {
564
+ const inspection = inspectResolvedConfig(configInput);
565
+ const missing = getRequiredConfigKeysForGame(game).filter((key) => !trim(inspection.config[key]));
566
+ if (missing.length > 0) throw new Error(`Missing required config for ${game}: ${missing.join(", ")}`);
567
+ return inspection.config;
568
+ };
569
+ const buildProviderUrl = (network) => DEFAULT_PROVIDER_URL(network);
570
+ const buildGraphqlUrl = (network) => DEFAULT_GRAPHQL_URL(network);
571
+ const parseApiUrl = parseApiLikeUrl;
572
+ //#endregion
573
+ //#region src/metadata.ts
574
+ const listSupportedGames = ({ activeOnly = true } = {}) => (activeOnly ? getActiveGames() : getActiveGames()).map((game) => ({
575
+ ...game,
576
+ mcpSupport: getMcpSupportForGame(game.id)
577
+ }));
578
+ const getGameMetadata = (game, configInput = {}) => {
579
+ const resolvedGame = getGameById(game) ?? getGameByAlias(game);
580
+ if (!resolvedGame) throw new Error(`Unsupported game: ${game}`);
581
+ const mcpSupport = getMcpSupportForGame(resolvedGame.id);
582
+ const supportedGameId = mcpSupport.toolSupported ? resolvedGame.id : null;
583
+ const packageId = supportedGameId ? resolveGamePackageId(supportedGameId, configInput) : null;
584
+ const settingsDefinition = getOnchainGameSettingsDefinition(resolvedGame.id);
585
+ const settingsId = supportedGameId ? resolveGameSettingsId(supportedGameId, configInput) : null;
586
+ return {
587
+ ...resolvedGame,
588
+ mcpSupport,
589
+ packageId,
590
+ settingsId,
591
+ onchainSettings: packageId && settingsDefinition ? {
592
+ definition: settingsDefinition,
593
+ objectType: buildOnchainGameSettingsObjectType(packageId, settingsDefinition),
594
+ parametersTypePrefix: buildOnchainGameParametersTypePrefix(packageId, settingsDefinition)
595
+ } : null
596
+ };
597
+ };
598
+ const listConfiguredCurrencies = (configInput = {}) => {
599
+ const inspection = inspectResolvedConfig(configInput);
600
+ return buildConfiguredCurrencies({
601
+ suiCoinType: inspection.config.suiCoinType,
602
+ usdcCoinType: inspection.config.usdcCoinType
603
+ });
604
+ };
605
+ const getCurrencyInfo = (coinType, configInput = {}) => {
606
+ const configuredCurrencies = listConfiguredCurrencies(configInput);
607
+ return {
608
+ coinType,
609
+ configuredCurrencies,
610
+ metadata: resolveCurrencyMetadata(coinType, configuredCurrencies)
611
+ };
612
+ };
613
+ const readConfigMetadata = (configInput = {}) => inspectResolvedConfig(configInput);
614
+ //#endregion
615
+ //#region src/coin.ts
616
+ const DEFAULT_PAGE_LIMIT = 50;
617
+ const NETWORK_GAS_COIN_TYPE = normalizeCoinType(SUI_TYPE_ARG);
618
+ const mergeCoinObjects = (tx, coinIds) => {
619
+ if (coinIds.length === 0) throw new Error("No coin objects available");
620
+ const primaryCoin = tx.object(coinIds[0]);
621
+ if (coinIds.length > 1) tx.mergeCoins(primaryCoin, coinIds.slice(1).map((coinId) => tx.object(coinId)));
622
+ return primaryCoin;
623
+ };
624
+ const selectCoinsForAmount = async ({ client, owner, coinType, requiredAmount, pageLimit = DEFAULT_PAGE_LIMIT }) => {
625
+ if (requiredAmount <= 0n) return [];
626
+ let cursor = null;
627
+ let total = 0n;
628
+ const coins = [];
629
+ const normalizedCoinType = normalizeCoinType(coinType);
630
+ do {
631
+ const response = await client.getCoins({
632
+ owner,
633
+ coinType: normalizedCoinType,
634
+ cursor,
635
+ limit: pageLimit
636
+ });
637
+ for (const coin of response.data ?? []) {
638
+ try {
639
+ const balance = BigInt(coin.balance);
640
+ coins.push({
641
+ coinObjectId: coin.coinObjectId,
642
+ balance
643
+ });
644
+ total += balance;
645
+ } catch {}
646
+ if (total >= requiredAmount) break;
647
+ }
648
+ cursor = response.hasNextPage && total < requiredAmount ? response.nextCursor : null;
649
+ } while (cursor);
650
+ if (coins.length === 0) throw new Error(`No usable gameplay coin objects were found for ${normalizedCoinType} at owner ${owner}`);
651
+ if (total < requiredAmount) throw new Error("Insufficient balance for this bet");
652
+ coins.sort((left, right) => {
653
+ if (left.balance === right.balance) return 0;
654
+ return left.balance > right.balance ? -1 : 1;
655
+ });
656
+ const selectedCoinIds = [];
657
+ let selectedTotal = 0n;
658
+ for (const coin of coins) {
659
+ selectedCoinIds.push(coin.coinObjectId);
660
+ selectedTotal += coin.balance;
661
+ if (selectedTotal >= requiredAmount) break;
662
+ }
663
+ return selectedCoinIds;
664
+ };
665
+ const resolveBetCoin = async ({ tx, coinType, amount, suiCoinType: _suiCoinType, coinSource, client, owner, allowGasCoinShortcut = true }) => {
666
+ const normalizedCoinType = normalizeCoinType(coinType);
667
+ const resolvedAmount = toBigInt(amount);
668
+ if (resolvedAmount < 0n) throw new Error("Amount must be non-negative");
669
+ if (resolvedAmount === 0n) return tx.moveCall({
670
+ target: "0x2::coin::zero",
671
+ typeArguments: [normalizedCoinType],
672
+ arguments: []
673
+ });
674
+ if (coinSource?.kind === "object-ids") {
675
+ const primaryCoin = mergeCoinObjects(tx, coinSource.objectIds);
676
+ if (coinSource.split === false) return primaryCoin;
677
+ const [coin] = tx.splitCoins(primaryCoin, [tx.pure.u64(resolvedAmount)]);
678
+ return coin;
679
+ }
680
+ if (coinSource?.kind === "gas" && normalizedCoinType !== NETWORK_GAS_COIN_TYPE) throw new Error(`Gas coin sourcing is only supported for the native SUI gas coin (${NETWORK_GAS_COIN_TYPE})`);
681
+ if ((coinSource?.kind === "gas" || allowGasCoinShortcut) && normalizedCoinType === NETWORK_GAS_COIN_TYPE) {
682
+ if (coinSource?.kind === "gas" && coinSource.split === false) return tx.gas;
683
+ const [coin] = tx.splitCoins(tx.gas, [tx.pure.u64(resolvedAmount)]);
684
+ return coin;
685
+ }
686
+ if (!client || !owner) throw new Error(`A read-only client and owner address are required to source non-native coin ${normalizedCoinType}`);
687
+ const primaryCoin = mergeCoinObjects(tx, await selectCoinsForAmount({
688
+ client,
689
+ owner,
690
+ coinType: normalizedCoinType,
691
+ requiredAmount: resolvedAmount
692
+ }));
693
+ const [coin] = tx.splitCoins(primaryCoin, [tx.pure.u64(resolvedAmount)]);
694
+ return coin;
695
+ };
696
+ //#endregion
697
+ //#region ../sui-rpc-pool/dist/index.mjs
698
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
6
699
  const SUI_NS_NAME_REGEX = /^(?!.*(^(?!@)|[-.@])($|[-.@]))(?:[a-z0-9-]{0,63}(?:\.[a-z0-9-]{0,63})*)?@[a-z0-9-]{0,63}$/i;
7
700
  const SUI_NS_DOMAIN_REGEX = /^(?!.*(^|[-.])($|[-.]))(?:[a-z0-9-]{0,63}\.)+sui$/i;
8
701
  const MAX_SUI_NS_NAME_LENGTH = 235;
@@ -11,8 +704,6 @@ function isValidSuiNSName(name) {
11
704
  if (name.includes("@")) return SUI_NS_NAME_REGEX.test(name);
12
705
  return SUI_NS_DOMAIN_REGEX.test(name);
13
706
  }
14
- //#endregion
15
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/utils/move-registry.mjs
16
707
  /** The pattern to find an optionally versioned name */
17
708
  const NAME_PATTERN = /^([a-z0-9]+(?:-[a-z0-9]+)*)$/;
18
709
  /** The pattern for a valid version number */
@@ -29,8 +720,6 @@ const isValidNamedPackage = (name) => {
29
720
  if (!isValidSuiNSName(org)) return false;
30
721
  return NAME_PATTERN.test(app) && app.length < MAX_APP_SIZE;
31
722
  };
32
- //#endregion
33
- //#region ../../node_modules/.pnpm/@scure+base@2.2.0/node_modules/@scure/base/index.js
34
723
  /*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */
35
724
  function isBytes$1(a) {
36
725
  return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array" && "BYTES_PER_ELEMENT" in a && a.BYTES_PER_ELEMENT === 1;
@@ -392,12 +1081,8 @@ genBech32("bech32m");
392
1081
  if (typeof s !== "string" || s.length % 2 !== 0) throw new TypeError(`hex.decode: expected string, got ${typeof s} with length ${s.length}`);
393
1082
  return s.toLowerCase();
394
1083
  }));
395
- //#endregion
396
- //#region ../../node_modules/.pnpm/@mysten+utils@0.4.0/node_modules/@mysten/utils/dist/b58.mjs
397
1084
  const toBase58 = (buffer) => base58.encode(buffer);
398
1085
  const fromBase58 = (str) => base58.decode(str);
399
- //#endregion
400
- //#region ../../node_modules/.pnpm/@mysten+utils@0.4.0/node_modules/@mysten/utils/dist/b64.mjs
401
1086
  function fromBase64(base64String) {
402
1087
  return Uint8Array.from(atob(base64String), (char) => char.charCodeAt(0));
403
1088
  }
@@ -411,8 +1096,6 @@ function toBase64(bytes) {
411
1096
  }
412
1097
  return btoa(output);
413
1098
  }
414
- //#endregion
415
- //#region ../../node_modules/.pnpm/@mysten+utils@0.4.0/node_modules/@mysten/utils/dist/hex.mjs
416
1099
  function fromHex(hexStr) {
417
1100
  const normalized = hexStr.startsWith("0x") ? hexStr.slice(2) : hexStr;
418
1101
  const padded = normalized.length % 2 === 0 ? normalized : `0${normalized}`;
@@ -423,15 +1106,11 @@ function fromHex(hexStr) {
423
1106
  function toHex(bytes) {
424
1107
  return bytes.reduce((str, byte) => str + byte.toString(16).padStart(2, "0"), "");
425
1108
  }
426
- //#endregion
427
- //#region ../../node_modules/.pnpm/@mysten+utils@0.4.0/node_modules/@mysten/utils/dist/chunk.mjs
428
1109
  function chunk(array, size) {
429
1110
  return Array.from({ length: Math.ceil(array.length / size) }, (_, i) => {
430
1111
  return array.slice(i * size, (i + 1) * size);
431
1112
  });
432
1113
  }
433
- //#endregion
434
- //#region ../../node_modules/.pnpm/@mysten+utils@0.4.0/node_modules/@mysten/utils/dist/dataloader.mjs
435
1114
  /**
436
1115
  * DataLoader - A generic utility for batching and caching data fetches.
437
1116
  *
@@ -663,8 +1342,6 @@ function getValidName(options) {
663
1342
  function isArrayLike(x) {
664
1343
  return typeof x === "object" && x !== null && "length" in x && typeof x.length === "number" && (x.length === 0 || x.length > 0 && Object.prototype.hasOwnProperty.call(x, x.length - 1));
665
1344
  }
666
- //#endregion
667
- //#region ../../node_modules/.pnpm/@mysten+bcs@2.1.0/node_modules/@mysten/bcs/dist/utils.mjs
668
1345
  /**
669
1346
  * Encode data with either `hex` or `base64`.
670
1347
  *
@@ -699,8 +1376,6 @@ function splitGenericParameters(str, genericSeparators = ["<", ">"]) {
699
1376
  tok.push(word.trim());
700
1377
  return tok;
701
1378
  }
702
- //#endregion
703
- //#region ../../node_modules/.pnpm/@mysten+bcs@2.1.0/node_modules/@mysten/bcs/dist/uleb.mjs
704
1379
  function ulebEncode(num) {
705
1380
  let bigNum = BigInt(num);
706
1381
  const arr = [];
@@ -732,8 +1407,6 @@ function ulebDecode(arr) {
732
1407
  length: len
733
1408
  };
734
1409
  }
735
- //#endregion
736
- //#region ../../node_modules/.pnpm/@mysten+bcs@2.1.0/node_modules/@mysten/bcs/dist/reader.mjs
737
1410
  /**
738
1411
  * Class used for reading BCS data chunk by chunk. Meant to be used
739
1412
  * by some wrapper, which will make sure that data is valid and is
@@ -869,8 +1542,6 @@ var BcsReader = class {
869
1542
  return result;
870
1543
  }
871
1544
  };
872
- //#endregion
873
- //#region ../../node_modules/.pnpm/@mysten+bcs@2.1.0/node_modules/@mysten/bcs/dist/writer.mjs
874
1545
  /**
875
1546
  * Class used to write BCS data into a buffer. Initializer requires
876
1547
  * some size of a buffer to init; default value for this buffer is 1KB.
@@ -1042,8 +1713,6 @@ function toLittleEndian(bigint, size) {
1042
1713
  }
1043
1714
  return result;
1044
1715
  }
1045
- //#endregion
1046
- //#region ../../node_modules/.pnpm/@mysten+bcs@2.1.0/node_modules/@mysten/bcs/dist/bcs-type.mjs
1047
1716
  var BcsType = class BcsType {
1048
1717
  #write;
1049
1718
  #serialize;
@@ -1300,8 +1969,6 @@ var BcsTuple = class extends BcsType {
1300
1969
  });
1301
1970
  }
1302
1971
  };
1303
- //#endregion
1304
- //#region ../../node_modules/.pnpm/@mysten+bcs@2.1.0/node_modules/@mysten/bcs/dist/bcs.mjs
1305
1972
  function fixedArray(size, type, options) {
1306
1973
  return new BcsType({
1307
1974
  read: (reader) => {
@@ -1570,7 +2237,7 @@ function parseStructTag(type) {
1570
2237
  if (!name || rest.includes("<") && !rest.endsWith(">")) throw new Error(`Invalid struct tag: ${type}`);
1571
2238
  const typeParams = rest.includes("<") ? splitGenericParameters(rest.slice(rest.indexOf("<") + 1, rest.lastIndexOf(">"))).map((typeParam) => parseTypeTag(typeParam.trim())) : [];
1572
2239
  return {
1573
- address: isMvrPackage ? address : normalizeSuiAddress(address),
2240
+ address: isMvrPackage ? address : normalizeSuiAddress$1(address),
1574
2241
  module,
1575
2242
  name,
1576
2243
  typeParams
@@ -1592,7 +2259,7 @@ function normalizeStructTag(type) {
1592
2259
  * setting `forceAdd0x` to true
1593
2260
  *
1594
2261
  */
1595
- function normalizeSuiAddress(value, forceAdd0x = false) {
2262
+ function normalizeSuiAddress$1(value, forceAdd0x = false) {
1596
2263
  let address = value.toLowerCase();
1597
2264
  if (!forceAdd0x && address.startsWith("0x")) address = address.slice(2);
1598
2265
  return `0x${address.padStart(64, "0")}`;
@@ -1603,8 +2270,6 @@ function isHex(value) {
1603
2270
  function getHexByteLength(value) {
1604
2271
  return /^(0x|0X)/.test(value) ? (value.length - 2) / 2 : value.length / 2;
1605
2272
  }
1606
- //#endregion
1607
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/client/cache.mjs
1608
2273
  var ClientCache = class ClientCache {
1609
2274
  #prefix;
1610
2275
  #cache;
@@ -1648,8 +2313,6 @@ var ClientCache = class ClientCache {
1648
2313
  });
1649
2314
  }
1650
2315
  };
1651
- //#endregion
1652
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/client/client.mjs
1653
2316
  var BaseClient = class {
1654
2317
  constructor({ network, base, cache = base?.cache ?? new ClientCache() }) {
1655
2318
  this.network = network;
@@ -1673,8 +2336,6 @@ var BaseClient = class {
1673
2336
  } });
1674
2337
  }
1675
2338
  };
1676
- //#endregion
1677
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/bcs/type-tag-serializer.mjs
1678
2339
  const VECTOR_REGEX = /^vector<(.+)>$/;
1679
2340
  const STRUCT_REGEX = /^([^:]+)::([^:]+)::([^<]+)(<(.+)>)?/;
1680
2341
  var TypeTagSerializer = class TypeTagSerializer {
@@ -1692,7 +2353,7 @@ var TypeTagSerializer = class TypeTagSerializer {
1692
2353
  if (vectorMatch) return { vector: TypeTagSerializer.parseFromStr(vectorMatch[1], normalizeAddress) };
1693
2354
  const structMatch = str.match(STRUCT_REGEX);
1694
2355
  if (structMatch) return { struct: {
1695
- address: normalizeAddress ? normalizeSuiAddress(structMatch[1]) : structMatch[1],
2356
+ address: normalizeAddress ? normalizeSuiAddress$1(structMatch[1]) : structMatch[1],
1696
2357
  module: structMatch[2],
1697
2358
  name: structMatch[3],
1698
2359
  typeParams: structMatch[5] === void 0 ? [] : TypeTagSerializer.parseStructTypeArgs(structMatch[5], normalizeAddress)
@@ -1721,8 +2382,6 @@ var TypeTagSerializer = class TypeTagSerializer {
1721
2382
  throw new Error("Invalid TypeTag");
1722
2383
  }
1723
2384
  };
1724
- //#endregion
1725
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/bcs/bcs.mjs
1726
2385
  function unsafe_u64(options) {
1727
2386
  return bcs.u64({
1728
2387
  name: "unsafe_u64",
@@ -1741,10 +2400,10 @@ function optionEnum(type) {
1741
2400
  const Address = bcs.bytes(32).transform({
1742
2401
  validate: (val) => {
1743
2402
  const address = typeof val === "string" ? val : toHex(val);
1744
- if (!address || !isValidSuiAddress(normalizeSuiAddress(address))) throw new Error(`Invalid Sui address ${address}`);
2403
+ if (!address || !isValidSuiAddress(normalizeSuiAddress$1(address))) throw new Error(`Invalid Sui address ${address}`);
1745
2404
  },
1746
- input: (val) => typeof val === "string" ? fromHex(normalizeSuiAddress(val)) : val,
1747
- output: (val) => normalizeSuiAddress(toHex(val))
2405
+ input: (val) => typeof val === "string" ? fromHex(normalizeSuiAddress$1(val)) : val,
2406
+ output: (val) => normalizeSuiAddress$1(toHex(val))
1748
2407
  });
1749
2408
  const ObjectDigest = bcs.byteVector().transform({
1750
2409
  name: "ObjectDigest",
@@ -2007,8 +2666,6 @@ const ObjectInner = bcs.struct("ObjectInner", {
2007
2666
  previousTransaction: ObjectDigest,
2008
2667
  storageRebate: bcs.u64()
2009
2668
  });
2010
- //#endregion
2011
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/bcs/effects.mjs
2012
2669
  const PackageUpgradeError$1 = bcs.enum("PackageUpgradeError", {
2013
2670
  UnableToFetchPackage: bcs.struct("UnableToFetchPackage", { packageId: Address }),
2014
2671
  NotAPackage: bcs.struct("NotAPackage", { objectId: Address }),
@@ -2225,8 +2882,6 @@ const TransactionEffects$1 = bcs.enum("TransactionEffects", {
2225
2882
  V1: TransactionEffectsV1,
2226
2883
  V2: TransactionEffectsV2
2227
2884
  });
2228
- //#endregion
2229
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/bcs/index.mjs
2230
2885
  const suiBcs = {
2231
2886
  ...bcs,
2232
2887
  U8: bcs.u8(),
@@ -2278,8 +2933,6 @@ const suiBcs = {
2278
2933
  TypeTag: TypeTag$1,
2279
2934
  UpgradeInfo
2280
2935
  };
2281
- //#endregion
2282
- //#region ../../node_modules/.pnpm/@noble+hashes@2.2.0/node_modules/@noble/hashes/utils.js
2283
2936
  /**
2284
2937
  * Checks if something is Uint8Array. Be careful: nodejs Buffer will return true.
2285
2938
  * @param a - value to test
@@ -2488,8 +3141,6 @@ function createHasher(hashCons, info = {}) {
2488
3141
  Object.assign(hashC, info);
2489
3142
  return Object.freeze(hashC);
2490
3143
  }
2491
- //#endregion
2492
- //#region ../../node_modules/.pnpm/@noble+hashes@2.2.0/node_modules/@noble/hashes/_blake.js
2493
3144
  /**
2494
3145
  * Internal blake permutation table.
2495
3146
  * Rows `0..9` serve BLAKE2s, rows `0..11` serve BLAKE2b with `10..11 = 0..1`, and Blake1 also
@@ -2754,8 +3405,6 @@ const BSIGMA = /* @__PURE__ */ Uint8Array.from([
2754
3405
  1,
2755
3406
  9
2756
3407
  ]);
2757
- //#endregion
2758
- //#region ../../node_modules/.pnpm/@noble+hashes@2.2.0/node_modules/@noble/hashes/_u64.js
2759
3408
  const U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
2760
3409
  const _32n = /* @__PURE__ */ BigInt(32);
2761
3410
  function fromBig(n, le = false) {
@@ -2783,8 +3432,6 @@ function add(Ah, Al, Bh, Bl) {
2783
3432
  }
2784
3433
  const add3L = (Al, Bl, Cl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0);
2785
3434
  const add3H = (low, Ah, Bh, Ch) => Ah + Bh + Ch + (low / 2 ** 32 | 0) | 0;
2786
- //#endregion
2787
- //#region ../../node_modules/.pnpm/@noble+hashes@2.2.0/node_modules/@noble/hashes/blake2.js
2788
3435
  /**
2789
3436
  * blake2b (64-bit) & blake2s (8 to 32-bit) hash functions.
2790
3437
  * b could have been faster, but there is no fast u64 in js, so s is 1.5x faster.
@@ -3132,8 +3779,6 @@ var _BLAKE2b = class extends _BLAKE2 {
3132
3779
  * ```
3133
3780
  */
3134
3781
  const blake2b = /* @__PURE__ */ createHasher((opts) => new _BLAKE2b(opts));
3135
- //#endregion
3136
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/utils/dynamic-fields.mjs
3137
3782
  function deriveDynamicFieldID(parentId, typeTag, key) {
3138
3783
  const address = suiBcs.Address.serialize(parentId).toBytes();
3139
3784
  const tag = suiBcs.TypeTag.serialize(typeTag).toBytes();
@@ -3146,8 +3791,6 @@ function deriveDynamicFieldID(parentId, typeTag, key) {
3146
3791
  hash.update(tag);
3147
3792
  return `0x${toHex(hash.digest().slice(0, 32))}`;
3148
3793
  }
3149
- //#endregion
3150
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/graphql/generated/queries.mjs
3151
3794
  /** The execution status of this transaction: success or failure. */
3152
3795
  let ExecutionStatus$2 = /* @__PURE__ */ function(ExecutionStatus$1) {
3153
3796
  /** The transaction could not be executed. */
@@ -3991,11 +4634,7 @@ const VerifyZkLoginSignatureDocument = new TypedDocumentString(`
3991
4634
  }
3992
4635
  }
3993
4636
  `);
3994
- //#endregion
3995
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/version.mjs
3996
- const PACKAGE_VERSION = "2.20.0";
3997
- //#endregion
3998
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/client/mvr.mjs
4637
+ const PACKAGE_VERSION = "2.20.1";
3999
4638
  const NAME_SEPARATOR = "/";
4000
4639
  const MVR_API_HEADER = { "Mvr-Source": `@mysten/sui@${PACKAGE_VERSION}` };
4001
4640
  var MvrClient = class {
@@ -4127,7 +4766,7 @@ var MvrClient = class {
4127
4766
  function validateOverrides(overrides) {
4128
4767
  if (overrides?.packages) for (const [pkg, id] of Object.entries(overrides.packages)) {
4129
4768
  if (!isValidNamedPackage(pkg)) throw new Error(`Invalid package name: ${pkg}`);
4130
- if (!isValidSuiAddress(normalizeSuiAddress(id))) throw new Error(`Invalid package ID: ${id}`);
4769
+ if (!isValidSuiAddress(normalizeSuiAddress$1(id))) throw new Error(`Invalid package ID: ${id}`);
4131
4770
  }
4132
4771
  if (overrides?.types) for (const [type, val] of Object.entries(overrides.types)) {
4133
4772
  if (parseStructTag(type).typeParams.length > 0) throw new Error("Type overrides must be first-level only. If you want to supply generic types, just pass each type individually.");
@@ -4166,8 +4805,6 @@ function hasMvrName(nameOrType) {
4166
4805
  function isStructTag(type) {
4167
4806
  return typeof type === "object" && "address" in type && "module" in type && "name" in type && "typeParams" in type;
4168
4807
  }
4169
- //#endregion
4170
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/client/core.mjs
4171
4808
  const DEFAULT_MVR_URLS = {
4172
4809
  mainnet: "https://mainnet.mvr.mystenlabs.com",
4173
4810
  testnet: "https://testnet.mvr.mystenlabs.com"
@@ -5068,8 +5705,6 @@ function pipe(...pipe$1) {
5068
5705
  }
5069
5706
  };
5070
5707
  }
5071
- //#endregion
5072
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/transactions/data/internal.mjs
5073
5708
  function safeEnum(options) {
5074
5709
  return /* @__PURE__ */ union(Object.keys(options).map((key) => withKind(key, /* @__PURE__ */ object({ [key]: options[key] }))));
5075
5710
  }
@@ -5082,7 +5717,7 @@ function withKind(key, schema) {
5082
5717
  $kind: key
5083
5718
  })));
5084
5719
  }
5085
- const SuiAddress = /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ transform((value) => normalizeSuiAddress(value)), /* @__PURE__ */ check(isValidSuiAddress));
5720
+ const SuiAddress = /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ transform((value) => normalizeSuiAddress$1(value)), /* @__PURE__ */ check(isValidSuiAddress));
5086
5721
  const ObjectID = SuiAddress;
5087
5722
  const BCSBytes = /* @__PURE__ */ string();
5088
5723
  const JsonU64 = /* @__PURE__ */ pipe(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ integer())]), /* @__PURE__ */ check((val) => {
@@ -5246,8 +5881,6 @@ const TransactionDataSchema = /* @__PURE__ */ object({
5246
5881
  inputs: /* @__PURE__ */ array(CallArgSchema),
5247
5882
  commands: /* @__PURE__ */ array(CommandSchema)
5248
5883
  });
5249
- //#endregion
5250
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/transactions/data/v1.mjs
5251
5884
  const ObjectRef = /* @__PURE__ */ object({
5252
5885
  digest: /* @__PURE__ */ string(),
5253
5886
  objectId: /* @__PURE__ */ string(),
@@ -5269,25 +5902,6 @@ const NormalizedCallArg = safeEnum({
5269
5902
  }),
5270
5903
  Pure: /* @__PURE__ */ array(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ integer()))
5271
5904
  });
5272
- const TypeTag = /* @__PURE__ */ union([
5273
- /* @__PURE__ */ object({ bool: /* @__PURE__ */ nullable(/* @__PURE__ */ literal(true)) }),
5274
- /* @__PURE__ */ object({ u8: /* @__PURE__ */ nullable(/* @__PURE__ */ literal(true)) }),
5275
- /* @__PURE__ */ object({ u64: /* @__PURE__ */ nullable(/* @__PURE__ */ literal(true)) }),
5276
- /* @__PURE__ */ object({ u128: /* @__PURE__ */ nullable(/* @__PURE__ */ literal(true)) }),
5277
- /* @__PURE__ */ object({ address: /* @__PURE__ */ nullable(/* @__PURE__ */ literal(true)) }),
5278
- /* @__PURE__ */ object({ signer: /* @__PURE__ */ nullable(/* @__PURE__ */ literal(true)) }),
5279
- /* @__PURE__ */ object({ vector: /* @__PURE__ */ lazy(() => TypeTag) }),
5280
- /* @__PURE__ */ object({ struct: /* @__PURE__ */ lazy(() => StructTag) }),
5281
- /* @__PURE__ */ object({ u16: /* @__PURE__ */ nullable(/* @__PURE__ */ literal(true)) }),
5282
- /* @__PURE__ */ object({ u32: /* @__PURE__ */ nullable(/* @__PURE__ */ literal(true)) }),
5283
- /* @__PURE__ */ object({ u256: /* @__PURE__ */ nullable(/* @__PURE__ */ literal(true)) })
5284
- ]);
5285
- const StructTag = /* @__PURE__ */ object({
5286
- address: /* @__PURE__ */ string(),
5287
- module: /* @__PURE__ */ string(),
5288
- name: /* @__PURE__ */ string(),
5289
- typeParams: /* @__PURE__ */ array(TypeTag)
5290
- });
5291
5905
  function transactionDataFromV1(data) {
5292
5906
  return parse(TransactionDataSchema, {
5293
5907
  version: 2,
@@ -5383,8 +5997,6 @@ function parseV1TransactionArgument(arg) {
5383
5997
  case "Input": return { Input: arg.index };
5384
5998
  }
5385
5999
  }
5386
- //#endregion
5387
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/transactions/hash.mjs
5388
6000
  /**
5389
6001
  * Generates a Blake2b hash of typed data as a base64 string.
5390
6002
  *
@@ -5398,16 +6010,14 @@ function hashTypedData(typeTag, data) {
5398
6010
  dataWithTag.set(data, typeTagBytes.length);
5399
6011
  return blake2b(dataWithTag, { dkLen: 32 });
5400
6012
  }
5401
- //#endregion
5402
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/transactions/utils.mjs
5403
6013
  function getIdFromCallArg(arg) {
5404
- if (typeof arg === "string") return normalizeSuiAddress(arg);
6014
+ if (typeof arg === "string") return normalizeSuiAddress$1(arg);
5405
6015
  if (arg.Object) {
5406
- if (arg.Object.ImmOrOwnedObject) return normalizeSuiAddress(arg.Object.ImmOrOwnedObject.objectId);
5407
- if (arg.Object.Receiving) return normalizeSuiAddress(arg.Object.Receiving.objectId);
5408
- return normalizeSuiAddress(arg.Object.SharedObject.objectId);
6016
+ if (arg.Object.ImmOrOwnedObject) return normalizeSuiAddress$1(arg.Object.ImmOrOwnedObject.objectId);
6017
+ if (arg.Object.Receiving) return normalizeSuiAddress$1(arg.Object.Receiving.objectId);
6018
+ return normalizeSuiAddress$1(arg.Object.SharedObject.objectId);
5409
6019
  }
5410
- if (arg.UnresolvedObject) return normalizeSuiAddress(arg.UnresolvedObject.objectId);
6020
+ if (arg.UnresolvedObject) return normalizeSuiAddress$1(arg.UnresolvedObject.objectId);
5411
6021
  }
5412
6022
  function remapCommandArguments(command, inputMapping, commandMapping) {
5413
6023
  const remapArg = (arg) => {
@@ -5470,10 +6080,8 @@ function remapCommandArguments(command, inputMapping, commandMapping) {
5470
6080
  case "Publish": break;
5471
6081
  }
5472
6082
  }
5473
- //#endregion
5474
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/transactions/TransactionData.mjs
5475
6083
  function prepareSuiAddress(address) {
5476
- return normalizeSuiAddress(address).replace("0x", "");
6084
+ return normalizeSuiAddress$1(address).replace("0x", "");
5477
6085
  }
5478
6086
  var TransactionDataBuilder = class TransactionDataBuilder {
5479
6087
  static fromKindBytes(bytes) {
@@ -5728,11 +6336,11 @@ var TransactionDataBuilder = class TransactionDataBuilder {
5728
6336
  if (resolvedInput.Object.$kind === "ImmOrOwnedObject" || resolvedInput.Object.$kind === "Receiving") {
5729
6337
  const original = input.UnresolvedObject;
5730
6338
  const resolved$1 = resolvedInput.Object.ImmOrOwnedObject ?? resolvedInput.Object.Receiving;
5731
- if (normalizeSuiAddress(original.objectId) !== normalizeSuiAddress(resolved$1.objectId) || original.version != null && original.version !== resolved$1.version || original.digest != null && original.digest !== resolved$1.digest || original.mutable != null || original.initialSharedVersion != null) throw new Error(`Input at index ${i} did not match unresolved object. ${JSON.stringify(original)} is not compatible with ${JSON.stringify(resolved$1)}`);
6339
+ if (normalizeSuiAddress$1(original.objectId) !== normalizeSuiAddress$1(resolved$1.objectId) || original.version != null && original.version !== resolved$1.version || original.digest != null && original.digest !== resolved$1.digest || original.mutable != null || original.initialSharedVersion != null) throw new Error(`Input at index ${i} did not match unresolved object. ${JSON.stringify(original)} is not compatible with ${JSON.stringify(resolved$1)}`);
5732
6340
  } else if (resolvedInput.Object.$kind === "SharedObject") {
5733
6341
  const original = input.UnresolvedObject;
5734
6342
  const resolved$1 = resolvedInput.Object.SharedObject;
5735
- if (normalizeSuiAddress(original.objectId) !== normalizeSuiAddress(resolved$1.objectId) || original.initialSharedVersion != null && original.initialSharedVersion !== resolved$1.initialSharedVersion || original.mutable != null && original.mutable !== resolved$1.mutable || original.version != null || original.digest != null) throw new Error(`Input at index ${i} did not match unresolved object. ${JSON.stringify(original)} is not compatible with ${JSON.stringify(resolved$1)}`);
6343
+ if (normalizeSuiAddress$1(original.objectId) !== normalizeSuiAddress$1(resolved$1.objectId) || original.initialSharedVersion != null && original.initialSharedVersion !== resolved$1.initialSharedVersion || original.mutable != null && original.mutable !== resolved$1.mutable || original.version != null || original.digest != null) throw new Error(`Input at index ${i} did not match unresolved object. ${JSON.stringify(original)} is not compatible with ${JSON.stringify(resolved$1)}`);
5736
6344
  } else throw new Error(`Input at index ${i} resolved to an unexpected Object kind: ${JSON.stringify(resolvedInput.Object)}`);
5737
6345
  this.inputs[i] = resolvedInput;
5738
6346
  break;
@@ -5740,8 +6348,6 @@ var TransactionDataBuilder = class TransactionDataBuilder {
5740
6348
  }
5741
6349
  }
5742
6350
  };
5743
- //#endregion
5744
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/client/utils.mjs
5745
6351
  const ordinalRules = new Intl.PluralRules("en-US", { type: "ordinal" });
5746
6352
  const ordinalSuffixes = /* @__PURE__ */ new Map([
5747
6353
  ["one", "st"],
@@ -6076,8 +6682,6 @@ function parseTransactionEffectsV2({ bytes, effects }) {
6076
6682
  auxiliaryDataDigest: effects.auxDataDigest
6077
6683
  };
6078
6684
  }
6079
- //#endregion
6080
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/client/errors.mjs
6081
6685
  var SuiClientError = class extends Error {};
6082
6686
  var SimulationError = class extends SuiClientError {
6083
6687
  constructor(message, options) {
@@ -6100,9 +6704,7 @@ var ObjectError = class ObjectError extends SuiClientError {
6100
6704
  }
6101
6705
  }
6102
6706
  };
6103
- const SUI_TYPE_ARG = `0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI`;
6104
- //#endregion
6105
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/commonjs/json-typings.js
6707
+ const SUI_TYPE_ARG$1 = `0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI`;
6106
6708
  var require_json_typings = /* @__PURE__ */ __commonJSMin(((exports) => {
6107
6709
  Object.defineProperty(exports, "__esModule", { value: true });
6108
6710
  exports.isJsonObject = exports.typeofJsonValue = void 0;
@@ -6127,8 +6729,6 @@ var require_json_typings = /* @__PURE__ */ __commonJSMin(((exports) => {
6127
6729
  }
6128
6730
  exports.isJsonObject = isJsonObject;
6129
6731
  }));
6130
- //#endregion
6131
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/commonjs/base64.js
6132
6732
  var require_base64 = /* @__PURE__ */ __commonJSMin(((exports) => {
6133
6733
  Object.defineProperty(exports, "__esModule", { value: true });
6134
6734
  exports.base64encode = exports.base64decode = void 0;
@@ -6224,8 +6824,6 @@ var require_base64 = /* @__PURE__ */ __commonJSMin(((exports) => {
6224
6824
  }
6225
6825
  exports.base64encode = base64encode;
6226
6826
  }));
6227
- //#endregion
6228
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/commonjs/protobufjs-utf8.js
6229
6827
  var require_protobufjs_utf8 = /* @__PURE__ */ __commonJSMin(((exports) => {
6230
6828
  Object.defineProperty(exports, "__esModule", { value: true });
6231
6829
  exports.utf8read = void 0;
@@ -6268,8 +6866,6 @@ var require_protobufjs_utf8 = /* @__PURE__ */ __commonJSMin(((exports) => {
6268
6866
  }
6269
6867
  exports.utf8read = utf8read;
6270
6868
  }));
6271
- //#endregion
6272
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/commonjs/binary-format-contract.js
6273
6869
  var require_binary_format_contract = /* @__PURE__ */ __commonJSMin(((exports) => {
6274
6870
  Object.defineProperty(exports, "__esModule", { value: true });
6275
6871
  exports.WireType = exports.mergeBinaryOptions = exports.UnknownFieldHandler = void 0;
@@ -6356,8 +6952,6 @@ var require_binary_format_contract = /* @__PURE__ */ __commonJSMin(((exports) =>
6356
6952
  WireType[WireType["Bit32"] = 5] = "Bit32";
6357
6953
  })(exports.WireType || (exports.WireType = {}));
6358
6954
  }));
6359
- //#endregion
6360
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/commonjs/goog-varint.js
6361
6955
  var require_goog_varint = /* @__PURE__ */ __commonJSMin(((exports) => {
6362
6956
  Object.defineProperty(exports, "__esModule", { value: true });
6363
6957
  exports.varint32read = exports.varint32write = exports.int64toString = exports.int64fromString = exports.varint64write = exports.varint64read = void 0;
@@ -6559,8 +7153,6 @@ var require_goog_varint = /* @__PURE__ */ __commonJSMin(((exports) => {
6559
7153
  }
6560
7154
  exports.varint32read = varint32read;
6561
7155
  }));
6562
- //#endregion
6563
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/commonjs/pb-long.js
6564
7156
  var require_pb_long = /* @__PURE__ */ __commonJSMin(((exports) => {
6565
7157
  Object.defineProperty(exports, "__esModule", { value: true });
6566
7158
  exports.PbLong = exports.PbULong = exports.detectBi = void 0;
@@ -6754,8 +7346,6 @@ var require_pb_long = /* @__PURE__ */ __commonJSMin(((exports) => {
6754
7346
  */
6755
7347
  PbLong.ZERO = new PbLong(0, 0);
6756
7348
  }));
6757
- //#endregion
6758
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/commonjs/binary-reader.js
6759
7349
  var require_binary_reader = /* @__PURE__ */ __commonJSMin(((exports) => {
6760
7350
  Object.defineProperty(exports, "__esModule", { value: true });
6761
7351
  exports.BinaryReader = exports.binaryReadOptions = void 0;
@@ -6927,8 +7517,6 @@ var require_binary_reader = /* @__PURE__ */ __commonJSMin(((exports) => {
6927
7517
  };
6928
7518
  exports.BinaryReader = BinaryReader;
6929
7519
  }));
6930
- //#endregion
6931
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/commonjs/assert.js
6932
7520
  var require_assert = /* @__PURE__ */ __commonJSMin(((exports) => {
6933
7521
  Object.defineProperty(exports, "__esModule", { value: true });
6934
7522
  exports.assertFloat32 = exports.assertUInt32 = exports.assertInt32 = exports.assertNever = exports.assert = void 0;
@@ -6964,8 +7552,6 @@ var require_assert = /* @__PURE__ */ __commonJSMin(((exports) => {
6964
7552
  }
6965
7553
  exports.assertFloat32 = assertFloat32;
6966
7554
  }));
6967
- //#endregion
6968
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/commonjs/binary-writer.js
6969
7555
  var require_binary_writer = /* @__PURE__ */ __commonJSMin(((exports) => {
6970
7556
  Object.defineProperty(exports, "__esModule", { value: true });
6971
7557
  exports.BinaryWriter = exports.binaryWriteOptions = void 0;
@@ -7193,8 +7779,6 @@ var require_binary_writer = /* @__PURE__ */ __commonJSMin(((exports) => {
7193
7779
  };
7194
7780
  exports.BinaryWriter = BinaryWriter;
7195
7781
  }));
7196
- //#endregion
7197
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/commonjs/json-format-contract.js
7198
7782
  var require_json_format_contract = /* @__PURE__ */ __commonJSMin(((exports) => {
7199
7783
  Object.defineProperty(exports, "__esModule", { value: true });
7200
7784
  exports.mergeJsonOptions = exports.jsonWriteOptions = exports.jsonReadOptions = void 0;
@@ -7229,8 +7813,6 @@ var require_json_format_contract = /* @__PURE__ */ __commonJSMin(((exports) => {
7229
7813
  }
7230
7814
  exports.mergeJsonOptions = mergeJsonOptions;
7231
7815
  }));
7232
- //#endregion
7233
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/commonjs/message-type-contract.js
7234
7816
  var require_message_type_contract = /* @__PURE__ */ __commonJSMin(((exports) => {
7235
7817
  Object.defineProperty(exports, "__esModule", { value: true });
7236
7818
  exports.MESSAGE_TYPE = void 0;
@@ -7242,8 +7824,6 @@ var require_message_type_contract = /* @__PURE__ */ __commonJSMin(((exports) =>
7242
7824
  */
7243
7825
  exports.MESSAGE_TYPE = Symbol.for("protobuf-ts/message-type");
7244
7826
  }));
7245
- //#endregion
7246
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/commonjs/lower-camel-case.js
7247
7827
  var require_lower_camel_case = /* @__PURE__ */ __commonJSMin(((exports) => {
7248
7828
  Object.defineProperty(exports, "__esModule", { value: true });
7249
7829
  exports.lowerCamelCase = void 0;
@@ -7272,8 +7852,6 @@ var require_lower_camel_case = /* @__PURE__ */ __commonJSMin(((exports) => {
7272
7852
  }
7273
7853
  exports.lowerCamelCase = lowerCamelCase;
7274
7854
  }));
7275
- //#endregion
7276
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-info.js
7277
7855
  var require_reflection_info$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
7278
7856
  Object.defineProperty(exports, "__esModule", { value: true });
7279
7857
  exports.readMessageOption = exports.readFieldOption = exports.readFieldOptions = exports.normalizeFieldInfo = exports.RepeatType = exports.LongType = exports.ScalarType = void 0;
@@ -7388,8 +7966,6 @@ var require_reflection_info$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
7388
7966
  }
7389
7967
  exports.readMessageOption = readMessageOption;
7390
7968
  }));
7391
- //#endregion
7392
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/commonjs/oneof.js
7393
7969
  var require_oneof = /* @__PURE__ */ __commonJSMin(((exports) => {
7394
7970
  Object.defineProperty(exports, "__esModule", { value: true });
7395
7971
  exports.getSelectedOneofValue = exports.clearOneofValue = exports.setUnknownOneofValue = exports.setOneofValue = exports.getOneofValue = exports.isOneofGroup = void 0;
@@ -7488,8 +8064,6 @@ var require_oneof = /* @__PURE__ */ __commonJSMin(((exports) => {
7488
8064
  }
7489
8065
  exports.getSelectedOneofValue = getSelectedOneofValue;
7490
8066
  }));
7491
- //#endregion
7492
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-type-check.js
7493
8067
  var require_reflection_type_check = /* @__PURE__ */ __commonJSMin(((exports) => {
7494
8068
  Object.defineProperty(exports, "__esModule", { value: true });
7495
8069
  exports.ReflectionTypeCheck = void 0;
@@ -7657,8 +8231,6 @@ var require_reflection_type_check = /* @__PURE__ */ __commonJSMin(((exports) =>
7657
8231
  };
7658
8232
  exports.ReflectionTypeCheck = ReflectionTypeCheck;
7659
8233
  }));
7660
- //#endregion
7661
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-long-convert.js
7662
8234
  var require_reflection_long_convert = /* @__PURE__ */ __commonJSMin(((exports) => {
7663
8235
  Object.defineProperty(exports, "__esModule", { value: true });
7664
8236
  exports.reflectionLongConvert = void 0;
@@ -7679,8 +8251,6 @@ var require_reflection_long_convert = /* @__PURE__ */ __commonJSMin(((exports) =
7679
8251
  }
7680
8252
  exports.reflectionLongConvert = reflectionLongConvert;
7681
8253
  }));
7682
- //#endregion
7683
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-json-reader.js
7684
8254
  var require_reflection_json_reader = /* @__PURE__ */ __commonJSMin(((exports) => {
7685
8255
  Object.defineProperty(exports, "__esModule", { value: true });
7686
8256
  exports.ReflectionJsonReader = void 0;
@@ -7914,8 +8484,6 @@ var require_reflection_json_reader = /* @__PURE__ */ __commonJSMin(((exports) =>
7914
8484
  };
7915
8485
  exports.ReflectionJsonReader = ReflectionJsonReader;
7916
8486
  }));
7917
- //#endregion
7918
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-json-writer.js
7919
8487
  var require_reflection_json_writer = /* @__PURE__ */ __commonJSMin(((exports) => {
7920
8488
  Object.defineProperty(exports, "__esModule", { value: true });
7921
8489
  exports.ReflectionJsonWriter = void 0;
@@ -8105,8 +8673,6 @@ var require_reflection_json_writer = /* @__PURE__ */ __commonJSMin(((exports) =>
8105
8673
  };
8106
8674
  exports.ReflectionJsonWriter = ReflectionJsonWriter;
8107
8675
  }));
8108
- //#endregion
8109
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-scalar-default.js
8110
8676
  var require_reflection_scalar_default = /* @__PURE__ */ __commonJSMin(((exports) => {
8111
8677
  Object.defineProperty(exports, "__esModule", { value: true });
8112
8678
  exports.reflectionScalarDefault = void 0;
@@ -8133,8 +8699,6 @@ var require_reflection_scalar_default = /* @__PURE__ */ __commonJSMin(((exports)
8133
8699
  }
8134
8700
  exports.reflectionScalarDefault = reflectionScalarDefault;
8135
8701
  }));
8136
- //#endregion
8137
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-binary-reader.js
8138
8702
  var require_reflection_binary_reader = /* @__PURE__ */ __commonJSMin(((exports) => {
8139
8703
  Object.defineProperty(exports, "__esModule", { value: true });
8140
8704
  exports.ReflectionBinaryReader = void 0;
@@ -8281,8 +8845,6 @@ var require_reflection_binary_reader = /* @__PURE__ */ __commonJSMin(((exports)
8281
8845
  };
8282
8846
  exports.ReflectionBinaryReader = ReflectionBinaryReader;
8283
8847
  }));
8284
- //#endregion
8285
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-binary-writer.js
8286
8848
  var require_reflection_binary_writer = /* @__PURE__ */ __commonJSMin(((exports) => {
8287
8849
  Object.defineProperty(exports, "__esModule", { value: true });
8288
8850
  exports.ReflectionBinaryWriter = void 0;
@@ -8492,8 +9054,6 @@ var require_reflection_binary_writer = /* @__PURE__ */ __commonJSMin(((exports)
8492
9054
  };
8493
9055
  exports.ReflectionBinaryWriter = ReflectionBinaryWriter;
8494
9056
  }));
8495
- //#endregion
8496
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-create.js
8497
9057
  var require_reflection_create = /* @__PURE__ */ __commonJSMin(((exports) => {
8498
9058
  Object.defineProperty(exports, "__esModule", { value: true });
8499
9059
  exports.reflectionCreate = void 0;
@@ -8536,8 +9096,6 @@ var require_reflection_create = /* @__PURE__ */ __commonJSMin(((exports) => {
8536
9096
  }
8537
9097
  exports.reflectionCreate = reflectionCreate;
8538
9098
  }));
8539
- //#endregion
8540
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-merge-partial.js
8541
9099
  var require_reflection_merge_partial = /* @__PURE__ */ __commonJSMin(((exports) => {
8542
9100
  Object.defineProperty(exports, "__esModule", { value: true });
8543
9101
  exports.reflectionMergePartial = void 0;
@@ -8612,8 +9170,6 @@ var require_reflection_merge_partial = /* @__PURE__ */ __commonJSMin(((exports)
8612
9170
  }
8613
9171
  exports.reflectionMergePartial = reflectionMergePartial;
8614
9172
  }));
8615
- //#endregion
8616
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-equals.js
8617
9173
  var require_reflection_equals = /* @__PURE__ */ __commonJSMin(((exports) => {
8618
9174
  Object.defineProperty(exports, "__esModule", { value: true });
8619
9175
  exports.reflectionEquals = void 0;
@@ -8670,8 +9226,6 @@ var require_reflection_equals = /* @__PURE__ */ __commonJSMin(((exports) => {
8670
9226
  return true;
8671
9227
  }
8672
9228
  }));
8673
- //#endregion
8674
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/commonjs/message-type.js
8675
9229
  var require_message_type = /* @__PURE__ */ __commonJSMin(((exports) => {
8676
9230
  Object.defineProperty(exports, "__esModule", { value: true });
8677
9231
  exports.MessageType = void 0;
@@ -8848,8 +9402,6 @@ var require_message_type = /* @__PURE__ */ __commonJSMin(((exports) => {
8848
9402
  };
8849
9403
  exports.MessageType = MessageType;
8850
9404
  }));
8851
- //#endregion
8852
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/commonjs/reflection-contains-message-type.js
8853
9405
  var require_reflection_contains_message_type = /* @__PURE__ */ __commonJSMin(((exports) => {
8854
9406
  Object.defineProperty(exports, "__esModule", { value: true });
8855
9407
  exports.containsMessageType = void 0;
@@ -8865,8 +9417,6 @@ var require_reflection_contains_message_type = /* @__PURE__ */ __commonJSMin(((e
8865
9417
  }
8866
9418
  exports.containsMessageType = containsMessageType;
8867
9419
  }));
8868
- //#endregion
8869
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/commonjs/enum-object.js
8870
9420
  var require_enum_object = /* @__PURE__ */ __commonJSMin(((exports) => {
8871
9421
  Object.defineProperty(exports, "__esModule", { value: true });
8872
9422
  exports.listEnumNumbers = exports.listEnumNames = exports.listEnumValues = exports.isEnumObject = void 0;
@@ -8938,8 +9488,6 @@ var require_enum_object = /* @__PURE__ */ __commonJSMin(((exports) => {
8938
9488
  }
8939
9489
  exports.listEnumNumbers = listEnumNumbers;
8940
9490
  }));
8941
- //#endregion
8942
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime@2.11.1/node_modules/@protobuf-ts/runtime/build/commonjs/index.js
8943
9491
  var require_commonjs$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
8944
9492
  Object.defineProperty(exports, "__esModule", { value: true });
8945
9493
  var json_typings_1 = require_json_typings();
@@ -9274,8 +9822,6 @@ var require_commonjs$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
9274
9822
  }
9275
9823
  });
9276
9824
  }));
9277
- //#endregion
9278
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/google/protobuf/duration.mjs
9279
9825
  var import_commonjs$2 = require_commonjs$2();
9280
9826
  var Duration$Type = class extends import_commonjs$2.MessageType {
9281
9827
  constructor() {
@@ -9332,8 +9878,6 @@ var Duration$Type = class extends import_commonjs$2.MessageType {
9332
9878
  * @generated MessageType for protobuf message google.protobuf.Duration
9333
9879
  */
9334
9880
  const Duration = new Duration$Type();
9335
- //#endregion
9336
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/jwk.mjs
9337
9881
  var JwkId$Type = class extends import_commonjs$2.MessageType {
9338
9882
  constructor() {
9339
9883
  super("sui.rpc.v2.JwkId", [{
@@ -9393,8 +9937,6 @@ var Jwk$Type = class extends import_commonjs$2.MessageType {
9393
9937
  * @generated MessageType for protobuf message sui.rpc.v2.Jwk
9394
9938
  */
9395
9939
  const Jwk = new Jwk$Type();
9396
- //#endregion
9397
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/bcs.mjs
9398
9940
  var Bcs$Type = class extends import_commonjs$2.MessageType {
9399
9941
  constructor() {
9400
9942
  super("sui.rpc.v2.Bcs", [{
@@ -9416,8 +9958,6 @@ var Bcs$Type = class extends import_commonjs$2.MessageType {
9416
9958
  * @generated MessageType for protobuf message sui.rpc.v2.Bcs
9417
9959
  */
9418
9960
  const Bcs = new Bcs$Type();
9419
- //#endregion
9420
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/google/protobuf/struct.mjs
9421
9961
  /**
9422
9962
  * `NullValue` is a singleton enumeration to represent the null value for the
9423
9963
  * `Value` type union.
@@ -9619,8 +10159,6 @@ var ListValue$Type = class extends import_commonjs$2.MessageType {
9619
10159
  * @generated MessageType for protobuf message google.protobuf.ListValue
9620
10160
  */
9621
10161
  const ListValue = new ListValue$Type();
9622
- //#endregion
9623
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/move_package.mjs
9624
10162
  /**
9625
10163
  * @generated from protobuf enum sui.rpc.v2.DatatypeDescriptor.DatatypeKind
9626
10164
  */
@@ -10188,8 +10726,6 @@ var Linkage$Type = class extends import_commonjs$2.MessageType {
10188
10726
  * @generated MessageType for protobuf message sui.rpc.v2.Linkage
10189
10727
  */
10190
10728
  const Linkage = new Linkage$Type();
10191
- //#endregion
10192
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/owner.mjs
10193
10729
  /**
10194
10730
  * @generated from protobuf enum sui.rpc.v2.Owner.OwnerKind
10195
10731
  */
@@ -10252,8 +10788,6 @@ var Owner$Type = class extends import_commonjs$2.MessageType {
10252
10788
  * @generated MessageType for protobuf message sui.rpc.v2.Owner
10253
10789
  */
10254
10790
  const Owner = new Owner$Type();
10255
- //#endregion
10256
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/object.mjs
10257
10791
  var Object$Type = class extends import_commonjs$2.MessageType {
10258
10792
  constructor() {
10259
10793
  super("sui.rpc.v2.Object", [
@@ -10393,8 +10927,6 @@ var Display$Type = class extends import_commonjs$2.MessageType {
10393
10927
  * @generated MessageType for protobuf message sui.rpc.v2.Display
10394
10928
  */
10395
10929
  const Display = new Display$Type();
10396
- //#endregion
10397
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/argument.mjs
10398
10930
  /**
10399
10931
  * @generated from protobuf enum sui.rpc.v2.Argument.ArgumentKind
10400
10932
  */
@@ -10462,8 +10994,6 @@ var Argument$Type = class extends import_commonjs$2.MessageType {
10462
10994
  * @generated MessageType for protobuf message sui.rpc.v2.Argument
10463
10995
  */
10464
10996
  const Argument = new Argument$Type();
10465
- //#endregion
10466
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/input.mjs
10467
10997
  /**
10468
10998
  * @generated from protobuf enum sui.rpc.v2.Input.InputKind
10469
10999
  */
@@ -10652,8 +11182,6 @@ var FundsWithdrawal$Type = class extends import_commonjs$2.MessageType {
10652
11182
  * @generated MessageType for protobuf message sui.rpc.v2.FundsWithdrawal
10653
11183
  */
10654
11184
  const FundsWithdrawal = new FundsWithdrawal$Type();
10655
- //#endregion
10656
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/google/protobuf/timestamp.mjs
10657
11185
  var Timestamp$Type = class extends import_commonjs$2.MessageType {
10658
11186
  constructor() {
10659
11187
  super("google.protobuf.Timestamp", [{
@@ -10734,8 +11262,6 @@ var Timestamp$Type = class extends import_commonjs$2.MessageType {
10734
11262
  * @generated MessageType for protobuf message google.protobuf.Timestamp
10735
11263
  */
10736
11264
  const Timestamp = new Timestamp$Type();
10737
- //#endregion
10738
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/object_reference.mjs
10739
11265
  var ObjectReference$Type = class extends import_commonjs$2.MessageType {
10740
11266
  constructor() {
10741
11267
  super("sui.rpc.v2.ObjectReference", [
@@ -10768,8 +11294,6 @@ var ObjectReference$Type = class extends import_commonjs$2.MessageType {
10768
11294
  * @generated MessageType for protobuf message sui.rpc.v2.ObjectReference
10769
11295
  */
10770
11296
  const ObjectReference = new ObjectReference$Type();
10771
- //#endregion
10772
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/transaction.mjs
10773
11297
  /**
10774
11298
  * @generated from protobuf enum sui.rpc.v2.TransactionExpiration.TransactionExpirationKind
10775
11299
  */
@@ -11070,7 +11594,7 @@ var Transaction$Type = class extends import_commonjs$2.MessageType {
11070
11594
  /**
11071
11595
  * @generated MessageType for protobuf message sui.rpc.v2.Transaction
11072
11596
  */
11073
- const Transaction = new Transaction$Type();
11597
+ const Transaction$1 = new Transaction$Type();
11074
11598
  var GasPayment$Type = class extends import_commonjs$2.MessageType {
11075
11599
  constructor() {
11076
11600
  super("sui.rpc.v2.GasPayment", [
@@ -12035,8 +12559,6 @@ var ValidatorExecutionTimeObservation$Type = class extends import_commonjs$2.Mes
12035
12559
  * @generated MessageType for protobuf message sui.rpc.v2.ValidatorExecutionTimeObservation
12036
12560
  */
12037
12561
  const ValidatorExecutionTimeObservation = new ValidatorExecutionTimeObservation$Type();
12038
- //#endregion
12039
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/client/transaction-resolver.mjs
12040
12562
  /**
12041
12563
  * Converts CallArg (TypeScript internal format) to gRPC Input format
12042
12564
  */
@@ -12234,7 +12756,7 @@ function transactionToGrpcTransaction(transaction) {
12234
12756
  }
12235
12757
  function transactionToGrpcJson(transaction) {
12236
12758
  const grpcTransaction = transactionToGrpcTransaction(transaction);
12237
- return Transaction.toJson(grpcTransaction);
12759
+ return Transaction$1.toJson(grpcTransaction);
12238
12760
  }
12239
12761
  function grpcInputToCallArg(input) {
12240
12762
  switch (input.kind) {
@@ -12432,8 +12954,6 @@ function grpcTransactionToTransactionData(grpcTx) {
12432
12954
  commands
12433
12955
  };
12434
12956
  }
12435
- //#endregion
12436
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/balance_change.mjs
12437
12957
  var BalanceChange$Type = class extends import_commonjs$2.MessageType {
12438
12958
  constructor() {
12439
12959
  super("sui.rpc.v2.BalanceChange", [
@@ -12465,8 +12985,6 @@ var BalanceChange$Type = class extends import_commonjs$2.MessageType {
12465
12985
  * @generated MessageType for protobuf message sui.rpc.v2.BalanceChange
12466
12986
  */
12467
12987
  const BalanceChange = new BalanceChange$Type();
12468
- //#endregion
12469
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/gas_cost_summary.mjs
12470
12988
  var GasCostSummary$Type = class extends import_commonjs$2.MessageType {
12471
12989
  constructor() {
12472
12990
  super("sui.rpc.v2.GasCostSummary", [
@@ -12509,8 +13027,6 @@ var GasCostSummary$Type = class extends import_commonjs$2.MessageType {
12509
13027
  * @generated MessageType for protobuf message sui.rpc.v2.GasCostSummary
12510
13028
  */
12511
13029
  const GasCostSummary = new GasCostSummary$Type();
12512
- //#endregion
12513
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/execution_status.mjs
12514
13030
  /**
12515
13031
  * @generated from protobuf enum sui.rpc.v2.ExecutionError.ExecutionErrorKind
12516
13032
  */
@@ -13420,8 +13936,6 @@ var TypeArgumentError$Type = class extends import_commonjs$2.MessageType {
13420
13936
  * @generated MessageType for protobuf message sui.rpc.v2.TypeArgumentError
13421
13937
  */
13422
13938
  const TypeArgumentError = new TypeArgumentError$Type();
13423
- //#endregion
13424
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/effects.mjs
13425
13939
  /**
13426
13940
  * @generated from protobuf enum sui.rpc.v2.ChangedObject.InputObjectState
13427
13941
  */
@@ -13914,8 +14428,6 @@ var UnchangedConsensusObject$Type = class extends import_commonjs$2.MessageType
13914
14428
  * @generated MessageType for protobuf message sui.rpc.v2.UnchangedConsensusObject
13915
14429
  */
13916
14430
  const UnchangedConsensusObject = new UnchangedConsensusObject$Type();
13917
- //#endregion
13918
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/graphql/core.mjs
13919
14431
  var GraphQLCoreClient = class extends CoreClient {
13920
14432
  #graphqlClient;
13921
14433
  constructor({ graphqlClient, mvr }) {
@@ -13948,7 +14460,7 @@ var GraphQLCoreClient = class extends CoreClient {
13948
14460
  includeDisplay: options.include?.display ?? false
13949
14461
  }
13950
14462
  }, (result) => result.multiGetObjects);
13951
- results.push(...batch.map((id) => normalizeSuiAddress(id)).map((id) => page.find((obj) => obj?.address === id) ?? new ObjectError("notFound", `Object ${id} not found`)).map((obj) => {
14463
+ results.push(...batch.map((id) => normalizeSuiAddress$1(id)).map((id) => page.find((obj) => obj?.address === id) ?? new ObjectError("notFound", `Object ${id} not found`)).map((obj) => {
13952
14464
  if (obj instanceof ObjectError) return obj;
13953
14465
  const bcsContent = obj.asMoveObject?.contents?.bcs ? fromBase64(obj.asMoveObject.contents.bcs) : void 0;
13954
14466
  const objectBcs = obj.objectBcs ? fromBase64(obj.objectBcs) : void 0;
@@ -14007,7 +14519,7 @@ var GraphQLCoreClient = class extends CoreClient {
14007
14519
  };
14008
14520
  }
14009
14521
  async listCoins(options) {
14010
- const coinType = options.coinType ?? SUI_TYPE_ARG;
14522
+ const coinType = options.coinType ?? SUI_TYPE_ARG$1;
14011
14523
  const coins = await this.#graphqlQuery({
14012
14524
  query: GetCoinsDocument,
14013
14525
  variables: {
@@ -14031,7 +14543,7 @@ var GraphQLCoreClient = class extends CoreClient {
14031
14543
  };
14032
14544
  }
14033
14545
  async getBalance(options) {
14034
- const coinType = options.coinType ?? SUI_TYPE_ARG;
14546
+ const coinType = options.coinType ?? SUI_TYPE_ARG$1;
14035
14547
  const result = await this.#graphqlQuery({
14036
14548
  query: GetBalanceDocument,
14037
14549
  variables: {
@@ -14246,7 +14758,7 @@ var GraphQLCoreClient = class extends CoreClient {
14246
14758
  break;
14247
14759
  }
14248
14760
  return { function: {
14249
- packageId: normalizeSuiAddress(options.packageId),
14761
+ packageId: normalizeSuiAddress$1(options.packageId),
14250
14762
  moduleName: options.moduleName,
14251
14763
  name: moveFunction.name,
14252
14764
  visibility,
@@ -14280,7 +14792,7 @@ var GraphQLCoreClient = class extends CoreClient {
14280
14792
  const snapshot = transactionData.snapshot();
14281
14793
  if (!snapshot.sender) snapshot.sender = "0x0000000000000000000000000000000000000000000000000000000000000000";
14282
14794
  const grpcTransaction = transactionDataToGrpcTransaction(snapshot);
14283
- const transactionJson = Transaction.toJson(grpcTransaction);
14795
+ const transactionJson = Transaction$1.toJson(grpcTransaction);
14284
14796
  const { data, errors } = await graphqlClient.query({
14285
14797
  query: ResolveTransactionDocument,
14286
14798
  variables: {
@@ -14394,7 +14906,7 @@ function parseTransaction$1(transaction, include) {
14394
14906
  };
14395
14907
  let transactionData;
14396
14908
  if (include?.transaction && transaction.transactionJson) {
14397
- const resolved = grpcTransactionToTransactionData(Transaction.fromJson(transaction.transactionJson));
14909
+ const resolved = grpcTransactionToTransactionData(Transaction$1.fromJson(transaction.transactionJson));
14398
14910
  transactionData = {
14399
14911
  gasData: resolved.gasData,
14400
14912
  sender: resolved.sender,
@@ -14524,7 +15036,7 @@ function parseNormalizedSuiMoveTypeBody$1(type) {
14524
15036
  if ("datatype" in type) return {
14525
15037
  $kind: "datatype",
14526
15038
  datatype: {
14527
- typeName: `${normalizeSuiAddress(type.datatype.package)}::${type.datatype.module}::${type.datatype.type}`,
15039
+ typeName: `${normalizeSuiAddress$1(type.datatype.package)}::${type.datatype.module}::${type.datatype.type}`,
14528
15040
  typeParameters: type.datatype.typeParameters.map((t) => parseNormalizedSuiMoveTypeBody$1(t))
14529
15041
  }
14530
15042
  };
@@ -14534,8 +15046,6 @@ function parseNormalizedSuiMoveTypeBody$1(type) {
14534
15046
  };
14535
15047
  throw new Error(`Unknown type: ${JSON.stringify(type)}`);
14536
15048
  }
14537
- //#endregion
14538
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/version.js
14539
15049
  var require_version = /* @__PURE__ */ __commonJSMin(((exports) => {
14540
15050
  Object.defineProperty(exports, "__esModule", { value: true });
14541
15051
  exports.versionInfo = exports.version = void 0;
@@ -14548,8 +15058,6 @@ var require_version = /* @__PURE__ */ __commonJSMin(((exports) => {
14548
15058
  preReleaseTag: null
14549
15059
  });
14550
15060
  }));
14551
- //#endregion
14552
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/jsutils/devAssert.js
14553
15061
  var require_devAssert = /* @__PURE__ */ __commonJSMin(((exports) => {
14554
15062
  Object.defineProperty(exports, "__esModule", { value: true });
14555
15063
  exports.devAssert = devAssert;
@@ -14558,8 +15066,6 @@ var require_devAssert = /* @__PURE__ */ __commonJSMin(((exports) => {
14558
15066
  if (!Boolean(condition)) throw new Error(message);
14559
15067
  }
14560
15068
  }));
14561
- //#endregion
14562
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/jsutils/isPromise.js
14563
15069
  var require_isPromise = /* @__PURE__ */ __commonJSMin(((exports) => {
14564
15070
  Object.defineProperty(exports, "__esModule", { value: true });
14565
15071
  exports.isPromise = isPromise;
@@ -14573,8 +15079,6 @@ var require_isPromise = /* @__PURE__ */ __commonJSMin(((exports) => {
14573
15079
  return typeof (value === null || value === void 0 ? void 0 : value.then) === "function";
14574
15080
  }
14575
15081
  }));
14576
- //#endregion
14577
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/jsutils/isObjectLike.js
14578
15082
  var require_isObjectLike = /* @__PURE__ */ __commonJSMin(((exports) => {
14579
15083
  Object.defineProperty(exports, "__esModule", { value: true });
14580
15084
  exports.isObjectLike = isObjectLike;
@@ -14588,8 +15092,6 @@ var require_isObjectLike = /* @__PURE__ */ __commonJSMin(((exports) => {
14588
15092
  return typeof value == "object" && value !== null;
14589
15093
  }
14590
15094
  }));
14591
- //#endregion
14592
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/jsutils/invariant.js
14593
15095
  var require_invariant = /* @__PURE__ */ __commonJSMin(((exports) => {
14594
15096
  Object.defineProperty(exports, "__esModule", { value: true });
14595
15097
  exports.invariant = invariant;
@@ -14598,8 +15100,6 @@ var require_invariant = /* @__PURE__ */ __commonJSMin(((exports) => {
14598
15100
  if (!Boolean(condition)) throw new Error(message != null ? message : "Unexpected invariant triggered.");
14599
15101
  }
14600
15102
  }));
14601
- //#endregion
14602
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/language/location.js
14603
15103
  var require_location = /* @__PURE__ */ __commonJSMin(((exports) => {
14604
15104
  Object.defineProperty(exports, "__esModule", { value: true });
14605
15105
  exports.getLocation = getLocation;
@@ -14638,8 +15138,6 @@ var require_location = /* @__PURE__ */ __commonJSMin(((exports) => {
14638
15138
  };
14639
15139
  }
14640
15140
  }));
14641
- //#endregion
14642
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/language/printLocation.js
14643
15141
  var require_printLocation = /* @__PURE__ */ __commonJSMin(((exports) => {
14644
15142
  Object.defineProperty(exports, "__esModule", { value: true });
14645
15143
  exports.printLocation = printLocation;
@@ -14718,8 +15216,6 @@ var require_printLocation = /* @__PURE__ */ __commonJSMin(((exports) => {
14718
15216
  return existingLines.map(([prefix, line]) => prefix.padStart(padLen) + (line ? " " + line : "")).join("\n");
14719
15217
  }
14720
15218
  }));
14721
- //#endregion
14722
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/error/GraphQLError.js
14723
15219
  var require_GraphQLError = /* @__PURE__ */ __commonJSMin(((exports) => {
14724
15220
  Object.defineProperty(exports, "__esModule", { value: true });
14725
15221
  exports.GraphQLError = void 0;
@@ -14991,8 +15487,6 @@ var require_GraphQLError = /* @__PURE__ */ __commonJSMin(((exports) => {
14991
15487
  return error.toJSON();
14992
15488
  }
14993
15489
  }));
14994
- //#endregion
14995
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/error/syntaxError.js
14996
15490
  var require_syntaxError = /* @__PURE__ */ __commonJSMin(((exports) => {
14997
15491
  Object.defineProperty(exports, "__esModule", { value: true });
14998
15492
  exports.syntaxError = syntaxError;
@@ -15023,8 +15517,6 @@ var require_syntaxError = /* @__PURE__ */ __commonJSMin(((exports) => {
15023
15517
  });
15024
15518
  }
15025
15519
  }));
15026
- //#endregion
15027
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/language/ast.js
15028
15520
  var require_ast = /* @__PURE__ */ __commonJSMin(((exports) => {
15029
15521
  Object.defineProperty(exports, "__esModule", { value: true });
15030
15522
  exports.Token = exports.QueryDocumentKeys = exports.OperationTypeNode = exports.Location = void 0;
@@ -15361,8 +15853,6 @@ var require_ast = /* @__PURE__ */ __commonJSMin(((exports) => {
15361
15853
  })(OperationTypeNode || (exports.OperationTypeNode = OperationTypeNode = {}));
15362
15854
  }));
15363
15855
  /** A variable declaration in an operation or legacy fragment definition. */
15364
- //#endregion
15365
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/language/directiveLocation.js
15366
15856
  var require_directiveLocation = /* @__PURE__ */ __commonJSMin(((exports) => {
15367
15857
  Object.defineProperty(exports, "__esModule", { value: true });
15368
15858
  exports.DirectiveLocation = void 0;
@@ -15401,8 +15891,6 @@ var require_directiveLocation = /* @__PURE__ */ __commonJSMin(((exports) => {
15401
15891
  * @deprecated Will be removed in v17. In v17, use `DirectiveLocation` as both
15402
15892
  * the runtime value and the type.
15403
15893
  */
15404
- //#endregion
15405
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/language/kinds.js
15406
15894
  var require_kinds = /* @__PURE__ */ __commonJSMin(((exports) => {
15407
15895
  Object.defineProperty(exports, "__esModule", { value: true });
15408
15896
  exports.Kind = void 0;
@@ -15470,8 +15958,6 @@ var require_kinds = /* @__PURE__ */ __commonJSMin(((exports) => {
15470
15958
  * @deprecated Will be removed in v17. In v17, use `Kind` as both the runtime
15471
15959
  * value and the type.
15472
15960
  */
15473
- //#endregion
15474
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/language/characterClasses.js
15475
15961
  var require_characterClasses = /* @__PURE__ */ __commonJSMin(((exports) => {
15476
15962
  Object.defineProperty(exports, "__esModule", { value: true });
15477
15963
  exports.isDigit = isDigit;
@@ -15537,8 +16023,6 @@ var require_characterClasses = /* @__PURE__ */ __commonJSMin(((exports) => {
15537
16023
  return isLetter(code) || isDigit(code) || code === 95;
15538
16024
  }
15539
16025
  }));
15540
- //#endregion
15541
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/language/blockString.js
15542
16026
  var require_blockString = /* @__PURE__ */ __commonJSMin(((exports) => {
15543
16027
  Object.defineProperty(exports, "__esModule", { value: true });
15544
16028
  exports.dedentBlockStringLines = dedentBlockStringLines;
@@ -15639,8 +16123,6 @@ var require_blockString = /* @__PURE__ */ __commonJSMin(((exports) => {
15639
16123
  return "\"\"\"" + result + "\"\"\"";
15640
16124
  }
15641
16125
  }));
15642
- //#endregion
15643
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/language/tokenKind.js
15644
16126
  var require_tokenKind = /* @__PURE__ */ __commonJSMin(((exports) => {
15645
16127
  Object.defineProperty(exports, "__esModule", { value: true });
15646
16128
  exports.TokenKind = void 0;
@@ -15685,8 +16167,6 @@ var require_tokenKind = /* @__PURE__ */ __commonJSMin(((exports) => {
15685
16167
  * @deprecated Will be removed in v17. In v17, use `TokenKind` as both the
15686
16168
  * runtime value and the type.
15687
16169
  */
15688
- //#endregion
15689
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/language/lexer.js
15690
16170
  var require_lexer = /* @__PURE__ */ __commonJSMin(((exports) => {
15691
16171
  Object.defineProperty(exports, "__esModule", { value: true });
15692
16172
  exports.Lexer = void 0;
@@ -16256,8 +16736,6 @@ var require_lexer = /* @__PURE__ */ __commonJSMin(((exports) => {
16256
16736
  return createToken(lexer, _tokenKind.TokenKind.NAME, start, position, body.slice(start, position));
16257
16737
  }
16258
16738
  }));
16259
- //#endregion
16260
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/language/schemaCoordinateLexer.js
16261
16739
  var require_schemaCoordinateLexer = /* @__PURE__ */ __commonJSMin(((exports) => {
16262
16740
  Object.defineProperty(exports, "__esModule", { value: true });
16263
16741
  exports.SchemaCoordinateLexer = void 0;
@@ -16349,8 +16827,6 @@ var require_schemaCoordinateLexer = /* @__PURE__ */ __commonJSMin(((exports) =>
16349
16827
  return (0, _lexer.createToken)(lexer, _tokenKind.TokenKind.EOF, bodyLength, bodyLength);
16350
16828
  }
16351
16829
  }));
16352
- //#endregion
16353
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/jsutils/inspect.js
16354
16830
  var require_inspect = /* @__PURE__ */ __commonJSMin(((exports) => {
16355
16831
  Object.defineProperty(exports, "__esModule", { value: true });
16356
16832
  exports.inspect = inspect;
@@ -16411,8 +16887,6 @@ var require_inspect = /* @__PURE__ */ __commonJSMin(((exports) => {
16411
16887
  return tag;
16412
16888
  }
16413
16889
  }));
16414
- //#endregion
16415
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/jsutils/instanceOf.js
16416
16890
  var require_instanceOf = /* @__PURE__ */ __commonJSMin(((exports) => {
16417
16891
  Object.defineProperty(exports, "__esModule", { value: true });
16418
16892
  exports.instanceOf = void 0;
@@ -16443,8 +16917,6 @@ spurious results.`);
16443
16917
  return false;
16444
16918
  };
16445
16919
  }));
16446
- //#endregion
16447
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/language/source.js
16448
16920
  var require_source = /* @__PURE__ */ __commonJSMin(((exports) => {
16449
16921
  Object.defineProperty(exports, "__esModule", { value: true });
16450
16922
  exports.Source = void 0;
@@ -16513,8 +16985,6 @@ var require_source = /* @__PURE__ */ __commonJSMin(((exports) => {
16513
16985
  return (0, _instanceOf.instanceOf)(source, Source);
16514
16986
  }
16515
16987
  }));
16516
- //#endregion
16517
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/language/parser.js
16518
16988
  var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
16519
16989
  Object.defineProperty(exports, "__esModule", { value: true });
16520
16990
  exports.Parser = void 0;
@@ -17982,8 +18452,6 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
17982
18452
  return (0, _lexer.isPunctuatorTokenKind)(kind) ? `"${kind}"` : kind;
17983
18453
  }
17984
18454
  }));
17985
- //#endregion
17986
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/jsutils/didYouMean.js
17987
18455
  var require_didYouMean = /* @__PURE__ */ __commonJSMin(((exports) => {
17988
18456
  Object.defineProperty(exports, "__esModule", { value: true });
17989
18457
  exports.didYouMean = didYouMean;
@@ -18009,8 +18477,6 @@ var require_didYouMean = /* @__PURE__ */ __commonJSMin(((exports) => {
18009
18477
  return message + selected.join(", ") + ", or " + lastItem + "?";
18010
18478
  }
18011
18479
  }));
18012
- //#endregion
18013
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/jsutils/identityFunc.js
18014
18480
  var require_identityFunc = /* @__PURE__ */ __commonJSMin(((exports) => {
18015
18481
  Object.defineProperty(exports, "__esModule", { value: true });
18016
18482
  exports.identityFunc = identityFunc;
@@ -18023,8 +18489,6 @@ var require_identityFunc = /* @__PURE__ */ __commonJSMin(((exports) => {
18023
18489
  return x;
18024
18490
  }
18025
18491
  }));
18026
- //#endregion
18027
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/jsutils/keyMap.js
18028
18492
  var require_keyMap = /* @__PURE__ */ __commonJSMin(((exports) => {
18029
18493
  Object.defineProperty(exports, "__esModule", { value: true });
18030
18494
  exports.keyMap = keyMap;
@@ -18054,8 +18518,6 @@ var require_keyMap = /* @__PURE__ */ __commonJSMin(((exports) => {
18054
18518
  return result;
18055
18519
  }
18056
18520
  }));
18057
- //#endregion
18058
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/jsutils/keyValMap.js
18059
18521
  var require_keyValMap = /* @__PURE__ */ __commonJSMin(((exports) => {
18060
18522
  Object.defineProperty(exports, "__esModule", { value: true });
18061
18523
  exports.keyValMap = keyValMap;
@@ -18085,8 +18547,6 @@ var require_keyValMap = /* @__PURE__ */ __commonJSMin(((exports) => {
18085
18547
  return result;
18086
18548
  }
18087
18549
  }));
18088
- //#endregion
18089
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/jsutils/mapValue.js
18090
18550
  var require_mapValue = /* @__PURE__ */ __commonJSMin(((exports) => {
18091
18551
  Object.defineProperty(exports, "__esModule", { value: true });
18092
18552
  exports.mapValue = mapValue;
@@ -18102,8 +18562,6 @@ var require_mapValue = /* @__PURE__ */ __commonJSMin(((exports) => {
18102
18562
  return result;
18103
18563
  }
18104
18564
  }));
18105
- //#endregion
18106
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/jsutils/naturalCompare.js
18107
18565
  var require_naturalCompare = /* @__PURE__ */ __commonJSMin(((exports) => {
18108
18566
  Object.defineProperty(exports, "__esModule", { value: true });
18109
18567
  exports.naturalCompare = naturalCompare;
@@ -18152,8 +18610,6 @@ var require_naturalCompare = /* @__PURE__ */ __commonJSMin(((exports) => {
18152
18610
  return !isNaN(code) && DIGIT_0 <= code && code <= DIGIT_9;
18153
18611
  }
18154
18612
  }));
18155
- //#endregion
18156
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/jsutils/suggestionList.js
18157
18613
  var require_suggestionList = /* @__PURE__ */ __commonJSMin(((exports) => {
18158
18614
  Object.defineProperty(exports, "__esModule", { value: true });
18159
18615
  exports.suggestionList = suggestionList;
@@ -18247,8 +18703,6 @@ var require_suggestionList = /* @__PURE__ */ __commonJSMin(((exports) => {
18247
18703
  return array;
18248
18704
  }
18249
18705
  }));
18250
- //#endregion
18251
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/jsutils/toObjMap.js
18252
18706
  var require_toObjMap = /* @__PURE__ */ __commonJSMin(((exports) => {
18253
18707
  Object.defineProperty(exports, "__esModule", { value: true });
18254
18708
  exports.toObjMap = toObjMap;
@@ -18261,8 +18715,6 @@ var require_toObjMap = /* @__PURE__ */ __commonJSMin(((exports) => {
18261
18715
  return map;
18262
18716
  }
18263
18717
  }));
18264
- //#endregion
18265
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/language/printString.js
18266
18718
  var require_printString = /* @__PURE__ */ __commonJSMin(((exports) => {
18267
18719
  Object.defineProperty(exports, "__esModule", { value: true });
18268
18720
  exports.printString = printString;
@@ -18443,8 +18895,6 @@ var require_printString = /* @__PURE__ */ __commonJSMin(((exports) => {
18443
18895
  "\\u009F"
18444
18896
  ];
18445
18897
  }));
18446
- //#endregion
18447
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/language/visitor.js
18448
18898
  var require_visitor = /* @__PURE__ */ __commonJSMin(((exports) => {
18449
18899
  Object.defineProperty(exports, "__esModule", { value: true });
18450
18900
  exports.BREAK = void 0;
@@ -18767,8 +19217,6 @@ var require_visitor = /* @__PURE__ */ __commonJSMin(((exports) => {
18767
19217
  return isLeaving ? leave : enter;
18768
19218
  }
18769
19219
  }));
18770
- //#endregion
18771
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/language/printer.js
18772
19220
  var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
18773
19221
  Object.defineProperty(exports, "__esModule", { value: true });
18774
19222
  exports.print = print;
@@ -18985,8 +19433,6 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
18985
19433
  return (_maybeArray$some = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.some((str) => str.includes("\n"))) !== null && _maybeArray$some !== void 0 ? _maybeArray$some : false;
18986
19434
  }
18987
19435
  }));
18988
- //#endregion
18989
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/utilities/valueFromASTUntyped.js
18990
19436
  var require_valueFromASTUntyped = /* @__PURE__ */ __commonJSMin(((exports) => {
18991
19437
  Object.defineProperty(exports, "__esModule", { value: true });
18992
19438
  exports.valueFromASTUntyped = valueFromASTUntyped;
@@ -19035,8 +19481,6 @@ var require_valueFromASTUntyped = /* @__PURE__ */ __commonJSMin(((exports) => {
19035
19481
  }
19036
19482
  }
19037
19483
  }));
19038
- //#endregion
19039
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/type/assertName.js
19040
19484
  var require_assertName = /* @__PURE__ */ __commonJSMin(((exports) => {
19041
19485
  Object.defineProperty(exports, "__esModule", { value: true });
19042
19486
  exports.assertEnumValueName = assertEnumValueName;
@@ -19082,8 +19526,6 @@ var require_assertName = /* @__PURE__ */ __commonJSMin(((exports) => {
19082
19526
  return assertName(name);
19083
19527
  }
19084
19528
  }));
19085
- //#endregion
19086
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/type/definition.js
19087
19529
  var require_definition = /* @__PURE__ */ __commonJSMin(((exports) => {
19088
19530
  Object.defineProperty(exports, "__esModule", { value: true });
19089
19531
  exports.GraphQLUnionType = exports.GraphQLScalarType = exports.GraphQLObjectType = exports.GraphQLNonNull = exports.GraphQLList = exports.GraphQLInterfaceType = exports.GraphQLInputObjectType = exports.GraphQLEnumType = void 0;
@@ -22063,8 +22505,6 @@ var require_definition = /* @__PURE__ */ __commonJSMin(((exports) => {
22063
22505
  }
22064
22506
  }));
22065
22507
  /** A map of input field names to resolved input field definitions. */
22066
- //#endregion
22067
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/utilities/typeComparators.js
22068
22508
  var require_typeComparators = /* @__PURE__ */ __commonJSMin(((exports) => {
22069
22509
  Object.defineProperty(exports, "__esModule", { value: true });
22070
22510
  exports.doTypesOverlap = doTypesOverlap;
@@ -22201,8 +22641,6 @@ var require_typeComparators = /* @__PURE__ */ __commonJSMin(((exports) => {
22201
22641
  return false;
22202
22642
  }
22203
22643
  }));
22204
- //#endregion
22205
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/type/scalars.js
22206
22644
  var require_scalars = /* @__PURE__ */ __commonJSMin(((exports) => {
22207
22645
  Object.defineProperty(exports, "__esModule", { value: true });
22208
22646
  exports.GraphQLString = exports.GraphQLInt = exports.GraphQLID = exports.GraphQLFloat = exports.GraphQLBoolean = exports.GRAPHQL_MIN_INT = exports.GRAPHQL_MAX_INT = void 0;
@@ -22380,8 +22818,6 @@ var require_scalars = /* @__PURE__ */ __commonJSMin(((exports) => {
22380
22818
  return outputValue;
22381
22819
  }
22382
22820
  }));
22383
- //#endregion
22384
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/type/directives.js
22385
22821
  var require_directives = /* @__PURE__ */ __commonJSMin(((exports) => {
22386
22822
  Object.defineProperty(exports, "__esModule", { value: true });
22387
22823
  exports.GraphQLSpecifiedByDirective = exports.GraphQLSkipDirective = exports.GraphQLOneOfDirective = exports.GraphQLIncludeDirective = exports.GraphQLDirective = exports.GraphQLDeprecatedDirective = exports.DEFAULT_DEPRECATION_REASON = void 0;
@@ -22724,8 +23160,6 @@ var require_directives = /* @__PURE__ */ __commonJSMin(((exports) => {
22724
23160
  return specifiedDirectives.some(({ name }) => name === directive.name);
22725
23161
  }
22726
23162
  }));
22727
- //#endregion
22728
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/jsutils/isIterableObject.js
22729
23163
  var require_isIterableObject = /* @__PURE__ */ __commonJSMin(((exports) => {
22730
23164
  Object.defineProperty(exports, "__esModule", { value: true });
22731
23165
  exports.isIterableObject = isIterableObject;
@@ -22751,8 +23185,6 @@ var require_isIterableObject = /* @__PURE__ */ __commonJSMin(((exports) => {
22751
23185
  return typeof maybeIterable === "object" && typeof (maybeIterable === null || maybeIterable === void 0 ? void 0 : maybeIterable[Symbol.iterator]) === "function";
22752
23186
  }
22753
23187
  }));
22754
- //#endregion
22755
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/utilities/astFromValue.js
22756
23188
  var require_astFromValue = /* @__PURE__ */ __commonJSMin(((exports) => {
22757
23189
  Object.defineProperty(exports, "__esModule", { value: true });
22758
23190
  exports.astFromValue = astFromValue;
@@ -22901,8 +23333,6 @@ var require_astFromValue = /* @__PURE__ */ __commonJSMin(((exports) => {
22901
23333
  */
22902
23334
  const integerStringRegExp = /^-?(?:0|[1-9][0-9]*)$/;
22903
23335
  }));
22904
- //#endregion
22905
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/type/introspection.js
22906
23336
  var require_introspection = /* @__PURE__ */ __commonJSMin(((exports) => {
22907
23337
  Object.defineProperty(exports, "__esModule", { value: true });
22908
23338
  exports.introspectionTypes = exports.__TypeKind = exports.__Type = exports.__Schema = exports.__InputValue = exports.__Field = exports.__EnumValue = exports.__DirectiveLocation = exports.__Directive = exports.TypeNameMetaFieldDef = exports.TypeMetaFieldDef = exports.TypeKind = exports.SchemaMetaFieldDef = void 0;
@@ -23411,8 +23841,6 @@ var require_introspection = /* @__PURE__ */ __commonJSMin(((exports) => {
23411
23841
  return introspectionTypes.some(({ name }) => type.name === name);
23412
23842
  }
23413
23843
  }));
23414
- //#endregion
23415
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/type/schema.js
23416
23844
  var require_schema = /* @__PURE__ */ __commonJSMin(((exports) => {
23417
23845
  Object.defineProperty(exports, "__esModule", { value: true });
23418
23846
  exports.GraphQLSchema = void 0;
@@ -24109,8 +24537,6 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports) => {
24109
24537
  return typeSet;
24110
24538
  }
24111
24539
  }));
24112
- //#endregion
24113
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/type/validate.js
24114
24540
  var require_validate$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
24115
24541
  Object.defineProperty(exports, "__esModule", { value: true });
24116
24542
  exports.assertValidSchema = assertValidSchema;
@@ -24430,8 +24856,6 @@ var require_validate$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
24430
24856
  return definitionNode === null || definitionNode === void 0 ? void 0 : (_definitionNode$direc = definitionNode.directives) === null || _definitionNode$direc === void 0 ? void 0 : _definitionNode$direc.find((node) => node.name.value === _directives.GraphQLDeprecatedDirective.name);
24431
24857
  }
24432
24858
  }));
24433
- //#endregion
24434
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/utilities/typeFromAST.js
24435
24859
  var require_typeFromAST = /* @__PURE__ */ __commonJSMin(((exports) => {
24436
24860
  Object.defineProperty(exports, "__esModule", { value: true });
24437
24861
  exports.typeFromAST = typeFromAST;
@@ -24453,8 +24877,6 @@ var require_typeFromAST = /* @__PURE__ */ __commonJSMin(((exports) => {
24453
24877
  }
24454
24878
  }
24455
24879
  }));
24456
- //#endregion
24457
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/utilities/TypeInfo.js
24458
24880
  var require_TypeInfo = /* @__PURE__ */ __commonJSMin(((exports) => {
24459
24881
  Object.defineProperty(exports, "__esModule", { value: true });
24460
24882
  exports.TypeInfo = void 0;
@@ -25119,8 +25541,6 @@ var require_TypeInfo = /* @__PURE__ */ __commonJSMin(((exports) => {
25119
25541
  };
25120
25542
  }
25121
25543
  }));
25122
- //#endregion
25123
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/language/predicates.js
25124
25544
  var require_predicates = /* @__PURE__ */ __commonJSMin(((exports) => {
25125
25545
  Object.defineProperty(exports, "__esModule", { value: true });
25126
25546
  exports.isConstValueNode = isConstValueNode;
@@ -25338,8 +25758,6 @@ var require_predicates = /* @__PURE__ */ __commonJSMin(((exports) => {
25338
25758
  return node.kind === _kinds.Kind.TYPE_COORDINATE || node.kind === _kinds.Kind.MEMBER_COORDINATE || node.kind === _kinds.Kind.ARGUMENT_COORDINATE || node.kind === _kinds.Kind.DIRECTIVE_COORDINATE || node.kind === _kinds.Kind.DIRECTIVE_ARGUMENT_COORDINATE;
25339
25759
  }
25340
25760
  }));
25341
- //#endregion
25342
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.js
25343
25761
  var require_ExecutableDefinitionsRule = /* @__PURE__ */ __commonJSMin(((exports) => {
25344
25762
  Object.defineProperty(exports, "__esModule", { value: true });
25345
25763
  exports.ExecutableDefinitionsRule = ExecutableDefinitionsRule;
@@ -25392,8 +25810,6 @@ var require_ExecutableDefinitionsRule = /* @__PURE__ */ __commonJSMin(((exports)
25392
25810
  } };
25393
25811
  }
25394
25812
  }));
25395
- //#endregion
25396
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.js
25397
25813
  var require_FieldsOnCorrectTypeRule = /* @__PURE__ */ __commonJSMin(((exports) => {
25398
25814
  Object.defineProperty(exports, "__esModule", { value: true });
25399
25815
  exports.FieldsOnCorrectTypeRule = FieldsOnCorrectTypeRule;
@@ -25496,8 +25912,6 @@ var require_FieldsOnCorrectTypeRule = /* @__PURE__ */ __commonJSMin(((exports) =
25496
25912
  return [];
25497
25913
  }
25498
25914
  }));
25499
- //#endregion
25500
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.js
25501
25915
  var require_FragmentsOnCompositeTypesRule = /* @__PURE__ */ __commonJSMin(((exports) => {
25502
25916
  Object.defineProperty(exports, "__esModule", { value: true });
25503
25917
  exports.FragmentsOnCompositeTypesRule = FragmentsOnCompositeTypesRule;
@@ -25564,8 +25978,6 @@ var require_FragmentsOnCompositeTypesRule = /* @__PURE__ */ __commonJSMin(((expo
25564
25978
  };
25565
25979
  }
25566
25980
  }));
25567
- //#endregion
25568
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/KnownArgumentNamesRule.js
25569
25981
  var require_KnownArgumentNamesRule = /* @__PURE__ */ __commonJSMin(((exports) => {
25570
25982
  Object.defineProperty(exports, "__esModule", { value: true });
25571
25983
  exports.KnownArgumentNamesOnDirectivesRule = KnownArgumentNamesOnDirectivesRule;
@@ -25655,8 +26067,6 @@ var require_KnownArgumentNamesRule = /* @__PURE__ */ __commonJSMin(((exports) =>
25655
26067
  } };
25656
26068
  }
25657
26069
  }));
25658
- //#endregion
25659
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/KnownDirectivesRule.js
25660
26070
  var require_KnownDirectivesRule = /* @__PURE__ */ __commonJSMin(((exports) => {
25661
26071
  Object.defineProperty(exports, "__esModule", { value: true });
25662
26072
  exports.KnownDirectivesRule = KnownDirectivesRule;
@@ -25766,8 +26176,6 @@ var require_KnownDirectivesRule = /* @__PURE__ */ __commonJSMin(((exports) => {
25766
26176
  }
25767
26177
  }
25768
26178
  }));
25769
- //#endregion
25770
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/KnownFragmentNamesRule.js
25771
26179
  var require_KnownFragmentNamesRule = /* @__PURE__ */ __commonJSMin(((exports) => {
25772
26180
  Object.defineProperty(exports, "__esModule", { value: true });
25773
26181
  exports.KnownFragmentNamesRule = KnownFragmentNamesRule;
@@ -25815,8 +26223,6 @@ var require_KnownFragmentNamesRule = /* @__PURE__ */ __commonJSMin(((exports) =>
25815
26223
  } };
25816
26224
  }
25817
26225
  }));
25818
- //#endregion
25819
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/KnownTypeNamesRule.js
25820
26226
  var require_KnownTypeNamesRule = /* @__PURE__ */ __commonJSMin(((exports) => {
25821
26227
  Object.defineProperty(exports, "__esModule", { value: true });
25822
26228
  exports.KnownTypeNamesRule = KnownTypeNamesRule;
@@ -25885,8 +26291,6 @@ var require_KnownTypeNamesRule = /* @__PURE__ */ __commonJSMin(((exports) => {
25885
26291
  return "kind" in value && ((0, _predicates.isTypeSystemDefinitionNode)(value) || (0, _predicates.isTypeSystemExtensionNode)(value));
25886
26292
  }
25887
26293
  }));
25888
- //#endregion
25889
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.js
25890
26294
  var require_LoneAnonymousOperationRule = /* @__PURE__ */ __commonJSMin(((exports) => {
25891
26295
  Object.defineProperty(exports, "__esModule", { value: true });
25892
26296
  exports.LoneAnonymousOperationRule = LoneAnonymousOperationRule;
@@ -25940,8 +26344,6 @@ var require_LoneAnonymousOperationRule = /* @__PURE__ */ __commonJSMin(((exports
25940
26344
  };
25941
26345
  }
25942
26346
  }));
25943
- //#endregion
25944
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.js
25945
26347
  var require_LoneSchemaDefinitionRule = /* @__PURE__ */ __commonJSMin(((exports) => {
25946
26348
  Object.defineProperty(exports, "__esModule", { value: true });
25947
26349
  exports.LoneSchemaDefinitionRule = LoneSchemaDefinitionRule;
@@ -25987,8 +26389,6 @@ var require_LoneSchemaDefinitionRule = /* @__PURE__ */ __commonJSMin(((exports)
25987
26389
  } };
25988
26390
  }
25989
26391
  }));
25990
- //#endregion
25991
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.js
25992
26392
  var require_MaxIntrospectionDepthRule = /* @__PURE__ */ __commonJSMin(((exports) => {
25993
26393
  Object.defineProperty(exports, "__esModule", { value: true });
25994
26394
  exports.MaxIntrospectionDepthRule = MaxIntrospectionDepthRule;
@@ -26065,8 +26465,6 @@ var require_MaxIntrospectionDepthRule = /* @__PURE__ */ __commonJSMin(((exports)
26065
26465
  } };
26066
26466
  }
26067
26467
  }));
26068
- //#endregion
26069
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/NoFragmentCyclesRule.js
26070
26468
  var require_NoFragmentCyclesRule = /* @__PURE__ */ __commonJSMin(((exports) => {
26071
26469
  Object.defineProperty(exports, "__esModule", { value: true });
26072
26470
  exports.NoFragmentCyclesRule = NoFragmentCyclesRule;
@@ -26143,8 +26541,6 @@ var require_NoFragmentCyclesRule = /* @__PURE__ */ __commonJSMin(((exports) => {
26143
26541
  }
26144
26542
  }
26145
26543
  }));
26146
- //#endregion
26147
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.js
26148
26544
  var require_NoUndefinedVariablesRule = /* @__PURE__ */ __commonJSMin(((exports) => {
26149
26545
  Object.defineProperty(exports, "__esModule", { value: true });
26150
26546
  exports.NoUndefinedVariablesRule = NoUndefinedVariablesRule;
@@ -26206,8 +26602,6 @@ var require_NoUndefinedVariablesRule = /* @__PURE__ */ __commonJSMin(((exports)
26206
26602
  };
26207
26603
  }
26208
26604
  }));
26209
- //#endregion
26210
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.js
26211
26605
  var require_NoUnusedFragmentsRule = /* @__PURE__ */ __commonJSMin(((exports) => {
26212
26606
  Object.defineProperty(exports, "__esModule", { value: true });
26213
26607
  exports.NoUnusedFragmentsRule = NoUnusedFragmentsRule;
@@ -26271,8 +26665,6 @@ var require_NoUnusedFragmentsRule = /* @__PURE__ */ __commonJSMin(((exports) =>
26271
26665
  };
26272
26666
  }
26273
26667
  }));
26274
- //#endregion
26275
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/NoUnusedVariablesRule.js
26276
26668
  var require_NoUnusedVariablesRule = /* @__PURE__ */ __commonJSMin(((exports) => {
26277
26669
  Object.defineProperty(exports, "__esModule", { value: true });
26278
26670
  exports.NoUnusedVariablesRule = NoUnusedVariablesRule;
@@ -26337,8 +26729,6 @@ var require_NoUnusedVariablesRule = /* @__PURE__ */ __commonJSMin(((exports) =>
26337
26729
  };
26338
26730
  }
26339
26731
  }));
26340
- //#endregion
26341
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/utilities/sortValueNode.js
26342
26732
  var require_sortValueNode = /* @__PURE__ */ __commonJSMin(((exports) => {
26343
26733
  Object.defineProperty(exports, "__esModule", { value: true });
26344
26734
  exports.sortValueNode = sortValueNode;
@@ -26377,8 +26767,6 @@ var require_sortValueNode = /* @__PURE__ */ __commonJSMin(((exports) => {
26377
26767
  })).sort((fieldA, fieldB) => (0, _naturalCompare.naturalCompare)(fieldA.name.value, fieldB.name.value));
26378
26768
  }
26379
26769
  }));
26380
- //#endregion
26381
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.js
26382
26770
  var require_OverlappingFieldsCanBeMergedRule = /* @__PURE__ */ __commonJSMin(((exports) => {
26383
26771
  Object.defineProperty(exports, "__esModule", { value: true });
26384
26772
  exports.OverlappingFieldsCanBeMergedRule = OverlappingFieldsCanBeMergedRule;
@@ -26712,8 +27100,6 @@ var require_OverlappingFieldsCanBeMergedRule = /* @__PURE__ */ __commonJSMin(((e
26712
27100
  }
26713
27101
  };
26714
27102
  }));
26715
- //#endregion
26716
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.js
26717
27103
  var require_PossibleFragmentSpreadsRule = /* @__PURE__ */ __commonJSMin(((exports) => {
26718
27104
  Object.defineProperty(exports, "__esModule", { value: true });
26719
27105
  exports.PossibleFragmentSpreadsRule = PossibleFragmentSpreadsRule;
@@ -26796,8 +27182,6 @@ var require_PossibleFragmentSpreadsRule = /* @__PURE__ */ __commonJSMin(((export
26796
27182
  }
26797
27183
  }
26798
27184
  }));
26799
- //#endregion
26800
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.js
26801
27185
  var require_PossibleTypeExtensionsRule = /* @__PURE__ */ __commonJSMin(((exports) => {
26802
27186
  Object.defineProperty(exports, "__esModule", { value: true });
26803
27187
  exports.PossibleTypeExtensionsRule = PossibleTypeExtensionsRule;
@@ -26900,8 +27284,6 @@ var require_PossibleTypeExtensionsRule = /* @__PURE__ */ __commonJSMin(((exports
26900
27284
  }
26901
27285
  }
26902
27286
  }));
26903
- //#endregion
26904
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.js
26905
27287
  var require_ProvidedRequiredArgumentsRule = /* @__PURE__ */ __commonJSMin(((exports) => {
26906
27288
  Object.defineProperty(exports, "__esModule", { value: true });
26907
27289
  exports.ProvidedRequiredArgumentsOnDirectivesRule = ProvidedRequiredArgumentsOnDirectivesRule;
@@ -26998,8 +27380,6 @@ var require_ProvidedRequiredArgumentsRule = /* @__PURE__ */ __commonJSMin(((expo
26998
27380
  return arg.type.kind === _kinds.Kind.NON_NULL_TYPE && arg.defaultValue == null;
26999
27381
  }
27000
27382
  }));
27001
- //#endregion
27002
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/ScalarLeafsRule.js
27003
27383
  var require_ScalarLeafsRule = /* @__PURE__ */ __commonJSMin(((exports) => {
27004
27384
  Object.defineProperty(exports, "__esModule", { value: true });
27005
27385
  exports.ScalarLeafsRule = ScalarLeafsRule;
@@ -27064,8 +27444,6 @@ var require_ScalarLeafsRule = /* @__PURE__ */ __commonJSMin(((exports) => {
27064
27444
  } };
27065
27445
  }
27066
27446
  }));
27067
- //#endregion
27068
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/jsutils/printPathArray.js
27069
27447
  var require_printPathArray = /* @__PURE__ */ __commonJSMin(((exports) => {
27070
27448
  Object.defineProperty(exports, "__esModule", { value: true });
27071
27449
  exports.printPathArray = printPathArray;
@@ -27078,8 +27456,6 @@ var require_printPathArray = /* @__PURE__ */ __commonJSMin(((exports) => {
27078
27456
  return path.map((key) => typeof key === "number" ? "[" + key.toString() + "]" : "." + key).join("");
27079
27457
  }
27080
27458
  }));
27081
- //#endregion
27082
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/jsutils/Path.js
27083
27459
  var require_Path = /* @__PURE__ */ __commonJSMin(((exports) => {
27084
27460
  Object.defineProperty(exports, "__esModule", { value: true });
27085
27461
  exports.addPath = addPath;
@@ -27134,8 +27510,6 @@ var require_Path = /* @__PURE__ */ __commonJSMin(((exports) => {
27134
27510
  return flattened.reverse();
27135
27511
  }
27136
27512
  }));
27137
- //#endregion
27138
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/utilities/coerceInputValue.js
27139
27513
  var require_coerceInputValue = /* @__PURE__ */ __commonJSMin(((exports) => {
27140
27514
  Object.defineProperty(exports, "__esModule", { value: true });
27141
27515
  exports.coerceInputValue = coerceInputValue;
@@ -27269,8 +27643,6 @@ var require_coerceInputValue = /* @__PURE__ */ __commonJSMin(((exports) => {
27269
27643
  (0, _invariant.invariant)(false, "Unexpected input type: " + (0, _inspect.inspect)(type));
27270
27644
  }
27271
27645
  }));
27272
- //#endregion
27273
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/utilities/valueFromAST.js
27274
27646
  var require_valueFromAST = /* @__PURE__ */ __commonJSMin(((exports) => {
27275
27647
  Object.defineProperty(exports, "__esModule", { value: true });
27276
27648
  exports.valueFromAST = valueFromAST;
@@ -27411,8 +27783,6 @@ var require_valueFromAST = /* @__PURE__ */ __commonJSMin(((exports) => {
27411
27783
  return Object.prototype.hasOwnProperty.call(obj, prop);
27412
27784
  }
27413
27785
  }));
27414
- //#endregion
27415
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/execution/values.js
27416
27786
  var require_values = /* @__PURE__ */ __commonJSMin(((exports) => {
27417
27787
  Object.defineProperty(exports, "__esModule", { value: true });
27418
27788
  exports.getArgumentValues = getArgumentValues;
@@ -27690,8 +28060,6 @@ var require_values = /* @__PURE__ */ __commonJSMin(((exports) => {
27690
28060
  return Object.prototype.hasOwnProperty.call(obj, prop);
27691
28061
  }
27692
28062
  }));
27693
- //#endregion
27694
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/execution/collectFields.js
27695
28063
  var require_collectFields = /* @__PURE__ */ __commonJSMin(((exports) => {
27696
28064
  Object.defineProperty(exports, "__esModule", { value: true });
27697
28065
  exports.collectFields = collectFields;
@@ -27791,8 +28159,6 @@ var require_collectFields = /* @__PURE__ */ __commonJSMin(((exports) => {
27791
28159
  return node.alias ? node.alias.value : node.name.value;
27792
28160
  }
27793
28161
  }));
27794
- //#endregion
27795
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.js
27796
28162
  var require_SingleFieldSubscriptionsRule = /* @__PURE__ */ __commonJSMin(((exports) => {
27797
28163
  Object.defineProperty(exports, "__esModule", { value: true });
27798
28164
  exports.SingleFieldSubscriptionsRule = SingleFieldSubscriptionsRule;
@@ -27862,8 +28228,6 @@ var require_SingleFieldSubscriptionsRule = /* @__PURE__ */ __commonJSMin(((expor
27862
28228
  } };
27863
28229
  }
27864
28230
  }));
27865
- //#endregion
27866
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/jsutils/groupBy.js
27867
28231
  var require_groupBy = /* @__PURE__ */ __commonJSMin(((exports) => {
27868
28232
  Object.defineProperty(exports, "__esModule", { value: true });
27869
28233
  exports.groupBy = groupBy;
@@ -27883,8 +28247,6 @@ var require_groupBy = /* @__PURE__ */ __commonJSMin(((exports) => {
27883
28247
  return result;
27884
28248
  }
27885
28249
  }));
27886
- //#endregion
27887
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.js
27888
28250
  var require_UniqueArgumentDefinitionNamesRule = /* @__PURE__ */ __commonJSMin(((exports) => {
27889
28251
  Object.defineProperty(exports, "__esModule", { value: true });
27890
28252
  exports.UniqueArgumentDefinitionNamesRule = UniqueArgumentDefinitionNamesRule;
@@ -27951,8 +28313,6 @@ var require_UniqueArgumentDefinitionNamesRule = /* @__PURE__ */ __commonJSMin(((
27951
28313
  }
27952
28314
  }
27953
28315
  }));
27954
- //#endregion
27955
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.js
27956
28316
  var require_UniqueArgumentNamesRule = /* @__PURE__ */ __commonJSMin(((exports) => {
27957
28317
  Object.defineProperty(exports, "__esModule", { value: true });
27958
28318
  exports.UniqueArgumentNamesRule = UniqueArgumentNamesRule;
@@ -28008,8 +28368,6 @@ var require_UniqueArgumentNamesRule = /* @__PURE__ */ __commonJSMin(((exports) =
28008
28368
  }
28009
28369
  }
28010
28370
  }));
28011
- //#endregion
28012
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.js
28013
28371
  var require_UniqueDirectiveNamesRule = /* @__PURE__ */ __commonJSMin(((exports) => {
28014
28372
  Object.defineProperty(exports, "__esModule", { value: true });
28015
28373
  exports.UniqueDirectiveNamesRule = UniqueDirectiveNamesRule;
@@ -28055,8 +28413,6 @@ var require_UniqueDirectiveNamesRule = /* @__PURE__ */ __commonJSMin(((exports)
28055
28413
  } };
28056
28414
  }
28057
28415
  }));
28058
- //#endregion
28059
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.js
28060
28416
  var require_UniqueDirectivesPerLocationRule = /* @__PURE__ */ __commonJSMin(((exports) => {
28061
28417
  Object.defineProperty(exports, "__esModule", { value: true });
28062
28418
  exports.UniqueDirectivesPerLocationRule = UniqueDirectivesPerLocationRule;
@@ -28131,8 +28487,6 @@ var require_UniqueDirectivesPerLocationRule = /* @__PURE__ */ __commonJSMin(((ex
28131
28487
  } };
28132
28488
  }
28133
28489
  }));
28134
- //#endregion
28135
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.js
28136
28490
  var require_UniqueEnumValueNamesRule = /* @__PURE__ */ __commonJSMin(((exports) => {
28137
28491
  Object.defineProperty(exports, "__esModule", { value: true });
28138
28492
  exports.UniqueEnumValueNamesRule = UniqueEnumValueNamesRule;
@@ -28190,8 +28544,6 @@ var require_UniqueEnumValueNamesRule = /* @__PURE__ */ __commonJSMin(((exports)
28190
28544
  }
28191
28545
  }
28192
28546
  }));
28193
- //#endregion
28194
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.js
28195
28547
  var require_UniqueFieldDefinitionNamesRule = /* @__PURE__ */ __commonJSMin(((exports) => {
28196
28548
  Object.defineProperty(exports, "__esModule", { value: true });
28197
28549
  exports.UniqueFieldDefinitionNamesRule = UniqueFieldDefinitionNamesRule;
@@ -28256,8 +28608,6 @@ var require_UniqueFieldDefinitionNamesRule = /* @__PURE__ */ __commonJSMin(((exp
28256
28608
  return false;
28257
28609
  }
28258
28610
  }));
28259
- //#endregion
28260
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.js
28261
28611
  var require_UniqueFragmentNamesRule = /* @__PURE__ */ __commonJSMin(((exports) => {
28262
28612
  Object.defineProperty(exports, "__esModule", { value: true });
28263
28613
  exports.UniqueFragmentNamesRule = UniqueFragmentNamesRule;
@@ -28310,8 +28660,6 @@ var require_UniqueFragmentNamesRule = /* @__PURE__ */ __commonJSMin(((exports) =
28310
28660
  };
28311
28661
  }
28312
28662
  }));
28313
- //#endregion
28314
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.js
28315
28663
  var require_UniqueInputFieldNamesRule = /* @__PURE__ */ __commonJSMin(((exports) => {
28316
28664
  Object.defineProperty(exports, "__esModule", { value: true });
28317
28665
  exports.UniqueInputFieldNamesRule = UniqueInputFieldNamesRule;
@@ -28380,8 +28728,6 @@ var require_UniqueInputFieldNamesRule = /* @__PURE__ */ __commonJSMin(((exports)
28380
28728
  };
28381
28729
  }
28382
28730
  }));
28383
- //#endregion
28384
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/UniqueOperationNamesRule.js
28385
28731
  var require_UniqueOperationNamesRule = /* @__PURE__ */ __commonJSMin(((exports) => {
28386
28732
  Object.defineProperty(exports, "__esModule", { value: true });
28387
28733
  exports.UniqueOperationNamesRule = UniqueOperationNamesRule;
@@ -28434,8 +28780,6 @@ var require_UniqueOperationNamesRule = /* @__PURE__ */ __commonJSMin(((exports)
28434
28780
  };
28435
28781
  }
28436
28782
  }));
28437
- //#endregion
28438
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/UniqueOperationTypesRule.js
28439
28783
  var require_UniqueOperationTypesRule = /* @__PURE__ */ __commonJSMin(((exports) => {
28440
28784
  Object.defineProperty(exports, "__esModule", { value: true });
28441
28785
  exports.UniqueOperationTypesRule = UniqueOperationTypesRule;
@@ -28493,8 +28837,6 @@ var require_UniqueOperationTypesRule = /* @__PURE__ */ __commonJSMin(((exports)
28493
28837
  }
28494
28838
  }
28495
28839
  }));
28496
- //#endregion
28497
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/UniqueTypeNamesRule.js
28498
28840
  var require_UniqueTypeNamesRule = /* @__PURE__ */ __commonJSMin(((exports) => {
28499
28841
  Object.defineProperty(exports, "__esModule", { value: true });
28500
28842
  exports.UniqueTypeNamesRule = UniqueTypeNamesRule;
@@ -28548,8 +28890,6 @@ var require_UniqueTypeNamesRule = /* @__PURE__ */ __commonJSMin(((exports) => {
28548
28890
  }
28549
28891
  }
28550
28892
  }));
28551
- //#endregion
28552
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/UniqueVariableNamesRule.js
28553
28893
  var require_UniqueVariableNamesRule = /* @__PURE__ */ __commonJSMin(((exports) => {
28554
28894
  Object.defineProperty(exports, "__esModule", { value: true });
28555
28895
  exports.UniqueVariableNamesRule = UniqueVariableNamesRule;
@@ -28598,8 +28938,6 @@ var require_UniqueVariableNamesRule = /* @__PURE__ */ __commonJSMin(((exports) =
28598
28938
  } };
28599
28939
  }
28600
28940
  }));
28601
- //#endregion
28602
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.js
28603
28941
  var require_ValuesOfCorrectTypeRule = /* @__PURE__ */ __commonJSMin(((exports) => {
28604
28942
  Object.defineProperty(exports, "__esModule", { value: true });
28605
28943
  exports.ValuesOfCorrectTypeRule = ValuesOfCorrectTypeRule;
@@ -28727,8 +29065,6 @@ var require_ValuesOfCorrectTypeRule = /* @__PURE__ */ __commonJSMin(((exports) =
28727
29065
  if (!value || value.kind === _kinds.Kind.NULL) context.reportError(new _GraphQLError.GraphQLError(`Field "${type.name}.${keys[0]}" must be non-null.`, { nodes: [node] }));
28728
29066
  }
28729
29067
  }));
28730
- //#endregion
28731
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.js
28732
29068
  var require_VariablesAreInputTypesRule = /* @__PURE__ */ __commonJSMin(((exports) => {
28733
29069
  Object.defineProperty(exports, "__esModule", { value: true });
28734
29070
  exports.VariablesAreInputTypesRule = VariablesAreInputTypesRule;
@@ -28787,8 +29123,6 @@ var require_VariablesAreInputTypesRule = /* @__PURE__ */ __commonJSMin(((exports
28787
29123
  } };
28788
29124
  }
28789
29125
  }));
28790
- //#endregion
28791
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.js
28792
29126
  var require_VariablesInAllowedPositionRule = /* @__PURE__ */ __commonJSMin(((exports) => {
28793
29127
  Object.defineProperty(exports, "__esModule", { value: true });
28794
29128
  exports.VariablesInAllowedPositionRule = VariablesInAllowedPositionRule;
@@ -28882,8 +29216,6 @@ var require_VariablesInAllowedPositionRule = /* @__PURE__ */ __commonJSMin(((exp
28882
29216
  return (0, _typeComparators.isTypeSubTypeOf)(schema, varType, locationType);
28883
29217
  }
28884
29218
  }));
28885
- //#endregion
28886
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/specifiedRules.js
28887
29219
  var require_specifiedRules = /* @__PURE__ */ __commonJSMin(((exports) => {
28888
29220
  Object.defineProperty(exports, "__esModule", { value: true });
28889
29221
  exports.specifiedSDLRules = exports.specifiedRules = exports.recommendedRules = void 0;
@@ -28983,8 +29315,6 @@ var require_specifiedRules = /* @__PURE__ */ __commonJSMin(((exports) => {
28983
29315
  _ProvidedRequiredArgumentsRule.ProvidedRequiredArgumentsOnDirectivesRule
28984
29316
  ]);
28985
29317
  }));
28986
- //#endregion
28987
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/ValidationContext.js
28988
29318
  var require_ValidationContext = /* @__PURE__ */ __commonJSMin(((exports) => {
28989
29319
  Object.defineProperty(exports, "__esModule", { value: true });
28990
29320
  exports.ValidationContext = exports.SDLValidationContext = exports.ASTValidationContext = void 0;
@@ -29542,8 +29872,6 @@ var require_ValidationContext = /* @__PURE__ */ __commonJSMin(((exports) => {
29542
29872
  /** A function that creates an AST visitor for validating a GraphQL document. */
29543
29873
  exports.ValidationContext = ValidationContext;
29544
29874
  }));
29545
- //#endregion
29546
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/validate.js
29547
29875
  var require_validate = /* @__PURE__ */ __commonJSMin(((exports) => {
29548
29876
  Object.defineProperty(exports, "__esModule", { value: true });
29549
29877
  exports.assertValidSDL = assertValidSDL;
@@ -29687,8 +30015,6 @@ var require_validate = /* @__PURE__ */ __commonJSMin(((exports) => {
29687
30015
  if (errors.length !== 0) throw new Error(errors.map((error) => error.message).join("\n\n"));
29688
30016
  }
29689
30017
  }));
29690
- //#endregion
29691
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/jsutils/memoize3.js
29692
30018
  var require_memoize3 = /* @__PURE__ */ __commonJSMin(((exports) => {
29693
30019
  Object.defineProperty(exports, "__esModule", { value: true });
29694
30020
  exports.memoize3 = memoize3;
@@ -29720,8 +30046,6 @@ var require_memoize3 = /* @__PURE__ */ __commonJSMin(((exports) => {
29720
30046
  };
29721
30047
  }
29722
30048
  }));
29723
- //#endregion
29724
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/jsutils/promiseForObject.js
29725
30049
  var require_promiseForObject = /* @__PURE__ */ __commonJSMin(((exports) => {
29726
30050
  Object.defineProperty(exports, "__esModule", { value: true });
29727
30051
  exports.promiseForObject = promiseForObject;
@@ -29742,8 +30066,6 @@ var require_promiseForObject = /* @__PURE__ */ __commonJSMin(((exports) => {
29742
30066
  });
29743
30067
  }
29744
30068
  }));
29745
- //#endregion
29746
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/jsutils/promiseReduce.js
29747
30069
  var require_promiseReduce = /* @__PURE__ */ __commonJSMin(((exports) => {
29748
30070
  Object.defineProperty(exports, "__esModule", { value: true });
29749
30071
  exports.promiseReduce = promiseReduce;
@@ -29763,8 +30085,6 @@ var require_promiseReduce = /* @__PURE__ */ __commonJSMin(((exports) => {
29763
30085
  return accumulator;
29764
30086
  }
29765
30087
  }));
29766
- //#endregion
29767
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/jsutils/toError.js
29768
30088
  var require_toError = /* @__PURE__ */ __commonJSMin(((exports) => {
29769
30089
  Object.defineProperty(exports, "__esModule", { value: true });
29770
30090
  exports.toError = toError;
@@ -29785,8 +30105,6 @@ var require_toError = /* @__PURE__ */ __commonJSMin(((exports) => {
29785
30105
  }
29786
30106
  };
29787
30107
  }));
29788
- //#endregion
29789
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/error/locatedError.js
29790
30108
  var require_locatedError = /* @__PURE__ */ __commonJSMin(((exports) => {
29791
30109
  Object.defineProperty(exports, "__esModule", { value: true });
29792
30110
  exports.locatedError = locatedError;
@@ -29833,8 +30151,6 @@ var require_locatedError = /* @__PURE__ */ __commonJSMin(((exports) => {
29833
30151
  return Array.isArray(error.path);
29834
30152
  }
29835
30153
  }));
29836
- //#endregion
29837
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/execution/execute.js
29838
30154
  var require_execute = /* @__PURE__ */ __commonJSMin(((exports) => {
29839
30155
  Object.defineProperty(exports, "__esModule", { value: true });
29840
30156
  exports.assertValidExecutionArguments = assertValidExecutionArguments;
@@ -30512,8 +30828,6 @@ var require_execute = /* @__PURE__ */ __commonJSMin(((exports) => {
30512
30828
  return parentType.getFields()[fieldName];
30513
30829
  }
30514
30830
  }));
30515
- //#endregion
30516
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/graphql.js
30517
30831
  var require_graphql$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
30518
30832
  Object.defineProperty(exports, "__esModule", { value: true });
30519
30833
  exports.graphql = graphql;
@@ -30685,8 +30999,6 @@ var require_graphql$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
30685
30999
  });
30686
31000
  }
30687
31001
  }));
30688
- //#endregion
30689
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/type/index.js
30690
31002
  var require_type = /* @__PURE__ */ __commonJSMin(((exports) => {
30691
31003
  Object.defineProperty(exports, "__esModule", { value: true });
30692
31004
  Object.defineProperty(exports, "DEFAULT_DEPRECATION_REASON", {
@@ -31231,8 +31543,6 @@ var require_type = /* @__PURE__ */ __commonJSMin(((exports) => {
31231
31543
  var _validate = require_validate$1();
31232
31544
  var _assertName = require_assertName();
31233
31545
  }));
31234
- //#endregion
31235
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/language/index.js
31236
31546
  var require_language = /* @__PURE__ */ __commonJSMin(((exports) => {
31237
31547
  Object.defineProperty(exports, "__esModule", { value: true });
31238
31548
  Object.defineProperty(exports, "BREAK", {
@@ -31446,8 +31756,6 @@ var require_language = /* @__PURE__ */ __commonJSMin(((exports) => {
31446
31756
  var _predicates = require_predicates();
31447
31757
  var _directiveLocation = require_directiveLocation();
31448
31758
  }));
31449
- //#endregion
31450
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/jsutils/isAsyncIterable.js
31451
31759
  var require_isAsyncIterable = /* @__PURE__ */ __commonJSMin(((exports) => {
31452
31760
  Object.defineProperty(exports, "__esModule", { value: true });
31453
31761
  exports.isAsyncIterable = isAsyncIterable;
@@ -31461,8 +31769,6 @@ var require_isAsyncIterable = /* @__PURE__ */ __commonJSMin(((exports) => {
31461
31769
  return typeof (maybeAsyncIterable === null || maybeAsyncIterable === void 0 ? void 0 : maybeAsyncIterable[Symbol.asyncIterator]) === "function";
31462
31770
  }
31463
31771
  }));
31464
- //#endregion
31465
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/execution/mapAsyncIterator.js
31466
31772
  var require_mapAsyncIterator = /* @__PURE__ */ __commonJSMin(((exports) => {
31467
31773
  Object.defineProperty(exports, "__esModule", { value: true });
31468
31774
  exports.mapAsyncIterator = mapAsyncIterator;
@@ -31509,8 +31815,6 @@ var require_mapAsyncIterator = /* @__PURE__ */ __commonJSMin(((exports) => {
31509
31815
  };
31510
31816
  }
31511
31817
  }));
31512
- //#endregion
31513
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/execution/subscribe.js
31514
31818
  var require_subscribe = /* @__PURE__ */ __commonJSMin(((exports) => {
31515
31819
  Object.defineProperty(exports, "__esModule", { value: true });
31516
31820
  exports.createSourceEventStream = createSourceEventStream;
@@ -31783,8 +32087,6 @@ var require_subscribe = /* @__PURE__ */ __commonJSMin(((exports) => {
31783
32087
  }
31784
32088
  }
31785
32089
  }));
31786
- //#endregion
31787
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/execution/index.js
31788
32090
  var require_execution = /* @__PURE__ */ __commonJSMin(((exports) => {
31789
32091
  Object.defineProperty(exports, "__esModule", { value: true });
31790
32092
  Object.defineProperty(exports, "createSourceEventStream", {
@@ -31852,8 +32154,6 @@ var require_execution = /* @__PURE__ */ __commonJSMin(((exports) => {
31852
32154
  var _subscribe = require_subscribe();
31853
32155
  var _values = require_values();
31854
32156
  }));
31855
- //#endregion
31856
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.js
31857
32157
  var require_NoDeprecatedCustomRule = /* @__PURE__ */ __commonJSMin(((exports) => {
31858
32158
  Object.defineProperty(exports, "__esModule", { value: true });
31859
32159
  exports.NoDeprecatedCustomRule = NoDeprecatedCustomRule;
@@ -31956,8 +32256,6 @@ var require_NoDeprecatedCustomRule = /* @__PURE__ */ __commonJSMin(((exports) =>
31956
32256
  };
31957
32257
  }
31958
32258
  }));
31959
- //#endregion
31960
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js
31961
32259
  var require_NoSchemaIntrospectionCustomRule = /* @__PURE__ */ __commonJSMin(((exports) => {
31962
32260
  Object.defineProperty(exports, "__esModule", { value: true });
31963
32261
  exports.NoSchemaIntrospectionCustomRule = NoSchemaIntrospectionCustomRule;
@@ -32009,8 +32307,6 @@ var require_NoSchemaIntrospectionCustomRule = /* @__PURE__ */ __commonJSMin(((ex
32009
32307
  } };
32010
32308
  }
32011
32309
  }));
32012
- //#endregion
32013
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/validation/index.js
32014
32310
  var require_validation = /* @__PURE__ */ __commonJSMin(((exports) => {
32015
32311
  Object.defineProperty(exports, "__esModule", { value: true });
32016
32312
  Object.defineProperty(exports, "ExecutableDefinitionsRule", {
@@ -32300,8 +32596,6 @@ var require_validation = /* @__PURE__ */ __commonJSMin(((exports) => {
32300
32596
  var _NoDeprecatedCustomRule = require_NoDeprecatedCustomRule();
32301
32597
  var _NoSchemaIntrospectionCustomRule = require_NoSchemaIntrospectionCustomRule();
32302
32598
  }));
32303
- //#endregion
32304
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/error/index.js
32305
32599
  var require_error = /* @__PURE__ */ __commonJSMin(((exports) => {
32306
32600
  Object.defineProperty(exports, "__esModule", { value: true });
32307
32601
  Object.defineProperty(exports, "GraphQLError", {
@@ -32338,8 +32632,6 @@ var require_error = /* @__PURE__ */ __commonJSMin(((exports) => {
32338
32632
  var _syntaxError = require_syntaxError();
32339
32633
  var _locatedError = require_locatedError();
32340
32634
  }));
32341
- //#endregion
32342
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/utilities/getIntrospectionQuery.js
32343
32635
  var require_getIntrospectionQuery = /* @__PURE__ */ __commonJSMin(((exports) => {
32344
32636
  Object.defineProperty(exports, "__esModule", { value: true });
32345
32637
  exports.getIntrospectionQuery = getIntrospectionQuery;
@@ -32493,8 +32785,6 @@ ${indent}}`;
32493
32785
  }
32494
32786
  }));
32495
32787
  /** The result shape returned by a full introspection query. */
32496
- //#endregion
32497
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/utilities/getOperationAST.js
32498
32788
  var require_getOperationAST = /* @__PURE__ */ __commonJSMin(((exports) => {
32499
32789
  Object.defineProperty(exports, "__esModule", { value: true });
32500
32790
  exports.getOperationAST = getOperationAST;
@@ -32531,8 +32821,6 @@ var require_getOperationAST = /* @__PURE__ */ __commonJSMin(((exports) => {
32531
32821
  return operation;
32532
32822
  }
32533
32823
  }));
32534
- //#endregion
32535
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/utilities/getOperationRootType.js
32536
32824
  var require_getOperationRootType = /* @__PURE__ */ __commonJSMin(((exports) => {
32537
32825
  Object.defineProperty(exports, "__esModule", { value: true });
32538
32826
  exports.getOperationRootType = getOperationRootType;
@@ -32578,8 +32866,6 @@ var require_getOperationRootType = /* @__PURE__ */ __commonJSMin(((exports) => {
32578
32866
  throw new _GraphQLError.GraphQLError("Can only have query, mutation and subscription operations.", { nodes: operation });
32579
32867
  }
32580
32868
  }));
32581
- //#endregion
32582
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/utilities/introspectionFromSchema.js
32583
32869
  var require_introspectionFromSchema = /* @__PURE__ */ __commonJSMin(((exports) => {
32584
32870
  Object.defineProperty(exports, "__esModule", { value: true });
32585
32871
  exports.introspectionFromSchema = introspectionFromSchema;
@@ -32669,8 +32955,6 @@ var require_introspectionFromSchema = /* @__PURE__ */ __commonJSMin(((exports) =
32669
32955
  return result.data;
32670
32956
  }
32671
32957
  }));
32672
- //#endregion
32673
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/utilities/buildClientSchema.js
32674
32958
  var require_buildClientSchema = /* @__PURE__ */ __commonJSMin(((exports) => {
32675
32959
  Object.defineProperty(exports, "__esModule", { value: true });
32676
32960
  exports.buildClientSchema = buildClientSchema;
@@ -32895,8 +33179,6 @@ var require_buildClientSchema = /* @__PURE__ */ __commonJSMin(((exports) => {
32895
33179
  }
32896
33180
  }
32897
33181
  }));
32898
- //#endregion
32899
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/utilities/extendSchema.js
32900
33182
  var require_extendSchema = /* @__PURE__ */ __commonJSMin(((exports) => {
32901
33183
  Object.defineProperty(exports, "__esModule", { value: true });
32902
33184
  exports.extendSchema = extendSchema;
@@ -33394,8 +33676,6 @@ var require_extendSchema = /* @__PURE__ */ __commonJSMin(((exports) => {
33394
33676
  return Boolean((0, _values.getDirectiveValues)(_directives.GraphQLOneOfDirective, node));
33395
33677
  }
33396
33678
  }));
33397
- //#endregion
33398
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/utilities/buildASTSchema.js
33399
33679
  var require_buildASTSchema = /* @__PURE__ */ __commonJSMin(((exports) => {
33400
33680
  Object.defineProperty(exports, "__esModule", { value: true });
33401
33681
  exports.buildASTSchema = buildASTSchema;
@@ -33519,8 +33799,6 @@ var require_buildASTSchema = /* @__PURE__ */ __commonJSMin(((exports) => {
33519
33799
  });
33520
33800
  }
33521
33801
  }));
33522
- //#endregion
33523
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/utilities/lexicographicSortSchema.js
33524
33802
  var require_lexicographicSortSchema = /* @__PURE__ */ __commonJSMin(((exports) => {
33525
33803
  Object.defineProperty(exports, "__esModule", { value: true });
33526
33804
  exports.lexicographicSortSchema = lexicographicSortSchema;
@@ -33683,8 +33961,6 @@ var require_lexicographicSortSchema = /* @__PURE__ */ __commonJSMin(((exports) =
33683
33961
  });
33684
33962
  }
33685
33963
  }));
33686
- //#endregion
33687
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/utilities/printSchema.js
33688
33964
  var require_printSchema = /* @__PURE__ */ __commonJSMin(((exports) => {
33689
33965
  Object.defineProperty(exports, "__esModule", { value: true });
33690
33966
  exports.printIntrospectionSchema = printIntrospectionSchema;
@@ -33900,8 +34176,6 @@ var require_printSchema = /* @__PURE__ */ __commonJSMin(((exports) => {
33900
34176
  return (indentation && !firstInBlock ? "\n" + indentation : indentation) + blockString.replace(/\n/g, "\n" + indentation) + "\n";
33901
34177
  }
33902
34178
  }));
33903
- //#endregion
33904
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/utilities/concatAST.js
33905
34179
  var require_concatAST = /* @__PURE__ */ __commonJSMin(((exports) => {
33906
34180
  Object.defineProperty(exports, "__esModule", { value: true });
33907
34181
  exports.concatAST = concatAST;
@@ -33932,8 +34206,6 @@ var require_concatAST = /* @__PURE__ */ __commonJSMin(((exports) => {
33932
34206
  };
33933
34207
  }
33934
34208
  }));
33935
- //#endregion
33936
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/utilities/separateOperations.js
33937
34209
  var require_separateOperations = /* @__PURE__ */ __commonJSMin(((exports) => {
33938
34210
  Object.defineProperty(exports, "__esModule", { value: true });
33939
34211
  exports.separateOperations = separateOperations;
@@ -34014,8 +34286,6 @@ var require_separateOperations = /* @__PURE__ */ __commonJSMin(((exports) => {
34014
34286
  return dependencies;
34015
34287
  }
34016
34288
  }));
34017
- //#endregion
34018
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/utilities/stripIgnoredCharacters.js
34019
34289
  var require_stripIgnoredCharacters = /* @__PURE__ */ __commonJSMin(((exports) => {
34020
34290
  Object.defineProperty(exports, "__esModule", { value: true });
34021
34291
  exports.stripIgnoredCharacters = stripIgnoredCharacters;
@@ -34118,8 +34388,6 @@ var require_stripIgnoredCharacters = /* @__PURE__ */ __commonJSMin(((exports) =>
34118
34388
  return strippedBody;
34119
34389
  }
34120
34390
  }));
34121
- //#endregion
34122
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/utilities/assertValidName.js
34123
34391
  var require_assertValidName = /* @__PURE__ */ __commonJSMin(((exports) => {
34124
34392
  Object.defineProperty(exports, "__esModule", { value: true });
34125
34393
  exports.assertValidName = assertValidName;
@@ -34177,8 +34445,6 @@ var require_assertValidName = /* @__PURE__ */ __commonJSMin(((exports) => {
34177
34445
  }
34178
34446
  }));
34179
34447
  /* c8 ignore stop */
34180
- //#endregion
34181
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/utilities/findBreakingChanges.js
34182
34448
  var require_findBreakingChanges = /* @__PURE__ */ __commonJSMin(((exports) => {
34183
34449
  Object.defineProperty(exports, "__esModule", { value: true });
34184
34450
  exports.DangerousChangeType = exports.BreakingChangeType = void 0;
@@ -34505,8 +34771,6 @@ var require_findBreakingChanges = /* @__PURE__ */ __commonJSMin(((exports) => {
34505
34771
  };
34506
34772
  }
34507
34773
  }));
34508
- //#endregion
34509
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/utilities/resolveSchemaCoordinate.js
34510
34774
  var require_resolveSchemaCoordinate = /* @__PURE__ */ __commonJSMin(((exports) => {
34511
34775
  Object.defineProperty(exports, "__esModule", { value: true });
34512
34776
  exports.resolveASTSchemaCoordinate = resolveASTSchemaCoordinate;
@@ -34701,8 +34965,6 @@ var require_resolveSchemaCoordinate = /* @__PURE__ */ __commonJSMin(((exports) =
34701
34965
  }
34702
34966
  }
34703
34967
  }));
34704
- //#endregion
34705
- //#region ../../node_modules/.pnpm/graphql@16.14.2/node_modules/graphql/utilities/index.js
34706
34968
  var require_utilities = /* @__PURE__ */ __commonJSMin(((exports) => {
34707
34969
  Object.defineProperty(exports, "__esModule", { value: true });
34708
34970
  Object.defineProperty(exports, "BreakingChangeType", {
@@ -34926,8 +35188,6 @@ var require_utilities = /* @__PURE__ */ __commonJSMin(((exports) => {
34926
35188
  var _findBreakingChanges = require_findBreakingChanges();
34927
35189
  var _resolveSchemaCoordinate = require_resolveSchemaCoordinate();
34928
35190
  }));
34929
- //#endregion
34930
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/graphql/client.mjs
34931
35191
  var import_graphql = (/* @__PURE__ */ __commonJSMin(((exports) => {
34932
35192
  Object.defineProperty(exports, "__esModule", { value: true });
34933
35193
  Object.defineProperty(exports, "BREAK", {
@@ -36379,8 +36639,6 @@ var SuiGraphQLClient = class extends BaseClient {
36379
36639
  return this.core.defaultNameServiceName(input);
36380
36640
  }
36381
36641
  };
36382
- //#endregion
36383
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/signature_scheme.mjs
36384
36642
  /**
36385
36643
  * Flag use to disambiguate the signature schemes supported by Sui.
36386
36644
  *
@@ -36422,8 +36680,6 @@ let SignatureScheme = /* @__PURE__ */ function(SignatureScheme$1) {
36422
36680
  SignatureScheme$1[SignatureScheme$1["PASSKEY"] = 6] = "PASSKEY";
36423
36681
  return SignatureScheme$1;
36424
36682
  }({});
36425
- //#endregion
36426
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/signature.mjs
36427
36683
  var UserSignature$Type = class extends import_commonjs$2.MessageType {
36428
36684
  constructor() {
36429
36685
  super("sui.rpc.v2.UserSignature", [
@@ -36987,8 +37243,6 @@ var ValidatorAggregatedSignature$Type = class extends import_commonjs$2.MessageT
36987
37243
  * @generated MessageType for protobuf message sui.rpc.v2.ValidatorAggregatedSignature
36988
37244
  */
36989
37245
  const ValidatorAggregatedSignature = new ValidatorAggregatedSignature$Type();
36990
- //#endregion
36991
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/event.mjs
36992
37246
  var TransactionEvents$Type = class extends import_commonjs$2.MessageType {
36993
37247
  constructor() {
36994
37248
  super("sui.rpc.v2.TransactionEvents", [
@@ -37069,8 +37323,6 @@ var Event$Type = class extends import_commonjs$2.MessageType {
37069
37323
  * @generated MessageType for protobuf message sui.rpc.v2.Event
37070
37324
  */
37071
37325
  const Event = new Event$Type();
37072
- //#endregion
37073
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/executed_transaction.mjs
37074
37326
  var ExecutedTransaction$Type = class extends import_commonjs$2.MessageType {
37075
37327
  constructor() {
37076
37328
  super("sui.rpc.v2.ExecutedTransaction", [
@@ -37085,7 +37337,7 @@ var ExecutedTransaction$Type = class extends import_commonjs$2.MessageType {
37085
37337
  no: 2,
37086
37338
  name: "transaction",
37087
37339
  kind: "message",
37088
- T: () => Transaction
37340
+ T: () => Transaction$1
37089
37341
  },
37090
37342
  {
37091
37343
  no: 3,
@@ -37140,8 +37392,6 @@ var ExecutedTransaction$Type = class extends import_commonjs$2.MessageType {
37140
37392
  * @generated MessageType for protobuf message sui.rpc.v2.ExecutedTransaction
37141
37393
  */
37142
37394
  const ExecutedTransaction = new ExecutedTransaction$Type();
37143
- //#endregion
37144
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/google/protobuf/field_mask.mjs
37145
37395
  var FieldMask$Type = class extends import_commonjs$2.MessageType {
37146
37396
  constructor() {
37147
37397
  super("google.protobuf.FieldMask", [{
@@ -37181,8 +37431,6 @@ var FieldMask$Type = class extends import_commonjs$2.MessageType {
37181
37431
  * @generated MessageType for protobuf message google.protobuf.FieldMask
37182
37432
  */
37183
37433
  const FieldMask = new FieldMask$Type();
37184
- //#endregion
37185
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.11.1/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/reflection-info.js
37186
37434
  var require_reflection_info = /* @__PURE__ */ __commonJSMin(((exports) => {
37187
37435
  Object.defineProperty(exports, "__esModule", { value: true });
37188
37436
  exports.readServiceOption = exports.readMethodOption = exports.readMethodOptions = exports.normalizeMethodInfo = void 0;
@@ -37231,8 +37479,6 @@ var require_reflection_info = /* @__PURE__ */ __commonJSMin(((exports) => {
37231
37479
  }
37232
37480
  exports.readServiceOption = readServiceOption;
37233
37481
  }));
37234
- //#endregion
37235
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.11.1/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/service-type.js
37236
37482
  var require_service_type = /* @__PURE__ */ __commonJSMin(((exports) => {
37237
37483
  Object.defineProperty(exports, "__esModule", { value: true });
37238
37484
  exports.ServiceType = void 0;
@@ -37246,8 +37492,6 @@ var require_service_type = /* @__PURE__ */ __commonJSMin(((exports) => {
37246
37492
  };
37247
37493
  exports.ServiceType = ServiceType;
37248
37494
  }));
37249
- //#endregion
37250
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.11.1/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/rpc-error.js
37251
37495
  var require_rpc_error = /* @__PURE__ */ __commonJSMin(((exports) => {
37252
37496
  Object.defineProperty(exports, "__esModule", { value: true });
37253
37497
  exports.RpcError = void 0;
@@ -37280,8 +37524,6 @@ var require_rpc_error = /* @__PURE__ */ __commonJSMin(((exports) => {
37280
37524
  };
37281
37525
  exports.RpcError = RpcError;
37282
37526
  }));
37283
- //#endregion
37284
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.11.1/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/rpc-options.js
37285
37527
  var require_rpc_options = /* @__PURE__ */ __commonJSMin(((exports) => {
37286
37528
  Object.defineProperty(exports, "__esModule", { value: true });
37287
37529
  exports.mergeRpcOptions = void 0;
@@ -37342,8 +37584,6 @@ var require_rpc_options = /* @__PURE__ */ __commonJSMin(((exports) => {
37342
37584
  else c[k] = v;
37343
37585
  }
37344
37586
  }));
37345
- //#endregion
37346
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.11.1/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/deferred.js
37347
37587
  var require_deferred = /* @__PURE__ */ __commonJSMin(((exports) => {
37348
37588
  Object.defineProperty(exports, "__esModule", { value: true });
37349
37589
  exports.Deferred = exports.DeferredState = void 0;
@@ -37425,8 +37665,6 @@ var require_deferred = /* @__PURE__ */ __commonJSMin(((exports) => {
37425
37665
  };
37426
37666
  exports.Deferred = Deferred;
37427
37667
  }));
37428
- //#endregion
37429
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.11.1/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/rpc-output-stream.js
37430
37668
  var require_rpc_output_stream = /* @__PURE__ */ __commonJSMin(((exports) => {
37431
37669
  Object.defineProperty(exports, "__esModule", { value: true });
37432
37670
  exports.RpcOutputStreamController = void 0;
@@ -37569,8 +37807,6 @@ var require_rpc_output_stream = /* @__PURE__ */ __commonJSMin(((exports) => {
37569
37807
  };
37570
37808
  exports.RpcOutputStreamController = RpcOutputStreamController;
37571
37809
  }));
37572
- //#endregion
37573
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.11.1/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/unary-call.js
37574
37810
  var require_unary_call = /* @__PURE__ */ __commonJSMin(((exports) => {
37575
37811
  var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
37576
37812
  function adopt(value) {
@@ -37644,8 +37880,6 @@ var require_unary_call = /* @__PURE__ */ __commonJSMin(((exports) => {
37644
37880
  };
37645
37881
  exports.UnaryCall = UnaryCall;
37646
37882
  }));
37647
- //#endregion
37648
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.11.1/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/server-streaming-call.js
37649
37883
  var require_server_streaming_call = /* @__PURE__ */ __commonJSMin(((exports) => {
37650
37884
  var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
37651
37885
  function adopt(value) {
@@ -37719,8 +37953,6 @@ var require_server_streaming_call = /* @__PURE__ */ __commonJSMin(((exports) =>
37719
37953
  };
37720
37954
  exports.ServerStreamingCall = ServerStreamingCall;
37721
37955
  }));
37722
- //#endregion
37723
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.11.1/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/client-streaming-call.js
37724
37956
  var require_client_streaming_call = /* @__PURE__ */ __commonJSMin(((exports) => {
37725
37957
  var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
37726
37958
  function adopt(value) {
@@ -37795,8 +38027,6 @@ var require_client_streaming_call = /* @__PURE__ */ __commonJSMin(((exports) =>
37795
38027
  };
37796
38028
  exports.ClientStreamingCall = ClientStreamingCall;
37797
38029
  }));
37798
- //#endregion
37799
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.11.1/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/duplex-streaming-call.js
37800
38030
  var require_duplex_streaming_call = /* @__PURE__ */ __commonJSMin(((exports) => {
37801
38031
  var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
37802
38032
  function adopt(value) {
@@ -37869,8 +38099,6 @@ var require_duplex_streaming_call = /* @__PURE__ */ __commonJSMin(((exports) =>
37869
38099
  };
37870
38100
  exports.DuplexStreamingCall = DuplexStreamingCall;
37871
38101
  }));
37872
- //#endregion
37873
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.11.1/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/test-transport.js
37874
38102
  var require_test_transport = /* @__PURE__ */ __commonJSMin(((exports) => {
37875
38103
  var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
37876
38104
  function adopt(value) {
@@ -38104,8 +38332,6 @@ var require_test_transport = /* @__PURE__ */ __commonJSMin(((exports) => {
38104
38332
  }
38105
38333
  };
38106
38334
  }));
38107
- //#endregion
38108
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.11.1/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/rpc-interceptor.js
38109
38335
  var require_rpc_interceptor = /* @__PURE__ */ __commonJSMin(((exports) => {
38110
38336
  Object.defineProperty(exports, "__esModule", { value: true });
38111
38337
  exports.stackDuplexStreamingInterceptors = exports.stackClientStreamingInterceptors = exports.stackServerStreamingInterceptors = exports.stackUnaryInterceptors = exports.stackIntercept = void 0;
@@ -38181,8 +38407,6 @@ var require_rpc_interceptor = /* @__PURE__ */ __commonJSMin(((exports) => {
38181
38407
  }
38182
38408
  exports.stackDuplexStreamingInterceptors = stackDuplexStreamingInterceptors;
38183
38409
  }));
38184
- //#endregion
38185
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.11.1/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/server-call-context.js
38186
38410
  var require_server_call_context = /* @__PURE__ */ __commonJSMin(((exports) => {
38187
38411
  Object.defineProperty(exports, "__esModule", { value: true });
38188
38412
  exports.ServerCallContextController = void 0;
@@ -38244,8 +38468,6 @@ var require_server_call_context = /* @__PURE__ */ __commonJSMin(((exports) => {
38244
38468
  };
38245
38469
  exports.ServerCallContextController = ServerCallContextController;
38246
38470
  }));
38247
- //#endregion
38248
- //#region ../../node_modules/.pnpm/@protobuf-ts+runtime-rpc@2.11.1/node_modules/@protobuf-ts/runtime-rpc/build/commonjs/index.js
38249
38471
  var require_commonjs$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
38250
38472
  Object.defineProperty(exports, "__esModule", { value: true });
38251
38473
  var service_type_1 = require_service_type();
@@ -38382,8 +38604,6 @@ var require_commonjs$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
38382
38604
  }
38383
38605
  });
38384
38606
  }));
38385
- //#endregion
38386
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/transaction_execution_service.mjs
38387
38607
  var import_commonjs$1 = require_commonjs$1();
38388
38608
  /**
38389
38609
  * buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX
@@ -38408,7 +38628,7 @@ var ExecuteTransactionRequest$Type = class extends import_commonjs$2.MessageType
38408
38628
  no: 1,
38409
38629
  name: "transaction",
38410
38630
  kind: "message",
38411
- T: () => Transaction
38631
+ T: () => Transaction$1
38412
38632
  },
38413
38633
  {
38414
38634
  no: 2,
@@ -38451,7 +38671,7 @@ var SimulateTransactionRequest$Type = class extends import_commonjs$2.MessageTyp
38451
38671
  no: 1,
38452
38672
  name: "transaction",
38453
38673
  kind: "message",
38454
- T: () => Transaction
38674
+ T: () => Transaction$1
38455
38675
  },
38456
38676
  {
38457
38677
  no: 2,
@@ -38574,8 +38794,6 @@ const TransactionExecutionService = new import_commonjs$1.ServiceType("sui.rpc.v
38574
38794
  I: SimulateTransactionRequest,
38575
38795
  O: SimulateTransactionResponse
38576
38796
  }]);
38577
- //#endregion
38578
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/transaction_execution_service.client.mjs
38579
38797
  /**
38580
38798
  * @generated from protobuf service sui.rpc.v2.TransactionExecutionService
38581
38799
  */
@@ -38601,8 +38819,6 @@ var TransactionExecutionServiceClient = class {
38601
38819
  return (0, import_commonjs$1.stackIntercept)("unary", this._transport, method, opt, input);
38602
38820
  }
38603
38821
  };
38604
- //#endregion
38605
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/protocol_config.mjs
38606
38822
  var ProtocolConfig$Type = class extends import_commonjs$2.MessageType {
38607
38823
  constructor() {
38608
38824
  super("sui.rpc.v2.ProtocolConfig", [
@@ -38641,8 +38857,6 @@ var ProtocolConfig$Type = class extends import_commonjs$2.MessageType {
38641
38857
  * @generated MessageType for protobuf message sui.rpc.v2.ProtocolConfig
38642
38858
  */
38643
38859
  const ProtocolConfig = new ProtocolConfig$Type();
38644
- //#endregion
38645
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/system_state.mjs
38646
38860
  var SystemState$Type = class extends import_commonjs$2.MessageType {
38647
38861
  constructor() {
38648
38862
  super("sui.rpc.v2.SystemState", [
@@ -39369,8 +39583,6 @@ var StakingPool$Type = class extends import_commonjs$2.MessageType {
39369
39583
  * @generated MessageType for protobuf message sui.rpc.v2.StakingPool
39370
39584
  */
39371
39585
  const StakingPool = new StakingPool$Type();
39372
- //#endregion
39373
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/epoch.mjs
39374
39586
  var Epoch$Type = class extends import_commonjs$2.MessageType {
39375
39587
  constructor() {
39376
39588
  super("sui.rpc.v2.Epoch", [
@@ -39443,8 +39655,6 @@ var Epoch$Type = class extends import_commonjs$2.MessageType {
39443
39655
  * @generated MessageType for protobuf message sui.rpc.v2.Epoch
39444
39656
  */
39445
39657
  const Epoch = new Epoch$Type();
39446
- //#endregion
39447
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/checkpoint_contents.mjs
39448
39658
  var CheckpointContents$Type = class extends import_commonjs$2.MessageType {
39449
39659
  constructor() {
39450
39660
  super("sui.rpc.v2.CheckpointContents", [
@@ -39536,8 +39746,6 @@ var AddressAliasesVersion$Type = class extends import_commonjs$2.MessageType {
39536
39746
  * @generated MessageType for protobuf message sui.rpc.v2.AddressAliasesVersion
39537
39747
  */
39538
39748
  const AddressAliasesVersion = new AddressAliasesVersion$Type();
39539
- //#endregion
39540
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/checkpoint_summary.mjs
39541
39749
  /**
39542
39750
  * @generated from protobuf enum sui.rpc.v2.CheckpointCommitment.CheckpointCommitmentKind
39543
39751
  */
@@ -39707,8 +39915,6 @@ var CheckpointCommitment$Type = class extends import_commonjs$2.MessageType {
39707
39915
  * @generated MessageType for protobuf message sui.rpc.v2.CheckpointCommitment
39708
39916
  */
39709
39917
  const CheckpointCommitment = new CheckpointCommitment$Type();
39710
- //#endregion
39711
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/checkpoint.mjs
39712
39918
  var Checkpoint$Type = class extends import_commonjs$2.MessageType {
39713
39919
  constructor() {
39714
39920
  super("sui.rpc.v2.Checkpoint", [
@@ -39765,8 +39971,6 @@ var Checkpoint$Type = class extends import_commonjs$2.MessageType {
39765
39971
  * @generated MessageType for protobuf message sui.rpc.v2.Checkpoint
39766
39972
  */
39767
39973
  const Checkpoint = new Checkpoint$Type();
39768
- //#endregion
39769
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/google/protobuf/any.mjs
39770
39974
  var Any$Type = class extends import_commonjs$2.MessageType {
39771
39975
  constructor() {
39772
39976
  super("google.protobuf.Any", [{
@@ -39861,8 +40065,6 @@ var Any$Type = class extends import_commonjs$2.MessageType {
39861
40065
  * @generated MessageType for protobuf message google.protobuf.Any
39862
40066
  */
39863
40067
  const Any = new Any$Type();
39864
- //#endregion
39865
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/google/rpc/status.mjs
39866
40068
  var Status$Type = class extends import_commonjs$2.MessageType {
39867
40069
  constructor() {
39868
40070
  super("google.rpc.Status", [
@@ -39892,8 +40094,6 @@ var Status$Type = class extends import_commonjs$2.MessageType {
39892
40094
  * @generated MessageType for protobuf message google.rpc.Status
39893
40095
  */
39894
40096
  const Status = new Status$Type();
39895
- //#endregion
39896
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/ledger_service.mjs
39897
40097
  var GetServiceInfoRequest$Type = class extends import_commonjs$2.MessageType {
39898
40098
  constructor() {
39899
40099
  super("sui.rpc.v2.GetServiceInfoRequest", []);
@@ -40290,8 +40490,6 @@ const LedgerService = new import_commonjs$1.ServiceType("sui.rpc.v2.LedgerServic
40290
40490
  O: GetEpochResponse
40291
40491
  }
40292
40492
  ]);
40293
- //#endregion
40294
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/ledger_service.client.mjs
40295
40493
  /**
40296
40494
  * @generated from protobuf service sui.rpc.v2.LedgerService
40297
40495
  */
@@ -40354,8 +40552,6 @@ var LedgerServiceClient = class {
40354
40552
  return (0, import_commonjs$1.stackIntercept)("unary", this._transport, method, opt, input);
40355
40553
  }
40356
40554
  };
40357
- //#endregion
40358
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/move_package_service.mjs
40359
40555
  var GetPackageRequest$Type = class extends import_commonjs$2.MessageType {
40360
40556
  constructor() {
40361
40557
  super("sui.rpc.v2.GetPackageRequest", [{
@@ -40578,8 +40774,6 @@ const MovePackageService = new import_commonjs$1.ServiceType("sui.rpc.v2.MovePac
40578
40774
  O: ListPackageVersionsResponse
40579
40775
  }
40580
40776
  ]);
40581
- //#endregion
40582
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/move_package_service.client.mjs
40583
40777
  /**
40584
40778
  * @generated from protobuf service sui.rpc.v2.MovePackageService
40585
40779
  */
@@ -40619,8 +40813,6 @@ var MovePackageServiceClient = class {
40619
40813
  return (0, import_commonjs$1.stackIntercept)("unary", this._transport, method, opt, input);
40620
40814
  }
40621
40815
  };
40622
- //#endregion
40623
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/signature_verification_service.mjs
40624
40816
  var VerifySignatureRequest$Type = class extends import_commonjs$2.MessageType {
40625
40817
  constructor() {
40626
40818
  super("sui.rpc.v2.VerifySignatureRequest", [
@@ -40687,8 +40879,6 @@ const SignatureVerificationService = new import_commonjs$1.ServiceType("sui.rpc.
40687
40879
  I: VerifySignatureRequest,
40688
40880
  O: VerifySignatureResponse
40689
40881
  }]);
40690
- //#endregion
40691
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/signature_verification_service.client.mjs
40692
40882
  /**
40693
40883
  * @generated from protobuf service sui.rpc.v2.SignatureVerificationService
40694
40884
  */
@@ -40709,8 +40899,6 @@ var SignatureVerificationServiceClient = class {
40709
40899
  return (0, import_commonjs$1.stackIntercept)("unary", this._transport, method, opt, input);
40710
40900
  }
40711
40901
  };
40712
- //#endregion
40713
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/state_service.mjs
40714
40902
  /**
40715
40903
  * Information about the state of the coin's MetadataCap
40716
40904
  *
@@ -41372,8 +41560,6 @@ const StateService = new import_commonjs$1.ServiceType("sui.rpc.v2.StateService"
41372
41560
  O: ListBalancesResponse
41373
41561
  }
41374
41562
  ]);
41375
- //#endregion
41376
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/state_service.client.mjs
41377
41563
  /**
41378
41564
  * @generated from protobuf service sui.rpc.v2.StateService
41379
41565
  */
@@ -41420,8 +41606,6 @@ var StateServiceClient = class {
41420
41606
  return (0, import_commonjs$1.stackIntercept)("unary", this._transport, method, opt, input);
41421
41607
  }
41422
41608
  };
41423
- //#endregion
41424
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/subscription_service.mjs
41425
41609
  var SubscribeCheckpointsRequest$Type = class extends import_commonjs$2.MessageType {
41426
41610
  constructor() {
41427
41611
  super("sui.rpc.v2.SubscribeCheckpointsRequest", [{
@@ -41467,8 +41651,6 @@ const SubscriptionService = new import_commonjs$1.ServiceType("sui.rpc.v2.Subscr
41467
41651
  I: SubscribeCheckpointsRequest,
41468
41652
  O: SubscribeCheckpointsResponse
41469
41653
  }]);
41470
- //#endregion
41471
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/subscription_service.client.mjs
41472
41654
  /**
41473
41655
  * @generated from protobuf service sui.rpc.v2.SubscriptionService
41474
41656
  */
@@ -41499,8 +41681,6 @@ var SubscriptionServiceClient = class {
41499
41681
  return (0, import_commonjs$1.stackIntercept)("serverStreaming", this._transport, method, opt, input);
41500
41682
  }
41501
41683
  };
41502
- //#endregion
41503
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/core.mjs
41504
41684
  var GrpcCoreClient = class extends CoreClient {
41505
41685
  #client;
41506
41686
  constructor({ client, ...options }) {
@@ -41598,7 +41778,7 @@ var GrpcCoreClient = class extends CoreClient {
41598
41778
  "object_id",
41599
41779
  "balance"
41600
41780
  ];
41601
- const coinType = options.coinType ?? SUI_TYPE_ARG;
41781
+ const coinType = options.coinType ?? SUI_TYPE_ARG$1;
41602
41782
  const response = await this.#client.stateService.listOwnedObjects({
41603
41783
  owner: options.owner,
41604
41784
  objectType: `0x2::coin::Coin<${(await this.mvr.resolveType({ type: coinType })).type}>`,
@@ -41619,7 +41799,7 @@ var GrpcCoreClient = class extends CoreClient {
41619
41799
  };
41620
41800
  }
41621
41801
  async getBalance(options) {
41622
- const coinType = options.coinType ?? SUI_TYPE_ARG;
41802
+ const coinType = options.coinType ?? SUI_TYPE_ARG$1;
41623
41803
  const result = await this.#client.stateService.getBalance({
41624
41804
  owner: options.owner,
41625
41805
  coinType: (await this.mvr.resolveType({ type: coinType })).type
@@ -41867,7 +42047,7 @@ var GrpcCoreClient = class extends CoreClient {
41867
42047
  break;
41868
42048
  }
41869
42049
  return { function: {
41870
- packageId: normalizeSuiAddress(resolvedPackageId),
42050
+ packageId: normalizeSuiAddress$1(resolvedPackageId),
41871
42051
  moduleName: options.moduleName,
41872
42052
  name: response.function?.name,
41873
42053
  visibility,
@@ -42238,9 +42418,9 @@ function parseTransaction(transaction, include) {
42238
42418
  amount: change.amount
42239
42419
  })) ?? [] : void 0,
42240
42420
  events: include?.events ? transaction.events?.events.map((event) => ({
42241
- packageId: normalizeSuiAddress(event.packageId),
42421
+ packageId: normalizeSuiAddress$1(event.packageId),
42242
42422
  module: event.module,
42243
- sender: normalizeSuiAddress(event.sender),
42423
+ sender: normalizeSuiAddress$1(event.sender),
42244
42424
  eventType: event.eventType,
42245
42425
  bcs: event.contents?.value ?? /* @__PURE__ */ new Uint8Array(),
42246
42426
  json: event.json ? Value.toJson(event.json) : null
@@ -42292,8 +42472,6 @@ function parseNormalizedSuiMoveTypeBody(type) {
42292
42472
  default: return { $kind: "unknown" };
42293
42473
  }
42294
42474
  }
42295
- //#endregion
42296
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/name_service.mjs
42297
42475
  var LookupNameRequest$Type = class extends import_commonjs$2.MessageType {
42298
42476
  constructor() {
42299
42477
  super("sui.rpc.v2.LookupNameRequest", [{
@@ -42420,8 +42598,6 @@ const NameService = new import_commonjs$1.ServiceType("sui.rpc.v2.NameService",
42420
42598
  I: ReverseLookupNameRequest,
42421
42599
  O: ReverseLookupNameResponse
42422
42600
  }]);
42423
- //#endregion
42424
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/rpc/v2/name_service.client.mjs
42425
42601
  /**
42426
42602
  * @generated from protobuf service sui.rpc.v2.NameService
42427
42603
  */
@@ -42447,8 +42623,6 @@ var NameServiceClient = class {
42447
42623
  return (0, import_commonjs$1.stackIntercept)("unary", this._transport, method, opt, input);
42448
42624
  }
42449
42625
  };
42450
- //#endregion
42451
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/forking/v1alpha/forking_service.mjs
42452
42626
  var AdvanceClockRequest$Type = class extends import_commonjs$2.MessageType {
42453
42627
  constructor() {
42454
42628
  super("sui.forking.v1alpha.AdvanceClockRequest", [{
@@ -42585,8 +42759,6 @@ const ForkingService = new import_commonjs$1.ServiceType("sui.forking.v1alpha.Fo
42585
42759
  O: GetStatusResponse
42586
42760
  }
42587
42761
  ]);
42588
- //#endregion
42589
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/proto/sui/forking/v1alpha/forking_service.client.mjs
42590
42762
  /**
42591
42763
  * Administrative service for controlling a forked Sui network.
42592
42764
  *
@@ -42627,8 +42799,6 @@ var ForkingServiceClient = class {
42627
42799
  return (0, import_commonjs$1.stackIntercept)("unary", this._transport, method, opt, input);
42628
42800
  }
42629
42801
  };
42630
- //#endregion
42631
- //#region ../../node_modules/.pnpm/@protobuf-ts+grpcweb-transport@2.11.1/node_modules/@protobuf-ts/grpcweb-transport/build/commonjs/goog-grpc-status-code.js
42632
42802
  var require_goog_grpc_status_code = /* @__PURE__ */ __commonJSMin(((exports) => {
42633
42803
  Object.defineProperty(exports, "__esModule", { value: true });
42634
42804
  exports.GrpcStatusCode = void 0;
@@ -42758,8 +42928,6 @@ var require_goog_grpc_status_code = /* @__PURE__ */ __commonJSMin(((exports) =>
42758
42928
  GrpcStatusCode[GrpcStatusCode["DATA_LOSS"] = 15] = "DATA_LOSS";
42759
42929
  })(exports.GrpcStatusCode || (exports.GrpcStatusCode = {}));
42760
42930
  }));
42761
- //#endregion
42762
- //#region ../../node_modules/.pnpm/@protobuf-ts+grpcweb-transport@2.11.1/node_modules/@protobuf-ts/grpcweb-transport/build/commonjs/grpc-web-format.js
42763
42931
  var require_grpc_web_format = /* @__PURE__ */ __commonJSMin(((exports) => {
42764
42932
  var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
42765
42933
  function adopt(value) {
@@ -43010,8 +43178,6 @@ var require_grpc_web_format = /* @__PURE__ */ __commonJSMin(((exports) => {
43010
43178
  }
43011
43179
  }
43012
43180
  }));
43013
- //#endregion
43014
- //#region ../../node_modules/.pnpm/@protobuf-ts+grpcweb-transport@2.11.1/node_modules/@protobuf-ts/grpcweb-transport/build/commonjs/grpc-web-transport.js
43015
43181
  var require_grpc_web_transport = /* @__PURE__ */ __commonJSMin(((exports) => {
43016
43182
  Object.defineProperty(exports, "__esModule", { value: true });
43017
43183
  exports.GrpcWebFetchTransport = void 0;
@@ -43184,8 +43350,6 @@ var require_grpc_web_transport = /* @__PURE__ */ __commonJSMin(((exports) => {
43184
43350
  };
43185
43351
  exports.GrpcWebFetchTransport = GrpcWebFetchTransport;
43186
43352
  }));
43187
- //#endregion
43188
- //#region ../../node_modules/.pnpm/@mysten+sui@2.20.0_typescript@5.9.3/node_modules/@mysten/sui/dist/grpc/client.mjs
43189
43353
  var import_commonjs = (/* @__PURE__ */ __commonJSMin(((exports) => {
43190
43354
  Object.defineProperty(exports, "__esModule", { value: true });
43191
43355
  var grpc_web_transport_1 = require_grpc_web_transport();
@@ -43241,7 +43405,7 @@ var import_commonjs = (/* @__PURE__ */ __commonJSMin(((exports) => {
43241
43405
  });
43242
43406
  })))();
43243
43407
  const SUI_CLIENT_BRAND = Symbol.for("@mysten/SuiGrpcClient");
43244
- var SuiGrpcClient = class extends BaseClient {
43408
+ var SuiGrpcClient$1 = class extends BaseClient {
43245
43409
  get mvr() {
43246
43410
  return this.core.mvr;
43247
43411
  }
@@ -43364,8 +43528,6 @@ var SuiGrpcClient = class extends BaseClient {
43364
43528
  return this.core.defaultNameServiceName(input);
43365
43529
  }
43366
43530
  };
43367
- //#endregion
43368
- //#region src/grpc-web-devtools.ts
43369
43531
  const CONNECT_WEB_DEVTOOLS_READY_EVENT = "connect-web-dev-tools-ready";
43370
43532
  const GRPC_WEB_DEVTOOLS_ENABLED_KEY = "__SUIGAR_GRPC_WEB_DEVTOOLS_ENABLED__";
43371
43533
  let cachedInterceptor;
@@ -43506,20 +43668,8 @@ const getGrpcWebDevtoolsInterceptors = () => {
43506
43668
  }
43507
43669
  return [cachedInterceptor];
43508
43670
  };
43509
- //#endregion
43510
- //#region src/index.ts
43511
43671
  const suiRequestTraceSinks = /* @__PURE__ */ new Set();
43512
43672
  let suiRequestTraceCounter = 0;
43513
- const setSuiRequestTraceSink = (sink) => {
43514
- suiRequestTraceSinks.clear();
43515
- if (sink) suiRequestTraceSinks.add(sink);
43516
- };
43517
- const addSuiRequestTraceSink = (sink) => {
43518
- suiRequestTraceSinks.add(sink);
43519
- return () => {
43520
- suiRequestTraceSinks.delete(sink);
43521
- };
43522
- };
43523
43673
  const nextSuiRequestTraceId = () => `sui-${Date.now()}-${suiRequestTraceCounter += 1}`;
43524
43674
  const emitSuiRequestTrace = (trace) => {
43525
43675
  if (suiRequestTraceSinks.size === 0) return;
@@ -43545,7 +43695,6 @@ const DEFAULT_MAX_RETRY_ROUNDS = 2;
43545
43695
  const DEFAULT_MULTI_GET_OBJECTS_BATCH_SIZE = 50;
43546
43696
  const MULTI_GET_OBJECTS_GRAPHQL_PAYLOAD_BUDGET_BYTES = 4500;
43547
43697
  const EWMA_ALPHA = .28;
43548
- const ENDPOINT_PARSE_SEPARATOR = ",";
43549
43698
  const SESSION_SALT = Math.random().toString(36).slice(2, 10);
43550
43699
  const LOOPBACK_HOSTS = /* @__PURE__ */ new Set([
43551
43700
  "localhost",
@@ -43583,22 +43732,6 @@ const safeNumber = (value, fallback, min = 0) => {
43583
43732
  if (!Number.isFinite(value)) return fallback;
43584
43733
  return Math.max(min, value ?? fallback);
43585
43734
  };
43586
- const parseIntegerInput = (value) => {
43587
- if (typeof value === "number") return Number.isFinite(value) ? Math.trunc(value) : void 0;
43588
- if (typeof value === "string") {
43589
- const parsed = Number.parseInt(value, 10);
43590
- return Number.isFinite(parsed) ? parsed : void 0;
43591
- }
43592
- };
43593
- const parseBooleanInput = (value) => {
43594
- if (typeof value === "boolean") return value;
43595
- if (typeof value === "number") return value > 0;
43596
- if (typeof value === "string") {
43597
- const normalized = value.trim().toLowerCase();
43598
- return normalized === "1" || normalized === "true" || normalized === "yes" || normalized === "on";
43599
- }
43600
- return false;
43601
- };
43602
43735
  const stableHash = (value) => {
43603
43736
  let hash = 0;
43604
43737
  for (let index = 0; index < value.length; index += 1) {
@@ -43647,11 +43780,6 @@ const getDefaultGrpcEndpoints = (network) => {
43647
43780
  default: return DEFAULT_MAINNET_GRPC_ENDPOINTS;
43648
43781
  }
43649
43782
  };
43650
- const normalizeGrpcListInput = (value) => {
43651
- if (Array.isArray(value)) return uniqueGrpcUrls(value);
43652
- if (typeof value === "string") return parseGrpcList(value);
43653
- return [];
43654
- };
43655
43783
  const normalizeNetwork = (value) => {
43656
43784
  const normalized = (value ?? "").trim().toLowerCase();
43657
43785
  if (normalized === "testnet") return "testnet";
@@ -43675,10 +43803,6 @@ const normalizeGrpcUrl = (value) => {
43675
43803
  return null;
43676
43804
  }
43677
43805
  };
43678
- const parseGrpcList = (value) => {
43679
- if (!value) return [];
43680
- return value.split(ENDPOINT_PARSE_SEPARATOR).map((entry) => normalizeGrpcUrl(entry)).filter((entry) => Boolean(entry));
43681
- };
43682
43806
  const uniqueGrpcUrls = (values) => {
43683
43807
  const output = [];
43684
43808
  const seen = /* @__PURE__ */ new Set();
@@ -43690,29 +43814,6 @@ const uniqueGrpcUrls = (values) => {
43690
43814
  }
43691
43815
  return output;
43692
43816
  };
43693
- const resolveResilientGrpcTuning = (input = {}) => {
43694
- const requestTimeoutMs = safeNumber(parseIntegerInput(input.requestTimeoutMs), DEFAULT_REQUEST_TIMEOUT_MS, 1e3);
43695
- const maxAttempts = Math.max(2, safeNumber(parseIntegerInput(input.maxAttempts), DEFAULT_MAX_ATTEMPTS));
43696
- const cooldownMs = safeNumber(parseIntegerInput(input.cooldownMs), DEFAULT_COOLDOWN_MS, 1e3);
43697
- return {
43698
- requestTimeoutMs,
43699
- maxAttempts,
43700
- cooldownMs,
43701
- maxCooldownMs: Math.max(cooldownMs, safeNumber(parseIntegerInput(input.maxCooldownMs), DEFAULT_MAX_COOLDOWN_MS, cooldownMs)),
43702
- failureThreshold: safeNumber(parseIntegerInput(input.failureThreshold), DEFAULT_FAILURE_THRESHOLD),
43703
- retryBackoffMs: safeNumber(parseIntegerInput(input.retryBackoffMs), DEFAULT_BACKOFF_MS),
43704
- maxRetryRounds: safeNumber(parseIntegerInput(input.maxRetryRounds), DEFAULT_MAX_RETRY_ROUNDS),
43705
- debug: parseBooleanInput(input.debug)
43706
- };
43707
- };
43708
- const resolveExtraGrpcEndpoints = (network, endpointsByNetwork = {}) => {
43709
- switch (normalizeNetwork(network)) {
43710
- case "testnet": return normalizeGrpcListInput(endpointsByNetwork.testnet);
43711
- case "devnet": return normalizeGrpcListInput(endpointsByNetwork.devnet);
43712
- case "localnet": return normalizeGrpcListInput(endpointsByNetwork.localnet);
43713
- default: return normalizeGrpcListInput(endpointsByNetwork.mainnet);
43714
- }
43715
- };
43716
43817
  const buildGrpcPoolCacheKey = (options) => JSON.stringify({
43717
43818
  network: normalizeNetwork(options.network),
43718
43819
  providerUrl: normalizeGrpcUrl(options.providerUrl ?? "") ?? "",
@@ -43842,11 +43943,6 @@ const getOrCreateResilientGrpcPool = (options) => {
43842
43943
  grpcPoolByKey.set(key, created);
43843
43944
  return created;
43844
43945
  };
43845
- const getResilientGrpcPool = (network, providerUrl, options = {}) => getOrCreateResilientGrpcPool({
43846
- ...options,
43847
- network,
43848
- providerUrl
43849
- });
43850
43946
  const resilientSuiClientRuntimeByKey = /* @__PURE__ */ new Map();
43851
43947
  var ResilientSuiClientRuntime = class {
43852
43948
  constructor(options) {
@@ -43861,7 +43957,7 @@ var ResilientSuiClientRuntime = class {
43861
43957
  const normalizedEndpoint = normalizeGrpcUrl(endpointUrl ?? this.getProviderUrl()) ?? this.getProviderUrl();
43862
43958
  const existing = this.grpcClientByUrl.get(normalizedEndpoint);
43863
43959
  if (existing) return existing;
43864
- const created = new SuiGrpcClient({
43960
+ const created = new SuiGrpcClient$1({
43865
43961
  baseUrl: normalizedEndpoint,
43866
43962
  network: this.network,
43867
43963
  interceptors: getGrpcWebDevtoolsInterceptors()
@@ -43887,11 +43983,6 @@ const getOrCreateResilientSuiClientRuntime = (options) => {
43887
43983
  resilientSuiClientRuntimeByKey.set(key, created);
43888
43984
  return created;
43889
43985
  };
43890
- const getResilientSuiClientRuntime = (network, providerUrl, options = {}) => getOrCreateResilientSuiClientRuntime({
43891
- ...options,
43892
- network,
43893
- providerUrl
43894
- });
43895
43986
  const bufferCtor = globalThis.Buffer;
43896
43987
  const encodeBase64 = (value) => {
43897
43988
  if (!value || value.length === 0) return "";
@@ -43940,12 +44031,12 @@ const normalizeMaybeAddress = (value) => {
43940
44031
  const trimmed = value.trim();
43941
44032
  if (!trimmed) return trimmed;
43942
44033
  if (ADDRESS_REGEX.test(trimmed)) try {
43943
- return normalizeSuiAddress(trimmed);
44034
+ return normalizeSuiAddress$1(trimmed);
43944
44035
  } catch {
43945
44036
  return trimmed.toLowerCase();
43946
44037
  }
43947
44038
  if (HEX_ADDRESS_REGEX.test(trimmed)) try {
43948
- return normalizeSuiAddress(`0x${trimmed}`);
44039
+ return normalizeSuiAddress$1(`0x${trimmed}`);
43949
44040
  } catch {
43950
44041
  return `0x${trimmed.toLowerCase()}`;
43951
44042
  }
@@ -44226,10 +44317,6 @@ const decodeEventCursor = (cursor) => {
44226
44317
  if (markerIndex === -1) return null;
44227
44318
  return decodeURIComponent(cursor.eventSeq.slice(markerIndex + 7));
44228
44319
  };
44229
- const stripEncodedEventSeq = (value) => {
44230
- const markerIndex = value.indexOf(EVENT_CURSOR_SEPARATOR);
44231
- return markerIndex === -1 ? value : value.slice(0, markerIndex);
44232
- };
44233
44320
  const buildPaginatedEventCursor = (pageInfo, node, order) => {
44234
44321
  const graphqlCursor = order === "ascending" ? pageInfo?.endCursor : pageInfo?.startCursor;
44235
44322
  const txDigest = node?.transaction?.digest;
@@ -44656,7 +44743,7 @@ const summarizeTransactionResult = (result) => ({
44656
44743
  });
44657
44744
  const buildSuiCompatClient = (grpcClient, options) => {
44658
44745
  const network = options.network;
44659
- const defaultCoinType = options.defaultCoinType ?? SUI_TYPE_ARG;
44746
+ const defaultCoinType = options.defaultCoinType ?? SUI_TYPE_ARG$1;
44660
44747
  const graphqlClient = options.graphqlClient ?? new SuiGraphQLClient({
44661
44748
  network,
44662
44749
  url: resolveGraphqlUrl(String(network ?? "mainnet"), options.graphqlUrl)
@@ -44682,7 +44769,7 @@ const buildSuiCompatClient = (grpcClient, options) => {
44682
44769
  const normalizedEndpoint = normalizeGrpcUrl(endpointUrl) ?? endpointUrl;
44683
44770
  const existing = grpcClientByUrl.get(normalizedEndpoint);
44684
44771
  if (existing) return existing;
44685
- const created = new SuiGrpcClient({
44772
+ const created = new SuiGrpcClient$1({
44686
44773
  baseUrl: normalizedEndpoint,
44687
44774
  network,
44688
44775
  interceptors: getGrpcWebDevtoolsInterceptors()
@@ -45568,23 +45655,1349 @@ const buildSuiCompatClient = (grpcClient, options) => {
45568
45655
  };
45569
45656
  };
45570
45657
  //#endregion
45571
- exports.ResilientGrpcPool = ResilientGrpcPool;
45572
- exports.ResilientSuiClientRuntime = ResilientSuiClientRuntime;
45573
- exports.addSuiRequestTraceSink = addSuiRequestTraceSink;
45574
- exports.buildPaginatedEventCursor = buildPaginatedEventCursor;
45575
- exports.buildSuiCompatClient = buildSuiCompatClient;
45576
- exports.decodeEventCursor = decodeEventCursor;
45577
- exports.encodeEventCursor = encodeEventCursor;
45578
- exports.getOrCreateResilientGrpcPool = getOrCreateResilientGrpcPool;
45579
- exports.getOrCreateResilientSuiClientRuntime = getOrCreateResilientSuiClientRuntime;
45580
- exports.getResilientGrpcPool = getResilientGrpcPool;
45581
- exports.getResilientSuiClientRuntime = getResilientSuiClientRuntime;
45582
- exports.normalizeGrpcUrl = normalizeGrpcUrl;
45583
- exports.normalizeNetwork = normalizeNetwork;
45584
- exports.parseGrpcList = parseGrpcList;
45585
- exports.resolveExtraGrpcEndpoints = resolveExtraGrpcEndpoints;
45586
- exports.resolveResilientGrpcTuning = resolveResilientGrpcTuning;
45587
- exports.setSuiRequestTraceSink = setSuiRequestTraceSink;
45588
- exports.stripEncodedEventSeq = stripEncodedEventSeq;
45589
- exports.toSuiTransactionBlockResponse = toSuiTransactionBlockResponse;
45590
- exports.uniqueGrpcUrls = uniqueGrpcUrls;
45658
+ //#region src/client.ts
45659
+ const createReadOnlyClientBundle = (configInput = {}) => {
45660
+ const config = resolveSuigarConfig(configInput);
45661
+ const runtime = getOrCreateResilientSuiClientRuntime({
45662
+ network: config.network,
45663
+ providerUrl: config.providerUrl
45664
+ });
45665
+ return {
45666
+ config,
45667
+ runtime,
45668
+ client: runtime.createCompatClient(),
45669
+ rawClient: runtime.getGrpcClient()
45670
+ };
45671
+ };
45672
+ const serializeTransactionToBase64 = async (transaction, client) => {
45673
+ const bytes = await transaction.build({ client });
45674
+ return Buffer.from(bytes).toString("base64");
45675
+ };
45676
+ const sanitizeForJson = (value) => {
45677
+ if (typeof value === "bigint") return value.toString();
45678
+ if (value instanceof Uint8Array) return Buffer.from(value).toString("base64");
45679
+ if (Array.isArray(value)) return value.map((entry) => sanitizeForJson(entry));
45680
+ if (value && typeof value === "object") return Object.fromEntries(Object.entries(value).map(([key, entry]) => [key, sanitizeForJson(entry)]));
45681
+ return value;
45682
+ };
45683
+ const dryRunTransaction = async (transaction, configInput = {}) => {
45684
+ const { rawClient } = createReadOnlyClientBundle(configInput);
45685
+ const bytes = await transaction.build({ client: rawClient });
45686
+ return sanitizeForJson(await rawClient.simulateTransaction({
45687
+ transaction: bytes,
45688
+ include: {
45689
+ effects: true,
45690
+ events: true,
45691
+ balanceChanges: true,
45692
+ objectChanges: true,
45693
+ input: true
45694
+ }
45695
+ }));
45696
+ };
45697
+ //#endregion
45698
+ //#region src/transactions.ts
45699
+ const ADDRESS_METADATA_KEYS = /* @__PURE__ */ new Set(["referrer", "partner"]);
45700
+ const RESERVED_METADATA_KEYS = /* @__PURE__ */ new Set(["referrer", "partner"]);
45701
+ const textEncoder = new TextEncoder();
45702
+ const normalizeOwner = (value) => normalizeSuiAddress(value);
45703
+ const normalizePartner = (value) => normalizeSuiAddress(value);
45704
+ const resolveBetMetadata = (metadata, partner) => {
45705
+ const resolvedEntries = Object.entries(metadata ?? {}).filter(([key, value]) => {
45706
+ if (value === void 0 || value === null) return false;
45707
+ return !RESERVED_METADATA_KEYS.has(key);
45708
+ });
45709
+ if (partner?.trim()) resolvedEntries.unshift(["partner", normalizePartner(partner.trim())]);
45710
+ if (resolvedEntries.length === 0) return;
45711
+ return Object.fromEntries(resolvedEntries);
45712
+ };
45713
+ const parseHexAddress = (value) => {
45714
+ const trimmed = value.trim();
45715
+ if (!trimmed) return null;
45716
+ const hexBody = trimmed.startsWith("0x") || trimmed.startsWith("0X") ? trimmed.slice(2) : trimmed;
45717
+ if (!/^[0-9a-fA-F]+$/.test(hexBody) || hexBody.length > 64) return null;
45718
+ const padded = (hexBody.length % 2 === 1 ? `0${hexBody}` : hexBody).padStart(64, "0");
45719
+ const bytes = new Uint8Array(padded.length / 2);
45720
+ for (let index = 0; index < padded.length; index += 2) bytes[index / 2] = Number.parseInt(padded.slice(index, index + 2), 16);
45721
+ return bytes;
45722
+ };
45723
+ const encodeBetMetadata = (metadata) => {
45724
+ const keys = [];
45725
+ const values = [];
45726
+ for (const [key, value] of Object.entries(metadata ?? {})) {
45727
+ if (value === void 0 || value === null) continue;
45728
+ let encodedValue;
45729
+ if (value instanceof Uint8Array) encodedValue = Array.from(value);
45730
+ else if (Array.isArray(value)) encodedValue = value;
45731
+ else if (typeof value === "string" && ADDRESS_METADATA_KEYS.has(key)) encodedValue = Array.from(parseHexAddress(value) ?? textEncoder.encode(String(value)));
45732
+ else encodedValue = Array.from(textEncoder.encode(String(value)));
45733
+ keys.push(key);
45734
+ values.push(encodedValue);
45735
+ }
45736
+ return {
45737
+ keys,
45738
+ values
45739
+ };
45740
+ };
45741
+ const getGameGasBudget = (_game) => DEFAULT_GAS_BUDGET_MIST;
45742
+ const applyCommonTransactionDefaults = ({ transaction, owner, gasBudget, game }) => {
45743
+ transaction.setSenderIfNotSet(normalizeOwner(owner));
45744
+ transaction.setGasBudget(Number(gasBudget ?? getGameGasBudget(game)));
45745
+ return transaction;
45746
+ };
45747
+ const buildGenericBetTransaction = async ({ game, owner, coinType, stake, cashStake, betCount, metadata, config: configInput, client, coinSource, gasBudget, sender, partner, allowGasCoinShortcut = true, target, extraArgs }) => {
45748
+ const config = assertRequiredConfig(game, configInput);
45749
+ const tx = new Transaction();
45750
+ const normalizedOwner = normalizeOwner(sender ?? owner);
45751
+ const normalizedCoinType = normalizeCoinType(coinType);
45752
+ const resolvedStake = toBigInt(stake);
45753
+ const resolvedCashStake = toBigInt(cashStake ?? stake);
45754
+ const resolvedBetCount = toBigInt(betCount ?? 1);
45755
+ const encodedMetadata = encodeBetMetadata(resolveBetMetadata(metadata, partner));
45756
+ const pythPriceInfoObjectId = resolvePythPriceInfoId(normalizedCoinType, config);
45757
+ tx.setSenderIfNotSet(normalizedOwner);
45758
+ const betCoin = await resolveBetCoin({
45759
+ tx,
45760
+ coinType: normalizedCoinType,
45761
+ amount: resolvedCashStake,
45762
+ suiCoinType: config.suiCoinType,
45763
+ coinSource,
45764
+ client,
45765
+ owner: normalizedOwner,
45766
+ allowGasCoinShortcut
45767
+ });
45768
+ const rewardCoin = tx.moveCall({
45769
+ target,
45770
+ typeArguments: [normalizedCoinType],
45771
+ arguments: [
45772
+ tx.object(config.sweethouseId),
45773
+ tx.pure.u64(resolvedStake),
45774
+ betCoin,
45775
+ tx.pure.u64(resolvedBetCount),
45776
+ ...extraArgs(tx),
45777
+ tx.pure.vector("string", encodedMetadata.keys),
45778
+ tx.pure.vector("vector<u8>", encodedMetadata.values),
45779
+ tx.object(pythPriceInfoObjectId),
45780
+ tx.object(SUI_CLOCK_OBJECT_ID),
45781
+ tx.object(SUI_RANDOM_OBJECT_ID)
45782
+ ]
45783
+ });
45784
+ tx.transferObjects([rewardCoin], tx.pure.address(normalizedOwner));
45785
+ applyCommonTransactionDefaults({
45786
+ transaction: tx,
45787
+ owner: normalizedOwner,
45788
+ gasBudget,
45789
+ game
45790
+ });
45791
+ return tx;
45792
+ };
45793
+ const buildCoinflipTransaction = (args) => {
45794
+ const config = resolveSuigarConfig(args.config);
45795
+ return buildGenericBetTransaction({
45796
+ ...args,
45797
+ config,
45798
+ game: "coinflip",
45799
+ target: `${config.coinflipPackageId}::coinflip::play`,
45800
+ extraArgs: (tx) => [tx.pure.bool(args.side === "tails")]
45801
+ });
45802
+ };
45803
+ const buildLimboTransaction = (args) => {
45804
+ const config = resolveSuigarConfig(args.config);
45805
+ const numerator = Math.round(args.targetMultiplier * DEFAULT_LIMBO_MULTIPLIER_SCALE);
45806
+ const denominator = DEFAULT_LIMBO_MULTIPLIER_SCALE;
45807
+ return buildGenericBetTransaction({
45808
+ ...args,
45809
+ config,
45810
+ game: "limbo",
45811
+ target: `${config.limboPackageId}::limbo::play`,
45812
+ extraArgs: (tx) => [tx.pure.u64(BigInt(numerator)), tx.pure.u64(BigInt(denominator))]
45813
+ });
45814
+ };
45815
+ const buildPlinkoTransaction = (args) => {
45816
+ const config = resolveSuigarConfig(args.config);
45817
+ const configId = toU8(args.configId);
45818
+ return buildGenericBetTransaction({
45819
+ ...args,
45820
+ config,
45821
+ game: "plinko",
45822
+ target: `${config.plinkoPackageId}::plinko::play`,
45823
+ extraArgs: (tx) => [tx.pure.u8(configId)]
45824
+ });
45825
+ };
45826
+ const buildWheelTransaction = (args) => {
45827
+ const config = resolveSuigarConfig(args.config);
45828
+ const configId = toU8(args.configId);
45829
+ return buildGenericBetTransaction({
45830
+ ...args,
45831
+ config,
45832
+ game: "wheel",
45833
+ target: `${config.wheelPackageId}::wheel::play`,
45834
+ extraArgs: (tx) => [tx.pure.u8(configId)]
45835
+ });
45836
+ };
45837
+ const buildRangeTransaction = (args) => {
45838
+ const config = resolveSuigarConfig(args.config);
45839
+ const scale = args.scale ?? DEFAULT_RANGE_SCALE;
45840
+ const leftPoint = Math.round(args.leftPoint * scale);
45841
+ const rightPoint = Math.round(args.rightPoint * scale);
45842
+ return buildGenericBetTransaction({
45843
+ ...args,
45844
+ config,
45845
+ game: "range",
45846
+ target: `${config.rangePackageId}::range::play`,
45847
+ extraArgs: (tx) => [
45848
+ tx.pure.u64(BigInt(leftPoint)),
45849
+ tx.pure.u64(BigInt(rightPoint)),
45850
+ tx.pure.bool(Boolean(args.outOfRange))
45851
+ ]
45852
+ });
45853
+ };
45854
+ const buildPvpCoinflipCreateTransaction = async (args) => {
45855
+ const config = assertRequiredConfig("pvp-coinflip", args.config);
45856
+ const tx = new Transaction();
45857
+ const normalizedOwner = normalizeOwner(args.sender ?? args.owner);
45858
+ const normalizedCoinType = normalizeCoinType(args.coinType);
45859
+ const resolvedStake = toBigInt(args.stake);
45860
+ const encodedMetadata = encodeBetMetadata(resolveBetMetadata(args.metadata, args.partner));
45861
+ tx.setSenderIfNotSet(normalizedOwner);
45862
+ const betCoin = await resolveBetCoin({
45863
+ tx,
45864
+ coinType: normalizedCoinType,
45865
+ amount: resolvedStake,
45866
+ suiCoinType: config.suiCoinType,
45867
+ coinSource: args.coinSource,
45868
+ client: args.client,
45869
+ owner: normalizedOwner,
45870
+ allowGasCoinShortcut: args.allowGasCoinShortcut
45871
+ });
45872
+ tx.moveCall({
45873
+ target: `${config.pvpCoinflipPackageId}::pvp_coinflip::create_game`,
45874
+ typeArguments: [normalizedCoinType],
45875
+ arguments: [
45876
+ tx.object(config.sweethouseId),
45877
+ betCoin,
45878
+ tx.pure.bool(args.creatorSide === "tails"),
45879
+ tx.pure.bool(Boolean(args.isPrivate)),
45880
+ tx.pure.vector("string", encodedMetadata.keys),
45881
+ tx.pure.vector("vector<u8>", encodedMetadata.values)
45882
+ ]
45883
+ });
45884
+ applyCommonTransactionDefaults({
45885
+ transaction: tx,
45886
+ owner: normalizedOwner,
45887
+ gasBudget: args.gasBudget,
45888
+ game: "pvp-coinflip"
45889
+ });
45890
+ return tx;
45891
+ };
45892
+ const buildPvpCoinflipJoinTransaction = async (args) => {
45893
+ const config = assertRequiredConfig("pvp-coinflip", args.config);
45894
+ const tx = new Transaction();
45895
+ const normalizedOwner = normalizeOwner(args.sender ?? args.owner);
45896
+ const normalizedCoinType = normalizeCoinType(args.coinType);
45897
+ const resolvedStake = toBigInt(args.stake);
45898
+ const encodedMetadata = encodeBetMetadata(resolveBetMetadata(args.metadata, args.partner));
45899
+ const pythPriceInfoObjectId = resolvePythPriceInfoId(normalizedCoinType, config);
45900
+ tx.setSenderIfNotSet(normalizedOwner);
45901
+ const betCoin = await resolveBetCoin({
45902
+ tx,
45903
+ coinType: normalizedCoinType,
45904
+ amount: resolvedStake,
45905
+ suiCoinType: config.suiCoinType,
45906
+ coinSource: args.coinSource,
45907
+ client: args.client,
45908
+ owner: normalizedOwner,
45909
+ allowGasCoinShortcut: args.allowGasCoinShortcut
45910
+ });
45911
+ tx.moveCall({
45912
+ target: `${config.pvpCoinflipPackageId}::pvp_coinflip::join_game`,
45913
+ typeArguments: [normalizedCoinType],
45914
+ arguments: [
45915
+ tx.pure.id(args.gameId),
45916
+ tx.object(config.sweethouseId),
45917
+ betCoin,
45918
+ tx.pure.vector("string", encodedMetadata.keys),
45919
+ tx.pure.vector("vector<u8>", encodedMetadata.values),
45920
+ tx.object(pythPriceInfoObjectId),
45921
+ tx.object(SUI_CLOCK_OBJECT_ID),
45922
+ tx.object(SUI_RANDOM_OBJECT_ID)
45923
+ ]
45924
+ });
45925
+ applyCommonTransactionDefaults({
45926
+ transaction: tx,
45927
+ owner: normalizedOwner,
45928
+ gasBudget: args.gasBudget,
45929
+ game: "pvp-coinflip"
45930
+ });
45931
+ return tx;
45932
+ };
45933
+ const buildPvpCoinflipCancelTransaction = (args) => {
45934
+ const config = assertRequiredConfig("pvp-coinflip", args.config);
45935
+ const tx = new Transaction();
45936
+ const normalizedOwner = normalizeOwner(args.sender ?? args.owner);
45937
+ tx.setSenderIfNotSet(normalizedOwner);
45938
+ tx.moveCall({
45939
+ target: `${config.pvpCoinflipPackageId}::pvp_coinflip::cancel_game`,
45940
+ typeArguments: [normalizeCoinType(args.coinType)],
45941
+ arguments: [tx.pure.id(args.gameId), tx.object(config.sweethouseId)]
45942
+ });
45943
+ applyCommonTransactionDefaults({
45944
+ transaction: tx,
45945
+ owner: normalizedOwner,
45946
+ gasBudget: args.gasBudget,
45947
+ game: "pvp-coinflip"
45948
+ });
45949
+ return tx;
45950
+ };
45951
+ const summarizeTransaction = (transaction, context = {}) => {
45952
+ const data = transaction.getData();
45953
+ const commands = (data.commands ?? []).map((command) => {
45954
+ const kind = String(command.$kind ?? Object.keys(command)[0] ?? "Unknown");
45955
+ const moveCall = command.MoveCall;
45956
+ return {
45957
+ kind,
45958
+ target: moveCall?.package && moveCall?.module && moveCall?.function ? `${moveCall.package}::${moveCall.module}::${moveCall.function}` : void 0,
45959
+ typeArguments: moveCall?.typeArguments
45960
+ };
45961
+ });
45962
+ const objectInputs = (data.inputs ?? []).flatMap((input) => input.$kind === "UnresolvedObject" && input.UnresolvedObject?.objectId ? [input.UnresolvedObject.objectId] : []);
45963
+ return {
45964
+ sender: data.sender ?? null,
45965
+ gasBudget: data.gasData?.budget != null ? String(data.gasData.budget) : null,
45966
+ gasPrice: data.gasData?.price != null ? String(data.gasData.price) : null,
45967
+ commandCount: commands.length,
45968
+ commands,
45969
+ inputs: (data.inputs ?? []).length,
45970
+ objectInputs,
45971
+ game: context.game,
45972
+ coinType: context.coinType ? normalizeCoinTypeKey(context.coinType) : void 0,
45973
+ stake: context.stake != null ? String(toBigInt(context.stake)) : void 0
45974
+ };
45975
+ };
45976
+ //#endregion
45977
+ //#region src/tools.ts
45978
+ const asRecord = (value) => value && typeof value === "object" ? value : {};
45979
+ const asString = (value, fieldName, fallback) => {
45980
+ if (typeof value === "string" && value.trim()) return value.trim();
45981
+ if (fallback !== void 0) return fallback;
45982
+ throw new Error(`Missing required string field: ${fieldName}`);
45983
+ };
45984
+ const asOptionalString = (value) => typeof value === "string" && value.trim() ? value.trim() : void 0;
45985
+ const asNumber = (value, fieldName) => {
45986
+ const numeric = typeof value === "bigint" ? Number(value) : Number(value);
45987
+ if (!Number.isFinite(numeric)) throw new Error(`Missing or invalid numeric field: ${fieldName}`);
45988
+ return numeric;
45989
+ };
45990
+ const asBoolean = (value, fallback = false) => typeof value === "boolean" ? value : fallback;
45991
+ const asStringArray = (value) => Array.isArray(value) ? value.filter((entry) => typeof entry === "string" && entry.trim().length > 0) : [];
45992
+ const asMode = (value) => value === "dry-run" || value === "read-only" || value === "build" ? value : "build";
45993
+ const SDK_BUILD_NETWORKS = /* @__PURE__ */ new Set(["mainnet", "testnet"]);
45994
+ const SDK_UNSUPPORTED_CONFIG_OVERRIDE_KEYS = [
45995
+ "suigarPackageId",
45996
+ "coinflipPackageId",
45997
+ "pvpCoinflipPackageId",
45998
+ "plinkoPackageId",
45999
+ "limboPackageId",
46000
+ "rangePackageId",
46001
+ "wheelPackageId",
46002
+ "sweethouseId",
46003
+ "suiPythPriceInfoObjectId",
46004
+ "usdcPythPriceInfoObjectId",
46005
+ "pvpCoinflipRegistryId"
46006
+ ];
46007
+ const buildReadOnlyPlan = ({ game, config, coinType, targetSuffix, notes }) => {
46008
+ const resolvedConfig = resolveSuigarConfig(config);
46009
+ const packageId = resolveGamePackageId(game, resolvedConfig);
46010
+ return {
46011
+ mode: "read-only",
46012
+ network: resolvedConfig.network,
46013
+ game,
46014
+ config: inspectResolvedConfig(resolvedConfig),
46015
+ plan: {
46016
+ target: packageId ? `${packageId}${targetSuffix}` : null,
46017
+ typeArguments: coinType ? [normalizeCoinType(coinType)] : [],
46018
+ requiredConfigKeys: getRequiredConfigKeysForGame(game),
46019
+ notes
46020
+ }
46021
+ };
46022
+ };
46023
+ const buildTransactionResult = async ({ mode, config, transaction, context }) => {
46024
+ const bundle = createReadOnlyClientBundle(config);
46025
+ const summary = summarizeTransaction(transaction, context);
46026
+ if (mode === "dry-run") return {
46027
+ mode,
46028
+ network: bundle.config.network,
46029
+ config: inspectResolvedConfig(bundle.config),
46030
+ summary,
46031
+ dryRun: await dryRunTransaction(transaction, bundle.config)
46032
+ };
46033
+ return {
46034
+ mode,
46035
+ network: bundle.config.network,
46036
+ config: inspectResolvedConfig(bundle.config),
46037
+ summary,
46038
+ transactionBytesBase64: await serializeTransactionToBase64(transaction, bundle.rawClient)
46039
+ };
46040
+ };
46041
+ const extractConfigInput = (input) => {
46042
+ const nestedConfig = asRecord(input.config);
46043
+ return {
46044
+ ...nestedConfig,
46045
+ network: asOptionalString(input.network) ?? asOptionalString(nestedConfig.network),
46046
+ providerUrl: asOptionalString(input.providerUrl) ?? asOptionalString(nestedConfig.providerUrl),
46047
+ graphqlUrl: asOptionalString(input.graphqlUrl) ?? asOptionalString(nestedConfig.graphqlUrl)
46048
+ };
46049
+ };
46050
+ const extractPartner = (input) => asOptionalString(input.partner) ?? asOptionalString(asRecord(input.config).partner);
46051
+ const hasSdkUnsupportedConfigOverrides = (input) => {
46052
+ const mergedInput = {
46053
+ ...asRecord(input.config),
46054
+ ...input
46055
+ };
46056
+ return SDK_UNSUPPORTED_CONFIG_OVERRIDE_KEYS.some((key) => asOptionalString(mergedInput[key]));
46057
+ };
46058
+ const buildCommonSdkOptions = (record, coinType) => {
46059
+ const owner = asString(record.owner, "owner");
46060
+ return {
46061
+ owner,
46062
+ playerAddress: owner,
46063
+ coinType,
46064
+ metadata: asRecord(record.metadata),
46065
+ allowGasCoinShortcut: asBoolean(record.allowGasCoinShortcut, true),
46066
+ ...record.gasBudget == null ? {} : { gasBudget: asNumber(record.gasBudget, "gasBudget") }
46067
+ };
46068
+ };
46069
+ const buildStakeSdkOptions = (record, coinType) => ({
46070
+ ...buildCommonSdkOptions(record, coinType),
46071
+ stake: asNumber(record.stake, "stake"),
46072
+ ...record.cashStake == null ? {} : { cashStake: asNumber(record.cashStake, "cashStake") },
46073
+ ...record.betCount == null ? {} : { betCount: asNumber(record.betCount, "betCount") }
46074
+ });
46075
+ const tryBuildSdkTransaction = ({ record, config, coinType, game, pvpAction }) => {
46076
+ if (asStringArray(record.coinObjectIds).length > 0 || hasSdkUnsupportedConfigOverrides(record)) return null;
46077
+ const resolvedConfig = resolveSuigarConfig(config);
46078
+ if (!SDK_BUILD_NETWORKS.has(resolvedConfig.network)) return null;
46079
+ const partner = extractPartner(record);
46080
+ const client = new SuiGrpcClient({
46081
+ baseUrl: resolvedConfig.providerUrl,
46082
+ network: resolvedConfig.network
46083
+ }).$extend(suigar(partner ? { partner } : void 0));
46084
+ try {
46085
+ switch (game) {
46086
+ case "coinflip": return client.suigar.tx.createBetTransaction("coinflip", {
46087
+ ...buildStakeSdkOptions(record, coinType),
46088
+ side: asString(record.side, "side")
46089
+ });
46090
+ case "limbo": return client.suigar.tx.createBetTransaction("limbo", {
46091
+ ...buildStakeSdkOptions(record, coinType),
46092
+ targetMultiplier: asNumber(record.targetMultiplier, "targetMultiplier")
46093
+ });
46094
+ case "plinko": return client.suigar.tx.createBetTransaction("plinko", {
46095
+ ...buildStakeSdkOptions(record, coinType),
46096
+ configId: asNumber(record.configId, "configId")
46097
+ });
46098
+ case "wheel": return client.suigar.tx.createBetTransaction("wheel", {
46099
+ ...buildStakeSdkOptions(record, coinType),
46100
+ configId: asNumber(record.configId, "configId")
46101
+ });
46102
+ case "range": return client.suigar.tx.createBetTransaction("range", {
46103
+ ...buildStakeSdkOptions(record, coinType),
46104
+ leftPoint: asNumber(record.leftPoint, "leftPoint"),
46105
+ rightPoint: asNumber(record.rightPoint, "rightPoint"),
46106
+ outOfRange: asBoolean(record.outOfRange)
46107
+ });
46108
+ case "pvp-coinflip":
46109
+ if (pvpAction === "join" || pvpAction === "cancel") return client.suigar.tx.createPvPCoinflipTransaction(pvpAction, {
46110
+ ...buildCommonSdkOptions(record, coinType),
46111
+ config: client.suigar.getConfig(),
46112
+ gameId: asString(record.gameId, "gameId")
46113
+ });
46114
+ return client.suigar.tx.createPvPCoinflipTransaction("create", {
46115
+ ...buildCommonSdkOptions(record, coinType),
46116
+ config: client.suigar.getConfig(),
46117
+ stake: asNumber(record.stake, "stake"),
46118
+ side: asString(record.creatorSide, "creatorSide"),
46119
+ isPrivate: asBoolean(record.isPrivate)
46120
+ });
46121
+ }
46122
+ } catch {
46123
+ return null;
46124
+ }
46125
+ };
46126
+ const readConfigTool = async (input = {}) => {
46127
+ return readConfigMetadata(extractConfigInput(asRecord(input)));
46128
+ };
46129
+ const readGameMetadataTool = async (input = {}) => {
46130
+ const record = asRecord(input);
46131
+ const config = extractConfigInput(record);
46132
+ const game = asOptionalString(record.game);
46133
+ const coinType = asOptionalString(record.coinType);
46134
+ return {
46135
+ config: readConfigMetadata(config),
46136
+ game: game ? getGameMetadata(game, config) : null,
46137
+ currency: coinType ? getCurrencyInfo(coinType, config) : null
46138
+ };
46139
+ };
46140
+ const buildCoinflipTransactionTool = async (input = {}) => {
46141
+ const record = asRecord(input);
46142
+ const config = extractConfigInput(record);
46143
+ const mode = asMode(record.mode);
46144
+ const coinType = asString(record.coinType, "coinType", resolveSuigarConfig(config).suiCoinType);
46145
+ if (mode === "read-only") return buildReadOnlyPlan({
46146
+ game: "coinflip",
46147
+ config,
46148
+ coinType,
46149
+ targetSuffix: "::coinflip::play",
46150
+ notes: ["Uses the sweethouse shared object, a prepared bet coin, Pyth price info, clock, and random."]
46151
+ });
46152
+ const sdkTransaction = tryBuildSdkTransaction({
46153
+ record,
46154
+ config,
46155
+ coinType,
46156
+ game: "coinflip"
46157
+ });
46158
+ if (sdkTransaction) return buildTransactionResult({
46159
+ mode,
46160
+ config,
46161
+ transaction: sdkTransaction,
46162
+ context: {
46163
+ game: "coinflip",
46164
+ coinType,
46165
+ stake: asNumber(record.stake, "stake")
46166
+ }
46167
+ });
46168
+ const bundle = createReadOnlyClientBundle(config);
46169
+ const transaction = await buildCoinflipTransaction({
46170
+ client: bundle.client,
46171
+ config: bundle.config,
46172
+ owner: asString(record.owner, "owner"),
46173
+ coinType,
46174
+ stake: asNumber(record.stake, "stake"),
46175
+ cashStake: record.cashStake == null ? void 0 : asNumber(record.cashStake, "cashStake"),
46176
+ betCount: record.betCount == null ? void 0 : asNumber(record.betCount, "betCount"),
46177
+ side: asString(record.side, "side"),
46178
+ metadata: asRecord(record.metadata),
46179
+ partner: extractPartner(record),
46180
+ coinSource: asStringArray(record.coinObjectIds).length > 0 ? {
46181
+ kind: "object-ids",
46182
+ objectIds: asStringArray(record.coinObjectIds)
46183
+ } : void 0
46184
+ });
46185
+ return buildTransactionResult({
46186
+ mode,
46187
+ config: bundle.config,
46188
+ transaction,
46189
+ context: {
46190
+ game: "coinflip",
46191
+ coinType,
46192
+ stake: asNumber(record.stake, "stake")
46193
+ }
46194
+ });
46195
+ };
46196
+ const buildLimboTransactionTool = async (input = {}) => {
46197
+ const record = asRecord(input);
46198
+ const config = extractConfigInput(record);
46199
+ const mode = asMode(record.mode);
46200
+ const coinType = asString(record.coinType, "coinType", resolveSuigarConfig(config).suiCoinType);
46201
+ if (mode === "read-only") return buildReadOnlyPlan({
46202
+ game: "limbo",
46203
+ config,
46204
+ coinType,
46205
+ targetSuffix: "::limbo::play",
46206
+ notes: ["Target multiplier is encoded as a fixed-point numerator and denominator."]
46207
+ });
46208
+ const sdkTransaction = tryBuildSdkTransaction({
46209
+ record,
46210
+ config,
46211
+ coinType,
46212
+ game: "limbo"
46213
+ });
46214
+ if (sdkTransaction) return buildTransactionResult({
46215
+ mode,
46216
+ config,
46217
+ transaction: sdkTransaction,
46218
+ context: {
46219
+ game: "limbo",
46220
+ coinType,
46221
+ stake: asNumber(record.stake, "stake")
46222
+ }
46223
+ });
46224
+ const bundle = createReadOnlyClientBundle(config);
46225
+ const transaction = await buildLimboTransaction({
46226
+ client: bundle.client,
46227
+ config: bundle.config,
46228
+ owner: asString(record.owner, "owner"),
46229
+ coinType,
46230
+ stake: asNumber(record.stake, "stake"),
46231
+ cashStake: record.cashStake == null ? void 0 : asNumber(record.cashStake, "cashStake"),
46232
+ betCount: record.betCount == null ? void 0 : asNumber(record.betCount, "betCount"),
46233
+ targetMultiplier: asNumber(record.targetMultiplier, "targetMultiplier"),
46234
+ metadata: asRecord(record.metadata),
46235
+ partner: extractPartner(record),
46236
+ coinSource: asStringArray(record.coinObjectIds).length > 0 ? {
46237
+ kind: "object-ids",
46238
+ objectIds: asStringArray(record.coinObjectIds)
46239
+ } : void 0
46240
+ });
46241
+ return buildTransactionResult({
46242
+ mode,
46243
+ config: bundle.config,
46244
+ transaction,
46245
+ context: {
46246
+ game: "limbo",
46247
+ coinType,
46248
+ stake: asNumber(record.stake, "stake")
46249
+ }
46250
+ });
46251
+ };
46252
+ const buildPlinkoTransactionTool = async (input = {}) => {
46253
+ const record = asRecord(input);
46254
+ const config = extractConfigInput(record);
46255
+ const mode = asMode(record.mode);
46256
+ const coinType = asString(record.coinType, "coinType", resolveSuigarConfig(config).suiCoinType);
46257
+ if (mode === "read-only") return buildReadOnlyPlan({
46258
+ game: "plinko",
46259
+ config,
46260
+ coinType,
46261
+ targetSuffix: "::plinko::play",
46262
+ notes: ["The config id is a u8 that selects the on-chain plinko board setup."]
46263
+ });
46264
+ const sdkTransaction = tryBuildSdkTransaction({
46265
+ record,
46266
+ config,
46267
+ coinType,
46268
+ game: "plinko"
46269
+ });
46270
+ if (sdkTransaction) return buildTransactionResult({
46271
+ mode,
46272
+ config,
46273
+ transaction: sdkTransaction,
46274
+ context: {
46275
+ game: "plinko",
46276
+ coinType,
46277
+ stake: asNumber(record.stake, "stake")
46278
+ }
46279
+ });
46280
+ const bundle = createReadOnlyClientBundle(config);
46281
+ const transaction = await buildPlinkoTransaction({
46282
+ client: bundle.client,
46283
+ config: bundle.config,
46284
+ owner: asString(record.owner, "owner"),
46285
+ coinType,
46286
+ stake: asNumber(record.stake, "stake"),
46287
+ cashStake: record.cashStake == null ? void 0 : asNumber(record.cashStake, "cashStake"),
46288
+ betCount: record.betCount == null ? void 0 : asNumber(record.betCount, "betCount"),
46289
+ configId: asNumber(record.configId, "configId"),
46290
+ metadata: asRecord(record.metadata),
46291
+ partner: extractPartner(record),
46292
+ coinSource: asStringArray(record.coinObjectIds).length > 0 ? {
46293
+ kind: "object-ids",
46294
+ objectIds: asStringArray(record.coinObjectIds)
46295
+ } : void 0
46296
+ });
46297
+ return buildTransactionResult({
46298
+ mode,
46299
+ config: bundle.config,
46300
+ transaction,
46301
+ context: {
46302
+ game: "plinko",
46303
+ coinType,
46304
+ stake: asNumber(record.stake, "stake")
46305
+ }
46306
+ });
46307
+ };
46308
+ const buildWheelTransactionTool = async (input = {}) => {
46309
+ const record = asRecord(input);
46310
+ const config = extractConfigInput(record);
46311
+ const mode = asMode(record.mode);
46312
+ const coinType = asString(record.coinType, "coinType", resolveSuigarConfig(config).suiCoinType);
46313
+ if (mode === "read-only") return buildReadOnlyPlan({
46314
+ game: "wheel",
46315
+ config,
46316
+ coinType,
46317
+ targetSuffix: "::wheel::play",
46318
+ notes: ["The config id is a u8 that selects the on-chain wheel table."]
46319
+ });
46320
+ const sdkTransaction = tryBuildSdkTransaction({
46321
+ record,
46322
+ config,
46323
+ coinType,
46324
+ game: "wheel"
46325
+ });
46326
+ if (sdkTransaction) return buildTransactionResult({
46327
+ mode,
46328
+ config,
46329
+ transaction: sdkTransaction,
46330
+ context: {
46331
+ game: "wheel",
46332
+ coinType,
46333
+ stake: asNumber(record.stake, "stake")
46334
+ }
46335
+ });
46336
+ const bundle = createReadOnlyClientBundle(config);
46337
+ const transaction = await buildWheelTransaction({
46338
+ client: bundle.client,
46339
+ config: bundle.config,
46340
+ owner: asString(record.owner, "owner"),
46341
+ coinType,
46342
+ stake: asNumber(record.stake, "stake"),
46343
+ cashStake: record.cashStake == null ? void 0 : asNumber(record.cashStake, "cashStake"),
46344
+ betCount: record.betCount == null ? void 0 : asNumber(record.betCount, "betCount"),
46345
+ configId: asNumber(record.configId, "configId"),
46346
+ metadata: asRecord(record.metadata),
46347
+ partner: extractPartner(record),
46348
+ coinSource: asStringArray(record.coinObjectIds).length > 0 ? {
46349
+ kind: "object-ids",
46350
+ objectIds: asStringArray(record.coinObjectIds)
46351
+ } : void 0
46352
+ });
46353
+ return buildTransactionResult({
46354
+ mode,
46355
+ config: bundle.config,
46356
+ transaction,
46357
+ context: {
46358
+ game: "wheel",
46359
+ coinType,
46360
+ stake: asNumber(record.stake, "stake")
46361
+ }
46362
+ });
46363
+ };
46364
+ const buildRangeTransactionTool = async (input = {}) => {
46365
+ const record = asRecord(input);
46366
+ const config = extractConfigInput(record);
46367
+ const mode = asMode(record.mode);
46368
+ const coinType = asString(record.coinType, "coinType", resolveSuigarConfig(config).suiCoinType);
46369
+ if (mode === "read-only") return buildReadOnlyPlan({
46370
+ game: "range",
46371
+ config,
46372
+ coinType,
46373
+ targetSuffix: "::range::play",
46374
+ notes: ["Range points are encoded as fixed-point integers with a 1e6 scale by default."]
46375
+ });
46376
+ const sdkTransaction = tryBuildSdkTransaction({
46377
+ record,
46378
+ config,
46379
+ coinType,
46380
+ game: "range"
46381
+ });
46382
+ if (sdkTransaction) return buildTransactionResult({
46383
+ mode,
46384
+ config,
46385
+ transaction: sdkTransaction,
46386
+ context: {
46387
+ game: "range",
46388
+ coinType,
46389
+ stake: asNumber(record.stake, "stake")
46390
+ }
46391
+ });
46392
+ const bundle = createReadOnlyClientBundle(config);
46393
+ const transaction = await buildRangeTransaction({
46394
+ client: bundle.client,
46395
+ config: bundle.config,
46396
+ owner: asString(record.owner, "owner"),
46397
+ coinType,
46398
+ stake: asNumber(record.stake, "stake"),
46399
+ cashStake: record.cashStake == null ? void 0 : asNumber(record.cashStake, "cashStake"),
46400
+ betCount: record.betCount == null ? void 0 : asNumber(record.betCount, "betCount"),
46401
+ leftPoint: asNumber(record.leftPoint, "leftPoint"),
46402
+ rightPoint: asNumber(record.rightPoint, "rightPoint"),
46403
+ outOfRange: asBoolean(record.outOfRange),
46404
+ metadata: asRecord(record.metadata),
46405
+ partner: extractPartner(record),
46406
+ coinSource: asStringArray(record.coinObjectIds).length > 0 ? {
46407
+ kind: "object-ids",
46408
+ objectIds: asStringArray(record.coinObjectIds)
46409
+ } : void 0
46410
+ });
46411
+ return buildTransactionResult({
46412
+ mode,
46413
+ config: bundle.config,
46414
+ transaction,
46415
+ context: {
46416
+ game: "range",
46417
+ coinType,
46418
+ stake: asNumber(record.stake, "stake")
46419
+ }
46420
+ });
46421
+ };
46422
+ const buildPvpCoinflipCreateTransactionTool = async (input = {}) => {
46423
+ const record = asRecord(input);
46424
+ const config = extractConfigInput(record);
46425
+ const mode = asMode(record.mode);
46426
+ const coinType = asString(record.coinType, "coinType", resolveSuigarConfig(config).suiCoinType);
46427
+ if (mode === "read-only") return buildReadOnlyPlan({
46428
+ game: "pvp-coinflip",
46429
+ config,
46430
+ coinType,
46431
+ targetSuffix: "::pvp_coinflip::create_game",
46432
+ notes: ["Creates a public or private PvP lobby without needing a private key."]
46433
+ });
46434
+ const sdkTransaction = tryBuildSdkTransaction({
46435
+ record,
46436
+ config,
46437
+ coinType,
46438
+ game: "pvp-coinflip",
46439
+ pvpAction: "create"
46440
+ });
46441
+ if (sdkTransaction) return buildTransactionResult({
46442
+ mode,
46443
+ config,
46444
+ transaction: sdkTransaction,
46445
+ context: {
46446
+ game: "pvp-coinflip",
46447
+ coinType,
46448
+ stake: asNumber(record.stake, "stake")
46449
+ }
46450
+ });
46451
+ const bundle = createReadOnlyClientBundle(config);
46452
+ const transaction = await buildPvpCoinflipCreateTransaction({
46453
+ client: bundle.client,
46454
+ config: bundle.config,
46455
+ owner: asString(record.owner, "owner"),
46456
+ coinType,
46457
+ stake: asNumber(record.stake, "stake"),
46458
+ creatorSide: asString(record.creatorSide, "creatorSide"),
46459
+ isPrivate: asBoolean(record.isPrivate),
46460
+ metadata: asRecord(record.metadata),
46461
+ partner: extractPartner(record),
46462
+ coinSource: asStringArray(record.coinObjectIds).length > 0 ? {
46463
+ kind: "object-ids",
46464
+ objectIds: asStringArray(record.coinObjectIds)
46465
+ } : void 0
46466
+ });
46467
+ return buildTransactionResult({
46468
+ mode,
46469
+ config: bundle.config,
46470
+ transaction,
46471
+ context: {
46472
+ game: "pvp-coinflip",
46473
+ coinType,
46474
+ stake: asNumber(record.stake, "stake")
46475
+ }
46476
+ });
46477
+ };
46478
+ const buildPvpCoinflipJoinTransactionTool = async (input = {}) => {
46479
+ const record = asRecord(input);
46480
+ const config = extractConfigInput(record);
46481
+ const mode = asMode(record.mode);
46482
+ const coinType = asString(record.coinType, "coinType", resolveSuigarConfig(config).suiCoinType);
46483
+ if (mode === "read-only") return buildReadOnlyPlan({
46484
+ game: "pvp-coinflip",
46485
+ config,
46486
+ coinType,
46487
+ targetSuffix: "::pvp_coinflip::join_game",
46488
+ notes: ["Joining requires the game id, stake amount, and a price info object for the selected coin."]
46489
+ });
46490
+ const sdkTransaction = tryBuildSdkTransaction({
46491
+ record,
46492
+ config,
46493
+ coinType,
46494
+ game: "pvp-coinflip",
46495
+ pvpAction: "join"
46496
+ });
46497
+ if (sdkTransaction) return buildTransactionResult({
46498
+ mode,
46499
+ config,
46500
+ transaction: sdkTransaction,
46501
+ context: {
46502
+ game: "pvp-coinflip",
46503
+ coinType,
46504
+ stake: asNumber(record.stake, "stake")
46505
+ }
46506
+ });
46507
+ const bundle = createReadOnlyClientBundle(config);
46508
+ const transaction = await buildPvpCoinflipJoinTransaction({
46509
+ client: bundle.client,
46510
+ config: bundle.config,
46511
+ owner: asString(record.owner, "owner"),
46512
+ gameId: asString(record.gameId, "gameId"),
46513
+ coinType,
46514
+ stake: asNumber(record.stake, "stake"),
46515
+ metadata: asRecord(record.metadata),
46516
+ partner: extractPartner(record),
46517
+ coinSource: asStringArray(record.coinObjectIds).length > 0 ? {
46518
+ kind: "object-ids",
46519
+ objectIds: asStringArray(record.coinObjectIds)
46520
+ } : void 0
46521
+ });
46522
+ return buildTransactionResult({
46523
+ mode,
46524
+ config: bundle.config,
46525
+ transaction,
46526
+ context: {
46527
+ game: "pvp-coinflip",
46528
+ coinType,
46529
+ stake: asNumber(record.stake, "stake")
46530
+ }
46531
+ });
46532
+ };
46533
+ const buildPvpCoinflipCancelTransactionTool = async (input = {}) => {
46534
+ const record = asRecord(input);
46535
+ const config = extractConfigInput(record);
46536
+ const mode = asMode(record.mode);
46537
+ const coinType = asString(record.coinType, "coinType", resolveSuigarConfig(config).suiCoinType);
46538
+ if (mode === "read-only") return buildReadOnlyPlan({
46539
+ game: "pvp-coinflip",
46540
+ config,
46541
+ coinType,
46542
+ targetSuffix: "::pvp_coinflip::cancel_game",
46543
+ notes: ["Cancel only needs the game id, sweethouse object, and coin type argument."]
46544
+ });
46545
+ const sdkTransaction = tryBuildSdkTransaction({
46546
+ record,
46547
+ config,
46548
+ coinType,
46549
+ game: "pvp-coinflip",
46550
+ pvpAction: "cancel"
46551
+ });
46552
+ if (sdkTransaction) return buildTransactionResult({
46553
+ mode,
46554
+ config,
46555
+ transaction: sdkTransaction,
46556
+ context: {
46557
+ game: "pvp-coinflip",
46558
+ coinType
46559
+ }
46560
+ });
46561
+ return buildTransactionResult({
46562
+ mode,
46563
+ config,
46564
+ transaction: buildPvpCoinflipCancelTransaction({
46565
+ config,
46566
+ owner: asString(record.owner, "owner"),
46567
+ gameId: asString(record.gameId, "gameId"),
46568
+ coinType
46569
+ }),
46570
+ context: {
46571
+ game: "pvp-coinflip",
46572
+ coinType
46573
+ }
46574
+ });
46575
+ };
46576
+ //#endregion
46577
+ //#region src/server.ts
46578
+ const json = (value) => JSON.stringify(value, null, 2);
46579
+ const TOOL_DEFINITIONS = [
46580
+ {
46581
+ name: "read_config",
46582
+ description: "Resolve Suigar config for the target network, defaulting to testnet.",
46583
+ inputSchema: {
46584
+ type: "object",
46585
+ properties: {
46586
+ network: {
46587
+ type: "string",
46588
+ default: "testnet"
46589
+ },
46590
+ providerUrl: { type: "string" },
46591
+ graphqlUrl: { type: "string" },
46592
+ config: {
46593
+ type: "object",
46594
+ additionalProperties: true
46595
+ }
46596
+ },
46597
+ additionalProperties: true
46598
+ },
46599
+ handler: readConfigTool
46600
+ },
46601
+ {
46602
+ name: "read_game_metadata",
46603
+ description: "Read Suigar game metadata, on-chain settings metadata, and optional currency metadata.",
46604
+ inputSchema: {
46605
+ type: "object",
46606
+ properties: {
46607
+ game: { type: "string" },
46608
+ coinType: { type: "string" },
46609
+ network: {
46610
+ type: "string",
46611
+ default: "testnet"
46612
+ },
46613
+ config: {
46614
+ type: "object",
46615
+ additionalProperties: true
46616
+ }
46617
+ },
46618
+ additionalProperties: true
46619
+ },
46620
+ handler: readGameMetadataTool
46621
+ },
46622
+ {
46623
+ name: "build_coinflip_transaction",
46624
+ description: "Build, dry-run, or inspect a Suigar coinflip transaction on testnet by default.",
46625
+ inputSchema: {
46626
+ type: "object",
46627
+ properties: {
46628
+ mode: {
46629
+ type: "string",
46630
+ enum: [
46631
+ "build",
46632
+ "dry-run",
46633
+ "read-only"
46634
+ ],
46635
+ default: "build"
46636
+ },
46637
+ network: {
46638
+ type: "string",
46639
+ default: "testnet"
46640
+ },
46641
+ owner: { type: "string" },
46642
+ coinType: { type: "string" },
46643
+ stake: { type: "number" },
46644
+ cashStake: { type: "number" },
46645
+ betCount: { type: "number" },
46646
+ side: {
46647
+ type: "string",
46648
+ enum: ["heads", "tails"]
46649
+ },
46650
+ coinObjectIds: {
46651
+ type: "array",
46652
+ items: { type: "string" }
46653
+ },
46654
+ partner: { type: "string" },
46655
+ metadata: {
46656
+ type: "object",
46657
+ additionalProperties: true
46658
+ },
46659
+ config: {
46660
+ type: "object",
46661
+ additionalProperties: true
46662
+ }
46663
+ },
46664
+ additionalProperties: true
46665
+ },
46666
+ handler: buildCoinflipTransactionTool
46667
+ },
46668
+ {
46669
+ name: "build_limbo_transaction",
46670
+ description: "Build, dry-run, or inspect a Suigar limbo transaction.",
46671
+ inputSchema: {
46672
+ type: "object",
46673
+ properties: {
46674
+ mode: {
46675
+ type: "string",
46676
+ enum: [
46677
+ "build",
46678
+ "dry-run",
46679
+ "read-only"
46680
+ ],
46681
+ default: "build"
46682
+ },
46683
+ network: {
46684
+ type: "string",
46685
+ default: "testnet"
46686
+ },
46687
+ owner: { type: "string" },
46688
+ coinType: { type: "string" },
46689
+ stake: { type: "number" },
46690
+ cashStake: { type: "number" },
46691
+ betCount: { type: "number" },
46692
+ targetMultiplier: { type: "number" },
46693
+ coinObjectIds: {
46694
+ type: "array",
46695
+ items: { type: "string" }
46696
+ },
46697
+ partner: { type: "string" },
46698
+ metadata: {
46699
+ type: "object",
46700
+ additionalProperties: true
46701
+ },
46702
+ config: {
46703
+ type: "object",
46704
+ additionalProperties: true
46705
+ }
46706
+ },
46707
+ additionalProperties: true
46708
+ },
46709
+ handler: buildLimboTransactionTool
46710
+ },
46711
+ {
46712
+ name: "build_plinko_transaction",
46713
+ description: "Build, dry-run, or inspect a Suigar plinko transaction.",
46714
+ inputSchema: {
46715
+ type: "object",
46716
+ properties: {
46717
+ mode: {
46718
+ type: "string",
46719
+ enum: [
46720
+ "build",
46721
+ "dry-run",
46722
+ "read-only"
46723
+ ],
46724
+ default: "build"
46725
+ },
46726
+ network: {
46727
+ type: "string",
46728
+ default: "testnet"
46729
+ },
46730
+ owner: { type: "string" },
46731
+ coinType: { type: "string" },
46732
+ stake: { type: "number" },
46733
+ cashStake: { type: "number" },
46734
+ betCount: { type: "number" },
46735
+ configId: { type: "number" },
46736
+ coinObjectIds: {
46737
+ type: "array",
46738
+ items: { type: "string" }
46739
+ },
46740
+ partner: { type: "string" },
46741
+ metadata: {
46742
+ type: "object",
46743
+ additionalProperties: true
46744
+ },
46745
+ config: {
46746
+ type: "object",
46747
+ additionalProperties: true
46748
+ }
46749
+ },
46750
+ additionalProperties: true
46751
+ },
46752
+ handler: buildPlinkoTransactionTool
46753
+ },
46754
+ {
46755
+ name: "build_wheel_transaction",
46756
+ description: "Build, dry-run, or inspect a Suigar wheel transaction.",
46757
+ inputSchema: {
46758
+ type: "object",
46759
+ properties: {
46760
+ mode: {
46761
+ type: "string",
46762
+ enum: [
46763
+ "build",
46764
+ "dry-run",
46765
+ "read-only"
46766
+ ],
46767
+ default: "build"
46768
+ },
46769
+ network: {
46770
+ type: "string",
46771
+ default: "testnet"
46772
+ },
46773
+ owner: { type: "string" },
46774
+ coinType: { type: "string" },
46775
+ stake: { type: "number" },
46776
+ cashStake: { type: "number" },
46777
+ betCount: { type: "number" },
46778
+ configId: { type: "number" },
46779
+ coinObjectIds: {
46780
+ type: "array",
46781
+ items: { type: "string" }
46782
+ },
46783
+ partner: { type: "string" },
46784
+ metadata: {
46785
+ type: "object",
46786
+ additionalProperties: true
46787
+ },
46788
+ config: {
46789
+ type: "object",
46790
+ additionalProperties: true
46791
+ }
46792
+ },
46793
+ additionalProperties: true
46794
+ },
46795
+ handler: buildWheelTransactionTool
46796
+ },
46797
+ {
46798
+ name: "build_range_transaction",
46799
+ description: "Build, dry-run, or inspect a Suigar range transaction.",
46800
+ inputSchema: {
46801
+ type: "object",
46802
+ properties: {
46803
+ mode: {
46804
+ type: "string",
46805
+ enum: [
46806
+ "build",
46807
+ "dry-run",
46808
+ "read-only"
46809
+ ],
46810
+ default: "build"
46811
+ },
46812
+ network: {
46813
+ type: "string",
46814
+ default: "testnet"
46815
+ },
46816
+ owner: { type: "string" },
46817
+ coinType: { type: "string" },
46818
+ stake: { type: "number" },
46819
+ cashStake: { type: "number" },
46820
+ betCount: { type: "number" },
46821
+ leftPoint: { type: "number" },
46822
+ rightPoint: { type: "number" },
46823
+ outOfRange: { type: "boolean" },
46824
+ coinObjectIds: {
46825
+ type: "array",
46826
+ items: { type: "string" }
46827
+ },
46828
+ partner: { type: "string" },
46829
+ metadata: {
46830
+ type: "object",
46831
+ additionalProperties: true
46832
+ },
46833
+ config: {
46834
+ type: "object",
46835
+ additionalProperties: true
46836
+ }
46837
+ },
46838
+ additionalProperties: true
46839
+ },
46840
+ handler: buildRangeTransactionTool
46841
+ },
46842
+ {
46843
+ name: "build_pvp_coinflip_create_transaction",
46844
+ description: "Build, dry-run, or inspect a Suigar PvP coinflip create transaction.",
46845
+ inputSchema: {
46846
+ type: "object",
46847
+ properties: {
46848
+ mode: {
46849
+ type: "string",
46850
+ enum: [
46851
+ "build",
46852
+ "dry-run",
46853
+ "read-only"
46854
+ ],
46855
+ default: "build"
46856
+ },
46857
+ network: {
46858
+ type: "string",
46859
+ default: "testnet"
46860
+ },
46861
+ owner: { type: "string" },
46862
+ coinType: { type: "string" },
46863
+ stake: { type: "number" },
46864
+ creatorSide: {
46865
+ type: "string",
46866
+ enum: ["heads", "tails"]
46867
+ },
46868
+ isPrivate: { type: "boolean" },
46869
+ coinObjectIds: {
46870
+ type: "array",
46871
+ items: { type: "string" }
46872
+ },
46873
+ partner: { type: "string" },
46874
+ metadata: {
46875
+ type: "object",
46876
+ additionalProperties: true
46877
+ },
46878
+ config: {
46879
+ type: "object",
46880
+ additionalProperties: true
46881
+ }
46882
+ },
46883
+ additionalProperties: true
46884
+ },
46885
+ handler: buildPvpCoinflipCreateTransactionTool
46886
+ },
46887
+ {
46888
+ name: "build_pvp_coinflip_join_transaction",
46889
+ description: "Build, dry-run, or inspect a Suigar PvP coinflip join transaction.",
46890
+ inputSchema: {
46891
+ type: "object",
46892
+ properties: {
46893
+ mode: {
46894
+ type: "string",
46895
+ enum: [
46896
+ "build",
46897
+ "dry-run",
46898
+ "read-only"
46899
+ ],
46900
+ default: "build"
46901
+ },
46902
+ network: {
46903
+ type: "string",
46904
+ default: "testnet"
46905
+ },
46906
+ owner: { type: "string" },
46907
+ gameId: { type: "string" },
46908
+ coinType: { type: "string" },
46909
+ stake: { type: "number" },
46910
+ coinObjectIds: {
46911
+ type: "array",
46912
+ items: { type: "string" }
46913
+ },
46914
+ partner: { type: "string" },
46915
+ metadata: {
46916
+ type: "object",
46917
+ additionalProperties: true
46918
+ },
46919
+ config: {
46920
+ type: "object",
46921
+ additionalProperties: true
46922
+ }
46923
+ },
46924
+ additionalProperties: true
46925
+ },
46926
+ handler: buildPvpCoinflipJoinTransactionTool
46927
+ },
46928
+ {
46929
+ name: "build_pvp_coinflip_cancel_transaction",
46930
+ description: "Build, dry-run, or inspect a Suigar PvP coinflip cancel transaction.",
46931
+ inputSchema: {
46932
+ type: "object",
46933
+ properties: {
46934
+ mode: {
46935
+ type: "string",
46936
+ enum: [
46937
+ "build",
46938
+ "dry-run",
46939
+ "read-only"
46940
+ ],
46941
+ default: "build"
46942
+ },
46943
+ network: {
46944
+ type: "string",
46945
+ default: "testnet"
46946
+ },
46947
+ owner: { type: "string" },
46948
+ gameId: { type: "string" },
46949
+ coinType: { type: "string" },
46950
+ config: {
46951
+ type: "object",
46952
+ additionalProperties: true
46953
+ }
46954
+ },
46955
+ additionalProperties: true
46956
+ },
46957
+ handler: buildPvpCoinflipCancelTransactionTool
46958
+ }
46959
+ ];
46960
+ const createSuigarMcpServer = () => {
46961
+ const server = new Server({
46962
+ name: "suigar",
46963
+ version: "0.0.0"
46964
+ }, { capabilities: { tools: {} } });
46965
+ server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: TOOL_DEFINITIONS.map(({ name, description, inputSchema }) => ({
46966
+ name,
46967
+ description,
46968
+ inputSchema
46969
+ })) }));
46970
+ server.setRequestHandler(CallToolRequestSchema, async (request) => {
46971
+ const tool = TOOL_DEFINITIONS.find((entry) => entry.name === request.params.name);
46972
+ if (!tool) return {
46973
+ isError: true,
46974
+ content: [{
46975
+ type: "text",
46976
+ text: `Unknown tool: ${request.params.name}`
46977
+ }]
46978
+ };
46979
+ try {
46980
+ return { content: [{
46981
+ type: "text",
46982
+ text: json(await tool.handler(request.params.arguments ?? {}))
46983
+ }] };
46984
+ } catch (error) {
46985
+ return {
46986
+ isError: true,
46987
+ content: [{
46988
+ type: "text",
46989
+ text: error instanceof Error ? error.message : String(error ?? "Unknown error")
46990
+ }]
46991
+ };
46992
+ }
46993
+ });
46994
+ return server;
46995
+ };
46996
+ const startSuigarMcpServer = async () => {
46997
+ const server = createSuigarMcpServer();
46998
+ const transport = new StdioServerTransport();
46999
+ await server.connect(transport);
47000
+ return server;
47001
+ };
47002
+ //#endregion
47003
+ export { listSupportedGames as A, resolvePythPriceInfoId as B, dryRunTransaction as C, getCurrencyInfo as D, resolveBetCoin as E, getRequiredConfigKeysForGame as F, SUPPORTED_MCP_TOOL_NAMES as H, inspectResolvedConfig as I, parseApiUrl as L, assertRequiredConfig as M, buildGraphqlUrl as N, getGameMetadata as O, buildProviderUrl as P, resolveGamePackageId as R, createReadOnlyClientBundle as S, serializeTransactionToBase64 as T, buildMcpSupportCatalog as U, resolveSuigarConfig as V, getMcpSupportForGame as W, buildPvpCoinflipCreateTransaction as _, buildPlinkoTransactionTool as a, buildWheelTransaction as b, buildPvpCoinflipJoinTransactionTool as c, readConfigTool as d, readGameMetadataTool as f, buildPvpCoinflipCancelTransaction as g, buildPlinkoTransaction as h, buildLimboTransactionTool as i, readConfigMetadata as j, listConfiguredCurrencies as k, buildRangeTransactionTool as l, buildLimboTransaction as m, startSuigarMcpServer as n, buildPvpCoinflipCancelTransactionTool as o, buildCoinflipTransaction as p, buildCoinflipTransactionTool as r, buildPvpCoinflipCreateTransactionTool as s, createSuigarMcpServer as t, buildWheelTransactionTool as u, buildPvpCoinflipJoinTransaction as v, sanitizeForJson as w, summarizeTransaction as x, buildRangeTransaction as y, resolveGameSettingsId as z };