@agentic-ui-experience/ui-arcgis 0.0.1-beta.2

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.
@@ -0,0 +1 @@
1
+ (function(_0xe8708c,_0x55617b){const _0x112f62=_0x4c46,_0x3c0342=_0xe8708c();while(!![]){try{const _0x476065=-parseInt(_0x112f62(0x73))/0x1*(parseInt(_0x112f62(0x75))/0x2)+-parseInt(_0x112f62(0x72))/0x3*(parseInt(_0x112f62(0x79))/0x4)+-parseInt(_0x112f62(0x7a))/0x5+-parseInt(_0x112f62(0x74))/0x6+parseInt(_0x112f62(0x76))/0x7+parseInt(_0x112f62(0x71))/0x8*(-parseInt(_0x112f62(0x77))/0x9)+parseInt(_0x112f62(0x78))/0xa;if(_0x476065===_0x55617b)break;else _0x3c0342['push'](_0x3c0342['shift']());}catch(_0x3b0c96){_0x3c0342['push'](_0x3c0342['shift']());}}}(_0x2451,0x2a79a));import{defineCatalogPromptDescriptor}from'@agentic-ui-experience/ui-core';import{defineCatalog}from'@agentic-ui-experience/ui-runtime';import{defineReactCatalog}from'@agentic-ui-experience/ui-react';function _0x4c46(_0x409b0d,_0x7e138f){_0x409b0d=_0x409b0d-0x71;const _0x245143=_0x2451();let _0x4c469e=_0x245143[_0x409b0d];return _0x4c469e;}function _0x2451(){const _0x41f836=['1291752GWLHTv','194031LByElg','11221880lfVSBO','819912tvnKZM','1524970wKfRYx','48qelRaD','3dJFJlh','339RTrclP','1860126VRKslR','1082ZgPXLg'];_0x2451=function(){return _0x41f836;};return _0x2451();}import{ArcGISMapViewApi}from'./api.js';import{ArcGISMapView}from'./ArcGISMapView.js';import{arcgisStyleGuide,arcGISMapViewDescription}from'./prompt.js';const ARCGIS_CATALOG_ID='com.agentic-ui-experience.arcgis.v1',arcgisComponentApis=[ArcGISMapViewApi],arcgisComponents=[ArcGISMapView],arcgisPromptDescriptor=defineCatalogPromptDescriptor({'id':ARCGIS_CATALOG_ID,'components':arcgisComponentApis,'descriptions':{'ArcGISMapView':arcGISMapViewDescription},'styleGuide':arcgisStyleGuide}),arcgisRuntimeCatalog=defineCatalog({'id':ARCGIS_CATALOG_ID,'components':arcgisComponentApis}),arcgisReactCatalog=defineReactCatalog({'id':ARCGIS_CATALOG_ID,'components':arcgisComponents});export{ARCGIS_CATALOG_ID,arcgisComponentApis,arcgisComponents,arcgisPromptDescriptor,arcgisReactCatalog,arcgisRuntimeCatalog};
@@ -0,0 +1,692 @@
1
+ import { z } from "zod";
2
+ export declare const ArcGISMapSnapshotSchema: z.ZodObject<{
3
+ map: z.ZodObject<{
4
+ itemId: z.ZodOptional<z.ZodString>;
5
+ title: z.ZodOptional<z.ZodString>;
6
+ }, "strict", z.ZodTypeAny, {
7
+ itemId?: string | undefined;
8
+ title?: string | undefined;
9
+ }, {
10
+ itemId?: string | undefined;
11
+ title?: string | undefined;
12
+ }>;
13
+ viewpoint: z.ZodObject<{
14
+ center: z.ZodObject<{
15
+ longitude: z.ZodNumber;
16
+ latitude: z.ZodNumber;
17
+ }, "strict", z.ZodTypeAny, {
18
+ latitude: number;
19
+ longitude: number;
20
+ }, {
21
+ latitude: number;
22
+ longitude: number;
23
+ }>;
24
+ zoom: z.ZodNumber;
25
+ scale: z.ZodNumber;
26
+ }, "strict", z.ZodTypeAny, {
27
+ zoom: number;
28
+ center: {
29
+ latitude: number;
30
+ longitude: number;
31
+ };
32
+ scale: number;
33
+ }, {
34
+ zoom: number;
35
+ center: {
36
+ latitude: number;
37
+ longitude: number;
38
+ };
39
+ scale: number;
40
+ }>;
41
+ layers: z.ZodArray<z.ZodObject<{
42
+ id: z.ZodString;
43
+ title: z.ZodString;
44
+ type: z.ZodString;
45
+ visible: z.ZodBoolean;
46
+ }, "strict", z.ZodTypeAny, {
47
+ type: string;
48
+ title: string;
49
+ visible: boolean;
50
+ id: string;
51
+ }, {
52
+ type: string;
53
+ title: string;
54
+ visible: boolean;
55
+ id: string;
56
+ }>, "many">;
57
+ capabilities: z.ZodObject<{
58
+ goTo: z.ZodBoolean;
59
+ setLayerVisibility: z.ZodBoolean;
60
+ }, "strict", z.ZodTypeAny, {
61
+ goTo: boolean;
62
+ setLayerVisibility: boolean;
63
+ }, {
64
+ goTo: boolean;
65
+ setLayerVisibility: boolean;
66
+ }>;
67
+ }, "strict", z.ZodTypeAny, {
68
+ map: {
69
+ itemId?: string | undefined;
70
+ title?: string | undefined;
71
+ };
72
+ viewpoint: {
73
+ zoom: number;
74
+ center: {
75
+ latitude: number;
76
+ longitude: number;
77
+ };
78
+ scale: number;
79
+ };
80
+ layers: {
81
+ type: string;
82
+ title: string;
83
+ visible: boolean;
84
+ id: string;
85
+ }[];
86
+ capabilities: {
87
+ goTo: boolean;
88
+ setLayerVisibility: boolean;
89
+ };
90
+ }, {
91
+ map: {
92
+ itemId?: string | undefined;
93
+ title?: string | undefined;
94
+ };
95
+ viewpoint: {
96
+ zoom: number;
97
+ center: {
98
+ latitude: number;
99
+ longitude: number;
100
+ };
101
+ scale: number;
102
+ };
103
+ layers: {
104
+ type: string;
105
+ title: string;
106
+ visible: boolean;
107
+ id: string;
108
+ }[];
109
+ capabilities: {
110
+ goTo: boolean;
111
+ setLayerVisibility: boolean;
112
+ };
113
+ }>;
114
+ export declare const ArcGISMapCommandSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
115
+ type: z.ZodLiteral<"goTo">;
116
+ target: z.ZodObject<{
117
+ center: z.ZodObject<{
118
+ longitude: z.ZodNumber;
119
+ latitude: z.ZodNumber;
120
+ }, "strict", z.ZodTypeAny, {
121
+ latitude: number;
122
+ longitude: number;
123
+ }, {
124
+ latitude: number;
125
+ longitude: number;
126
+ }>;
127
+ zoom: z.ZodOptional<z.ZodNumber>;
128
+ }, "strict", z.ZodTypeAny, {
129
+ center: {
130
+ latitude: number;
131
+ longitude: number;
132
+ };
133
+ zoom?: number | undefined;
134
+ }, {
135
+ center: {
136
+ latitude: number;
137
+ longitude: number;
138
+ };
139
+ zoom?: number | undefined;
140
+ }>;
141
+ }, "strict", z.ZodTypeAny, {
142
+ type: "goTo";
143
+ target: {
144
+ center: {
145
+ latitude: number;
146
+ longitude: number;
147
+ };
148
+ zoom?: number | undefined;
149
+ };
150
+ }, {
151
+ type: "goTo";
152
+ target: {
153
+ center: {
154
+ latitude: number;
155
+ longitude: number;
156
+ };
157
+ zoom?: number | undefined;
158
+ };
159
+ }>, z.ZodObject<{
160
+ type: z.ZodLiteral<"setLayerVisibility">;
161
+ layerId: z.ZodString;
162
+ visible: z.ZodBoolean;
163
+ }, "strict", z.ZodTypeAny, {
164
+ type: "setLayerVisibility";
165
+ visible: boolean;
166
+ layerId: string;
167
+ }, {
168
+ type: "setLayerVisibility";
169
+ visible: boolean;
170
+ layerId: string;
171
+ }>]>;
172
+ export declare const ArcGISMapCommandErrorCodes: readonly ["map-not-ready", "layer-not-found", "invalid-target", "unsupported-command", "execution-failed"];
173
+ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
174
+ ok: z.ZodLiteral<true>;
175
+ command: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
176
+ type: z.ZodLiteral<"goTo">;
177
+ target: z.ZodObject<{
178
+ center: z.ZodObject<{
179
+ longitude: z.ZodNumber;
180
+ latitude: z.ZodNumber;
181
+ }, "strict", z.ZodTypeAny, {
182
+ latitude: number;
183
+ longitude: number;
184
+ }, {
185
+ latitude: number;
186
+ longitude: number;
187
+ }>;
188
+ zoom: z.ZodOptional<z.ZodNumber>;
189
+ }, "strict", z.ZodTypeAny, {
190
+ center: {
191
+ latitude: number;
192
+ longitude: number;
193
+ };
194
+ zoom?: number | undefined;
195
+ }, {
196
+ center: {
197
+ latitude: number;
198
+ longitude: number;
199
+ };
200
+ zoom?: number | undefined;
201
+ }>;
202
+ }, "strict", z.ZodTypeAny, {
203
+ type: "goTo";
204
+ target: {
205
+ center: {
206
+ latitude: number;
207
+ longitude: number;
208
+ };
209
+ zoom?: number | undefined;
210
+ };
211
+ }, {
212
+ type: "goTo";
213
+ target: {
214
+ center: {
215
+ latitude: number;
216
+ longitude: number;
217
+ };
218
+ zoom?: number | undefined;
219
+ };
220
+ }>, z.ZodObject<{
221
+ type: z.ZodLiteral<"setLayerVisibility">;
222
+ layerId: z.ZodString;
223
+ visible: z.ZodBoolean;
224
+ }, "strict", z.ZodTypeAny, {
225
+ type: "setLayerVisibility";
226
+ visible: boolean;
227
+ layerId: string;
228
+ }, {
229
+ type: "setLayerVisibility";
230
+ visible: boolean;
231
+ layerId: string;
232
+ }>]>;
233
+ snapshot: z.ZodObject<{
234
+ map: z.ZodObject<{
235
+ itemId: z.ZodOptional<z.ZodString>;
236
+ title: z.ZodOptional<z.ZodString>;
237
+ }, "strict", z.ZodTypeAny, {
238
+ itemId?: string | undefined;
239
+ title?: string | undefined;
240
+ }, {
241
+ itemId?: string | undefined;
242
+ title?: string | undefined;
243
+ }>;
244
+ viewpoint: z.ZodObject<{
245
+ center: z.ZodObject<{
246
+ longitude: z.ZodNumber;
247
+ latitude: z.ZodNumber;
248
+ }, "strict", z.ZodTypeAny, {
249
+ latitude: number;
250
+ longitude: number;
251
+ }, {
252
+ latitude: number;
253
+ longitude: number;
254
+ }>;
255
+ zoom: z.ZodNumber;
256
+ scale: z.ZodNumber;
257
+ }, "strict", z.ZodTypeAny, {
258
+ zoom: number;
259
+ center: {
260
+ latitude: number;
261
+ longitude: number;
262
+ };
263
+ scale: number;
264
+ }, {
265
+ zoom: number;
266
+ center: {
267
+ latitude: number;
268
+ longitude: number;
269
+ };
270
+ scale: number;
271
+ }>;
272
+ layers: z.ZodArray<z.ZodObject<{
273
+ id: z.ZodString;
274
+ title: z.ZodString;
275
+ type: z.ZodString;
276
+ visible: z.ZodBoolean;
277
+ }, "strict", z.ZodTypeAny, {
278
+ type: string;
279
+ title: string;
280
+ visible: boolean;
281
+ id: string;
282
+ }, {
283
+ type: string;
284
+ title: string;
285
+ visible: boolean;
286
+ id: string;
287
+ }>, "many">;
288
+ capabilities: z.ZodObject<{
289
+ goTo: z.ZodBoolean;
290
+ setLayerVisibility: z.ZodBoolean;
291
+ }, "strict", z.ZodTypeAny, {
292
+ goTo: boolean;
293
+ setLayerVisibility: boolean;
294
+ }, {
295
+ goTo: boolean;
296
+ setLayerVisibility: boolean;
297
+ }>;
298
+ }, "strict", z.ZodTypeAny, {
299
+ map: {
300
+ itemId?: string | undefined;
301
+ title?: string | undefined;
302
+ };
303
+ viewpoint: {
304
+ zoom: number;
305
+ center: {
306
+ latitude: number;
307
+ longitude: number;
308
+ };
309
+ scale: number;
310
+ };
311
+ layers: {
312
+ type: string;
313
+ title: string;
314
+ visible: boolean;
315
+ id: string;
316
+ }[];
317
+ capabilities: {
318
+ goTo: boolean;
319
+ setLayerVisibility: boolean;
320
+ };
321
+ }, {
322
+ map: {
323
+ itemId?: string | undefined;
324
+ title?: string | undefined;
325
+ };
326
+ viewpoint: {
327
+ zoom: number;
328
+ center: {
329
+ latitude: number;
330
+ longitude: number;
331
+ };
332
+ scale: number;
333
+ };
334
+ layers: {
335
+ type: string;
336
+ title: string;
337
+ visible: boolean;
338
+ id: string;
339
+ }[];
340
+ capabilities: {
341
+ goTo: boolean;
342
+ setLayerVisibility: boolean;
343
+ };
344
+ }>;
345
+ }, "strict", z.ZodTypeAny, {
346
+ ok: true;
347
+ command: {
348
+ type: "goTo";
349
+ target: {
350
+ center: {
351
+ latitude: number;
352
+ longitude: number;
353
+ };
354
+ zoom?: number | undefined;
355
+ };
356
+ } | {
357
+ type: "setLayerVisibility";
358
+ visible: boolean;
359
+ layerId: string;
360
+ };
361
+ snapshot: {
362
+ map: {
363
+ itemId?: string | undefined;
364
+ title?: string | undefined;
365
+ };
366
+ viewpoint: {
367
+ zoom: number;
368
+ center: {
369
+ latitude: number;
370
+ longitude: number;
371
+ };
372
+ scale: number;
373
+ };
374
+ layers: {
375
+ type: string;
376
+ title: string;
377
+ visible: boolean;
378
+ id: string;
379
+ }[];
380
+ capabilities: {
381
+ goTo: boolean;
382
+ setLayerVisibility: boolean;
383
+ };
384
+ };
385
+ }, {
386
+ ok: true;
387
+ command: {
388
+ type: "goTo";
389
+ target: {
390
+ center: {
391
+ latitude: number;
392
+ longitude: number;
393
+ };
394
+ zoom?: number | undefined;
395
+ };
396
+ } | {
397
+ type: "setLayerVisibility";
398
+ visible: boolean;
399
+ layerId: string;
400
+ };
401
+ snapshot: {
402
+ map: {
403
+ itemId?: string | undefined;
404
+ title?: string | undefined;
405
+ };
406
+ viewpoint: {
407
+ zoom: number;
408
+ center: {
409
+ latitude: number;
410
+ longitude: number;
411
+ };
412
+ scale: number;
413
+ };
414
+ layers: {
415
+ type: string;
416
+ title: string;
417
+ visible: boolean;
418
+ id: string;
419
+ }[];
420
+ capabilities: {
421
+ goTo: boolean;
422
+ setLayerVisibility: boolean;
423
+ };
424
+ };
425
+ }>, z.ZodObject<{
426
+ ok: z.ZodLiteral<false>;
427
+ command: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
428
+ type: z.ZodLiteral<"goTo">;
429
+ target: z.ZodObject<{
430
+ center: z.ZodObject<{
431
+ longitude: z.ZodNumber;
432
+ latitude: z.ZodNumber;
433
+ }, "strict", z.ZodTypeAny, {
434
+ latitude: number;
435
+ longitude: number;
436
+ }, {
437
+ latitude: number;
438
+ longitude: number;
439
+ }>;
440
+ zoom: z.ZodOptional<z.ZodNumber>;
441
+ }, "strict", z.ZodTypeAny, {
442
+ center: {
443
+ latitude: number;
444
+ longitude: number;
445
+ };
446
+ zoom?: number | undefined;
447
+ }, {
448
+ center: {
449
+ latitude: number;
450
+ longitude: number;
451
+ };
452
+ zoom?: number | undefined;
453
+ }>;
454
+ }, "strict", z.ZodTypeAny, {
455
+ type: "goTo";
456
+ target: {
457
+ center: {
458
+ latitude: number;
459
+ longitude: number;
460
+ };
461
+ zoom?: number | undefined;
462
+ };
463
+ }, {
464
+ type: "goTo";
465
+ target: {
466
+ center: {
467
+ latitude: number;
468
+ longitude: number;
469
+ };
470
+ zoom?: number | undefined;
471
+ };
472
+ }>, z.ZodObject<{
473
+ type: z.ZodLiteral<"setLayerVisibility">;
474
+ layerId: z.ZodString;
475
+ visible: z.ZodBoolean;
476
+ }, "strict", z.ZodTypeAny, {
477
+ type: "setLayerVisibility";
478
+ visible: boolean;
479
+ layerId: string;
480
+ }, {
481
+ type: "setLayerVisibility";
482
+ visible: boolean;
483
+ layerId: string;
484
+ }>]>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
485
+ code: z.ZodEnum<["map-not-ready", "layer-not-found", "invalid-target", "unsupported-command", "execution-failed"]>;
486
+ message: z.ZodString;
487
+ snapshot: z.ZodOptional<z.ZodObject<{
488
+ map: z.ZodObject<{
489
+ itemId: z.ZodOptional<z.ZodString>;
490
+ title: z.ZodOptional<z.ZodString>;
491
+ }, "strict", z.ZodTypeAny, {
492
+ itemId?: string | undefined;
493
+ title?: string | undefined;
494
+ }, {
495
+ itemId?: string | undefined;
496
+ title?: string | undefined;
497
+ }>;
498
+ viewpoint: z.ZodObject<{
499
+ center: z.ZodObject<{
500
+ longitude: z.ZodNumber;
501
+ latitude: z.ZodNumber;
502
+ }, "strict", z.ZodTypeAny, {
503
+ latitude: number;
504
+ longitude: number;
505
+ }, {
506
+ latitude: number;
507
+ longitude: number;
508
+ }>;
509
+ zoom: z.ZodNumber;
510
+ scale: z.ZodNumber;
511
+ }, "strict", z.ZodTypeAny, {
512
+ zoom: number;
513
+ center: {
514
+ latitude: number;
515
+ longitude: number;
516
+ };
517
+ scale: number;
518
+ }, {
519
+ zoom: number;
520
+ center: {
521
+ latitude: number;
522
+ longitude: number;
523
+ };
524
+ scale: number;
525
+ }>;
526
+ layers: z.ZodArray<z.ZodObject<{
527
+ id: z.ZodString;
528
+ title: z.ZodString;
529
+ type: z.ZodString;
530
+ visible: z.ZodBoolean;
531
+ }, "strict", z.ZodTypeAny, {
532
+ type: string;
533
+ title: string;
534
+ visible: boolean;
535
+ id: string;
536
+ }, {
537
+ type: string;
538
+ title: string;
539
+ visible: boolean;
540
+ id: string;
541
+ }>, "many">;
542
+ capabilities: z.ZodObject<{
543
+ goTo: z.ZodBoolean;
544
+ setLayerVisibility: z.ZodBoolean;
545
+ }, "strict", z.ZodTypeAny, {
546
+ goTo: boolean;
547
+ setLayerVisibility: boolean;
548
+ }, {
549
+ goTo: boolean;
550
+ setLayerVisibility: boolean;
551
+ }>;
552
+ }, "strict", z.ZodTypeAny, {
553
+ map: {
554
+ itemId?: string | undefined;
555
+ title?: string | undefined;
556
+ };
557
+ viewpoint: {
558
+ zoom: number;
559
+ center: {
560
+ latitude: number;
561
+ longitude: number;
562
+ };
563
+ scale: number;
564
+ };
565
+ layers: {
566
+ type: string;
567
+ title: string;
568
+ visible: boolean;
569
+ id: string;
570
+ }[];
571
+ capabilities: {
572
+ goTo: boolean;
573
+ setLayerVisibility: boolean;
574
+ };
575
+ }, {
576
+ map: {
577
+ itemId?: string | undefined;
578
+ title?: string | undefined;
579
+ };
580
+ viewpoint: {
581
+ zoom: number;
582
+ center: {
583
+ latitude: number;
584
+ longitude: number;
585
+ };
586
+ scale: number;
587
+ };
588
+ layers: {
589
+ type: string;
590
+ title: string;
591
+ visible: boolean;
592
+ id: string;
593
+ }[];
594
+ capabilities: {
595
+ goTo: boolean;
596
+ setLayerVisibility: boolean;
597
+ };
598
+ }>>;
599
+ }, "strict", z.ZodTypeAny, {
600
+ code: "map-not-ready" | "layer-not-found" | "invalid-target" | "unsupported-command" | "execution-failed";
601
+ message: string;
602
+ ok: false;
603
+ command: {
604
+ type: "goTo";
605
+ target: {
606
+ center: {
607
+ latitude: number;
608
+ longitude: number;
609
+ };
610
+ zoom?: number | undefined;
611
+ };
612
+ } | {
613
+ type: "setLayerVisibility";
614
+ visible: boolean;
615
+ layerId: string;
616
+ } | Record<string, unknown>;
617
+ snapshot?: {
618
+ map: {
619
+ itemId?: string | undefined;
620
+ title?: string | undefined;
621
+ };
622
+ viewpoint: {
623
+ zoom: number;
624
+ center: {
625
+ latitude: number;
626
+ longitude: number;
627
+ };
628
+ scale: number;
629
+ };
630
+ layers: {
631
+ type: string;
632
+ title: string;
633
+ visible: boolean;
634
+ id: string;
635
+ }[];
636
+ capabilities: {
637
+ goTo: boolean;
638
+ setLayerVisibility: boolean;
639
+ };
640
+ } | undefined;
641
+ }, {
642
+ code: "map-not-ready" | "layer-not-found" | "invalid-target" | "unsupported-command" | "execution-failed";
643
+ message: string;
644
+ ok: false;
645
+ command: {
646
+ type: "goTo";
647
+ target: {
648
+ center: {
649
+ latitude: number;
650
+ longitude: number;
651
+ };
652
+ zoom?: number | undefined;
653
+ };
654
+ } | {
655
+ type: "setLayerVisibility";
656
+ visible: boolean;
657
+ layerId: string;
658
+ } | Record<string, unknown>;
659
+ snapshot?: {
660
+ map: {
661
+ itemId?: string | undefined;
662
+ title?: string | undefined;
663
+ };
664
+ viewpoint: {
665
+ zoom: number;
666
+ center: {
667
+ latitude: number;
668
+ longitude: number;
669
+ };
670
+ scale: number;
671
+ };
672
+ layers: {
673
+ type: string;
674
+ title: string;
675
+ visible: boolean;
676
+ id: string;
677
+ }[];
678
+ capabilities: {
679
+ goTo: boolean;
680
+ setLayerVisibility: boolean;
681
+ };
682
+ } | undefined;
683
+ }>]>;
684
+ export type ArcGISMapSnapshot = z.infer<typeof ArcGISMapSnapshotSchema>;
685
+ export type ArcGISMapCommand = z.infer<typeof ArcGISMapCommandSchema>;
686
+ export type ArcGISMapCommandResult = z.infer<typeof ArcGISMapCommandResultSchema>;
687
+ export type ArcGISMapCommandErrorCode = (typeof ArcGISMapCommandErrorCodes)[number];
688
+ export interface ArcGISMapController {
689
+ getSnapshot(): Promise<ArcGISMapSnapshot>;
690
+ subscribe(listener: (snapshot: ArcGISMapSnapshot) => void): () => void;
691
+ execute(command: ArcGISMapCommand): Promise<ArcGISMapCommandResult>;
692
+ }
@@ -0,0 +1 @@
1
+ function _0x2352(){const _0x3010e6=['positive','max','4HqSMMZ','optional','2JGvIux','goTo','strict','layer-not-found','2524578VwVzkO','union','337938sIvmSX','2027485nlZvOB','811302KwyVFI','object','execution-failed','array','16GzVxaa','129480wKGgtm','string','min','1542411MDSilZ','boolean','record','16425930ZCZXIy','literal','discriminatedUnion'];_0x2352=function(){return _0x3010e6;};return _0x2352();}const _0xe42d65=_0x155f;(function(_0x28439e,_0x1ad401){const _0xc2a119=_0x155f,_0x2629b7=_0x28439e();while(!![]){try{const _0x1f00e2=parseInt(_0xc2a119(0x8d))/0x1*(-parseInt(_0xc2a119(0x93))/0x2)+parseInt(_0xc2a119(0x95))/0x3+parseInt(_0xc2a119(0x8b))/0x4*(-parseInt(_0xc2a119(0x94))/0x5)+parseInt(_0xc2a119(0x80))/0x6+-parseInt(_0xc2a119(0x91))/0x7+-parseInt(_0xc2a119(0x7f))/0x8*(parseInt(_0xc2a119(0x83))/0x9)+parseInt(_0xc2a119(0x86))/0xa;if(_0x1f00e2===_0x1ad401)break;else _0x2629b7['push'](_0x2629b7['shift']());}catch(_0x1fa6e8){_0x2629b7['push'](_0x2629b7['shift']());}}}(_0x2352,0x77150));import{z}from'zod';function _0x155f(_0x1c3aa2,_0x4cf509){_0x1c3aa2=_0x1c3aa2-0x7e;const _0x235237=_0x2352();let _0x155faa=_0x235237[_0x1c3aa2];return _0x155faa;}const FiniteNumberSchema=z['number']()['finite'](),ArcGISMapCenterSchema=z['object']({'longitude':FiniteNumberSchema[_0xe42d65(0x82)](-0xb4)['max'](0xb4),'latitude':FiniteNumberSchema[_0xe42d65(0x82)](-0x5a)[_0xe42d65(0x8a)](0x5a)})['strict'](),ArcGISMapLayerSnapshotSchema=z['object']({'id':z['string']()['min'](0x1),'title':z[_0xe42d65(0x81)](),'type':z['string'](),'visible':z['boolean']()})['strict'](),ArcGISMapSnapshotSchema=z[_0xe42d65(0x96)]({'map':z['object']({'itemId':z[_0xe42d65(0x81)]()[_0xe42d65(0x82)](0x1)[_0xe42d65(0x8c)](),'title':z[_0xe42d65(0x81)]()['min'](0x1)[_0xe42d65(0x8c)]()})[_0xe42d65(0x8f)](),'viewpoint':z['object']({'center':ArcGISMapCenterSchema,'zoom':FiniteNumberSchema['min'](0x0)[_0xe42d65(0x8a)](0x17),'scale':FiniteNumberSchema[_0xe42d65(0x89)]()})['strict'](),'layers':z[_0xe42d65(0x7e)](ArcGISMapLayerSnapshotSchema),'capabilities':z[_0xe42d65(0x96)]({'goTo':z['boolean'](),'setLayerVisibility':z[_0xe42d65(0x84)]()})['strict']()})['strict'](),ArcGISGoToCommandSchema=z[_0xe42d65(0x96)]({'type':z[_0xe42d65(0x87)](_0xe42d65(0x8e)),'target':z['object']({'center':ArcGISMapCenterSchema,'zoom':FiniteNumberSchema[_0xe42d65(0x82)](0x0)[_0xe42d65(0x8a)](0x17)[_0xe42d65(0x8c)]()})['strict']()})['strict'](),ArcGISSetLayerVisibilityCommandSchema=z['object']({'type':z[_0xe42d65(0x87)]('setLayerVisibility'),'layerId':z[_0xe42d65(0x81)]()[_0xe42d65(0x82)](0x1),'visible':z['boolean']()})['strict'](),ArcGISMapCommandSchema=z[_0xe42d65(0x88)]('type',[ArcGISGoToCommandSchema,ArcGISSetLayerVisibilityCommandSchema]),ArcGISMapCommandErrorCodes=['map-not-ready',_0xe42d65(0x90),'invalid-target','unsupported-command',_0xe42d65(0x97)],ArcGISMapCommandErrorCodeSchema=z['enum'](ArcGISMapCommandErrorCodes),ArcGISMapCommandSuccessSchema=z['object']({'ok':z['literal'](!![]),'command':ArcGISMapCommandSchema,'snapshot':ArcGISMapSnapshotSchema})[_0xe42d65(0x8f)](),ArcGISMapCommandFailureSchema=z['object']({'ok':z[_0xe42d65(0x87)](![]),'command':z[_0xe42d65(0x92)]([ArcGISMapCommandSchema,z[_0xe42d65(0x85)](z['unknown']())]),'code':ArcGISMapCommandErrorCodeSchema,'message':z['string']()[_0xe42d65(0x82)](0x1),'snapshot':ArcGISMapSnapshotSchema['optional']()})[_0xe42d65(0x8f)](),ArcGISMapCommandResultSchema=z[_0xe42d65(0x88)]('ok',[ArcGISMapCommandSuccessSchema,ArcGISMapCommandFailureSchema]);export{ArcGISMapCommandErrorCodes,ArcGISMapCommandResultSchema,ArcGISMapCommandSchema,ArcGISMapSnapshotSchema};