@hybridcore/ui 1.4.16 → 1.4.17

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.
@@ -74,8 +74,10 @@ function M({
74
74
  console.log("undefined value geojson type!");
75
75
  return;
76
76
  }
77
- const i = x(e);
78
- n(i ?? "");
77
+ if (e) {
78
+ const i = x(e);
79
+ n(i ?? "");
80
+ }
79
81
  },
80
82
  children: "Add Coordinate"
81
83
  }
@@ -1,37 +1,1317 @@
1
- import i from "terraformer-wkt-parser";
2
- import * as o from "@turf/turf";
3
- const l = (e) => {
1
+ import * as w from "@turf/turf";
2
+ import st from "lodash";
3
+ /* @preserve
4
+ * @terraformer/wkt - v2.2.0 - MIT
5
+ * Copyright (c) 2012-2024 Environmental Systems Research Institute, Inc.
6
+ * Wed May 15 2024 14:35:51 GMT-0700 (Pacific Daylight Time)
7
+ */
8
+ var s = function(e, t, r, a) {
9
+ for (r = r || {}, a = e.length; a--; r[e[a]] = t) ;
10
+ return r;
11
+ }, M = [1, 9], v = [1, 10], N = [1, 11], L = [1, 12], E = [1, 13], I = [1, 14], x = [1, 15], p = [1, 60], c = [5, 15, 19], b = [1, 67], g = [1, 73], G = [1, 87], R = [1, 104], h = [15, 19], _ = [1, 110], k = [1, 116], U = [1, 130], V = [1, 136], J = {
12
+ trace: function() {
13
+ },
14
+ yy: {},
15
+ symbols_: {
16
+ error: 2,
17
+ expressions: 3,
18
+ point: 4,
19
+ EOF: 5,
20
+ linestring: 6,
21
+ polygon: 7,
22
+ multipoint: 8,
23
+ multilinestring: 9,
24
+ multipolygon: 10,
25
+ geometrycollection: 11,
26
+ coordinate: 12,
27
+ DOUBLE_TOK: 13,
28
+ ptarray: 14,
29
+ COMMA: 15,
30
+ ring_list: 16,
31
+ ring: 17,
32
+ "(": 18,
33
+ ")": 19,
34
+ POINT: 20,
35
+ Z: 21,
36
+ ZM: 22,
37
+ M: 23,
38
+ EMPTY: 24,
39
+ point_untagged: 25,
40
+ polygon_list: 26,
41
+ polygon_untagged: 27,
42
+ point_list: 28,
43
+ LINESTRING: 29,
44
+ POLYGON: 30,
45
+ MULTIPOINT: 31,
46
+ MULTILINESTRING: 32,
47
+ MULTIPOLYGON: 33,
48
+ geometry: 34,
49
+ geometry_collection: 35,
50
+ GEOMETRYCOLLECTION: 36,
51
+ $accept: 0,
52
+ $end: 1
53
+ },
54
+ terminals_: {
55
+ 2: "error",
56
+ 5: "EOF",
57
+ 13: "DOUBLE_TOK",
58
+ 15: "COMMA",
59
+ 18: "(",
60
+ 19: ")",
61
+ 20: "POINT",
62
+ 21: "Z",
63
+ 22: "ZM",
64
+ 23: "M",
65
+ 24: "EMPTY",
66
+ 29: "LINESTRING",
67
+ 30: "POLYGON",
68
+ 31: "MULTIPOINT",
69
+ 32: "MULTILINESTRING",
70
+ 33: "MULTIPOLYGON",
71
+ 36: "GEOMETRYCOLLECTION"
72
+ },
73
+ productions_: [0, [3, 2], [3, 2], [3, 2], [3, 2], [3, 2], [3, 2], [3, 2], [12, 2], [12, 3], [12, 4], [14, 3], [14, 1], [16, 3], [16, 1], [17, 3], [4, 4], [4, 5], [4, 5], [4, 5], [4, 2], [25, 1], [25, 3], [26, 3], [26, 1], [27, 3], [28, 3], [28, 1], [6, 4], [6, 5], [6, 5], [6, 5], [6, 2], [7, 4], [7, 5], [7, 5], [7, 5], [7, 2], [8, 4], [8, 5], [8, 5], [8, 5], [8, 2], [9, 4], [9, 5], [9, 5], [9, 5], [9, 2], [10, 4], [10, 5], [10, 5], [10, 5], [10, 2], [34, 1], [34, 1], [34, 1], [34, 1], [34, 1], [34, 1], [34, 1], [35, 3], [35, 1], [11, 4], [11, 5], [11, 5], [11, 5], [11, 2]],
74
+ performAction: function(e, t, r, a, l, i, y) {
75
+ var o = i.length - 1;
76
+ switch (l) {
77
+ case 1:
78
+ case 2:
79
+ case 3:
80
+ case 4:
81
+ case 5:
82
+ case 6:
83
+ case 7:
84
+ return i[o - 1];
85
+ case 8:
86
+ this.$ = new Y([Number(i[o - 1]), Number(i[o])]);
87
+ break;
88
+ case 9:
89
+ this.$ = new Y([Number(i[o - 2]), Number(i[o - 1]), Number(i[o])]);
90
+ break;
91
+ case 10:
92
+ this.$ = new Y([Number(i[o - 3]), Number(i[o - 2]), Number(i[o - 1]), Number(i[o])]);
93
+ break;
94
+ case 11:
95
+ case 26:
96
+ this.$ = i[o - 2].addPoint(i[o]);
97
+ break;
98
+ case 12:
99
+ case 21:
100
+ case 27:
101
+ case 53:
102
+ case 54:
103
+ case 55:
104
+ case 56:
105
+ case 57:
106
+ case 58:
107
+ case 59:
108
+ this.$ = i[o];
109
+ break;
110
+ case 13:
111
+ this.$ = i[o - 2].addRing(i[o]);
112
+ break;
113
+ case 14:
114
+ this.$ = new F(i[o]);
115
+ break;
116
+ case 15:
117
+ this.$ = new tt(i[o - 1]);
118
+ break;
119
+ case 16:
120
+ this.$ = {
121
+ type: "Point",
122
+ coordinates: i[o - 1].data[0]
123
+ };
124
+ break;
125
+ case 17:
126
+ this.$ = {
127
+ type: "Point",
128
+ coordinates: i[o - 1].data[0],
129
+ properties: {
130
+ z: !0
131
+ }
132
+ };
133
+ break;
134
+ case 18:
135
+ this.$ = {
136
+ type: "Point",
137
+ coordinates: i[o - 1].data[0],
138
+ properties: {
139
+ z: !0,
140
+ m: !0
141
+ }
142
+ };
143
+ break;
144
+ case 19:
145
+ this.$ = {
146
+ type: "Point",
147
+ coordinates: i[o - 1].data[0],
148
+ properties: {
149
+ m: !0
150
+ }
151
+ };
152
+ break;
153
+ case 20:
154
+ this.$ = {
155
+ type: "Point",
156
+ coordinates: []
157
+ };
158
+ break;
159
+ case 22:
160
+ case 25:
161
+ this.$ = i[o - 1];
162
+ break;
163
+ case 23:
164
+ this.$ = i[o - 2].addPolygon(i[o]);
165
+ break;
166
+ case 24:
167
+ this.$ = new B(i[o]);
168
+ break;
169
+ case 28:
170
+ this.$ = {
171
+ type: "LineString",
172
+ coordinates: i[o - 1].data
173
+ };
174
+ break;
175
+ case 29:
176
+ this.$ = {
177
+ type: "LineString",
178
+ coordinates: i[o - 1].data,
179
+ properties: {
180
+ z: !0
181
+ }
182
+ };
183
+ break;
184
+ case 30:
185
+ this.$ = {
186
+ type: "LineString",
187
+ coordinates: i[o - 1].data,
188
+ properties: {
189
+ m: !0
190
+ }
191
+ };
192
+ break;
193
+ case 31:
194
+ this.$ = {
195
+ type: "LineString",
196
+ coordinates: i[o - 1].data,
197
+ properties: {
198
+ z: !0,
199
+ m: !0
200
+ }
201
+ };
202
+ break;
203
+ case 32:
204
+ this.$ = {
205
+ type: "LineString",
206
+ coordinates: []
207
+ };
208
+ break;
209
+ case 33:
210
+ this.$ = {
211
+ type: "Polygon",
212
+ coordinates: i[o - 1].toJSON()
213
+ };
214
+ break;
215
+ case 34:
216
+ this.$ = {
217
+ type: "Polygon",
218
+ coordinates: i[o - 1].toJSON(),
219
+ properties: {
220
+ z: !0
221
+ }
222
+ };
223
+ break;
224
+ case 35:
225
+ this.$ = {
226
+ type: "Polygon",
227
+ coordinates: i[o - 1].toJSON(),
228
+ properties: {
229
+ m: !0
230
+ }
231
+ };
232
+ break;
233
+ case 36:
234
+ this.$ = {
235
+ type: "Polygon",
236
+ coordinates: i[o - 1].toJSON(),
237
+ properties: {
238
+ z: !0,
239
+ m: !0
240
+ }
241
+ };
242
+ break;
243
+ case 37:
244
+ this.$ = {
245
+ type: "Polygon",
246
+ coordinates: []
247
+ };
248
+ break;
249
+ case 38:
250
+ this.$ = {
251
+ type: "MultiPoint",
252
+ coordinates: i[o - 1].data
253
+ };
254
+ break;
255
+ case 39:
256
+ this.$ = {
257
+ type: "MultiPoint",
258
+ coordinates: i[o - 1].data,
259
+ properties: {
260
+ z: !0
261
+ }
262
+ };
263
+ break;
264
+ case 40:
265
+ this.$ = {
266
+ type: "MultiPoint",
267
+ coordinates: i[o - 1].data,
268
+ properties: {
269
+ m: !0
270
+ }
271
+ };
272
+ break;
273
+ case 41:
274
+ this.$ = {
275
+ type: "MultiPoint",
276
+ coordinates: i[o - 1].data,
277
+ properties: {
278
+ z: !0,
279
+ m: !0
280
+ }
281
+ };
282
+ break;
283
+ case 42:
284
+ this.$ = {
285
+ type: "MultiPoint",
286
+ coordinates: []
287
+ };
288
+ break;
289
+ case 43:
290
+ this.$ = {
291
+ type: "MultiLineString",
292
+ coordinates: i[o - 1].toJSON()
293
+ };
294
+ break;
295
+ case 44:
296
+ this.$ = {
297
+ type: "MultiLineString",
298
+ coordinates: i[o - 1].toJSON(),
299
+ properties: {
300
+ z: !0
301
+ }
302
+ };
303
+ break;
304
+ case 45:
305
+ this.$ = {
306
+ type: "MultiLineString",
307
+ coordinates: i[o - 1].toJSON(),
308
+ properties: {
309
+ m: !0
310
+ }
311
+ };
312
+ break;
313
+ case 46:
314
+ this.$ = {
315
+ type: "MultiLineString",
316
+ coordinates: i[o - 1].toJSON(),
317
+ properties: {
318
+ z: !0,
319
+ m: !0
320
+ }
321
+ };
322
+ break;
323
+ case 47:
324
+ this.$ = {
325
+ type: "MultiLineString",
326
+ coordinates: []
327
+ };
328
+ break;
329
+ case 48:
330
+ this.$ = {
331
+ type: "MultiPolygon",
332
+ coordinates: i[o - 1].toJSON()
333
+ };
334
+ break;
335
+ case 49:
336
+ this.$ = {
337
+ type: "MultiPolygon",
338
+ coordinates: i[o - 1].toJSON(),
339
+ properties: {
340
+ z: !0
341
+ }
342
+ };
343
+ break;
344
+ case 50:
345
+ this.$ = {
346
+ type: "MultiPolygon",
347
+ coordinates: i[o - 1].toJSON(),
348
+ properties: {
349
+ m: !0
350
+ }
351
+ };
352
+ break;
353
+ case 51:
354
+ this.$ = {
355
+ type: "MultiPolygon",
356
+ coordinates: i[o - 1].toJSON(),
357
+ properties: {
358
+ z: !0,
359
+ m: !0
360
+ }
361
+ };
362
+ break;
363
+ case 52:
364
+ this.$ = {
365
+ type: "MultiPolygon",
366
+ coordinates: []
367
+ };
368
+ break;
369
+ case 60:
370
+ this.$ = i[o - 2].addGeometry(i[o]);
371
+ break;
372
+ case 61:
373
+ this.$ = new D(i[o]);
374
+ break;
375
+ case 62:
376
+ this.$ = {
377
+ type: "GeometryCollection",
378
+ geometries: i[o - 1].toJSON()
379
+ };
380
+ break;
381
+ case 63:
382
+ this.$ = {
383
+ type: "GeometryCollection",
384
+ geometries: i[o - 1].toJSON(),
385
+ properties: {
386
+ z: !0
387
+ }
388
+ };
389
+ break;
390
+ case 64:
391
+ this.$ = {
392
+ type: "GeometryCollection",
393
+ geometries: i[o - 1].toJSON(),
394
+ properties: {
395
+ m: !0
396
+ }
397
+ };
398
+ break;
399
+ case 65:
400
+ this.$ = {
401
+ type: "GeometryCollection",
402
+ geometries: i[o - 1].toJSON(),
403
+ properties: {
404
+ z: !0,
405
+ m: !0
406
+ }
407
+ };
408
+ break;
409
+ case 66:
410
+ this.$ = {
411
+ type: "GeometryCollection",
412
+ geometries: []
413
+ };
414
+ break;
415
+ }
416
+ },
417
+ table: [{
418
+ 3: 1,
419
+ 4: 2,
420
+ 6: 3,
421
+ 7: 4,
422
+ 8: 5,
423
+ 9: 6,
424
+ 10: 7,
425
+ 11: 8,
426
+ 20: M,
427
+ 29: v,
428
+ 30: N,
429
+ 31: L,
430
+ 32: E,
431
+ 33: I,
432
+ 36: x
433
+ }, {
434
+ 1: [3]
435
+ }, {
436
+ 5: [1, 16]
437
+ }, {
438
+ 5: [1, 17]
439
+ }, {
440
+ 5: [1, 18]
441
+ }, {
442
+ 5: [1, 19]
443
+ }, {
444
+ 5: [1, 20]
445
+ }, {
446
+ 5: [1, 21]
447
+ }, {
448
+ 5: [1, 22]
449
+ }, {
450
+ 18: [1, 23],
451
+ 21: [1, 24],
452
+ 22: [1, 25],
453
+ 23: [1, 26],
454
+ 24: [1, 27]
455
+ }, {
456
+ 18: [1, 28],
457
+ 21: [1, 29],
458
+ 22: [1, 31],
459
+ 23: [1, 30],
460
+ 24: [1, 32]
461
+ }, {
462
+ 18: [1, 33],
463
+ 21: [1, 34],
464
+ 22: [1, 36],
465
+ 23: [1, 35],
466
+ 24: [1, 37]
467
+ }, {
468
+ 18: [1, 38],
469
+ 21: [1, 39],
470
+ 22: [1, 41],
471
+ 23: [1, 40],
472
+ 24: [1, 42]
473
+ }, {
474
+ 18: [1, 43],
475
+ 21: [1, 44],
476
+ 22: [1, 46],
477
+ 23: [1, 45],
478
+ 24: [1, 47]
479
+ }, {
480
+ 18: [1, 48],
481
+ 21: [1, 49],
482
+ 22: [1, 51],
483
+ 23: [1, 50],
484
+ 24: [1, 52]
485
+ }, {
486
+ 18: [1, 53],
487
+ 21: [1, 54],
488
+ 22: [1, 56],
489
+ 23: [1, 55],
490
+ 24: [1, 57]
491
+ }, {
492
+ 1: [2, 1]
493
+ }, {
494
+ 1: [2, 2]
495
+ }, {
496
+ 1: [2, 3]
497
+ }, {
498
+ 1: [2, 4]
499
+ }, {
500
+ 1: [2, 5]
501
+ }, {
502
+ 1: [2, 6]
503
+ }, {
504
+ 1: [2, 7]
505
+ }, {
506
+ 12: 59,
507
+ 13: p,
508
+ 14: 58
509
+ }, {
510
+ 18: [1, 61]
511
+ }, {
512
+ 18: [1, 62]
513
+ }, {
514
+ 18: [1, 63]
515
+ }, s(c, [2, 20]), {
516
+ 12: 66,
517
+ 13: p,
518
+ 18: b,
519
+ 25: 65,
520
+ 28: 64
521
+ }, {
522
+ 18: [1, 68]
523
+ }, {
524
+ 18: [1, 69]
525
+ }, {
526
+ 18: [1, 70]
527
+ }, s(c, [2, 32]), {
528
+ 16: 71,
529
+ 17: 72,
530
+ 18: g
531
+ }, {
532
+ 18: [1, 74]
533
+ }, {
534
+ 18: [1, 75]
535
+ }, {
536
+ 18: [1, 76]
537
+ }, s(c, [2, 37]), {
538
+ 12: 66,
539
+ 13: p,
540
+ 18: b,
541
+ 25: 65,
542
+ 28: 77
543
+ }, {
544
+ 18: [1, 78]
545
+ }, {
546
+ 18: [1, 79]
547
+ }, {
548
+ 18: [1, 80]
549
+ }, s(c, [2, 42]), {
550
+ 16: 81,
551
+ 17: 72,
552
+ 18: g
553
+ }, {
554
+ 18: [1, 82]
555
+ }, {
556
+ 18: [1, 83]
557
+ }, {
558
+ 18: [1, 84]
559
+ }, s(c, [2, 47]), {
560
+ 18: G,
561
+ 26: 85,
562
+ 27: 86
563
+ }, {
564
+ 18: [1, 88]
565
+ }, {
566
+ 18: [1, 89]
567
+ }, {
568
+ 18: [1, 90]
569
+ }, s(c, [2, 52]), {
570
+ 4: 93,
571
+ 6: 94,
572
+ 7: 95,
573
+ 8: 96,
574
+ 9: 97,
575
+ 10: 98,
576
+ 11: 99,
577
+ 20: M,
578
+ 29: v,
579
+ 30: N,
580
+ 31: L,
581
+ 32: E,
582
+ 33: I,
583
+ 34: 92,
584
+ 35: 91,
585
+ 36: x
586
+ }, {
587
+ 18: [1, 100]
588
+ }, {
589
+ 18: [1, 101]
590
+ }, {
591
+ 18: [1, 102]
592
+ }, s(c, [2, 66]), {
593
+ 15: R,
594
+ 19: [1, 103]
595
+ }, s(h, [2, 12]), {
596
+ 13: [1, 105]
597
+ }, {
598
+ 12: 59,
599
+ 13: p,
600
+ 14: 106
601
+ }, {
602
+ 12: 59,
603
+ 13: p,
604
+ 14: 107
605
+ }, {
606
+ 12: 59,
607
+ 13: p,
608
+ 14: 108
609
+ }, {
610
+ 15: _,
611
+ 19: [1, 109]
612
+ }, s(h, [2, 27]), s(h, [2, 21]), {
613
+ 12: 111,
614
+ 13: p
615
+ }, {
616
+ 12: 66,
617
+ 13: p,
618
+ 18: b,
619
+ 25: 65,
620
+ 28: 112
621
+ }, {
622
+ 12: 66,
623
+ 13: p,
624
+ 18: b,
625
+ 25: 65,
626
+ 28: 113
627
+ }, {
628
+ 12: 66,
629
+ 13: p,
630
+ 18: b,
631
+ 25: 65,
632
+ 28: 114
633
+ }, {
634
+ 15: k,
635
+ 19: [1, 115]
636
+ }, s(h, [2, 14]), {
637
+ 12: 59,
638
+ 13: p,
639
+ 14: 117
640
+ }, {
641
+ 16: 118,
642
+ 17: 72,
643
+ 18: g
644
+ }, {
645
+ 16: 119,
646
+ 17: 72,
647
+ 18: g
648
+ }, {
649
+ 16: 120,
650
+ 17: 72,
651
+ 18: g
652
+ }, {
653
+ 15: _,
654
+ 19: [1, 121]
655
+ }, {
656
+ 12: 66,
657
+ 13: p,
658
+ 18: b,
659
+ 25: 65,
660
+ 28: 122
661
+ }, {
662
+ 12: 66,
663
+ 13: p,
664
+ 18: b,
665
+ 25: 65,
666
+ 28: 123
667
+ }, {
668
+ 12: 66,
669
+ 13: p,
670
+ 18: b,
671
+ 25: 65,
672
+ 28: 124
673
+ }, {
674
+ 15: k,
675
+ 19: [1, 125]
676
+ }, {
677
+ 16: 126,
678
+ 17: 72,
679
+ 18: g
680
+ }, {
681
+ 16: 127,
682
+ 17: 72,
683
+ 18: g
684
+ }, {
685
+ 16: 128,
686
+ 17: 72,
687
+ 18: g
688
+ }, {
689
+ 15: U,
690
+ 19: [1, 129]
691
+ }, s(h, [2, 24]), {
692
+ 16: 131,
693
+ 17: 72,
694
+ 18: g
695
+ }, {
696
+ 18: G,
697
+ 26: 132,
698
+ 27: 86
699
+ }, {
700
+ 18: G,
701
+ 26: 133,
702
+ 27: 86
703
+ }, {
704
+ 18: G,
705
+ 26: 134,
706
+ 27: 86
707
+ }, {
708
+ 15: V,
709
+ 19: [1, 135]
710
+ }, s(h, [2, 61]), s(h, [2, 53]), s(h, [2, 54]), s(h, [2, 55]), s(h, [2, 56]), s(h, [2, 57]), s(h, [2, 58]), s(h, [2, 59]), {
711
+ 4: 93,
712
+ 6: 94,
713
+ 7: 95,
714
+ 8: 96,
715
+ 9: 97,
716
+ 10: 98,
717
+ 11: 99,
718
+ 20: M,
719
+ 29: v,
720
+ 30: N,
721
+ 31: L,
722
+ 32: E,
723
+ 33: I,
724
+ 34: 92,
725
+ 35: 137,
726
+ 36: x
727
+ }, {
728
+ 4: 93,
729
+ 6: 94,
730
+ 7: 95,
731
+ 8: 96,
732
+ 9: 97,
733
+ 10: 98,
734
+ 11: 99,
735
+ 20: M,
736
+ 29: v,
737
+ 30: N,
738
+ 31: L,
739
+ 32: E,
740
+ 33: I,
741
+ 34: 92,
742
+ 35: 138,
743
+ 36: x
744
+ }, {
745
+ 4: 93,
746
+ 6: 94,
747
+ 7: 95,
748
+ 8: 96,
749
+ 9: 97,
750
+ 10: 98,
751
+ 11: 99,
752
+ 20: M,
753
+ 29: v,
754
+ 30: N,
755
+ 31: L,
756
+ 32: E,
757
+ 33: I,
758
+ 34: 92,
759
+ 35: 139,
760
+ 36: x
761
+ }, s(c, [2, 16]), {
762
+ 12: 140,
763
+ 13: p
764
+ }, s(h, [2, 8], {
765
+ 13: [1, 141]
766
+ }), {
767
+ 15: R,
768
+ 19: [1, 142]
769
+ }, {
770
+ 15: R,
771
+ 19: [1, 143]
772
+ }, {
773
+ 15: R,
774
+ 19: [1, 144]
775
+ }, s(c, [2, 28]), {
776
+ 12: 66,
777
+ 13: p,
778
+ 18: b,
779
+ 25: 145
780
+ }, {
781
+ 19: [1, 146]
782
+ }, {
783
+ 15: _,
784
+ 19: [1, 147]
785
+ }, {
786
+ 15: _,
787
+ 19: [1, 148]
788
+ }, {
789
+ 15: _,
790
+ 19: [1, 149]
791
+ }, s(c, [2, 33]), {
792
+ 17: 150,
793
+ 18: g
794
+ }, {
795
+ 15: R,
796
+ 19: [1, 151]
797
+ }, {
798
+ 15: k,
799
+ 19: [1, 152]
800
+ }, {
801
+ 15: k,
802
+ 19: [1, 153]
803
+ }, {
804
+ 15: k,
805
+ 19: [1, 154]
806
+ }, s(c, [2, 38]), {
807
+ 15: _,
808
+ 19: [1, 155]
809
+ }, {
810
+ 15: _,
811
+ 19: [1, 156]
812
+ }, {
813
+ 15: _,
814
+ 19: [1, 157]
815
+ }, s(c, [2, 43]), {
816
+ 15: k,
817
+ 19: [1, 158]
818
+ }, {
819
+ 15: k,
820
+ 19: [1, 159]
821
+ }, {
822
+ 15: k,
823
+ 19: [1, 160]
824
+ }, s(c, [2, 48]), {
825
+ 18: G,
826
+ 27: 161
827
+ }, {
828
+ 15: k,
829
+ 19: [1, 162]
830
+ }, {
831
+ 15: U,
832
+ 19: [1, 163]
833
+ }, {
834
+ 15: U,
835
+ 19: [1, 164]
836
+ }, {
837
+ 15: U,
838
+ 19: [1, 165]
839
+ }, s(c, [2, 62]), {
840
+ 4: 93,
841
+ 6: 94,
842
+ 7: 95,
843
+ 8: 96,
844
+ 9: 97,
845
+ 10: 98,
846
+ 11: 99,
847
+ 20: M,
848
+ 29: v,
849
+ 30: N,
850
+ 31: L,
851
+ 32: E,
852
+ 33: I,
853
+ 34: 166,
854
+ 36: x
855
+ }, {
856
+ 15: V,
857
+ 19: [1, 167]
858
+ }, {
859
+ 15: V,
860
+ 19: [1, 168]
861
+ }, {
862
+ 15: V,
863
+ 19: [1, 169]
864
+ }, s(h, [2, 11]), s(h, [2, 9], {
865
+ 13: [1, 170]
866
+ }), s(c, [2, 17]), s(c, [2, 18]), s(c, [2, 19]), s(h, [2, 26]), s(h, [2, 22]), s(c, [2, 29]), s(c, [2, 30]), s(c, [2, 31]), s(h, [2, 13]), s(h, [2, 15]), s(c, [2, 34]), s(c, [2, 35]), s(c, [2, 36]), s(c, [2, 39]), s(c, [2, 40]), s(c, [2, 41]), s(c, [2, 44]), s(c, [2, 45]), s(c, [2, 46]), s(h, [2, 23]), s(h, [2, 25]), s(c, [2, 49]), s(c, [2, 50]), s(c, [2, 51]), s(h, [2, 60]), s(c, [2, 63]), s(c, [2, 64]), s(c, [2, 65]), s(h, [2, 10])],
867
+ defaultActions: {
868
+ 16: [2, 1],
869
+ 17: [2, 2],
870
+ 18: [2, 3],
871
+ 19: [2, 4],
872
+ 20: [2, 5],
873
+ 21: [2, 6],
874
+ 22: [2, 7]
875
+ },
876
+ parseError: function(e, t) {
877
+ if (t.recoverable)
878
+ this.trace(e);
879
+ else {
880
+ var r = new Error(e);
881
+ throw r.hash = t, r;
882
+ }
883
+ },
884
+ parse: function(e) {
885
+ var t = this, r = [0], a = [null], l = [], i = this.table, y = "", o = 0, q = 0, et = 2, H = 1, it = l.slice.call(arguments, 1), u = Object.create(this.lexer), T = {
886
+ yy: {}
887
+ };
888
+ for (var Z in this.yy)
889
+ Object.prototype.hasOwnProperty.call(this.yy, Z) && (T.yy[Z] = this.yy[Z]);
890
+ u.setInput(e, T.yy), T.yy.lexer = u, T.yy.parser = this, typeof u.yylloc > "u" && (u.yylloc = {});
891
+ var z = u.yylloc;
892
+ l.push(z);
893
+ var rt = u.options && u.options.ranges;
894
+ typeof T.yy.parseError == "function" ? this.parseError = T.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
895
+ for (var nt = function() {
896
+ var S;
897
+ return S = u.lex() || H, typeof S != "number" && (S = t.symbols_[S] || S), S;
898
+ }, f, P, d, K, O = {}, A, m, Q, C; ; ) {
899
+ if (P = r[r.length - 1], this.defaultActions[P] ? d = this.defaultActions[P] : ((f === null || typeof f > "u") && (f = nt()), d = i[P] && i[P][f]), typeof d > "u" || !d.length || !d[0]) {
900
+ var W = "";
901
+ C = [];
902
+ for (A in i[P])
903
+ this.terminals_[A] && A > et && C.push("'" + this.terminals_[A] + "'");
904
+ u.showPosition ? W = "Parse error on line " + (o + 1) + `:
905
+ ` + u.showPosition() + `
906
+ Expecting ` + C.join(", ") + ", got '" + (this.terminals_[f] || f) + "'" : W = "Parse error on line " + (o + 1) + ": Unexpected " + (f == H ? "end of input" : "'" + (this.terminals_[f] || f) + "'"), this.parseError(W, {
907
+ text: u.match,
908
+ token: this.terminals_[f] || f,
909
+ line: u.yylineno,
910
+ loc: z,
911
+ expected: C
912
+ });
913
+ }
914
+ if (d[0] instanceof Array && d.length > 1)
915
+ throw new Error("Parse Error: multiple actions possible at state: " + P + ", token: " + f);
916
+ switch (d[0]) {
917
+ case 1:
918
+ r.push(f), a.push(u.yytext), l.push(u.yylloc), r.push(d[1]), f = null, q = u.yyleng, y = u.yytext, o = u.yylineno, z = u.yylloc;
919
+ break;
920
+ case 2:
921
+ if (m = this.productions_[d[1]][1], O.$ = a[a.length - m], O._$ = {
922
+ first_line: l[l.length - (m || 1)].first_line,
923
+ last_line: l[l.length - 1].last_line,
924
+ first_column: l[l.length - (m || 1)].first_column,
925
+ last_column: l[l.length - 1].last_column
926
+ }, rt && (O._$.range = [l[l.length - (m || 1)].range[0], l[l.length - 1].range[1]]), K = this.performAction.apply(O, [y, q, o, T.yy, d[1], a, l].concat(it)), typeof K < "u")
927
+ return K;
928
+ m && (r = r.slice(0, -1 * m * 2), a = a.slice(0, -1 * m), l = l.slice(0, -1 * m)), r.push(this.productions_[d[1]][0]), a.push(O.$), l.push(O._$), Q = i[r[r.length - 2]][r[r.length - 1]], r.push(Q);
929
+ break;
930
+ case 3:
931
+ return !0;
932
+ }
933
+ }
934
+ return !0;
935
+ }
936
+ }, ot = /* @__PURE__ */ function() {
937
+ var n = {
938
+ EOF: 1,
939
+ parseError: function(t, r) {
940
+ if (this.yy.parser)
941
+ this.yy.parser.parseError(t, r);
942
+ else
943
+ throw new Error(t);
944
+ },
945
+ // resets the lexer, sets new input
946
+ setInput: function(t, r) {
947
+ return this.yy = r || this.yy || {}, this._input = t, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
948
+ first_line: 1,
949
+ first_column: 0,
950
+ last_line: 1,
951
+ last_column: 0
952
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
953
+ },
954
+ // consumes and returns one char from the input
955
+ input: function() {
956
+ var t = this._input[0];
957
+ this.yytext += t, this.yyleng++, this.offset++, this.match += t, this.matched += t;
958
+ var r = t.match(/(?:\r\n?|\n).*/g);
959
+ return r ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), t;
960
+ },
961
+ // unshifts one char (or a string) into the input
962
+ unput: function(t) {
963
+ var r = t.length, a = t.split(/(?:\r\n?|\n)/g);
964
+ this._input = t + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - r), this.offset -= r;
965
+ var l = this.match.split(/(?:\r\n?|\n)/g);
966
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), a.length - 1 && (this.yylineno -= a.length - 1);
967
+ var i = this.yylloc.range;
968
+ return this.yylloc = {
969
+ first_line: this.yylloc.first_line,
970
+ last_line: this.yylineno + 1,
971
+ first_column: this.yylloc.first_column,
972
+ last_column: a ? (a.length === l.length ? this.yylloc.first_column : 0) + l[l.length - a.length].length - a[0].length : this.yylloc.first_column - r
973
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - r]), this.yyleng = this.yytext.length, this;
974
+ },
975
+ // When called from action, caches matched text and appends it on next action
976
+ more: function() {
977
+ return this._more = !0, this;
978
+ },
979
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
980
+ reject: function() {
981
+ if (this.options.backtrack_lexer)
982
+ this._backtrack = !0;
983
+ else
984
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
985
+ ` + this.showPosition(), {
986
+ text: "",
987
+ token: null,
988
+ line: this.yylineno
989
+ });
990
+ return this;
991
+ },
992
+ // retain first n characters of the match
993
+ less: function(t) {
994
+ this.unput(this.match.slice(t));
995
+ },
996
+ // displays already matched input, i.e. for error messages
997
+ pastInput: function() {
998
+ var t = this.matched.substr(0, this.matched.length - this.match.length);
999
+ return (t.length > 20 ? "..." : "") + t.substr(-20).replace(/\n/g, "");
1000
+ },
1001
+ // displays upcoming input, i.e. for error messages
1002
+ upcomingInput: function() {
1003
+ var t = this.match;
1004
+ return t.length < 20 && (t += this._input.substr(0, 20 - t.length)), (t.substr(0, 20) + (t.length > 20 ? "..." : "")).replace(/\n/g, "");
1005
+ },
1006
+ // displays the character position where the lexing error occurred, i.e. for error messages
1007
+ showPosition: function() {
1008
+ var t = this.pastInput(), r = new Array(t.length + 1).join("-");
1009
+ return t + this.upcomingInput() + `
1010
+ ` + r + "^";
1011
+ },
1012
+ // test the lexed token: return FALSE when not a match, otherwise return token
1013
+ test_match: function(t, r) {
1014
+ var a, l, i;
1015
+ if (this.options.backtrack_lexer && (i = {
1016
+ yylineno: this.yylineno,
1017
+ yylloc: {
1018
+ first_line: this.yylloc.first_line,
1019
+ last_line: this.last_line,
1020
+ first_column: this.yylloc.first_column,
1021
+ last_column: this.yylloc.last_column
1022
+ },
1023
+ yytext: this.yytext,
1024
+ match: this.match,
1025
+ matches: this.matches,
1026
+ matched: this.matched,
1027
+ yyleng: this.yyleng,
1028
+ offset: this.offset,
1029
+ _more: this._more,
1030
+ _input: this._input,
1031
+ yy: this.yy,
1032
+ conditionStack: this.conditionStack.slice(0),
1033
+ done: this.done
1034
+ }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), l = t[0].match(/(?:\r\n?|\n).*/g), l && (this.yylineno += l.length), this.yylloc = {
1035
+ first_line: this.yylloc.last_line,
1036
+ last_line: this.yylineno + 1,
1037
+ first_column: this.yylloc.last_column,
1038
+ last_column: l ? l[l.length - 1].length - l[l.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + t[0].length
1039
+ }, this.yytext += t[0], this.match += t[0], this.matches = t, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(t[0].length), this.matched += t[0], a = this.performAction.call(this, this.yy, this, r, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), a)
1040
+ return a;
1041
+ if (this._backtrack) {
1042
+ for (var y in i)
1043
+ this[y] = i[y];
1044
+ return !1;
1045
+ }
1046
+ return !1;
1047
+ },
1048
+ // return next match in input
1049
+ next: function() {
1050
+ if (this.done)
1051
+ return this.EOF;
1052
+ this._input || (this.done = !0);
1053
+ var t, r, a, l;
1054
+ this._more || (this.yytext = "", this.match = "");
1055
+ for (var i = this._currentRules(), y = 0; y < i.length; y++)
1056
+ if (a = this._input.match(this.rules[i[y]]), a && (!r || a[0].length > r[0].length)) {
1057
+ if (r = a, l = y, this.options.backtrack_lexer) {
1058
+ if (t = this.test_match(a, i[y]), t !== !1)
1059
+ return t;
1060
+ if (this._backtrack) {
1061
+ r = !1;
1062
+ continue;
1063
+ } else
1064
+ return !1;
1065
+ } else if (!this.options.flex)
1066
+ break;
1067
+ }
1068
+ return r ? (t = this.test_match(r, i[l]), t !== !1 ? t : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
1069
+ ` + this.showPosition(), {
1070
+ text: "",
1071
+ token: null,
1072
+ line: this.yylineno
1073
+ });
1074
+ },
1075
+ // return next match that has a token
1076
+ lex: function() {
1077
+ var t = this.next();
1078
+ return t || this.lex();
1079
+ },
1080
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
1081
+ begin: function(t) {
1082
+ this.conditionStack.push(t);
1083
+ },
1084
+ // pop the previously active lexer condition state off the condition stack
1085
+ popState: function() {
1086
+ var t = this.conditionStack.length - 1;
1087
+ return t > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1088
+ },
1089
+ // produce the lexer rule set which is active for the currently active lexer condition state
1090
+ _currentRules: function() {
1091
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1092
+ },
1093
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
1094
+ topState: function(t) {
1095
+ return t = this.conditionStack.length - 1 - Math.abs(t || 0), t >= 0 ? this.conditionStack[t] : "INITIAL";
1096
+ },
1097
+ // alias for begin(condition)
1098
+ pushState: function(t) {
1099
+ this.begin(t);
1100
+ },
1101
+ // return the number of states currently on the stack
1102
+ stateStackSize: function() {
1103
+ return this.conditionStack.length;
1104
+ },
1105
+ options: {},
1106
+ performAction: function(t, r, a, l) {
1107
+ switch (a) {
1108
+ case 0:
1109
+ break;
1110
+ case 1:
1111
+ return 18;
1112
+ case 2:
1113
+ return 19;
1114
+ case 3:
1115
+ return 13;
1116
+ case 4:
1117
+ return 20;
1118
+ case 5:
1119
+ return 29;
1120
+ case 6:
1121
+ return 30;
1122
+ case 7:
1123
+ return 31;
1124
+ case 8:
1125
+ return 32;
1126
+ case 9:
1127
+ return 33;
1128
+ case 10:
1129
+ return 36;
1130
+ case 11:
1131
+ return 15;
1132
+ case 12:
1133
+ return 24;
1134
+ case 13:
1135
+ return 23;
1136
+ case 14:
1137
+ return 21;
1138
+ case 15:
1139
+ return 22;
1140
+ case 16:
1141
+ return 5;
1142
+ case 17:
1143
+ return "INVALID";
1144
+ }
1145
+ },
1146
+ rules: [/^(?:\s+)/, /^(?:\()/, /^(?:\))/, /^(?:-?[0-9]+(\.[0-9]+)?([eE][\-\+]?[0-9]+)?)/, /^(?:POINT\b)/, /^(?:LINESTRING\b)/, /^(?:POLYGON\b)/, /^(?:MULTIPOINT\b)/, /^(?:MULTILINESTRING\b)/, /^(?:MULTIPOLYGON\b)/, /^(?:GEOMETRYCOLLECTION\b)/, /^(?:,)/, /^(?:EMPTY\b)/, /^(?:M\b)/, /^(?:Z\b)/, /^(?:ZM\b)/, /^(?:$)/, /^(?:.)/],
1147
+ conditions: {
1148
+ INITIAL: {
1149
+ rules: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17],
1150
+ inclusive: !0
1151
+ }
1152
+ }
1153
+ };
1154
+ return n;
1155
+ }();
1156
+ J.lexer = ot;
1157
+ function j() {
1158
+ this.yy = {};
1159
+ }
1160
+ j.prototype = J;
1161
+ J.Parser = j;
1162
+ J.yy.parseError = function(n) {
1163
+ throw n;
1164
+ };
1165
+ function Y(n) {
1166
+ this.data = [n], this.type = "PointArray";
1167
+ }
1168
+ Y.prototype.addPoint = function(n) {
1169
+ return n.type === "PointArray" ? this.data = this.data.concat(n.data) : this.data.push(n), this;
1170
+ };
1171
+ Y.prototype.toJSON = function() {
1172
+ return this.data;
1173
+ };
1174
+ function tt(n) {
1175
+ this.data = n, this.type = "Ring";
1176
+ }
1177
+ tt.prototype.toJSON = function() {
1178
+ for (var n = [], e = 0; e < this.data.data.length; e++)
1179
+ n.push(this.data.data[e]);
1180
+ return n;
1181
+ };
1182
+ function F(n) {
1183
+ this.data = [n], this.type = "RingList";
1184
+ }
1185
+ F.prototype.addRing = function(n) {
1186
+ return this.data.push(n), this;
1187
+ };
1188
+ F.prototype.toJSON = function() {
1189
+ for (var n = [], e = 0; e < this.data.length; e++)
1190
+ n.push(this.data[e].toJSON());
1191
+ return n.length === 1, n;
1192
+ };
1193
+ function D(n) {
1194
+ this.data = [n], this.type = "GeometryList";
1195
+ }
1196
+ D.prototype.addGeometry = function(n) {
1197
+ return this.data.push(n), this;
1198
+ };
1199
+ D.prototype.toJSON = function() {
1200
+ return this.data;
1201
+ };
1202
+ function B(n) {
1203
+ this.data = [n], this.type = "PolygonList";
1204
+ }
1205
+ B.prototype.addPolygon = function(n) {
1206
+ return this.data.push(n), this;
1207
+ };
1208
+ B.prototype.toJSON = function() {
1209
+ for (var n = [], e = 0; e < this.data.length; e++)
1210
+ n = n.concat([this.data[e].toJSON()]);
1211
+ return n;
1212
+ };
1213
+ var X = function(e) {
1214
+ var t;
1215
+ try {
1216
+ t = J.parse(e);
1217
+ } catch (r) {
1218
+ throw Error("Unable to parse: " + r);
1219
+ }
1220
+ return t;
1221
+ }, $ = function(e) {
1222
+ for (var t = [], r = "", a = 0; a < e.length; a++)
1223
+ t.push(e[a].join(" "));
1224
+ return r += "(" + t.join(", ") + ")", r;
1225
+ }, at = function(e) {
1226
+ var t = "POINT ";
1227
+ return e.coordinates === void 0 || e.coordinates.length === 0 ? (t += "EMPTY", t) : (e.coordinates.length === 3 ? e.properties && e.properties.m === !0 ? t += "M " : t += "Z " : e.coordinates.length === 4 && (t += "ZM "), t += "(" + e.coordinates.join(" ") + ")", t);
1228
+ }, lt = function(e) {
1229
+ var t = "LINESTRING ";
1230
+ return e.coordinates === void 0 || e.coordinates.length === 0 || e.coordinates[0].length === 0 ? (t += "EMPTY", t) : (e.coordinates[0].length === 3 ? e.properties && e.properties.m === !0 ? t += "M " : t += "Z " : e.coordinates[0].length === 4 && (t += "ZM "), t += $(e.coordinates), t);
1231
+ }, ct = function(e) {
1232
+ var t = "POLYGON ";
1233
+ if (e.coordinates === void 0 || e.coordinates.length === 0 || e.coordinates[0].length === 0)
1234
+ return t += "EMPTY", t;
1235
+ e.coordinates[0][0].length === 3 ? e.properties && e.properties.m === !0 ? t += "M " : t += "Z " : e.coordinates[0][0].length === 4 && (t += "ZM "), t += "(";
1236
+ for (var r = [], a = 0; a < e.coordinates.length; a++)
1237
+ r.push($(e.coordinates[a]));
1238
+ return t += r.join(", "), t += ")", t;
1239
+ }, ht = function(e) {
1240
+ var t = "MULTIPOINT ";
1241
+ return e.coordinates === void 0 || e.coordinates.length === 0 || e.coordinates[0].length === 0 ? (t += "EMPTY", t) : (e.coordinates[0].length === 3 ? e.properties && e.properties.m === !0 ? t += "M " : t += "Z " : e.coordinates[0].length === 4 && (t += "ZM "), t += $(e.coordinates), t);
1242
+ }, ut = function(e) {
1243
+ var t = "MULTILINESTRING ";
1244
+ if (e.coordinates === void 0 || e.coordinates.length === 0 || e.coordinates[0].length === 0)
1245
+ return t += "EMPTY", t;
1246
+ e.coordinates[0][0].length === 3 ? e.properties && e.properties.m === !0 ? t += "M " : t += "Z " : e.coordinates[0][0].length === 4 && (t += "ZM "), t += "(";
1247
+ for (var r = [], a = 0; a < e.coordinates.length; a++)
1248
+ r.push($(e.coordinates[a]));
1249
+ return t += r.join(", "), t += ")", t;
1250
+ }, yt = function(e) {
1251
+ var t = "MULTIPOLYGON ";
1252
+ if (e.coordinates === void 0 || e.coordinates.length === 0 || e.coordinates[0].length === 0)
1253
+ return t += "EMPTY", t;
1254
+ e.coordinates[0][0][0].length === 3 ? e.properties && e.properties.m === !0 ? t += "M " : t += "Z " : e.coordinates[0][0][0].length === 4 && (t += "ZM "), t += "(";
1255
+ for (var r = [], a = 0; a < e.coordinates.length; a++) {
1256
+ for (var l = "(", i = [], y = 0; y < e.coordinates[a].length; y++)
1257
+ i.push($(e.coordinates[a][y]));
1258
+ l += i.join(", "), l += ")", r.push(l);
1259
+ }
1260
+ return t += r.join(", "), t += ")", t;
1261
+ }, pt = function n(e) {
1262
+ switch (e.type) {
1263
+ case "Point":
1264
+ return at(e);
1265
+ case "LineString":
1266
+ return lt(e);
1267
+ case "Polygon":
1268
+ return ct(e);
1269
+ case "MultiPoint":
1270
+ return ht(e);
1271
+ case "MultiLineString":
1272
+ return ut(e);
1273
+ case "MultiPolygon":
1274
+ return yt(e);
1275
+ case "GeometryCollection":
1276
+ for (var t = "GEOMETRYCOLLECTION", r = [], a = 0; a < e.geometries.length; a++)
1277
+ r.push(n(e.geometries[a]));
1278
+ return t + "(" + r.join(", ") + ")";
1279
+ default:
1280
+ throw Error("Unknown Type: " + e.type);
1281
+ }
1282
+ };
1283
+ const gt = (n) => {
4
1284
  try {
5
- if (e.includes("GEOMETRYCOLLECTION")) {
6
- let t = e.replace("GEOMETRYCOLLECTION(", "");
7
- t = t.slice(0, -1);
8
- let r = t.split("),");
9
- return r = r.filter((n) => n !== "").map((n, c) => (c < r.length - 1 && (n += ")"), n)), r.map((n) => i.parse(n));
1285
+ if (n.includes("GEOMETRYCOLLECTION")) {
1286
+ let e = n.replace("GEOMETRYCOLLECTION(", "");
1287
+ e = e.slice(0, -1);
1288
+ let t = e.split("),");
1289
+ return t = t.filter((r) => r !== "").map((r, a) => (a < t.length - 1 && (r += ")"), r)), t.map((r) => X(r));
10
1290
  }
11
- return i.parse(e);
1291
+ return X(n);
12
1292
  } catch {
13
1293
  }
14
- }, p = (e) => {
1294
+ }, mt = (n) => {
15
1295
  try {
16
- return i.convert(e);
1296
+ return st.isArray(n) ? void 0 : pt(n);
17
1297
  } catch {
18
1298
  }
19
- }, u = (e) => {
20
- let t = [0, 0];
21
- if (e.type === "Point")
22
- return t = e.coordinates, t;
23
- if (e.type === "Polygon") {
24
- const r = o.polygon(e.coordinates);
25
- return t = o.centerOfMass(r).geometry.coordinates, t;
1299
+ }, bt = (n) => {
1300
+ let e = [0, 0];
1301
+ if (n.type === "Point")
1302
+ return e = n.coordinates, e;
1303
+ if (n.type === "Polygon") {
1304
+ const t = w.polygon(n.coordinates);
1305
+ return e = w.centerOfMass(t).geometry.coordinates, e;
26
1306
  }
27
- if (e.type === "LineString") {
28
- const r = o.lineString(e.coordinates);
29
- return t = o.centerOfMass(r).geometry.coordinates, t;
1307
+ if (n.type === "LineString") {
1308
+ const t = w.lineString(n.coordinates);
1309
+ return e = w.centerOfMass(t).geometry.coordinates, e;
30
1310
  }
31
- return e.type === "MultiPoint" ? (t = o.multiPoint(e.coordinates).geometry.coordinates[0], t) : (console.log("Undefined geometry type!", e.type), t);
1311
+ return n.type === "MultiPoint" ? (e = w.multiPoint(n.coordinates).geometry.coordinates[0], e) : (console.log("Undefined geometry type!", n.type), e);
32
1312
  };
33
1313
  export {
34
- p as convert,
35
- u as findCoordinate,
36
- l as parse
1314
+ mt as convert,
1315
+ bt as findCoordinate,
1316
+ gt as parse
37
1317
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hybridcore/ui",
3
3
  "description": "Hybrid Core UI Library",
4
- "version": "1.4.16",
4
+ "version": "1.4.17",
5
5
  "author": "Hybrid Core",
6
6
  "license": "ISC",
7
7
  "type": "module",
@@ -32,6 +32,7 @@
32
32
  "@mui/material": "5.11.13",
33
33
  "@mui/x-data-grid": "6.0.4",
34
34
  "@mui/x-date-pickers": "6.3.0",
35
+ "@terraformer/wkt": "^2.2.1",
35
36
  "@turf/turf": "^7.0.0",
36
37
  "dayjs": "^1.11.7",
37
38
  "fast-xml-parser": "^4.2.2",
@@ -46,8 +47,7 @@
46
47
  "react-hook-form": "^7.43.9",
47
48
  "react-number-format": "^5.3.4",
48
49
  "react-phone-number-input": "^3.3.7",
49
- "react-select": "^5.8.0",
50
- "terraformer-wkt-parser": "^1.2.1"
50
+ "react-select": "^5.8.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@chromatic-com/storybook": "^1.9.0",
@@ -66,6 +66,7 @@
66
66
  "@types/node": "^22.7.5",
67
67
  "@types/react": "^18.3.10",
68
68
  "@types/react-dom": "^18.3.0",
69
+ "@types/terraformer__wkt": "^2",
69
70
  "@vitejs/plugin-react": "^4.3.2",
70
71
  "eslint": "^9.11.1",
71
72
  "eslint-plugin-react-hooks": "^5.1.0-rc.0",