@bigbinary/neeto-time-zones 0.5.10 → 0.6.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.
@@ -1,3455 +0,0 @@
1
- const Africa = [
2
- {
3
- utc: [
4
- "Africa/Cairo",
5
- "Egypt"
6
- ],
7
- label: "Egypt Standard Time",
8
- keywords: "Egypt Standard Time Cairo EST",
9
- isDst: false,
10
- cities: "Cairo"
11
- },
12
- {
13
- utc: [
14
- "Africa/Algiers",
15
- "Africa/Bangui",
16
- "Africa/Brazzaville",
17
- "Africa/Douala",
18
- "Africa/Kinshasa",
19
- "Africa/Lagos",
20
- "Africa/Libreville",
21
- "Africa/Luanda",
22
- "Africa/Malabo",
23
- "Africa/Ndjamena",
24
- "Africa/Niamey",
25
- "Africa/Porto-Novo",
26
- "Africa/Tunis",
27
- "Etc/GMT-1"
28
- ],
29
- label: "West Central Africa Standard Time",
30
- keywords: "W. Central Africa Standard Time Algiers Bangui Brazzaville Douala Kinshasa Lagos Libreville Luanda Malabo Ndjamena Niamey Porto-Novo Tunis GMT-1 WCAST",
31
- isDst: false,
32
- cities: "Algiers, Bangui, Brazzaville, Douala, Kinshasa, Lagos, Libreville, Luanda, Malabo, Ndjamena, Niamey, Porto-Novo, Tunis"
33
- },
34
- {
35
- utc: [
36
- "Africa/Windhoek"
37
- ],
38
- label: "Namibia Standard Time",
39
- keywords: "Namibia Standard Time Windhoek NST",
40
- isDst: false,
41
- cities: "Windhoek"
42
- },
43
- {
44
- utc: [
45
- "Africa/Blantyre",
46
- "Africa/Bujumbura",
47
- "Africa/Gaborone",
48
- "Africa/Harare",
49
- "Africa/Johannesburg",
50
- "Africa/Kigali",
51
- "Africa/Lubumbashi",
52
- "Africa/Lusaka",
53
- "Africa/Maputo",
54
- "Africa/Maseru",
55
- "Africa/Mbabane",
56
- "Etc/GMT-2"
57
- ],
58
- label: "South Africa Standard Time",
59
- keywords: "South Africa Standard Time Blantyre Bujumbura Gaborone Harare Johannesburg Kigali Lubumbashi Lusaka Maputo Maseru Mbabane GMT-2 SAST",
60
- isDst: false,
61
- cities: "Blantyre, Bujumbura, Gaborone, Harare, Johannesburg, Kigali, Lubumbashi, Lusaka, Maputo, Maseru, Mbabane, Pretoria"
62
- },
63
- {
64
- utc: [
65
- "Africa/Tripoli",
66
- "Libya"
67
- ],
68
- label: "Libya Standard Time",
69
- keywords: "Libya Standard Time Tripoli LST",
70
- isDst: false,
71
- cities: "Tripoli"
72
- },
73
- {
74
- utc: [
75
- "Africa/Addis_Ababa",
76
- "Africa/Asmera",
77
- "Africa/Dar_es_Salaam",
78
- "Africa/Djibouti",
79
- "Africa/Juba",
80
- "Africa/Kampala",
81
- "Africa/Khartoum",
82
- "Africa/Mogadishu",
83
- "Africa/Nairobi",
84
- "Antarctica/Syowa",
85
- "Etc/GMT-3",
86
- "Indian/Antananarivo",
87
- "Indian/Comoro",
88
- "Indian/Mayotte"
89
- ],
90
- label: "East Africa Standard Time",
91
- keywords: "E. Africa Standard Time Addis Ababa Asmera Dar_es_Salaam Djibouti Juba Kampala Khartoum Mogadishu Nairobi Syowa GMT-3 Antananarivo Comoro Mayotte EAST",
92
- isDst: false,
93
- cities: "Addis Abada, Asmera, Dar es Salaam, Djibouti, Juba, Kampala, Khartoum, Mogadishu, Nairobi, Syowa, Antananarivo, Comoro, Mayotte"
94
- },
95
- {
96
- utc: [
97
- "Africa/Abidjan",
98
- "Africa/Accra",
99
- "Africa/Bamako",
100
- "Africa/Banjul",
101
- "Africa/Bissau",
102
- "Africa/Conakry",
103
- "Africa/Dakar",
104
- "Africa/Freetown",
105
- "Africa/Lome",
106
- "Africa/Monrovia",
107
- "Africa/Nouakchott",
108
- "Africa/Ouagadougou",
109
- "Africa/Sao_Tome",
110
- "Atlantic/Reykjavik",
111
- "Atlantic/St_Helena",
112
- "Iceland"
113
- ],
114
- label: "Greenwich Standard Time",
115
- keywords: "Greenwich Standard Time Abidjan Accra Bamako Banjul Bissau Conakry Dakar Freetown Lome Monrovia Nouakchott Ouagadougou Sao Tome Reykjavik St_Helena GST Iceland",
116
- isDst: false,
117
- cities: "Abidjan, Accra, Bamako, Banjul, Bissau, Conakry, Dakar, Freetown, Lome, Monrovia, Nouakchott, Ouagadougou, Sao Tome, Reykjavik, St. Helena"
118
- },
119
- {
120
- utc: [
121
- "Africa/Casablanca",
122
- "Africa/El_Aaiun"
123
- ],
124
- label: "Morocco Standard Time",
125
- keywords: "Morocco Standard Time Casablanca El Aaiun MST",
126
- isDst: true,
127
- cities: "Casablanca, El Aaiun"
128
- },
129
- {
130
- utc: [
131
- "Indian/Mahe",
132
- "Indian/Mauritius",
133
- "Indian/Reunion"
134
- ],
135
- label: "Mauritius Standard Time",
136
- keywords: "Mauritius Standard Time Mahe Mauritius Reunion MST",
137
- isDst: false,
138
- cities: "Mahe, Mauritius, Reunion"
139
- }
140
- ];
141
- const America = [
142
- {
143
- utc: [
144
- "America/Argentina/La_Rioja",
145
- "America/Argentina/Rio_Gallegos",
146
- "America/Argentina/Salta",
147
- "America/Argentina/San_Juan",
148
- "America/Argentina/San_Luis",
149
- "America/Argentina/Tucuman",
150
- "America/Argentina/Ushuaia",
151
- "America/Argentina/ComodRivadavia",
152
- "America/Buenos_Aires",
153
- "America/Catamarca",
154
- "America/Cordoba",
155
- "America/Jujuy",
156
- "America/Mendoza",
157
- "America/Fort_Wayne",
158
- "America/Rosario"
159
- ],
160
- label: "Argentina Standard Time",
161
- keywords: "Argentina Standard Time La Rioja Rio_Gallegos Salta San_Juan San_Luis Tucuman Ushuaia ComodRivadavia Buenos_Aires Catamarca Cordoba Jujuy Mendoza AST Fort_Wayne Rosario",
162
- isDst: false,
163
- cities: "La Rioja, Rio Gallegos, Salta, San Juan, San Luis, Tucuman, Ushuaia, ComodRivadavia, Buenos Aires, Catamarca, Cordoba, Jujuy, Mendoza, Fort_Wayne, Rosario"
164
- },
165
- {
166
- utc: [
167
- "America/Asuncion"
168
- ],
169
- label: "Paraguay Standard Time",
170
- keywords: "Paraguay Standard Time Asuncion PST",
171
- isDst: false,
172
- cities: "Asuncion"
173
- },
174
- {
175
- utc: [
176
- "America/Bogota",
177
- "America/Cayman",
178
- "America/Coral_Harbour",
179
- "America/Eirunepe",
180
- "America/Guayaquil",
181
- "America/Jamaica",
182
- "Jamaica",
183
- "America/Lima",
184
- "America/Panama",
185
- "America/Rio_Branco",
186
- "Brazil/Acre",
187
- "Etc/GMT+5"
188
- ],
189
- label: "South American Pacific Standard Time",
190
- keywords: "SA Pacific Standard Time Bogota Cayman Coral Harbour Eirunepe Guayaquil Jamaica Lima Panama Rio_Branco Acre GMT+5 SAPST PST",
191
- isDst: false,
192
- cities: "Bogota, Cayman, Coral Harbour, Eirunepe, Guayaquil, Jamaica, Lima, Panama, Rio Branco"
193
- },
194
- {
195
- utc: [
196
- "America/Campo_Grande",
197
- "America/Cuiaba"
198
- ],
199
- label: "Central Brazilian Standard Time",
200
- keywords: "Central Brazilian Standard Time Campo Grande Cuiaba CBST",
201
- isDst: false,
202
- cities: "Cuiaba, Campo Grande"
203
- },
204
- {
205
- utc: [
206
- "America/Caracas"
207
- ],
208
- label: "Venezuela Standard Time",
209
- keywords: "Venezuela Standard Time Caracas VST",
210
- isDst: false,
211
- cities: "Caracas"
212
- },
213
- {
214
- utc: [
215
- "America/Nuuk",
216
- "America/Godthab"
217
- ],
218
- label: "Greenland Standard Time",
219
- keywords: "Greenland Standard Time Godthab GST Nuuk",
220
- isDst: true,
221
- cities: "Nuuk, Godthab"
222
- },
223
- {
224
- utc: [
225
- "America/Regina",
226
- "America/Swift_Current",
227
- "Canada/Saskatchewan"
228
- ],
229
- label: "Canada Central Standard Time",
230
- keywords: "Canada Central Standard Time Regina Swift Current CCST Saskatchewan",
231
- isDst: false,
232
- cities: "Regina, Swift Current"
233
- },
234
- {
235
- utc: [
236
- "America/Chihuahua",
237
- "America/Mazatlan",
238
- "Mexico/BajaSur"
239
- ],
240
- label: "Mountain Standard Time (Mexico)",
241
- keywords: "Mountain Standard Time (Mexico) Chihuahua Mazatlan MST BajaSur",
242
- isDst: true,
243
- cities: "Chihuahua, Mazatlan, La Paz"
244
- },
245
- {
246
- utc: [
247
- "America/Bahia_Banderas",
248
- "America/Cancun",
249
- "America/Merida",
250
- "America/Mexico_City",
251
- "Mexico/General",
252
- "America/Monterrey"
253
- ],
254
- label: "Central Standard Time (Mexico)",
255
- keywords: "Central Standard Time (Mexico) Bahia Banderas Cancun Merida Mexico_City Monterrey CST General",
256
- isDst: true,
257
- cities: "Guadalajara, Mexico City, Monterrey, Bahia Baderas, Cancun, Merida"
258
- },
259
- {
260
- utc: [
261
- "America/Montevideo"
262
- ],
263
- label: "Montevideo Standard Time",
264
- keywords: "Montevideo Standard Time Montevideo MST",
265
- isDst: false,
266
- cities: "Montevideo"
267
- },
268
- {
269
- utc: [
270
- "America/Noronha",
271
- "Brazil/DeNoronha",
272
- "Atlantic/South_Georgia",
273
- "Etc/GMT+2"
274
- ],
275
- label: "Coordinated Universal Time (UTC -02)",
276
- keywords: "UTC-02 Noronha DeNoronha South Georgia GMT+2 CUT",
277
- isDst: false,
278
- cities: "Noronha, South Georgia, DeNoronha"
279
- },
280
- {
281
- utc: [
282
- "America/Santiago",
283
- "Chile/Continental",
284
- "Antarctica/Palmer"
285
- ],
286
- label: "Pacific SA Standard Time",
287
- keywords: "Pacific SA Standard Time Santiago Palmer PSST Continental",
288
- isDst: false,
289
- cities: "Santiago, Palmer"
290
- },
291
- {
292
- utc: [
293
- "America/Santa_Isabel"
294
- ],
295
- label: "Pacific Standard Time (Mexico)",
296
- keywords: "Pacific Standard Time (Mexico) Santa Isabel PST",
297
- isDst: true,
298
- cities: "Santa Isabel"
299
- },
300
- {
301
- utc: [
302
- "America/Glace_Bay",
303
- "America/Goose_Bay",
304
- "America/Halifax",
305
- "Canada/Atlantic",
306
- "America/Moncton",
307
- "America/Thule",
308
- "Atlantic/Bermuda"
309
- ],
310
- label: "Atlantic Time (Canada)",
311
- keywords: "Atlantic Standard Time Glace Bay Goose_Bay Halifax Moncton Thule Bermuda AT",
312
- isDst: true,
313
- cities: "Glace Bay, Goose Bay, Halifax, Moncton, Thule, Bermuda"
314
- },
315
- {
316
- utc: [
317
- "America/Sao_Paulo",
318
- "Brazil/East"
319
- ],
320
- label: "East South America Standard Time",
321
- keywords: "E. South America Standard Time Sao Paulo ESAST EAST",
322
- isDst: false,
323
- cities: "Sao Paulo"
324
- },
325
- {
326
- utc: [
327
- "America/Danmarkshavn",
328
- "Etc/GMT",
329
- "GMT+0",
330
- "GMT-0",
331
- "GMT0",
332
- "Greenwich",
333
- "Universal",
334
- "Etc/UTC",
335
- "Etc/UCT",
336
- "Zulu"
337
- ],
338
- label: "Coordinated Universal Time",
339
- keywords: "UTC Danmarkshavn GMT CUT GMT+0 GMT-0 GMT0 Greenwich Etc Zulu UCT",
340
- isDst: false,
341
- cities: "Danmarkshavn"
342
- },
343
- {
344
- utc: [
345
- "America/Bahia"
346
- ],
347
- label: "Bahia Standard Time",
348
- keywords: "Bahia Standard Time Bahia BST",
349
- isDst: false,
350
- cities: "Bahia, Salvado"
351
- },
352
- {
353
- utc: [
354
- "America/Araguaina",
355
- "America/Belem",
356
- "America/Cayenne",
357
- "America/Fortaleza",
358
- "America/Maceio",
359
- "America/Paramaribo",
360
- "America/Recife",
361
- "America/Santarem",
362
- "Antarctica/Rothera",
363
- "Atlantic/Stanley",
364
- "Etc/GMT+3"
365
- ],
366
- label: "South American Eastern Standard Time",
367
- keywords: "SA Eastern Standard Time Araguaina Belem Cayenne Fortaleza Maceio Paramaribo Recife Santarem Rothera Stanley GMT+3 SAEST SAET",
368
- isDst: false,
369
- cities: "Araguaina, Belem, Cayenne, Fortaleza, Maceio, Paramaribo, Recife, Santarem, Rothera, Stanley"
370
- },
371
- {
372
- utc: [
373
- "America/Anguilla",
374
- "America/Antigua",
375
- "America/Aruba",
376
- "America/Barbados",
377
- "America/Blanc-Sablon",
378
- "America/Boa_Vista",
379
- "America/Curacao",
380
- "America/Dominica",
381
- "America/Grand_Turk",
382
- "America/Grenada",
383
- "America/Guadeloupe",
384
- "America/Guyana",
385
- "America/Kralendijk",
386
- "America/La_Paz",
387
- "America/Lower_Princes",
388
- "America/Manaus",
389
- "Brazil/West",
390
- "America/Marigot",
391
- "America/Martinique",
392
- "America/Montserrat",
393
- "America/Port_of_Spain",
394
- "America/Porto_Velho",
395
- "America/Puerto_Rico",
396
- "America/Santo_Domingo",
397
- "America/St_Barthelemy",
398
- "America/St_Kitts",
399
- "America/St_Lucia",
400
- "America/St_Thomas",
401
- "America/St_Vincent",
402
- "America/Tortola",
403
- "Etc/GMT+4"
404
- ],
405
- label: "South American Western Standard Time",
406
- keywords: "SA Western Standard Time Anguilla Antigua Aruba Barbados Blanc-Sablon Boa Vista Curacao Dominica Grand_Turk Grenada Guadeloupe Guyana Kralendijk La_Paz Lower_Princes Manaus Marigot Martinique Montserrat Port_of_Spain Porto_Velho Puerto_Rico Santo_Domingo St_Barthelemy St_Kitts St_Lucia St_Thomas St_Vincent Tortola GMT+4 SAWST SAWT Brazil_West",
407
- isDst: false,
408
- cities: "Anguilla, Antigua, Aruba, Barbados, Blanc-Sablon, Boa Vista, Curacao, Dominica, Grand_Turk, Grenada, Guadeloupe, Guyana, Kralendijk, La Paz, Lower_Princes, Manaus, Marigot, Martinique, Montserrat, Port_of_Spain, Porto_Velho, Puerto_Rico, Santo_Domingo, St_Barthelemy, St_Kitts, St_Lucia, St_Thomas, St_Vincent, Tortola, Georgetown, La Paz, San Juan"
409
- },
410
- {
411
- utc: [
412
- "America/Indiana/Marengo",
413
- "America/Indiana/Vevay",
414
- "America/Indianapolis",
415
- "US/East-Indiana"
416
- ],
417
- label: "US Eastern Standard Time",
418
- keywords: "US Eastern Standard Time Marengo Vevay Indianapolis UEST UET East-Indiana",
419
- isDst: false,
420
- cities: "Marengo, Vevay, Indianapolis"
421
- },
422
- {
423
- utc: [
424
- "America/Adak",
425
- "US/Aleutian"
426
- ],
427
- label: "Aleutian Standard Time",
428
- keywords: "Aleutian Standard Time Adak Aleutian",
429
- isDst: false,
430
- cities: ""
431
- }
432
- ];
433
- const Asia = [
434
- {
435
- utc: [
436
- "Asia/Kolkata",
437
- "Asia/Calcutta"
438
- ],
439
- label: "Indian Standard Time",
440
- keywords: "India Standard Time Kolkata Calcutta Chennai Mumbai New Delhi IST",
441
- isDst: false,
442
- cities: "Kolkata, Chennai, Mumbai, New Delhi"
443
- },
444
- {
445
- utc: [
446
- "Asia/Beirut"
447
- ],
448
- label: "Middle East Standard Time",
449
- keywords: "Middle East Standard Time Beirut MEST",
450
- isDst: true,
451
- cities: "Beirut"
452
- },
453
- {
454
- utc: [
455
- "Asia/Damascus"
456
- ],
457
- label: "Syria Standard Time",
458
- keywords: "Syria Standard Time Damascus SST",
459
- isDst: true,
460
- cities: "Damascus"
461
- },
462
- {
463
- utc: [
464
- "Asia/Jerusalem",
465
- "Israel"
466
- ],
467
- label: "Israel Standard Time",
468
- keywords: "Israel Standard Time Jerusalem IST",
469
- isDst: true,
470
- cities: "Jerusalem"
471
- },
472
- {
473
- utc: [
474
- "Asia/Amman"
475
- ],
476
- label: "Jordan Standard Time",
477
- keywords: "Jordan Standard Time Amman JST",
478
- isDst: false,
479
- cities: "Amman"
480
- },
481
- {
482
- utc: [
483
- "Asia/Baghdad"
484
- ],
485
- label: "Arabic Standard Time",
486
- keywords: "Arabic Standard Time Baghdad AST",
487
- isDst: false,
488
- cities: "Baghdad"
489
- },
490
- {
491
- utc: [
492
- "Asia/Aden",
493
- "Asia/Bahrain",
494
- "Asia/Kuwait",
495
- "Asia/Qatar",
496
- "Asia/Riyadh"
497
- ],
498
- label: "Arab Standard Time",
499
- keywords: "Arab Standard Time Aden Bahrain Kuwait Qatar Riyadh AST",
500
- isDst: false,
501
- cities: "Aden, Bahrain, Kuwait, Qatar, Riyadh"
502
- },
503
- {
504
- utc: [
505
- "Asia/Tehran",
506
- "Iran"
507
- ],
508
- label: "Iran Standard Time",
509
- keywords: "Iran Standard Time Tehran IST Iran",
510
- isDst: true,
511
- cities: "Tehran"
512
- },
513
- {
514
- utc: [
515
- "Asia/Dubai",
516
- "Asia/Muscat",
517
- "Etc/GMT-4"
518
- ],
519
- label: "Arabian Standard time",
520
- keywords: "Arabian Standard Time Dubai Muscat GMT-4 AST",
521
- isDst: false,
522
- cities: "Dubai, Muscat, Abu Dhabi"
523
- },
524
- {
525
- utc: [
526
- "Asia/Baku"
527
- ],
528
- label: "Azerbaijan Standard Time",
529
- keywords: "Azerbaijan Standard Time Baku AST",
530
- isDst: true,
531
- cities: "Baku"
532
- },
533
- {
534
- utc: [
535
- "Asia/Tbilisi"
536
- ],
537
- label: "Georgian Standard Time",
538
- keywords: "Georgian Standard Time Tbilisi GST",
539
- isDst: false,
540
- cities: "Tbilisi"
541
- },
542
- {
543
- utc: [
544
- "Asia/Yerevan"
545
- ],
546
- label: "Caucasus Standard Time",
547
- keywords: "Caucasus Standard Time Yerevan CST",
548
- isDst: false,
549
- cities: "Yerevan"
550
- },
551
- {
552
- utc: [
553
- "Asia/Kabul"
554
- ],
555
- label: "Afghanistan Standard Time",
556
- keywords: "Afghanistan Standard Time Kabul AST",
557
- isDst: false,
558
- cities: "Kabul"
559
- },
560
- {
561
- utc: [
562
- "Antarctica/Mawson",
563
- "Asia/Aqtau",
564
- "Asia/Aqtobe",
565
- "Asia/Ashgabat",
566
- "Asia/Ashkhabad",
567
- "Asia/Dushanbe",
568
- "Asia/Oral",
569
- "Asia/Samarkand",
570
- "Asia/Tashkent",
571
- "Etc/GMT-5",
572
- "Indian/Kerguelen",
573
- "Indian/Maldives"
574
- ],
575
- label: "West Asia Standard Time",
576
- keywords: "West Asia Standard Time Mawson Aqtau Aqtobe Ashgabat Ashkhabad Dushanbe Oral Samarkand Tashkent GMT-5 Kerguelen Maldives WAST",
577
- isDst: false,
578
- cities: "Mawson, Aqtau, Aqtobe, Ashgabat, Ashkhabad, Dushanbe, Oral, Samarkand, Tashkent, Kerguelen, Maldives"
579
- },
580
- {
581
- utc: [
582
- "Asia/Yekaterinburg"
583
- ],
584
- label: "Yekaterinburg Time",
585
- keywords: "Yekaterinburg Time YT",
586
- isDst: false,
587
- cities: "Yekaterinburg"
588
- },
589
- {
590
- utc: [
591
- "Asia/Karachi"
592
- ],
593
- label: "Pakistan Standard Time",
594
- keywords: "Pakistan Standard Time Karachi PST",
595
- isDst: false,
596
- cities: "Islamabad, Karachi"
597
- },
598
- {
599
- utc: [
600
- "Asia/Colombo"
601
- ],
602
- label: "Sri Lanka Standard Time",
603
- keywords: "Sri Lanka Standard Time Colombo SLST SST",
604
- isDst: false,
605
- cities: "Colombo"
606
- },
607
- {
608
- utc: [
609
- "Asia/Kathmandu",
610
- "Asia/Katmandu"
611
- ],
612
- label: "Nepal Standard Time",
613
- keywords: "Nepal Standard Time Kathmandu Katmandu NST",
614
- isDst: false,
615
- cities: "Kathmandu"
616
- },
617
- {
618
- utc: [
619
- "Antarctica/Vostok",
620
- "Asia/Almaty",
621
- "Asia/Bishkek",
622
- "Asia/Qyzylorda",
623
- "Asia/Urumqi",
624
- "Etc/GMT-6",
625
- "Indian/Chagos"
626
- ],
627
- label: "Central Asia Standard Time",
628
- keywords: "Central Asia Standard Time Vostok Almaty Bishkek Qyzylorda Urumqi GMT-6 Chagos CAST",
629
- isDst: false,
630
- cities: "Vostok, Almaty, Bishkek, Qyzylorda, Urumqi, Chagos, Nur-Sultan (Astana)"
631
- },
632
- {
633
- utc: [
634
- "Asia/Dhaka",
635
- "Asia/Dacca",
636
- "Asia/Thimphu",
637
- "Asia/Thimbu"
638
- ],
639
- label: "Bangladesh Standard Time",
640
- keywords: "Bangladesh Standard Time Dhaka Dacca Thimphu Thimbu BST",
641
- isDst: false,
642
- cities: "Dhaka, Thimpu"
643
- },
644
- {
645
- utc: [
646
- "Asia/Yangon",
647
- "Asia/Rangoon",
648
- "Indian/Cocos"
649
- ],
650
- label: "Myanmar Standard Time",
651
- keywords: "Myanmar Standard Time Yangon Rangoon Cocos MST",
652
- isDst: false,
653
- cities: "Yangon, Rangoon, Cocos"
654
- },
655
- {
656
- utc: [
657
- "Antarctica/Davis",
658
- "Asia/Bangkok",
659
- "Asia/Hovd",
660
- "Asia/Jakarta",
661
- "Asia/Phnom_Penh",
662
- "Asia/Pontianak",
663
- "Asia/Saigon",
664
- "Asia/Ho_Chi_Minh",
665
- "Asia/Vientiane",
666
- "Etc/GMT-7",
667
- "Indian/Christmas"
668
- ],
669
- label: "South East Asia Standard Time",
670
- keywords: "SE Asia Standard Time Davis Bangkok Hovd Jakarta Phnom Penh Pontianak Saigon Ho_Chi_Minh Vientiane GMT-7 Christmas SEAST SST",
671
- isDst: false,
672
- cities: "Bangkok, Hanoi, Jakarta, Hovd, Davis, Phnom Penh, Pontianak, Saigon, Ho_Chi_Minh, Vientiane, Christmas"
673
- },
674
- {
675
- utc: [
676
- "Asia/Novokuznetsk",
677
- "Asia/Novosibirsk",
678
- "Asia/Omsk"
679
- ],
680
- label: "North Central Asia Standard Time",
681
- keywords: "N. Central Asia Standard Time Novokuznetsk Novosibirsk Omsk NCAST NST",
682
- isDst: false,
683
- cities: "Novosibirsk, Novokuznetsk, Omsk"
684
- },
685
- {
686
- utc: [
687
- "Asia/Hong_Kong",
688
- "Hongkong",
689
- "Asia/Macau",
690
- "Asia/Macao",
691
- "Asia/Shanghai",
692
- "PRC",
693
- "Asia/Chungking"
694
- ],
695
- label: "China Standard Time",
696
- keywords: "China Standard Time Hong Kong Macau Macao Hongkong Shanghai Chungking CST PRC",
697
- isDst: false,
698
- cities: "Beijing, Chongqing, Hong Kong, Urumqi, Macau, Macao, Shanghai Chungking"
699
- },
700
- {
701
- utc: [
702
- "Asia/Krasnoyarsk"
703
- ],
704
- label: "North Asia Standard Time",
705
- keywords: "North Asia Standard Time Krasnoyarsk NAST NAT",
706
- isDst: false,
707
- cities: "Krasnoyarsk"
708
- },
709
- {
710
- utc: [
711
- "Asia/Brunei",
712
- "Asia/Kuala_Lumpur",
713
- "Asia/Kuching",
714
- "Asia/Makassar",
715
- "Asia/Ujung_Pandang",
716
- "Asia/Manila",
717
- "Asia/Singapore",
718
- "Singapore",
719
- "Etc/GMT-8"
720
- ],
721
- label: "Singapore Standard Time",
722
- keywords: "Singapore Standard Time Brunei Kuala Lumpur Kuching Makassar Ujung_Pandang Manila Singapore GMT-8 SST",
723
- isDst: false,
724
- cities: "Brunei, Kuala Lumpur, Singapore, Makassar, Ujung_Pandang, Manila, Kuching"
725
- },
726
- {
727
- utc: [
728
- "Asia/Taipei",
729
- "ROC"
730
- ],
731
- label: "Taipei Standard Time",
732
- keywords: "Taipei Standard Time Taipei TST ROC",
733
- isDst: false,
734
- cities: "Taipei"
735
- },
736
- {
737
- utc: [
738
- "Asia/Choibalsan",
739
- "Asia/Ulaanbaatar",
740
- "Asia/Ulan_Bator"
741
- ],
742
- label: "Ulaanbaatar Standard Time",
743
- keywords: "Ulaanbaatar Standard Time Choibalsan Ulaanbaatar Ulan_Bator UST",
744
- isDst: false,
745
- cities: "Ulaanbaatar, Ulan_Bator, Choibalsan"
746
- },
747
- {
748
- utc: [
749
- "Asia/Irkutsk"
750
- ],
751
- label: "North Asia East Standard Time",
752
- keywords: "North Asia East Standard Time Irkutsk NAEST",
753
- isDst: false,
754
- cities: "Irkutsk"
755
- },
756
- {
757
- utc: [
758
- "Asia/Dili",
759
- "Asia/Jayapura",
760
- "Asia/Tokyo",
761
- "Etc/GMT-9",
762
- "Pacific/Palau",
763
- "Japan"
764
- ],
765
- label: "Japan Standard Time",
766
- keywords: "Japan Standard Time Dili Jayapura Tokyo GMT-9 Palau JST",
767
- isDst: false,
768
- cities: "Osaka, Sapporo, Tokyo, Jayapura, Dili, Palau"
769
- },
770
- {
771
- utc: [
772
- "Asia/Pyongyang",
773
- "Asia/Seoul",
774
- "ROK"
775
- ],
776
- label: "Korea Standard Time",
777
- keywords: "Korea Standard Time Pyongyang Seoul KST ROK",
778
- isDst: false,
779
- cities: "Pyongyang, Seoul"
780
- },
781
- {
782
- utc: [
783
- "Asia/Anadyr",
784
- "Asia/Kamchatka",
785
- "Asia/Magadan",
786
- "Asia/Srednekolymsk"
787
- ],
788
- label: "Magadan Standard Time",
789
- keywords: "Magadan Standard Time Anadyr Kamchatka Magadan Srednekolymsk MST",
790
- isDst: false,
791
- cities: "Anadyr, Kamchatka, Magadan, Srednekolymsk"
792
- },
793
- {
794
- utc: [
795
- "Asia/Kamchatka"
796
- ],
797
- label: "Kamchatka Standard Time",
798
- keywords: "Kamchatka Standard Time Kamchatka KST",
799
- isDst: true,
800
- cities: "Petropavlovsk-Kamchatsky - Old"
801
- },
802
- {
803
- utc: [
804
- "Asia/Sakhalin",
805
- "Asia/Ust-Nera",
806
- "Asia/Vladivostok"
807
- ],
808
- label: "Vladivostok Standard Time",
809
- keywords: "Vladivostok Standard Time Sakhalin Ust-Nera Vladivostok VST",
810
- isDst: false,
811
- cities: "Sakhalin, Ust-Nera, Vladivostok"
812
- },
813
- {
814
- utc: [
815
- "Asia/Chita",
816
- "Asia/Khandyga",
817
- "Asia/Yakutsk"
818
- ],
819
- label: "Yakutsk Standard Time",
820
- keywords: "Yakutsk Standard Time Chita Khandyga Yakutsk YST",
821
- isDst: false,
822
- cities: "Chita, Khandyga, Yakutsk"
823
- }
824
- ];
825
- const Atlantic = [
826
- {
827
- utc: [
828
- "America/Scoresbysund",
829
- "Atlantic/Azores"
830
- ],
831
- label: "Azores Standard Time",
832
- keywords: "Azores Standard Time Scoresbysund Azores AST",
833
- isDst: true,
834
- cities: "Scoresbysund, Azores"
835
- },
836
- {
837
- utc: [
838
- "Atlantic/Cape_Verde",
839
- "Etc/GMT+1"
840
- ],
841
- label: "Cape Verde Standard Time",
842
- keywords: "Cape Verde Standard Time Cape Verde GMT+1 CVST CST",
843
- isDst: true,
844
- cities: "Cape Verde"
845
- }
846
- ];
847
- const Australia = [
848
- {
849
- utc: [
850
- "Antarctica/Casey",
851
- "Australia/Perth",
852
- "Australia/West"
853
- ],
854
- label: "West Australia Standard Time",
855
- keywords: "W. Australia Standard Time Casey Perth WAST",
856
- isDst: false,
857
- cities: "Casey, Perth, Australia West"
858
- },
859
- {
860
- utc: [
861
- "Australia/Adelaide",
862
- "Australia/Broken_Hill",
863
- "Australia/South"
864
- ],
865
- label: "Central Australian Standard Time",
866
- keywords: "Cen. Australia Standard Time Adelaide South Broken Hill CAST",
867
- isDst: false,
868
- cities: "Adelaide, Broken Hill, Austrailia South"
869
- },
870
- {
871
- utc: [
872
- "Australia/Darwin",
873
- "Australia/North"
874
- ],
875
- label: "Australian Central Standard Time",
876
- keywords: "AUS Central Standard Time Darwin ACST North",
877
- isDst: false,
878
- cities: "Darwin, Australia North"
879
- },
880
- {
881
- utc: [
882
- "Australia/Brisbane",
883
- "Australia/Queensland",
884
- "Australia/Lindeman"
885
- ],
886
- label: "East Australian Standard Time",
887
- keywords: "East Australian Australia Standard Time Brisbane Queensland Lindeman EAST",
888
- isDst: false,
889
- cities: "Brisbane, Queensland, Lindeman"
890
- },
891
- {
892
- utc: [
893
- "Australia/Melbourne",
894
- "Australia/Victoria",
895
- "Australia/ACT",
896
- "Australia/Sydney",
897
- "Australia/NSW",
898
- "Australia/LHI",
899
- "Australia/Lord_Howe"
900
- ],
901
- label: "Australian Eastern Standard Time",
902
- keywords: "AUS Eastern Standard Time Melbourne Sydney Victoria ACT AEST LHI Lord_Howe NSW",
903
- isDst: false,
904
- cities: "Melbourne, Sydney, Canberra NSW Victoria"
905
- },
906
- {
907
- utc: [
908
- "Australia/Currie",
909
- "Australia/Hobart",
910
- "Australia/Tasmania"
911
- ],
912
- label: "Tasmania Standard Time",
913
- keywords: "Tasmania Standard Time Currie Hobart Tasmania TST",
914
- isDst: false,
915
- cities: "Currie, Hobart, Tasmania"
916
- }
917
- ];
918
- const Europe = [
919
- {
920
- utc: [
921
- "Europe/London",
922
- "GB",
923
- "GB-Eire",
924
- "Europe/Isle_of_Man",
925
- "Europe/Guernsey",
926
- "Europe/Jersey"
927
- ],
928
- label: "GMT Standard Time",
929
- keywords: "GMT Standard Time Isle of_Man Guernsey Jersey London GB Edinburgh England, GB-Eire",
930
- isDst: true,
931
- cities: "London, Edinburgh, Isle of Man, Guernsey, Jersey"
932
- },
933
- {
934
- utc: [
935
- "WET",
936
- "Atlantic/Canary",
937
- "Atlantic/Faeroe",
938
- "Atlantic/Faroe",
939
- "Atlantic/Madeira",
940
- "Europe/Dublin",
941
- "Eire",
942
- "Europe/Lisbon",
943
- "Portugal"
944
- ],
945
- label: "Western European Time",
946
- keywords: "WET Western European Time Canary Faeroe Faroe Madeira Dublin Lisbon Eire Portugal",
947
- isDst: true,
948
- cities: "Canary, Faeroe, Faroe, Madeira, Dublin, Lisbon, Eire"
949
- },
950
- {
951
- utc: [
952
- "CET",
953
- "Africa/Ceuta",
954
- "Arctic/Longyearbyen",
955
- "Europe/Amsterdam",
956
- "Europe/Andorra",
957
- "Europe/Belgrade",
958
- "Europe/Berlin",
959
- "Europe/Bratislava",
960
- "Europe/Brussels",
961
- "Europe/Budapest",
962
- "Europe/Busingen",
963
- "Europe/Copenhagen",
964
- "Europe/Gibraltar",
965
- "Europe/Ljubljana",
966
- "Europe/Luxembourg",
967
- "Europe/Madrid",
968
- "Europe/Malta",
969
- "Europe/Monaco",
970
- "Europe/Oslo",
971
- "Europe/Paris",
972
- "Europe/Podgorica",
973
- "Europe/Prague",
974
- "Europe/Rome",
975
- "Europe/San_Marino",
976
- "Europe/Sarajevo",
977
- "Europe/Skopje",
978
- "Europe/Stockholm",
979
- "Europe/Tirane",
980
- "Europe/Vaduz",
981
- "Europe/Vatican",
982
- "Europe/Vienna",
983
- "Europe/Warsaw",
984
- "Poland",
985
- "Europe/Zagreb",
986
- "Europe/Zurich"
987
- ],
988
- label: "Central European Time",
989
- keywords: "CET Central European Time Amsterdam Andorra Belgrade Berlin Bern Bratislava Brussels Budapest Busingen Ceuta Copenhagen Gibraltar Ljubljana Longyearbyen Luxembourg Madrid Malta Monaco Oslo Paris Podgorica Prague Rome San Marino Stockholm Tirane Vaduz Vatican Vienna Zurich Spain France Italy Germany Poland",
990
- isDst: true,
991
- cities: "Amsterdam, Andorra, Belgrade, Berlin, Bern, Bratislava, Brussels, Budapest, Busingen, Ceuta, Copenhagen, Gibraltar, Ljubljana, Longyearbyen, Luxembourg, Madrid, Malta, Monaco, Oslo, Paris, Podgorica, Prague, Rome, San Marino, Stockholm, Tirane, Vaduz, Vatican, Vienna, Zurich"
992
- },
993
- {
994
- utc: [
995
- "EET",
996
- "Asia/Nicosia",
997
- "Europe/Athens",
998
- "Europe/Bucharest",
999
- "Europe/Chisinau",
1000
- "Europe/Helsinki",
1001
- "Europe/Kiev",
1002
- "Europe/Kyiv",
1003
- "Europe/Mariehamn",
1004
- "Europe/Nicosia",
1005
- "Europe/Riga",
1006
- "Europe/Sofia",
1007
- "Europe/Tallinn",
1008
- "Europe/Uzhgorod",
1009
- "Europe/Uzhhorod",
1010
- "Europe/Vilnius",
1011
- "Europe/Zaporozhye",
1012
- "Europe/Zaporizhzhia"
1013
- ],
1014
- label: "Eastern European Time",
1015
- keywords: "Eastern European Time Athens Bucharest Chisinau Helsinki Kiev Kyiv Mariehamn Nicosia Riga Sofia Tallinn Uzhgorod Uzhhorod Vilnius Zaporozhye Zaporizhzhia EEST",
1016
- isDst: true,
1017
- cities: "Athens, Bucharest, Chisinau, Helsinki, Kiev, Kyiv, Mariehamn, Nicosia, Riga, Sofia, Tallinn, Uzhgorod, Uzhhorod, Vilnius, Zaporozhye, Zaporizhzhia"
1018
- },
1019
- {
1020
- utc: [
1021
- "Europe/Istanbul",
1022
- "Turkey"
1023
- ],
1024
- label: "Turkey Standard Time",
1025
- keywords: "Turkey Standard Time Istanbul TST",
1026
- isDst: false,
1027
- cities: "Istanbul"
1028
- },
1029
- {
1030
- utc: [
1031
- "Europe/Kaliningrad"
1032
- ],
1033
- label: "Kaliningrad Standard Time",
1034
- keywords: "Kaliningrad Standard Time Kaliningrad KST",
1035
- isDst: false,
1036
- cities: "Kaliningrad"
1037
- },
1038
- {
1039
- utc: [
1040
- "Europe/Kirov",
1041
- "Europe/Moscow",
1042
- "Europe/Simferopol",
1043
- "Europe/Volgograd",
1044
- "Europe/Minsk",
1045
- "W-SU"
1046
- ],
1047
- label: "Moscow Standard Time",
1048
- keywords: "Moscow Standard Time Kirov Moscow Simferopol Volgograd Minsk MST W-SU",
1049
- isDst: false,
1050
- cities: "Moscow, St. Petersburg, Volgograd, Minsk, Kirov"
1051
- },
1052
- {
1053
- utc: [
1054
- "Europe/Astrakhan",
1055
- "Europe/Samara",
1056
- "Europe/Ulyanovsk"
1057
- ],
1058
- label: "Samara Time",
1059
- keywords: "Samara Time Astrakhan Samara Ulyanovsk ST",
1060
- isDst: false,
1061
- cities: "Samara, Ulyanovsk, Saratov"
1062
- }
1063
- ];
1064
- const Pacific = [
1065
- {
1066
- utc: [
1067
- "Etc/GMT+11",
1068
- "Pacific/Midway",
1069
- "Pacific/Niue",
1070
- "Pacific/Pago_Pago",
1071
- "US/Samoa"
1072
- ],
1073
- label: "Coordinated Universal Time (UTC -11)",
1074
- keywords: "UTC-11 GMT+11 Midway Niue Pago Pago CUT Samoa",
1075
- isDst: false,
1076
- cities: "Midway, Pago Pago"
1077
- },
1078
- {
1079
- utc: [
1080
- "Pacific/Apia"
1081
- ],
1082
- label: "Samoa Standard Time",
1083
- keywords: "Samoa Standard Time Apia SST",
1084
- isDst: false,
1085
- cities: "Apia"
1086
- },
1087
- {
1088
- utc: [
1089
- "Antarctica/McMurdo",
1090
- "Pacific/Auckland",
1091
- "Antarctica/South_Pole",
1092
- "NZ"
1093
- ],
1094
- label: "New Zealand Standard Time",
1095
- keywords: "New Zealand Standard Time Wellington McMurdo Auckland NST South_Pole NZ",
1096
- isDst: false,
1097
- cities: "Auckland, Wellington, McMurdo"
1098
- },
1099
- {
1100
- utc: [
1101
- "Pacific/Fiji"
1102
- ],
1103
- label: "Fiji Standard Time",
1104
- keywords: "Fiji Standard Time Fiji FST",
1105
- isDst: false,
1106
- cities: "Fiji"
1107
- },
1108
- {
1109
- utc: [
1110
- "Etc/GMT-12",
1111
- "Pacific/Funafuti",
1112
- "Pacific/Kwajalein",
1113
- "Pacific/Majuro",
1114
- "Pacific/Nauru",
1115
- "Pacific/Tarawa",
1116
- "Pacific/Wake",
1117
- "Pacific/Wallis",
1118
- "Kwajalein"
1119
- ],
1120
- label: "Coordinated Universal Time (UTC +12)",
1121
- keywords: "UTC+12 GMT-12 Funafuti Kwajalein Majuro Nauru Tarawa Wake Wallis CUT",
1122
- isDst: false,
1123
- cities: "Funafuti, Kwajalein, Majuro, Nauru, Tarawa, Wake, Wallis"
1124
- },
1125
- {
1126
- utc: [
1127
- "Antarctica/DumontDUrville",
1128
- "Etc/GMT-10",
1129
- "Pacific/Guam",
1130
- "Pacific/Port_Moresby",
1131
- "Pacific/Saipan",
1132
- "Pacific/Chuuk",
1133
- "Pacific/Truk"
1134
- ],
1135
- label: "West Pacific Standard Time",
1136
- keywords: "West Pacific Standard Time DumontDUrville GMT-10 Guam Port Moresby Saipan Truk WPST Chuuk",
1137
- isDst: false,
1138
- cities: "DumontDUrville, Guam, Port Moresby, Saipan, Truk"
1139
- },
1140
- {
1141
- utc: [
1142
- "Antarctica/Macquarie",
1143
- "Etc/GMT-11",
1144
- "Pacific/Efate",
1145
- "Pacific/Guadalcanal",
1146
- "Pacific/Kosrae",
1147
- "Pacific/Noumea",
1148
- "Pacific/Ponape",
1149
- "Pacific/Pohnpei"
1150
- ],
1151
- label: "Central Pacific Standard Time",
1152
- keywords: "Central Pacific Standard Time Macquarie GMT-11 Efate Guadalcanal Kosrae Noumea Ponape CPST Pohnpei",
1153
- isDst: false,
1154
- cities: "Macquarie, Efate, Guadalcanal, Kosrae, Noumea, Ponape"
1155
- },
1156
- {
1157
- utc: [
1158
- "Etc/GMT-13",
1159
- "Pacific/Kanton",
1160
- "Pacific/Enderbury",
1161
- "Pacific/Fakaofo",
1162
- "Pacific/Tongatapu"
1163
- ],
1164
- label: "Tonga Standard Time",
1165
- keywords: "Tonga Standard Time GMT-13 Enderbury Fakaofo Tongatapu TST Kanton",
1166
- isDst: false,
1167
- cities: "Enderbury, Fakaofo, Tongatapu"
1168
- },
1169
- {
1170
- utc: [
1171
- "Etc/GMT+12"
1172
- ],
1173
- label: "International Date Line West",
1174
- keywords: "Dateline Standard Time GMT+12 IDLW",
1175
- isDst: false,
1176
- cities: ""
1177
- },
1178
- {
1179
- utc: [
1180
- "Pacific/Easter",
1181
- "Chile/EasterIsland"
1182
- ],
1183
- label: "Easter Island Standard Time",
1184
- keywords: "Easter Island Standard Time Pacific Easter Chile EasterIsland EIST",
1185
- isDst: false,
1186
- cities: ""
1187
- },
1188
- {
1189
- utc: [
1190
- "Pacific/Chatham"
1191
- ],
1192
- label: "Chatham Standard Time",
1193
- keywords: "Chatham Standard Time Pacific Chatham CST NZ-CHAT",
1194
- isDst: false,
1195
- cities: ""
1196
- }
1197
- ];
1198
- const UsCanada = [
1199
- {
1200
- utc: [
1201
- "America/Los_Angeles",
1202
- "America/Tijuana",
1203
- "Mexico/BajaNorte",
1204
- "America/Vancouver",
1205
- "Canada/Pacific",
1206
- "US/Pacific",
1207
- "PST8PDT"
1208
- ],
1209
- label: "Pacific Standard Time",
1210
- keywords: "Pacific Standard Time PST8PDT PST California Las Vegas Los Angeles Nevada Palm Springs San Diego San Francisco Tijuana Vancouver Washington BajaNorte",
1211
- isDst: true,
1212
- cities: "California, Las Vegas, Los Angeles, Nevada, Palm Springs, San Diego, San Francisco, Tijuana, BajaNorte, Vancouver, Washington"
1213
- },
1214
- {
1215
- utc: [
1216
- "America/Creston",
1217
- "America/Dawson",
1218
- "America/Dawson_Creek",
1219
- "America/Hermosillo",
1220
- "America/Phoenix",
1221
- "US/Arizona",
1222
- "America/Whitehorse",
1223
- "Canada/Yukon",
1224
- "Etc/GMT+7"
1225
- ],
1226
- label: "Mountain Time",
1227
- keywords: "US Mountain Standard Time GMT+7 MT MST Creston Dawson Creek Hermosillo Phoenix Whitehorse Yukon Arizona",
1228
- isDst: false,
1229
- cities: "Creston, Dawson, Dawson Creek, Hermosillo, Phoenix, Whitehorse"
1230
- },
1231
- {
1232
- utc: [
1233
- "America/Boise",
1234
- "America/Cambridge_Bay",
1235
- "America/Denver",
1236
- "America/Edmonton",
1237
- "America/Inuvik",
1238
- "America/Ojinaga",
1239
- "America/Yellowknife",
1240
- "MST7MDT",
1241
- "Canada/Mountain",
1242
- "Navajo",
1243
- "US/Mountain"
1244
- ],
1245
- label: "Mountain Time",
1246
- keywords: "Mountain Time MST7MDT MT MST MDT Boise Cambridge_Bay Denver Edmonton Inuvik Ojinaga Yellowknife Navajo",
1247
- isDst: true,
1248
- cities: "Boise, Cambridge Bay, Denver, Edmonton, Inuvik, Ojinaga, Yellowknife"
1249
- },
1250
- {
1251
- utc: [
1252
- "America/Chicago",
1253
- "America/Knox_IN",
1254
- "America/Indiana/Knox",
1255
- "America/Indiana/Tell_City",
1256
- "America/Matamoros",
1257
- "America/Menominee",
1258
- "America/North_Dakota/Beulah",
1259
- "America/North_Dakota/Center",
1260
- "America/North_Dakota/New_Salem",
1261
- "America/Rainy_River",
1262
- "America/Rankin_Inlet",
1263
- "America/Resolute",
1264
- "America/Winnipeg",
1265
- "Canada/Central",
1266
- "US/Central",
1267
- "US/Indiana-Starke",
1268
- "CST6CDT"
1269
- ],
1270
- label: "Central Time",
1271
- keywords: "Central Standard Time CST6CDT CT CDT Austin Beulah Center Chicago Illinois Knox Matamoros Menominee Nashville New Salem Rainy River Rankin Inlet Resolute San Antonio Tell City Tennessee Texas Winnipeg Indiana-Starke",
1272
- isDst: true,
1273
- cities: "Austin, Beulah, Center, Chicago, Knox, Matamoros, Menominee, Nashville, New Salem, Rainy River, Rankin Inlet, Resolute, San Antonio, Tell City, Tennessee, Texas, Winnipeg"
1274
- },
1275
- {
1276
- utc: [
1277
- "America/New_York",
1278
- "America/Detroit",
1279
- "America/Havana",
1280
- "America/Indiana/Petersburg",
1281
- "America/Indiana/Vincennes",
1282
- "America/Indiana/Winamac",
1283
- "America/Iqaluit",
1284
- "America/Kentucky/Monticello",
1285
- "America/Louisville",
1286
- "America/Montreal",
1287
- "America/Nassau",
1288
- "America/Nipigon",
1289
- "America/Pangnirtung",
1290
- "America/Port-au-Prince",
1291
- "America/Thunder_Bay",
1292
- "America/Toronto",
1293
- "Canada/Eastern",
1294
- "Cuba",
1295
- "US/Michigan",
1296
- "US/Eastern"
1297
- ],
1298
- label: "Eastern Time",
1299
- keywords: "Eastern Standard Time EST ET Boston Massachusetts Charleston South Carolina Detroit Florida Havana Iqaluit Louisville Miami Monticello Montreal Nassau New York Nipigon Orlando Pangnirtung Port-au-Prince Petersburg Saint Augustine Thunder Bay Toronto Vincennes Washington D.C Winamac Cuba Michigan",
1300
- isDst: true,
1301
- cities: "Boston, Charleston, Detroit, Florida, Havana, Iqaluit, Louisville, Miami, Monticello, Montreal, Nassau, New York, Nipigon, Orlando, Pangnirtung, Port-au-Prince, Petersburg, Saint Augustine, Thunder Bay, Toronto, Vincennes, Washington D.C, Winamac"
1302
- },
1303
- {
1304
- utc: [
1305
- "America/Anchorage",
1306
- "America/Juneau",
1307
- "America/Nome",
1308
- "America/Sitka",
1309
- "America/Yakutat",
1310
- "US/Alaska"
1311
- ],
1312
- label: "Alaskan Time",
1313
- keywords: "Alaskan Standard Time AT Anchorage Juneau Nome Sitka Yakutat",
1314
- isDst: true,
1315
- cities: "Anchorage, Juneau, Nome, Sitka, Yakutat"
1316
- },
1317
- {
1318
- utc: [
1319
- "America/St_Johns",
1320
- "Canada/Newfoundland"
1321
- ],
1322
- label: "Newfoundland Time",
1323
- keywords: "Newfoundland Standard Time NT St Johns",
1324
- isDst: true,
1325
- cities: "St Johns"
1326
- },
1327
- {
1328
- utc: [
1329
- "Etc/GMT+10",
1330
- "Pacific/Honolulu",
1331
- "Pacific/Johnston",
1332
- "Pacific/Rarotonga",
1333
- "Pacific/Tahiti",
1334
- "US/Hawaii"
1335
- ],
1336
- label: "Hawaiian Time",
1337
- keywords: "Hawaiian Standard Time T GMT+10 Honolulu Johnston Lahaina Rarotonga Tahiti",
1338
- isDst: false,
1339
- cities: "Honolulu, Johnston, Lahaina, Rarotonga, Tahiti"
1340
- }
1341
- ];
1342
- var n$1, l$1, u$1, i$1, o$1, r$1, f$1, c$1 = {}, s$1 = [], a$1 = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, v$1 = Array.isArray;
1343
- function h$1(n2, l2) {
1344
- for (var u2 in l2)
1345
- n2[u2] = l2[u2];
1346
- return n2;
1347
- }
1348
- function p$1(n2) {
1349
- var l2 = n2.parentNode;
1350
- l2 && l2.removeChild(n2);
1351
- }
1352
- function y(l2, u2, t2) {
1353
- var i2, o2, r2, f2 = {};
1354
- for (r2 in u2)
1355
- "key" == r2 ? i2 = u2[r2] : "ref" == r2 ? o2 = u2[r2] : f2[r2] = u2[r2];
1356
- if (arguments.length > 2 && (f2.children = arguments.length > 3 ? n$1.call(arguments, 2) : t2), "function" == typeof l2 && null != l2.defaultProps)
1357
- for (r2 in l2.defaultProps)
1358
- void 0 === f2[r2] && (f2[r2] = l2.defaultProps[r2]);
1359
- return d$1(l2, f2, i2, o2, null);
1360
- }
1361
- function d$1(n2, t2, i2, o2, r2) {
1362
- var f2 = { type: n2, props: t2, key: i2, ref: o2, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: null == r2 ? ++u$1 : r2 };
1363
- return null == r2 && null != l$1.vnode && l$1.vnode(f2), f2;
1364
- }
1365
- function k$1(n2) {
1366
- return n2.children;
1367
- }
1368
- function b$1(n2, l2) {
1369
- this.props = n2, this.context = l2;
1370
- }
1371
- function g$1(n2, l2) {
1372
- if (null == l2)
1373
- return n2.__ ? g$1(n2.__, n2.__.__k.indexOf(n2) + 1) : null;
1374
- for (var u2; l2 < n2.__k.length; l2++)
1375
- if (null != (u2 = n2.__k[l2]) && null != u2.__e)
1376
- return u2.__d || u2.__e;
1377
- return "function" == typeof n2.type ? g$1(n2) : null;
1378
- }
1379
- function m$1(n2) {
1380
- var l2, u2;
1381
- if (null != (n2 = n2.__) && null != n2.__c) {
1382
- for (n2.__e = n2.__c.base = null, l2 = 0; l2 < n2.__k.length; l2++)
1383
- if (null != (u2 = n2.__k[l2]) && null != u2.__e) {
1384
- n2.__e = n2.__c.base = u2.__e;
1385
- break;
1386
- }
1387
- return m$1(n2);
1388
- }
1389
- }
1390
- function w$1(n2) {
1391
- (!n2.__d && (n2.__d = true) && i$1.push(n2) && !x.__r++ || o$1 !== l$1.debounceRendering) && ((o$1 = l$1.debounceRendering) || r$1)(x);
1392
- }
1393
- function x() {
1394
- var n2, l2, u2, t2, o2, r2, e2, c2, s2;
1395
- for (i$1.sort(f$1); n2 = i$1.shift(); )
1396
- n2.__d && (l2 = i$1.length, t2 = void 0, o2 = void 0, r2 = void 0, c2 = (e2 = (u2 = n2).__v).__e, (s2 = u2.__P) && (t2 = [], o2 = [], (r2 = h$1({}, e2)).__v = e2.__v + 1, z$1(s2, e2, r2, u2.__n, void 0 !== s2.ownerSVGElement, null != e2.__h ? [c2] : null, t2, null == c2 ? g$1(e2) : c2, e2.__h, o2), L(t2, e2, o2), e2.__e != c2 && m$1(e2)), i$1.length > l2 && i$1.sort(f$1));
1397
- x.__r = 0;
1398
- }
1399
- function P(n2, l2, u2, t2, i2, o2, r2, f2, e2, a2, h2) {
1400
- var p2, y2, _, b2, m2, w2, x2, P2, C, D2 = 0, H2 = t2 && t2.__k || s$1, I2 = H2.length, T2 = I2, j2 = l2.length;
1401
- for (u2.__k = [], p2 = 0; p2 < j2; p2++)
1402
- null != (b2 = u2.__k[p2] = null == (b2 = l2[p2]) || "boolean" == typeof b2 || "function" == typeof b2 ? null : "string" == typeof b2 || "number" == typeof b2 || "bigint" == typeof b2 ? d$1(null, b2, null, null, b2) : v$1(b2) ? d$1(k$1, { children: b2 }, null, null, null) : b2.__b > 0 ? d$1(b2.type, b2.props, b2.key, b2.ref ? b2.ref : null, b2.__v) : b2) ? (b2.__ = u2, b2.__b = u2.__b + 1, -1 === (P2 = A(b2, H2, x2 = p2 + D2, T2)) ? _ = c$1 : (_ = H2[P2] || c$1, H2[P2] = void 0, T2--), z$1(n2, b2, _, i2, o2, r2, f2, e2, a2, h2), m2 = b2.__e, (y2 = b2.ref) && _.ref != y2 && (_.ref && N(_.ref, null, b2), h2.push(y2, b2.__c || m2, b2)), null != m2 && (null == w2 && (w2 = m2), (C = _ === c$1 || null === _.__v) ? -1 == P2 && D2-- : P2 !== x2 && (P2 === x2 + 1 ? D2++ : P2 > x2 ? T2 > j2 - x2 ? D2 += P2 - x2 : D2-- : D2 = P2 < x2 && P2 == x2 - 1 ? P2 - x2 : 0), x2 = p2 + D2, "function" != typeof b2.type || P2 === x2 && _.__k !== b2.__k ? "function" == typeof b2.type || P2 === x2 && !C ? void 0 !== b2.__d ? (e2 = b2.__d, b2.__d = void 0) : e2 = m2.nextSibling : e2 = S(n2, m2, e2) : e2 = $(b2, e2, n2), "function" == typeof u2.type && (u2.__d = e2))) : (_ = H2[p2]) && null == _.key && _.__e && (_.__e == e2 && (_.__ = t2, e2 = g$1(_)), O(_, _, false), H2[p2] = null);
1403
- for (u2.__e = w2, p2 = I2; p2--; )
1404
- null != H2[p2] && ("function" == typeof u2.type && null != H2[p2].__e && H2[p2].__e == u2.__d && (u2.__d = H2[p2].__e.nextSibling), O(H2[p2], H2[p2]));
1405
- }
1406
- function $(n2, l2, u2) {
1407
- for (var t2, i2 = n2.__k, o2 = 0; i2 && o2 < i2.length; o2++)
1408
- (t2 = i2[o2]) && (t2.__ = n2, l2 = "function" == typeof t2.type ? $(t2, l2, u2) : S(u2, t2.__e, l2));
1409
- return l2;
1410
- }
1411
- function S(n2, l2, u2) {
1412
- return null == u2 || u2.parentNode !== n2 ? n2.insertBefore(l2, null) : l2 == u2 && null != l2.parentNode || n2.insertBefore(l2, u2), l2.nextSibling;
1413
- }
1414
- function A(n2, l2, u2, t2) {
1415
- var i2 = n2.key, o2 = n2.type, r2 = u2 - 1, f2 = u2 + 1, e2 = l2[u2];
1416
- if (null === e2 || e2 && i2 == e2.key && o2 === e2.type)
1417
- return u2;
1418
- if (t2 > (null != e2 ? 1 : 0))
1419
- for (; r2 >= 0 || f2 < l2.length; ) {
1420
- if (r2 >= 0) {
1421
- if ((e2 = l2[r2]) && i2 == e2.key && o2 === e2.type)
1422
- return r2;
1423
- r2--;
1424
- }
1425
- if (f2 < l2.length) {
1426
- if ((e2 = l2[f2]) && i2 == e2.key && o2 === e2.type)
1427
- return f2;
1428
- f2++;
1429
- }
1430
- }
1431
- return -1;
1432
- }
1433
- function D(n2, l2, u2, t2, i2) {
1434
- var o2;
1435
- for (o2 in u2)
1436
- "children" === o2 || "key" === o2 || o2 in l2 || I(n2, o2, null, u2[o2], t2);
1437
- for (o2 in l2)
1438
- i2 && "function" != typeof l2[o2] || "children" === o2 || "key" === o2 || "value" === o2 || "checked" === o2 || u2[o2] === l2[o2] || I(n2, o2, l2[o2], u2[o2], t2);
1439
- }
1440
- function H(n2, l2, u2) {
1441
- "-" === l2[0] ? n2.setProperty(l2, null == u2 ? "" : u2) : n2[l2] = null == u2 ? "" : "number" != typeof u2 || a$1.test(l2) ? u2 : u2 + "px";
1442
- }
1443
- function I(n2, l2, u2, t2, i2) {
1444
- var o2;
1445
- n:
1446
- if ("style" === l2)
1447
- if ("string" == typeof u2)
1448
- n2.style.cssText = u2;
1449
- else {
1450
- if ("string" == typeof t2 && (n2.style.cssText = t2 = ""), t2)
1451
- for (l2 in t2)
1452
- u2 && l2 in u2 || H(n2.style, l2, "");
1453
- if (u2)
1454
- for (l2 in u2)
1455
- t2 && u2[l2] === t2[l2] || H(n2.style, l2, u2[l2]);
1456
- }
1457
- else if ("o" === l2[0] && "n" === l2[1])
1458
- o2 = l2 !== (l2 = l2.replace(/(PointerCapture)$|Capture$/, "$1")), l2 = l2.toLowerCase() in n2 ? l2.toLowerCase().slice(2) : l2.slice(2), n2.l || (n2.l = {}), n2.l[l2 + o2] = u2, u2 ? t2 ? u2.u = t2.u : (u2.u = Date.now(), n2.addEventListener(l2, o2 ? j$1 : T, o2)) : n2.removeEventListener(l2, o2 ? j$1 : T, o2);
1459
- else if ("dangerouslySetInnerHTML" !== l2) {
1460
- if (i2)
1461
- l2 = l2.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
1462
- else if ("width" !== l2 && "height" !== l2 && "href" !== l2 && "list" !== l2 && "form" !== l2 && "tabIndex" !== l2 && "download" !== l2 && "rowSpan" !== l2 && "colSpan" !== l2 && "role" !== l2 && l2 in n2)
1463
- try {
1464
- n2[l2] = null == u2 ? "" : u2;
1465
- break n;
1466
- } catch (n3) {
1467
- }
1468
- "function" == typeof u2 || (null == u2 || false === u2 && "-" !== l2[4] ? n2.removeAttribute(l2) : n2.setAttribute(l2, u2));
1469
- }
1470
- }
1471
- function T(n2) {
1472
- var u2 = this.l[n2.type + false];
1473
- if (n2.t) {
1474
- if (n2.t <= u2.u)
1475
- return;
1476
- } else
1477
- n2.t = Date.now();
1478
- return u2(l$1.event ? l$1.event(n2) : n2);
1479
- }
1480
- function j$1(n2) {
1481
- return this.l[n2.type + true](l$1.event ? l$1.event(n2) : n2);
1482
- }
1483
- function z$1(n2, u2, t2, i2, o2, r2, f2, e2, c2, s2) {
1484
- var a2, p2, y2, d2, _, g2, m2, w2, x2, $2, C, S2, A2, D2, H2, I2 = u2.type;
1485
- if (void 0 !== u2.constructor)
1486
- return null;
1487
- null != t2.__h && (c2 = t2.__h, e2 = u2.__e = t2.__e, u2.__h = null, r2 = [e2]), (a2 = l$1.__b) && a2(u2);
1488
- n:
1489
- if ("function" == typeof I2)
1490
- try {
1491
- if (w2 = u2.props, x2 = (a2 = I2.contextType) && i2[a2.__c], $2 = a2 ? x2 ? x2.props.value : a2.__ : i2, t2.__c ? m2 = (p2 = u2.__c = t2.__c).__ = p2.__E : ("prototype" in I2 && I2.prototype.render ? u2.__c = p2 = new I2(w2, $2) : (u2.__c = p2 = new b$1(w2, $2), p2.constructor = I2, p2.render = q), x2 && x2.sub(p2), p2.props = w2, p2.state || (p2.state = {}), p2.context = $2, p2.__n = i2, y2 = p2.__d = true, p2.__h = [], p2._sb = []), null == p2.__s && (p2.__s = p2.state), null != I2.getDerivedStateFromProps && (p2.__s == p2.state && (p2.__s = h$1({}, p2.__s)), h$1(p2.__s, I2.getDerivedStateFromProps(w2, p2.__s))), d2 = p2.props, _ = p2.state, p2.__v = u2, y2)
1492
- null == I2.getDerivedStateFromProps && null != p2.componentWillMount && p2.componentWillMount(), null != p2.componentDidMount && p2.__h.push(p2.componentDidMount);
1493
- else {
1494
- if (null == I2.getDerivedStateFromProps && w2 !== d2 && null != p2.componentWillReceiveProps && p2.componentWillReceiveProps(w2, $2), !p2.__e && (null != p2.shouldComponentUpdate && false === p2.shouldComponentUpdate(w2, p2.__s, $2) || u2.__v === t2.__v)) {
1495
- for (u2.__v !== t2.__v && (p2.props = w2, p2.state = p2.__s, p2.__d = false), u2.__e = t2.__e, u2.__k = t2.__k, u2.__k.forEach(function(n3) {
1496
- n3 && (n3.__ = u2);
1497
- }), C = 0; C < p2._sb.length; C++)
1498
- p2.__h.push(p2._sb[C]);
1499
- p2._sb = [], p2.__h.length && f2.push(p2);
1500
- break n;
1501
- }
1502
- null != p2.componentWillUpdate && p2.componentWillUpdate(w2, p2.__s, $2), null != p2.componentDidUpdate && p2.__h.push(function() {
1503
- p2.componentDidUpdate(d2, _, g2);
1504
- });
1505
- }
1506
- if (p2.context = $2, p2.props = w2, p2.__P = n2, p2.__e = false, S2 = l$1.__r, A2 = 0, "prototype" in I2 && I2.prototype.render) {
1507
- for (p2.state = p2.__s, p2.__d = false, S2 && S2(u2), a2 = p2.render(p2.props, p2.state, p2.context), D2 = 0; D2 < p2._sb.length; D2++)
1508
- p2.__h.push(p2._sb[D2]);
1509
- p2._sb = [];
1510
- } else
1511
- do {
1512
- p2.__d = false, S2 && S2(u2), a2 = p2.render(p2.props, p2.state, p2.context), p2.state = p2.__s;
1513
- } while (p2.__d && ++A2 < 25);
1514
- p2.state = p2.__s, null != p2.getChildContext && (i2 = h$1(h$1({}, i2), p2.getChildContext())), y2 || null == p2.getSnapshotBeforeUpdate || (g2 = p2.getSnapshotBeforeUpdate(d2, _)), P(n2, v$1(H2 = null != a2 && a2.type === k$1 && null == a2.key ? a2.props.children : a2) ? H2 : [H2], u2, t2, i2, o2, r2, f2, e2, c2, s2), p2.base = u2.__e, u2.__h = null, p2.__h.length && f2.push(p2), m2 && (p2.__E = p2.__ = null);
1515
- } catch (n3) {
1516
- u2.__v = null, (c2 || null != r2) && (u2.__e = e2, u2.__h = !!c2, r2[r2.indexOf(e2)] = null), l$1.__e(n3, u2, t2);
1517
- }
1518
- else
1519
- null == r2 && u2.__v === t2.__v ? (u2.__k = t2.__k, u2.__e = t2.__e) : u2.__e = M(t2.__e, u2, t2, i2, o2, r2, f2, c2, s2);
1520
- (a2 = l$1.diffed) && a2(u2);
1521
- }
1522
- function L(n2, u2, t2) {
1523
- for (var i2 = 0; i2 < t2.length; i2++)
1524
- N(t2[i2], t2[++i2], t2[++i2]);
1525
- l$1.__c && l$1.__c(u2, n2), n2.some(function(u3) {
1526
- try {
1527
- n2 = u3.__h, u3.__h = [], n2.some(function(n3) {
1528
- n3.call(u3);
1529
- });
1530
- } catch (n3) {
1531
- l$1.__e(n3, u3.__v);
1532
- }
1533
- });
1534
- }
1535
- function M(l2, u2, t2, i2, o2, r2, f2, e2, s2) {
1536
- var a2, h2, y2, d2 = t2.props, _ = u2.props, k2 = u2.type, b2 = 0;
1537
- if ("svg" === k2 && (o2 = true), null != r2) {
1538
- for (; b2 < r2.length; b2++)
1539
- if ((a2 = r2[b2]) && "setAttribute" in a2 == !!k2 && (k2 ? a2.localName === k2 : 3 === a2.nodeType)) {
1540
- l2 = a2, r2[b2] = null;
1541
- break;
1542
- }
1543
- }
1544
- if (null == l2) {
1545
- if (null === k2)
1546
- return document.createTextNode(_);
1547
- l2 = o2 ? document.createElementNS("http://www.w3.org/2000/svg", k2) : document.createElement(k2, _.is && _), r2 = null, e2 = false;
1548
- }
1549
- if (null === k2)
1550
- d2 === _ || e2 && l2.data === _ || (l2.data = _);
1551
- else {
1552
- if (r2 = r2 && n$1.call(l2.childNodes), h2 = (d2 = t2.props || c$1).dangerouslySetInnerHTML, y2 = _.dangerouslySetInnerHTML, !e2) {
1553
- if (null != r2)
1554
- for (d2 = {}, b2 = 0; b2 < l2.attributes.length; b2++)
1555
- d2[l2.attributes[b2].name] = l2.attributes[b2].value;
1556
- (y2 || h2) && (y2 && (h2 && y2.__html == h2.__html || y2.__html === l2.innerHTML) || (l2.innerHTML = y2 && y2.__html || ""));
1557
- }
1558
- if (D(l2, _, d2, o2, e2), y2)
1559
- u2.__k = [];
1560
- else if (P(l2, v$1(b2 = u2.props.children) ? b2 : [b2], u2, t2, i2, o2 && "foreignObject" !== k2, r2, f2, r2 ? r2[0] : t2.__k && g$1(t2, 0), e2, s2), null != r2)
1561
- for (b2 = r2.length; b2--; )
1562
- null != r2[b2] && p$1(r2[b2]);
1563
- e2 || ("value" in _ && void 0 !== (b2 = _.value) && (b2 !== l2.value || "progress" === k2 && !b2 || "option" === k2 && b2 !== d2.value) && I(l2, "value", b2, d2.value, false), "checked" in _ && void 0 !== (b2 = _.checked) && b2 !== l2.checked && I(l2, "checked", b2, d2.checked, false));
1564
- }
1565
- return l2;
1566
- }
1567
- function N(n2, u2, t2) {
1568
- try {
1569
- "function" == typeof n2 ? n2(u2) : n2.current = u2;
1570
- } catch (n3) {
1571
- l$1.__e(n3, t2);
1572
- }
1573
- }
1574
- function O(n2, u2, t2) {
1575
- var i2, o2;
1576
- if (l$1.unmount && l$1.unmount(n2), (i2 = n2.ref) && (i2.current && i2.current !== n2.__e || N(i2, null, u2)), null != (i2 = n2.__c)) {
1577
- if (i2.componentWillUnmount)
1578
- try {
1579
- i2.componentWillUnmount();
1580
- } catch (n3) {
1581
- l$1.__e(n3, u2);
1582
- }
1583
- i2.base = i2.__P = null, n2.__c = void 0;
1584
- }
1585
- if (i2 = n2.__k)
1586
- for (o2 = 0; o2 < i2.length; o2++)
1587
- i2[o2] && O(i2[o2], u2, t2 || "function" != typeof n2.type);
1588
- t2 || null == n2.__e || p$1(n2.__e), n2.__ = n2.__e = n2.__d = void 0;
1589
- }
1590
- function q(n2, l2, u2) {
1591
- return this.constructor(n2, u2);
1592
- }
1593
- function B$1(u2, t2, i2) {
1594
- var o2, r2, f2, e2;
1595
- l$1.__ && l$1.__(u2, t2), r2 = (o2 = "function" == typeof i2) ? null : i2 && i2.__k || t2.__k, f2 = [], e2 = [], z$1(t2, u2 = (!o2 && i2 || t2).__k = y(k$1, null, [u2]), r2 || c$1, c$1, void 0 !== t2.ownerSVGElement, !o2 && i2 ? [i2] : r2 ? null : t2.firstChild ? n$1.call(t2.childNodes) : null, f2, !o2 && i2 ? i2 : r2 ? r2.__e : t2.firstChild, o2, e2), L(f2, u2, e2);
1596
- }
1597
- n$1 = s$1.slice, l$1 = { __e: function(n2, l2, u2, t2) {
1598
- for (var i2, o2, r2; l2 = l2.__; )
1599
- if ((i2 = l2.__c) && !i2.__)
1600
- try {
1601
- if ((o2 = i2.constructor) && null != o2.getDerivedStateFromError && (i2.setState(o2.getDerivedStateFromError(n2)), r2 = i2.__d), null != i2.componentDidCatch && (i2.componentDidCatch(n2, t2 || {}), r2 = i2.__d), r2)
1602
- return i2.__E = i2;
1603
- } catch (l3) {
1604
- n2 = l3;
1605
- }
1606
- throw n2;
1607
- } }, u$1 = 0, b$1.prototype.setState = function(n2, l2) {
1608
- var u2;
1609
- u2 = null != this.__s && this.__s !== this.state ? this.__s : this.__s = h$1({}, this.state), "function" == typeof n2 && (n2 = n2(h$1({}, u2), this.props)), n2 && h$1(u2, n2), null != n2 && this.__v && (l2 && this._sb.push(l2), w$1(this));
1610
- }, b$1.prototype.forceUpdate = function(n2) {
1611
- this.__v && (this.__e = true, n2 && this.__h.push(n2), w$1(this));
1612
- }, b$1.prototype.render = k$1, i$1 = [], r$1 = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, f$1 = function(n2, l2) {
1613
- return n2.__v.__b - l2.__v.__b;
1614
- }, x.__r = 0;
1615
- var n = function(t2, s2, r2, e2) {
1616
- var u2;
1617
- s2[0] = 0;
1618
- for (var h2 = 1; h2 < s2.length; h2++) {
1619
- var p2 = s2[h2++], a2 = s2[h2] ? (s2[0] |= p2 ? 1 : 2, r2[s2[h2++]]) : s2[++h2];
1620
- 3 === p2 ? e2[0] = a2 : 4 === p2 ? e2[1] = Object.assign(e2[1] || {}, a2) : 5 === p2 ? (e2[1] = e2[1] || {})[s2[++h2]] = a2 : 6 === p2 ? e2[1][s2[++h2]] += a2 + "" : p2 ? (u2 = t2.apply(a2, n(t2, a2, r2, ["", null])), e2.push(u2), a2[0] ? s2[0] |= 2 : (s2[h2 - 2] = 0, s2[h2] = u2)) : e2.push(a2);
1621
- }
1622
- return e2;
1623
- }, t$1 = /* @__PURE__ */ new Map();
1624
- function e$1(s2) {
1625
- var r2 = t$1.get(this);
1626
- return r2 || (r2 = /* @__PURE__ */ new Map(), t$1.set(this, r2)), (r2 = n(this, r2.get(s2) || (r2.set(s2, r2 = function(n2) {
1627
- for (var t2, s3, r3 = 1, e2 = "", u2 = "", h2 = [0], p2 = function(n3) {
1628
- 1 === r3 && (n3 || (e2 = e2.replace(/^\s*\n\s*|\s*\n\s*$/g, ""))) ? h2.push(0, n3, e2) : 3 === r3 && (n3 || e2) ? (h2.push(3, n3, e2), r3 = 2) : 2 === r3 && "..." === e2 && n3 ? h2.push(4, n3, 0) : 2 === r3 && e2 && !n3 ? h2.push(5, 0, true, e2) : r3 >= 5 && ((e2 || !n3 && 5 === r3) && (h2.push(r3, 0, e2, s3), r3 = 6), n3 && (h2.push(r3, n3, 0, s3), r3 = 6)), e2 = "";
1629
- }, a2 = 0; a2 < n2.length; a2++) {
1630
- a2 && (1 === r3 && p2(), p2(a2));
1631
- for (var l2 = 0; l2 < n2[a2].length; l2++)
1632
- t2 = n2[a2][l2], 1 === r3 ? "<" === t2 ? (p2(), h2 = [h2], r3 = 3) : e2 += t2 : 4 === r3 ? "--" === e2 && ">" === t2 ? (r3 = 1, e2 = "") : e2 = t2 + e2[0] : u2 ? t2 === u2 ? u2 = "" : e2 += t2 : '"' === t2 || "'" === t2 ? u2 = t2 : ">" === t2 ? (p2(), r3 = 1) : r3 && ("=" === t2 ? (r3 = 5, s3 = e2, e2 = "") : "/" === t2 && (r3 < 5 || ">" === n2[a2][l2 + 1]) ? (p2(), 3 === r3 && (h2 = h2[0]), r3 = h2, (h2 = h2[0]).push(2, 0, r3), r3 = 0) : " " === t2 || " " === t2 || "\n" === t2 || "\r" === t2 ? (p2(), r3 = 2) : e2 += t2), 3 === r3 && "!--" === e2 && (r3 = 4, h2 = h2[0]);
1633
- }
1634
- return p2(), h2;
1635
- }(s2)), r2), arguments, [])).length > 1 ? r2 : r2[0];
1636
- }
1637
- e$1.bind(y);
1638
- var t, r, u, i, o = 0, f = [], c = [], e = l$1.__b, a = l$1.__r, v = l$1.diffed, l = l$1.__c, m = l$1.unmount;
1639
- function d(t2, u2) {
1640
- l$1.__h && l$1.__h(r, t2, o || u2), o = 0;
1641
- var i2 = r.__H || (r.__H = { __: [], __h: [] });
1642
- return t2 >= i2.__.length && i2.__.push({ __V: c }), i2.__[t2];
1643
- }
1644
- function h(n2) {
1645
- return o = 1, s(B, n2);
1646
- }
1647
- function s(n2, u2, i2) {
1648
- var o2 = d(t++, 2);
1649
- if (o2.t = n2, !o2.__c && (o2.__ = [i2 ? i2(u2) : B(void 0, u2), function(n3) {
1650
- var t2 = o2.__N ? o2.__N[0] : o2.__[0], r2 = o2.t(t2, n3);
1651
- t2 !== r2 && (o2.__N = [r2, o2.__[1]], o2.__c.setState({}));
1652
- }], o2.__c = r, !r.u)) {
1653
- var f2 = function(n3, t2, r2) {
1654
- if (!o2.__c.__H)
1655
- return true;
1656
- var u3 = o2.__c.__H.__.filter(function(n4) {
1657
- return n4.__c;
1658
- });
1659
- if (u3.every(function(n4) {
1660
- return !n4.__N;
1661
- }))
1662
- return !c2 || c2.call(this, n3, t2, r2);
1663
- var i3 = false;
1664
- return u3.forEach(function(n4) {
1665
- if (n4.__N) {
1666
- var t3 = n4.__[0];
1667
- n4.__ = n4.__N, n4.__N = void 0, t3 !== n4.__[0] && (i3 = true);
1668
- }
1669
- }), !(!i3 && o2.__c.props === n3) && (!c2 || c2.call(this, n3, t2, r2));
1670
- };
1671
- r.u = true;
1672
- var c2 = r.shouldComponentUpdate, e2 = r.componentWillUpdate;
1673
- r.componentWillUpdate = function(n3, t2, r2) {
1674
- if (this.__e) {
1675
- var u3 = c2;
1676
- c2 = void 0, f2(n3, t2, r2), c2 = u3;
1677
- }
1678
- e2 && e2.call(this, n3, t2, r2);
1679
- }, r.shouldComponentUpdate = f2;
1680
- }
1681
- return o2.__N || o2.__;
1682
- }
1683
- function p(u2, i2) {
1684
- var o2 = d(t++, 3);
1685
- !l$1.__s && z(o2.__H, i2) && (o2.__ = u2, o2.i = i2, r.__H.__h.push(o2));
1686
- }
1687
- function b() {
1688
- for (var t2; t2 = f.shift(); )
1689
- if (t2.__P && t2.__H)
1690
- try {
1691
- t2.__H.__h.forEach(k), t2.__H.__h.forEach(w), t2.__H.__h = [];
1692
- } catch (r2) {
1693
- t2.__H.__h = [], l$1.__e(r2, t2.__v);
1694
- }
1695
- }
1696
- l$1.__b = function(n2) {
1697
- r = null, e && e(n2);
1698
- }, l$1.__r = function(n2) {
1699
- a && a(n2), t = 0;
1700
- var i2 = (r = n2.__c).__H;
1701
- i2 && (u === r ? (i2.__h = [], r.__h = [], i2.__.forEach(function(n3) {
1702
- n3.__N && (n3.__ = n3.__N), n3.__V = c, n3.__N = n3.i = void 0;
1703
- })) : (i2.__h.forEach(k), i2.__h.forEach(w), i2.__h = [], t = 0)), u = r;
1704
- }, l$1.diffed = function(t2) {
1705
- v && v(t2);
1706
- var o2 = t2.__c;
1707
- o2 && o2.__H && (o2.__H.__h.length && (1 !== f.push(o2) && i === l$1.requestAnimationFrame || ((i = l$1.requestAnimationFrame) || j)(b)), o2.__H.__.forEach(function(n2) {
1708
- n2.i && (n2.__H = n2.i), n2.__V !== c && (n2.__ = n2.__V), n2.i = void 0, n2.__V = c;
1709
- })), u = r = null;
1710
- }, l$1.__c = function(t2, r2) {
1711
- r2.some(function(t3) {
1712
- try {
1713
- t3.__h.forEach(k), t3.__h = t3.__h.filter(function(n2) {
1714
- return !n2.__ || w(n2);
1715
- });
1716
- } catch (u2) {
1717
- r2.some(function(n2) {
1718
- n2.__h && (n2.__h = []);
1719
- }), r2 = [], l$1.__e(u2, t3.__v);
1720
- }
1721
- }), l && l(t2, r2);
1722
- }, l$1.unmount = function(t2) {
1723
- m && m(t2);
1724
- var r2, u2 = t2.__c;
1725
- u2 && u2.__H && (u2.__H.__.forEach(function(n2) {
1726
- try {
1727
- k(n2);
1728
- } catch (n3) {
1729
- r2 = n3;
1730
- }
1731
- }), u2.__H = void 0, r2 && l$1.__e(r2, u2.__v));
1732
- };
1733
- var g = "function" == typeof requestAnimationFrame;
1734
- function j(n2) {
1735
- var t2, r2 = function() {
1736
- clearTimeout(u2), g && cancelAnimationFrame(t2), setTimeout(n2);
1737
- }, u2 = setTimeout(r2, 100);
1738
- g && (t2 = requestAnimationFrame(r2));
1739
- }
1740
- function k(n2) {
1741
- var t2 = r, u2 = n2.__c;
1742
- "function" == typeof u2 && (n2.__c = void 0, u2()), r = t2;
1743
- }
1744
- function w(n2) {
1745
- var t2 = r;
1746
- n2.__c = n2.__(), r = t2;
1747
- }
1748
- function z(n2, t2) {
1749
- return !n2 || n2.length !== t2.length || t2.some(function(t3, r2) {
1750
- return t3 !== n2[r2];
1751
- });
1752
- }
1753
- function B(n2, t2) {
1754
- return "function" == typeof t2 ? t2(n2) : t2;
1755
- }
1756
- function Button({
1757
- children,
1758
- className = "",
1759
- hideCitiesTooltip = false,
1760
- id = "",
1761
- key = "",
1762
- timezone,
1763
- onClick,
1764
- is24H,
1765
- dataCy
1766
- }) {
1767
- const { label, keywords: value, isDst, cities } = timezone;
1768
- const getCurrentTimeInTimezone = (timeZone) => {
1769
- const currentTimeInUTC = /* @__PURE__ */ new Date();
1770
- const options = {
1771
- timeZone,
1772
- hour12: !is24H,
1773
- hour: "numeric",
1774
- minute: "numeric"
1775
- };
1776
- const currentTimeInTimezone = currentTimeInUTC.toLocaleString(
1777
- "en-US",
1778
- options
1779
- );
1780
- return currentTimeInTimezone;
1781
- };
1782
- return /* @__PURE__ */ y(
1783
- "button",
1784
- {
1785
- ...{ id, key, onClick, value },
1786
- className: `neeto-time-zones-button ${className}`,
1787
- "data-cy": dataCy,
1788
- type: "button"
1789
- },
1790
- /* @__PURE__ */ y("div", { className: "neeto-time-zones-button--label" }, hideCitiesTooltip ? label : /* @__PURE__ */ y("span", { ...{ value }, title: cities }, label), isDst && /* @__PURE__ */ y("span", { ...{ value }, title: "Daylight savings time applicable" }, "🌞")),
1791
- /* @__PURE__ */ y("span", { className: "neeto-time-zones-button--time" }, getCurrentTimeInTimezone(timezone.utc[0])),
1792
- children
1793
- );
1794
- }
1795
- function Dropdown({
1796
- selectedValue,
1797
- isOverlayVisible,
1798
- elementId,
1799
- is24H,
1800
- setIsOverlayVisible
1801
- }) {
1802
- const handleClick = () => {
1803
- setIsOverlayVisible(
1804
- (previousIsOverlayVisible) => !previousIsOverlayVisible
1805
- );
1806
- };
1807
- const searchBoxElementId = `${elementId}-search-box`;
1808
- p(() => {
1809
- if (!isOverlayVisible)
1810
- return;
1811
- const searchBox = document.getElementById(searchBoxElementId);
1812
- searchBox.focus();
1813
- }, [isOverlayVisible]);
1814
- return /* @__PURE__ */ y(
1815
- Button,
1816
- {
1817
- ...{ is24H },
1818
- onClick: handleClick,
1819
- className: "neeto-time-zones-dropdown",
1820
- timezone: selectedValue,
1821
- hideCitiesTooltip: true,
1822
- dataCy: `${elementId}-select-button`
1823
- },
1824
- /* @__PURE__ */ y("span", { className: "neeto-time-zones-button--icon" }, /* @__PURE__ */ y("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" }, /* @__PURE__ */ y(
1825
- "path",
1826
- {
1827
- d: "M6 9L12 15L18 9",
1828
- stroke: "currentColor",
1829
- strokeWidth: "1.5",
1830
- strokeLinecap: "round",
1831
- strokeLinejoin: "round"
1832
- }
1833
- )))
1834
- );
1835
- }
1836
- function Search({ searchInput, setSearchInput, elementId }) {
1837
- const searchBoxElementId = `${elementId}-search-box`;
1838
- return /* @__PURE__ */ y("div", { className: "neeto-time-zones-input__wrapper" }, /* @__PURE__ */ y("div", { className: "neeto-time-zones-input" }, /* @__PURE__ */ y(
1839
- "input",
1840
- {
1841
- id: searchBoxElementId,
1842
- type: "text",
1843
- placeholder: "Search time zone",
1844
- onInput: (event) => setSearchInput(event.target.value),
1845
- className: "",
1846
- value: searchInput,
1847
- "data-cy": `${elementId}-search-box`
1848
- }
1849
- )));
1850
- }
1851
- const getFromLocalStorage = (key) => {
1852
- let response = null;
1853
- try {
1854
- const value = localStorage.getItem(key);
1855
- response = value !== null ? JSON.parse(value) : null;
1856
- } catch (error) {
1857
- response = null;
1858
- }
1859
- return response;
1860
- };
1861
- const setToLocalStorage = (key, value) => {
1862
- if (value !== null) {
1863
- localStorage.setItem(key, JSON.stringify(value));
1864
- } else
1865
- localStorage.removeItem(key);
1866
- };
1867
- const hyphenize = (value, fallbackString = "") => {
1868
- if (typeof value === "number")
1869
- return String(value);
1870
- if (value && typeof value === "string" && value.replace) {
1871
- return value.replace(/[\s_]/g, "-").replace(/([a-z])([A-Z])/g, "$1-$2").replace(/-+/g, "-").toLowerCase();
1872
- }
1873
- return fallbackString;
1874
- };
1875
- const groupedOptions = [
1876
- { "US/Canada": UsCanada },
1877
- { America },
1878
- { Asia },
1879
- { Africa },
1880
- { Atlantic },
1881
- { Australia },
1882
- { Europe },
1883
- { Pacific }
1884
- ];
1885
- const allTimezones = groupedOptions.reduce(
1886
- (accumulator, currentValue) => {
1887
- const key = Object.keys(currentValue)[0];
1888
- return [...accumulator, ...currentValue[key]];
1889
- },
1890
- []
1891
- );
1892
- const getTimezoneObject = (ianaTimezone) => ianaTimezone && allTimezones.find((timezone) => timezone.utc.includes(ianaTimezone));
1893
- const findBrowserTimezone = () => {
1894
- const browserTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
1895
- return getTimezoneObject(browserTimezone);
1896
- };
1897
- const getDefaultValue = findBrowserTimezone() || allTimezones[0];
1898
- const valueToId = (value) => `option-${value.replaceAll(" ", "_").toLowerCase()}`;
1899
- const getDataCy = (timezone) => {
1900
- if (!timezone || !timezone.label) {
1901
- return "";
1902
- }
1903
- let { label } = timezone;
1904
- if (timezone.isDst) {
1905
- label += "-dst";
1906
- }
1907
- return `${hyphenize(label)}-select-option`;
1908
- };
1909
- const createGroupedOptionButton = (group, selectedValue, handleSelect, is24H) => /* @__PURE__ */ y("div", null, group.map((groupItem) => {
1910
- const key = Object.keys(groupItem)[0];
1911
- const element = groupItem[key];
1912
- return /* @__PURE__ */ y(
1913
- "div",
1914
- {
1915
- className: "neeto-time-zones-list__container",
1916
- key: key.toLowerCase()
1917
- },
1918
- /* @__PURE__ */ y("span", { className: "neeto-time-zones-list--title" }, key),
1919
- element.map((timezone) => /* @__PURE__ */ y(
1920
- Button,
1921
- {
1922
- ...{ is24H, timezone },
1923
- id: valueToId(timezone.keywords),
1924
- onClick: handleSelect,
1925
- className: `neeto-time-zones-list-item ${selectedValue.keywords === timezone.keywords && "neeto-time-zones-list-item--active"}`,
1926
- key: timezone.label,
1927
- dataCy: getDataCy(timezone)
1928
- }
1929
- ))
1930
- );
1931
- }));
1932
- function _isPlaceholder(a2) {
1933
- return a2 != null && typeof a2 === "object" && a2["@@functional/placeholder"] === true;
1934
- }
1935
- function _curry1(fn) {
1936
- return function f1(a2) {
1937
- if (arguments.length === 0 || _isPlaceholder(a2)) {
1938
- return f1;
1939
- } else {
1940
- return fn.apply(this, arguments);
1941
- }
1942
- };
1943
- }
1944
- function _curry2(fn) {
1945
- return function f2(a2, b2) {
1946
- switch (arguments.length) {
1947
- case 0:
1948
- return f2;
1949
- case 1:
1950
- return _isPlaceholder(a2) ? f2 : _curry1(function(_b) {
1951
- return fn(a2, _b);
1952
- });
1953
- default:
1954
- return _isPlaceholder(a2) && _isPlaceholder(b2) ? f2 : _isPlaceholder(a2) ? _curry1(function(_a) {
1955
- return fn(_a, b2);
1956
- }) : _isPlaceholder(b2) ? _curry1(function(_b) {
1957
- return fn(a2, _b);
1958
- }) : fn(a2, b2);
1959
- }
1960
- };
1961
- }
1962
- function _concat(set1, set2) {
1963
- set1 = set1 || [];
1964
- set2 = set2 || [];
1965
- var idx;
1966
- var len1 = set1.length;
1967
- var len2 = set2.length;
1968
- var result = [];
1969
- idx = 0;
1970
- while (idx < len1) {
1971
- result[result.length] = set1[idx];
1972
- idx += 1;
1973
- }
1974
- idx = 0;
1975
- while (idx < len2) {
1976
- result[result.length] = set2[idx];
1977
- idx += 1;
1978
- }
1979
- return result;
1980
- }
1981
- function _arity(n2, fn) {
1982
- switch (n2) {
1983
- case 0:
1984
- return function() {
1985
- return fn.apply(this, arguments);
1986
- };
1987
- case 1:
1988
- return function(a0) {
1989
- return fn.apply(this, arguments);
1990
- };
1991
- case 2:
1992
- return function(a0, a1) {
1993
- return fn.apply(this, arguments);
1994
- };
1995
- case 3:
1996
- return function(a0, a1, a2) {
1997
- return fn.apply(this, arguments);
1998
- };
1999
- case 4:
2000
- return function(a0, a1, a2, a3) {
2001
- return fn.apply(this, arguments);
2002
- };
2003
- case 5:
2004
- return function(a0, a1, a2, a3, a4) {
2005
- return fn.apply(this, arguments);
2006
- };
2007
- case 6:
2008
- return function(a0, a1, a2, a3, a4, a5) {
2009
- return fn.apply(this, arguments);
2010
- };
2011
- case 7:
2012
- return function(a0, a1, a2, a3, a4, a5, a6) {
2013
- return fn.apply(this, arguments);
2014
- };
2015
- case 8:
2016
- return function(a0, a1, a2, a3, a4, a5, a6, a7) {
2017
- return fn.apply(this, arguments);
2018
- };
2019
- case 9:
2020
- return function(a0, a1, a2, a3, a4, a5, a6, a7, a8) {
2021
- return fn.apply(this, arguments);
2022
- };
2023
- case 10:
2024
- return function(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) {
2025
- return fn.apply(this, arguments);
2026
- };
2027
- default:
2028
- throw new Error("First argument to _arity must be a non-negative integer no greater than ten");
2029
- }
2030
- }
2031
- function _curryN(length, received, fn) {
2032
- return function() {
2033
- var combined = [];
2034
- var argsIdx = 0;
2035
- var left = length;
2036
- var combinedIdx = 0;
2037
- var hasPlaceholder = false;
2038
- while (combinedIdx < received.length || argsIdx < arguments.length) {
2039
- var result;
2040
- if (combinedIdx < received.length && (!_isPlaceholder(received[combinedIdx]) || argsIdx >= arguments.length)) {
2041
- result = received[combinedIdx];
2042
- } else {
2043
- result = arguments[argsIdx];
2044
- argsIdx += 1;
2045
- }
2046
- combined[combinedIdx] = result;
2047
- if (!_isPlaceholder(result)) {
2048
- left -= 1;
2049
- } else {
2050
- hasPlaceholder = true;
2051
- }
2052
- combinedIdx += 1;
2053
- }
2054
- return !hasPlaceholder && left <= 0 ? fn.apply(this, combined) : _arity(Math.max(0, left), _curryN(length, combined, fn));
2055
- };
2056
- }
2057
- var curryN = /* @__PURE__ */ _curry2(function curryN2(length, fn) {
2058
- if (length === 1) {
2059
- return _curry1(fn);
2060
- }
2061
- return _arity(length, _curryN(length, [], fn));
2062
- });
2063
- const curryN$1 = curryN;
2064
- const _isArray = Array.isArray || function _isArray2(val) {
2065
- return val != null && val.length >= 0 && Object.prototype.toString.call(val) === "[object Array]";
2066
- };
2067
- function _isTransformer(obj) {
2068
- return obj != null && typeof obj["@@transducer/step"] === "function";
2069
- }
2070
- function _dispatchable(methodNames, transducerCreator, fn) {
2071
- return function() {
2072
- if (arguments.length === 0) {
2073
- return fn();
2074
- }
2075
- var obj = arguments[arguments.length - 1];
2076
- if (!_isArray(obj)) {
2077
- var idx = 0;
2078
- while (idx < methodNames.length) {
2079
- if (typeof obj[methodNames[idx]] === "function") {
2080
- return obj[methodNames[idx]].apply(obj, Array.prototype.slice.call(arguments, 0, -1));
2081
- }
2082
- idx += 1;
2083
- }
2084
- if (_isTransformer(obj)) {
2085
- var transducer = transducerCreator.apply(null, Array.prototype.slice.call(arguments, 0, -1));
2086
- return transducer(obj);
2087
- }
2088
- }
2089
- return fn.apply(this, arguments);
2090
- };
2091
- }
2092
- const _xfBase = {
2093
- init: function() {
2094
- return this.xf["@@transducer/init"]();
2095
- },
2096
- result: function(result) {
2097
- return this.xf["@@transducer/result"](result);
2098
- }
2099
- };
2100
- function _arrayFromIterator(iter) {
2101
- var list = [];
2102
- var next;
2103
- while (!(next = iter.next()).done) {
2104
- list.push(next.value);
2105
- }
2106
- return list;
2107
- }
2108
- function _includesWith(pred, x2, list) {
2109
- var idx = 0;
2110
- var len = list.length;
2111
- while (idx < len) {
2112
- if (pred(x2, list[idx])) {
2113
- return true;
2114
- }
2115
- idx += 1;
2116
- }
2117
- return false;
2118
- }
2119
- function _functionName(f2) {
2120
- var match = String(f2).match(/^function (\w*)/);
2121
- return match == null ? "" : match[1];
2122
- }
2123
- function _has(prop, obj) {
2124
- return Object.prototype.hasOwnProperty.call(obj, prop);
2125
- }
2126
- function _objectIs(a2, b2) {
2127
- if (a2 === b2) {
2128
- return a2 !== 0 || 1 / a2 === 1 / b2;
2129
- } else {
2130
- return a2 !== a2 && b2 !== b2;
2131
- }
2132
- }
2133
- const _objectIs$1 = typeof Object.is === "function" ? Object.is : _objectIs;
2134
- var toString = Object.prototype.toString;
2135
- var _isArguments = /* @__PURE__ */ function() {
2136
- return toString.call(arguments) === "[object Arguments]" ? function _isArguments2(x2) {
2137
- return toString.call(x2) === "[object Arguments]";
2138
- } : function _isArguments2(x2) {
2139
- return _has("callee", x2);
2140
- };
2141
- }();
2142
- const _isArguments$1 = _isArguments;
2143
- var hasEnumBug = !/* @__PURE__ */ {
2144
- toString: null
2145
- }.propertyIsEnumerable("toString");
2146
- var nonEnumerableProps = ["constructor", "valueOf", "isPrototypeOf", "toString", "propertyIsEnumerable", "hasOwnProperty", "toLocaleString"];
2147
- var hasArgsEnumBug = /* @__PURE__ */ function() {
2148
- return arguments.propertyIsEnumerable("length");
2149
- }();
2150
- var contains = function contains2(list, item) {
2151
- var idx = 0;
2152
- while (idx < list.length) {
2153
- if (list[idx] === item) {
2154
- return true;
2155
- }
2156
- idx += 1;
2157
- }
2158
- return false;
2159
- };
2160
- var keys = typeof Object.keys === "function" && !hasArgsEnumBug ? /* @__PURE__ */ _curry1(function keys2(obj) {
2161
- return Object(obj) !== obj ? [] : Object.keys(obj);
2162
- }) : /* @__PURE__ */ _curry1(function keys3(obj) {
2163
- if (Object(obj) !== obj) {
2164
- return [];
2165
- }
2166
- var prop, nIdx;
2167
- var ks = [];
2168
- var checkArgsLength = hasArgsEnumBug && _isArguments$1(obj);
2169
- for (prop in obj) {
2170
- if (_has(prop, obj) && (!checkArgsLength || prop !== "length")) {
2171
- ks[ks.length] = prop;
2172
- }
2173
- }
2174
- if (hasEnumBug) {
2175
- nIdx = nonEnumerableProps.length - 1;
2176
- while (nIdx >= 0) {
2177
- prop = nonEnumerableProps[nIdx];
2178
- if (_has(prop, obj) && !contains(ks, prop)) {
2179
- ks[ks.length] = prop;
2180
- }
2181
- nIdx -= 1;
2182
- }
2183
- }
2184
- return ks;
2185
- });
2186
- const keys$1 = keys;
2187
- var type = /* @__PURE__ */ _curry1(function type2(val) {
2188
- return val === null ? "Null" : val === void 0 ? "Undefined" : Object.prototype.toString.call(val).slice(8, -1);
2189
- });
2190
- const type$1 = type;
2191
- function _uniqContentEquals(aIterator, bIterator, stackA, stackB) {
2192
- var a2 = _arrayFromIterator(aIterator);
2193
- var b2 = _arrayFromIterator(bIterator);
2194
- function eq(_a, _b) {
2195
- return _equals(_a, _b, stackA.slice(), stackB.slice());
2196
- }
2197
- return !_includesWith(function(b3, aItem) {
2198
- return !_includesWith(eq, aItem, b3);
2199
- }, b2, a2);
2200
- }
2201
- function _equals(a2, b2, stackA, stackB) {
2202
- if (_objectIs$1(a2, b2)) {
2203
- return true;
2204
- }
2205
- var typeA = type$1(a2);
2206
- if (typeA !== type$1(b2)) {
2207
- return false;
2208
- }
2209
- if (typeof a2["fantasy-land/equals"] === "function" || typeof b2["fantasy-land/equals"] === "function") {
2210
- return typeof a2["fantasy-land/equals"] === "function" && a2["fantasy-land/equals"](b2) && typeof b2["fantasy-land/equals"] === "function" && b2["fantasy-land/equals"](a2);
2211
- }
2212
- if (typeof a2.equals === "function" || typeof b2.equals === "function") {
2213
- return typeof a2.equals === "function" && a2.equals(b2) && typeof b2.equals === "function" && b2.equals(a2);
2214
- }
2215
- switch (typeA) {
2216
- case "Arguments":
2217
- case "Array":
2218
- case "Object":
2219
- if (typeof a2.constructor === "function" && _functionName(a2.constructor) === "Promise") {
2220
- return a2 === b2;
2221
- }
2222
- break;
2223
- case "Boolean":
2224
- case "Number":
2225
- case "String":
2226
- if (!(typeof a2 === typeof b2 && _objectIs$1(a2.valueOf(), b2.valueOf()))) {
2227
- return false;
2228
- }
2229
- break;
2230
- case "Date":
2231
- if (!_objectIs$1(a2.valueOf(), b2.valueOf())) {
2232
- return false;
2233
- }
2234
- break;
2235
- case "Error":
2236
- return a2.name === b2.name && a2.message === b2.message;
2237
- case "RegExp":
2238
- if (!(a2.source === b2.source && a2.global === b2.global && a2.ignoreCase === b2.ignoreCase && a2.multiline === b2.multiline && a2.sticky === b2.sticky && a2.unicode === b2.unicode)) {
2239
- return false;
2240
- }
2241
- break;
2242
- }
2243
- var idx = stackA.length - 1;
2244
- while (idx >= 0) {
2245
- if (stackA[idx] === a2) {
2246
- return stackB[idx] === b2;
2247
- }
2248
- idx -= 1;
2249
- }
2250
- switch (typeA) {
2251
- case "Map":
2252
- if (a2.size !== b2.size) {
2253
- return false;
2254
- }
2255
- return _uniqContentEquals(a2.entries(), b2.entries(), stackA.concat([a2]), stackB.concat([b2]));
2256
- case "Set":
2257
- if (a2.size !== b2.size) {
2258
- return false;
2259
- }
2260
- return _uniqContentEquals(a2.values(), b2.values(), stackA.concat([a2]), stackB.concat([b2]));
2261
- case "Arguments":
2262
- case "Array":
2263
- case "Object":
2264
- case "Boolean":
2265
- case "Number":
2266
- case "String":
2267
- case "Date":
2268
- case "Error":
2269
- case "RegExp":
2270
- case "Int8Array":
2271
- case "Uint8Array":
2272
- case "Uint8ClampedArray":
2273
- case "Int16Array":
2274
- case "Uint16Array":
2275
- case "Int32Array":
2276
- case "Uint32Array":
2277
- case "Float32Array":
2278
- case "Float64Array":
2279
- case "ArrayBuffer":
2280
- break;
2281
- default:
2282
- return false;
2283
- }
2284
- var keysA = keys$1(a2);
2285
- if (keysA.length !== keys$1(b2).length) {
2286
- return false;
2287
- }
2288
- var extendedStackA = stackA.concat([a2]);
2289
- var extendedStackB = stackB.concat([b2]);
2290
- idx = keysA.length - 1;
2291
- while (idx >= 0) {
2292
- var key = keysA[idx];
2293
- if (!(_has(key, b2) && _equals(b2[key], a2[key], extendedStackA, extendedStackB))) {
2294
- return false;
2295
- }
2296
- idx -= 1;
2297
- }
2298
- return true;
2299
- }
2300
- var equals = /* @__PURE__ */ _curry2(function equals2(a2, b2) {
2301
- return _equals(a2, b2, [], []);
2302
- });
2303
- const equals$1 = equals;
2304
- function _map(fn, functor) {
2305
- var idx = 0;
2306
- var len = functor.length;
2307
- var result = Array(len);
2308
- while (idx < len) {
2309
- result[idx] = fn(functor[idx]);
2310
- idx += 1;
2311
- }
2312
- return result;
2313
- }
2314
- function _arrayReduce(reducer, acc, list) {
2315
- var index = 0;
2316
- var length = list.length;
2317
- while (index < length) {
2318
- acc = reducer(acc, list[index]);
2319
- index += 1;
2320
- }
2321
- return acc;
2322
- }
2323
- function _isObject(x2) {
2324
- return Object.prototype.toString.call(x2) === "[object Object]";
2325
- }
2326
- var XMap = /* @__PURE__ */ function() {
2327
- function XMap2(f2, xf) {
2328
- this.xf = xf;
2329
- this.f = f2;
2330
- }
2331
- XMap2.prototype["@@transducer/init"] = _xfBase.init;
2332
- XMap2.prototype["@@transducer/result"] = _xfBase.result;
2333
- XMap2.prototype["@@transducer/step"] = function(result, input) {
2334
- return this.xf["@@transducer/step"](result, this.f(input));
2335
- };
2336
- return XMap2;
2337
- }();
2338
- var _xmap = function _xmap2(f2) {
2339
- return function(xf) {
2340
- return new XMap(f2, xf);
2341
- };
2342
- };
2343
- const _xmap$1 = _xmap;
2344
- var map = /* @__PURE__ */ _curry2(
2345
- /* @__PURE__ */ _dispatchable(["fantasy-land/map", "map"], _xmap$1, function map2(fn, functor) {
2346
- switch (Object.prototype.toString.call(functor)) {
2347
- case "[object Function]":
2348
- return curryN$1(functor.length, function() {
2349
- return fn.call(this, functor.apply(this, arguments));
2350
- });
2351
- case "[object Object]":
2352
- return _arrayReduce(function(acc, key) {
2353
- acc[key] = fn(functor[key]);
2354
- return acc;
2355
- }, {}, keys$1(functor));
2356
- default:
2357
- return _map(fn, functor);
2358
- }
2359
- })
2360
- );
2361
- const map$1 = map;
2362
- function _isString(x2) {
2363
- return Object.prototype.toString.call(x2) === "[object String]";
2364
- }
2365
- var _isArrayLike = /* @__PURE__ */ _curry1(function isArrayLike(x2) {
2366
- if (_isArray(x2)) {
2367
- return true;
2368
- }
2369
- if (!x2) {
2370
- return false;
2371
- }
2372
- if (typeof x2 !== "object") {
2373
- return false;
2374
- }
2375
- if (_isString(x2)) {
2376
- return false;
2377
- }
2378
- if (x2.length === 0) {
2379
- return true;
2380
- }
2381
- if (x2.length > 0) {
2382
- return x2.hasOwnProperty(0) && x2.hasOwnProperty(x2.length - 1);
2383
- }
2384
- return false;
2385
- });
2386
- const _isArrayLike$1 = _isArrayLike;
2387
- var symIterator = typeof Symbol !== "undefined" ? Symbol.iterator : "@@iterator";
2388
- function _createReduce(arrayReduce, methodReduce, iterableReduce) {
2389
- return function _reduce2(xf, acc, list) {
2390
- if (_isArrayLike$1(list)) {
2391
- return arrayReduce(xf, acc, list);
2392
- }
2393
- if (list == null) {
2394
- return acc;
2395
- }
2396
- if (typeof list["fantasy-land/reduce"] === "function") {
2397
- return methodReduce(xf, acc, list, "fantasy-land/reduce");
2398
- }
2399
- if (list[symIterator] != null) {
2400
- return iterableReduce(xf, acc, list[symIterator]());
2401
- }
2402
- if (typeof list.next === "function") {
2403
- return iterableReduce(xf, acc, list);
2404
- }
2405
- if (typeof list.reduce === "function") {
2406
- return methodReduce(xf, acc, list, "reduce");
2407
- }
2408
- throw new TypeError("reduce: list must be array or iterable");
2409
- };
2410
- }
2411
- function _iterableReduce(reducer, acc, iter) {
2412
- var step = iter.next();
2413
- while (!step.done) {
2414
- acc = reducer(acc, step.value);
2415
- step = iter.next();
2416
- }
2417
- return acc;
2418
- }
2419
- function _methodReduce(reducer, acc, obj, methodName) {
2420
- return obj[methodName](reducer, acc);
2421
- }
2422
- var _reduce = /* @__PURE__ */ _createReduce(_arrayReduce, _methodReduce, _iterableReduce);
2423
- const _reduce$1 = _reduce;
2424
- var ap = /* @__PURE__ */ _curry2(function ap2(applyF, applyX) {
2425
- return typeof applyX["fantasy-land/ap"] === "function" ? applyX["fantasy-land/ap"](applyF) : typeof applyF.ap === "function" ? applyF.ap(applyX) : typeof applyF === "function" ? function(x2) {
2426
- return applyF(x2)(applyX(x2));
2427
- } : _reduce$1(function(acc, f2) {
2428
- return _concat(acc, map$1(f2, applyX));
2429
- }, [], applyF);
2430
- });
2431
- const ap$1 = ap;
2432
- var isNil = /* @__PURE__ */ _curry1(function isNil2(x2) {
2433
- return x2 == null;
2434
- });
2435
- const isNil$1 = isNil;
2436
- var liftN = /* @__PURE__ */ _curry2(function liftN2(arity, fn) {
2437
- var lifted = curryN$1(arity, fn);
2438
- return curryN$1(arity, function() {
2439
- return _arrayReduce(ap$1, map$1(lifted, arguments[0]), Array.prototype.slice.call(arguments, 1));
2440
- });
2441
- });
2442
- const liftN$1 = liftN;
2443
- var lift = /* @__PURE__ */ _curry1(function lift2(fn) {
2444
- return liftN$1(fn.length, fn);
2445
- });
2446
- const lift$1 = lift;
2447
- var not = /* @__PURE__ */ _curry1(function not2(a2) {
2448
- return !a2;
2449
- });
2450
- const not$1 = not;
2451
- var complement = /* @__PURE__ */ lift$1(not$1);
2452
- const complement$1 = complement;
2453
- var curry = /* @__PURE__ */ _curry1(function curry2(fn) {
2454
- return curryN$1(fn.length, fn);
2455
- });
2456
- const curry$1 = curry;
2457
- function _isTypedArray(val) {
2458
- var type3 = Object.prototype.toString.call(val);
2459
- return type3 === "[object Uint8ClampedArray]" || type3 === "[object Int8Array]" || type3 === "[object Uint8Array]" || type3 === "[object Int16Array]" || type3 === "[object Uint16Array]" || type3 === "[object Int32Array]" || type3 === "[object Uint32Array]" || type3 === "[object Float32Array]" || type3 === "[object Float64Array]" || type3 === "[object BigInt64Array]" || type3 === "[object BigUint64Array]";
2460
- }
2461
- var empty = /* @__PURE__ */ _curry1(function empty2(x2) {
2462
- return x2 != null && typeof x2["fantasy-land/empty"] === "function" ? x2["fantasy-land/empty"]() : x2 != null && x2.constructor != null && typeof x2.constructor["fantasy-land/empty"] === "function" ? x2.constructor["fantasy-land/empty"]() : x2 != null && typeof x2.empty === "function" ? x2.empty() : x2 != null && x2.constructor != null && typeof x2.constructor.empty === "function" ? x2.constructor.empty() : _isArray(x2) ? [] : _isString(x2) ? "" : _isObject(x2) ? {} : _isArguments$1(x2) ? function() {
2463
- return arguments;
2464
- }() : _isTypedArray(x2) ? x2.constructor.from("") : void 0;
2465
- });
2466
- const empty$1 = empty;
2467
- var isEmpty = /* @__PURE__ */ _curry1(function isEmpty2(x2) {
2468
- return x2 != null && equals$1(x2, empty$1(x2));
2469
- });
2470
- const isEmpty$1 = isEmpty;
2471
- function _arrayWithHoles(arr) {
2472
- if (Array.isArray(arr))
2473
- return arr;
2474
- }
2475
- function _iterableToArrayLimit(arr, i2) {
2476
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
2477
- if (null != _i) {
2478
- var _s, _e, _x, _r, _arr = [], _n = true, _d = false;
2479
- try {
2480
- if (_x = (_i = _i.call(arr)).next, 0 === i2) {
2481
- if (Object(_i) !== _i)
2482
- return;
2483
- _n = false;
2484
- } else
2485
- for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i2); _n = true)
2486
- ;
2487
- } catch (err) {
2488
- _d = true, _e = err;
2489
- } finally {
2490
- try {
2491
- if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r))
2492
- return;
2493
- } finally {
2494
- if (_d)
2495
- throw _e;
2496
- }
2497
- }
2498
- return _arr;
2499
- }
2500
- }
2501
- function _arrayLikeToArray(arr, len) {
2502
- if (len == null || len > arr.length)
2503
- len = arr.length;
2504
- for (var i2 = 0, arr2 = new Array(len); i2 < len; i2++)
2505
- arr2[i2] = arr[i2];
2506
- return arr2;
2507
- }
2508
- function _unsupportedIterableToArray(o2, minLen) {
2509
- if (!o2)
2510
- return;
2511
- if (typeof o2 === "string")
2512
- return _arrayLikeToArray(o2, minLen);
2513
- var n2 = Object.prototype.toString.call(o2).slice(8, -1);
2514
- if (n2 === "Object" && o2.constructor)
2515
- n2 = o2.constructor.name;
2516
- if (n2 === "Map" || n2 === "Set")
2517
- return Array.from(o2);
2518
- if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))
2519
- return _arrayLikeToArray(o2, minLen);
2520
- }
2521
- function _nonIterableRest() {
2522
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2523
- }
2524
- function _slicedToArray(arr, i2) {
2525
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i2) || _unsupportedIterableToArray(arr, i2) || _nonIterableRest();
2526
- }
2527
- function _typeof(obj) {
2528
- "@babel/helpers - typeof";
2529
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
2530
- return typeof obj2;
2531
- } : function(obj2) {
2532
- return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
2533
- }, _typeof(obj);
2534
- }
2535
- var NOTHING = Symbol.for("immer-nothing");
2536
- var DRAFTABLE = Symbol.for("immer-draftable");
2537
- var DRAFT_STATE = Symbol.for("immer-state");
2538
- var errors = process.env.NODE_ENV !== "production" ? [
2539
- // All error codes, starting by 0:
2540
- function(plugin) {
2541
- return `The plugin for '${plugin}' has not been loaded into Immer. To enable the plugin, import and call \`enable${plugin}()\` when initializing your application.`;
2542
- },
2543
- function(thing) {
2544
- return `produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${thing}'`;
2545
- },
2546
- "This object has been frozen and should not be mutated",
2547
- function(data) {
2548
- return "Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? " + data;
2549
- },
2550
- "An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",
2551
- "Immer forbids circular references",
2552
- "The first or second argument to `produce` must be a function",
2553
- "The third argument to `produce` must be a function or undefined",
2554
- "First argument to `createDraft` must be a plain object, an array, or an immerable object",
2555
- "First argument to `finishDraft` must be a draft returned by `createDraft`",
2556
- function(thing) {
2557
- return `'current' expects a draft, got: ${thing}`;
2558
- },
2559
- "Object.defineProperty() cannot be used on an Immer draft",
2560
- "Object.setPrototypeOf() cannot be used on an Immer draft",
2561
- "Immer only supports deleting array indices",
2562
- "Immer only supports setting array indices and the 'length' property",
2563
- function(thing) {
2564
- return `'original' expects a draft, got: ${thing}`;
2565
- }
2566
- // Note: if more errors are added, the errorOffset in Patches.ts should be increased
2567
- // See Patches.ts for additional errors
2568
- ] : [];
2569
- function die(error, ...args) {
2570
- if (process.env.NODE_ENV !== "production") {
2571
- const e2 = errors[error];
2572
- const msg = typeof e2 === "function" ? e2.apply(null, args) : e2;
2573
- throw new Error(`[Immer] ${msg}`);
2574
- }
2575
- throw new Error(
2576
- `[Immer] minified error nr: ${error}. Full error at: https://bit.ly/3cXEKWf`
2577
- );
2578
- }
2579
- var getPrototypeOf = Object.getPrototypeOf;
2580
- function isDraft(value) {
2581
- return !!value && !!value[DRAFT_STATE];
2582
- }
2583
- function isDraftable(value) {
2584
- var _a;
2585
- if (!value)
2586
- return false;
2587
- return isPlainObject(value) || Array.isArray(value) || !!value[DRAFTABLE] || !!((_a = value.constructor) == null ? void 0 : _a[DRAFTABLE]) || isMap(value) || isSet(value);
2588
- }
2589
- var objectCtorString = Object.prototype.constructor.toString();
2590
- function isPlainObject(value) {
2591
- if (!value || typeof value !== "object")
2592
- return false;
2593
- const proto = getPrototypeOf(value);
2594
- if (proto === null) {
2595
- return true;
2596
- }
2597
- const Ctor = Object.hasOwnProperty.call(proto, "constructor") && proto.constructor;
2598
- if (Ctor === Object)
2599
- return true;
2600
- return typeof Ctor == "function" && Function.toString.call(Ctor) === objectCtorString;
2601
- }
2602
- function each(obj, iter) {
2603
- if (getArchtype(obj) === 0) {
2604
- Object.entries(obj).forEach(([key, value]) => {
2605
- iter(key, value, obj);
2606
- });
2607
- } else {
2608
- obj.forEach((entry, index) => iter(index, entry, obj));
2609
- }
2610
- }
2611
- function getArchtype(thing) {
2612
- const state = thing[DRAFT_STATE];
2613
- return state ? state.type_ : Array.isArray(thing) ? 1 : isMap(thing) ? 2 : isSet(thing) ? 3 : 0;
2614
- }
2615
- function has(thing, prop) {
2616
- return getArchtype(thing) === 2 ? thing.has(prop) : Object.prototype.hasOwnProperty.call(thing, prop);
2617
- }
2618
- function set(thing, propOrOldValue, value) {
2619
- const t2 = getArchtype(thing);
2620
- if (t2 === 2)
2621
- thing.set(propOrOldValue, value);
2622
- else if (t2 === 3) {
2623
- thing.add(value);
2624
- } else
2625
- thing[propOrOldValue] = value;
2626
- }
2627
- function is(x2, y2) {
2628
- if (x2 === y2) {
2629
- return x2 !== 0 || 1 / x2 === 1 / y2;
2630
- } else {
2631
- return x2 !== x2 && y2 !== y2;
2632
- }
2633
- }
2634
- function isMap(target) {
2635
- return target instanceof Map;
2636
- }
2637
- function isSet(target) {
2638
- return target instanceof Set;
2639
- }
2640
- function latest(state) {
2641
- return state.copy_ || state.base_;
2642
- }
2643
- function shallowCopy(base, strict) {
2644
- if (isMap(base)) {
2645
- return new Map(base);
2646
- }
2647
- if (isSet(base)) {
2648
- return new Set(base);
2649
- }
2650
- if (Array.isArray(base))
2651
- return Array.prototype.slice.call(base);
2652
- if (!strict && isPlainObject(base)) {
2653
- if (!getPrototypeOf(base)) {
2654
- const obj = /* @__PURE__ */ Object.create(null);
2655
- return Object.assign(obj, base);
2656
- }
2657
- return { ...base };
2658
- }
2659
- const descriptors = Object.getOwnPropertyDescriptors(base);
2660
- delete descriptors[DRAFT_STATE];
2661
- let keys4 = Reflect.ownKeys(descriptors);
2662
- for (let i2 = 0; i2 < keys4.length; i2++) {
2663
- const key = keys4[i2];
2664
- const desc = descriptors[key];
2665
- if (desc.writable === false) {
2666
- desc.writable = true;
2667
- desc.configurable = true;
2668
- }
2669
- if (desc.get || desc.set)
2670
- descriptors[key] = {
2671
- configurable: true,
2672
- writable: true,
2673
- // could live with !!desc.set as well here...
2674
- enumerable: desc.enumerable,
2675
- value: base[key]
2676
- };
2677
- }
2678
- return Object.create(getPrototypeOf(base), descriptors);
2679
- }
2680
- function freeze(obj, deep = false) {
2681
- if (isFrozen(obj) || isDraft(obj) || !isDraftable(obj))
2682
- return obj;
2683
- if (getArchtype(obj) > 1) {
2684
- obj.set = obj.add = obj.clear = obj.delete = dontMutateFrozenCollections;
2685
- }
2686
- Object.freeze(obj);
2687
- if (deep)
2688
- each(obj, (_key, value) => freeze(value, true));
2689
- return obj;
2690
- }
2691
- function dontMutateFrozenCollections() {
2692
- die(2);
2693
- }
2694
- function isFrozen(obj) {
2695
- return Object.isFrozen(obj);
2696
- }
2697
- var plugins = {};
2698
- function getPlugin(pluginKey) {
2699
- const plugin = plugins[pluginKey];
2700
- if (!plugin) {
2701
- die(0, pluginKey);
2702
- }
2703
- return plugin;
2704
- }
2705
- var currentScope;
2706
- function getCurrentScope() {
2707
- return currentScope;
2708
- }
2709
- function createScope(parent_, immer_) {
2710
- return {
2711
- drafts_: [],
2712
- parent_,
2713
- immer_,
2714
- // Whenever the modified draft contains a draft from another scope, we
2715
- // need to prevent auto-freezing so the unowned draft can be finalized.
2716
- canAutoFreeze_: true,
2717
- unfinalizedDrafts_: 0
2718
- };
2719
- }
2720
- function usePatchesInScope(scope, patchListener) {
2721
- if (patchListener) {
2722
- getPlugin("Patches");
2723
- scope.patches_ = [];
2724
- scope.inversePatches_ = [];
2725
- scope.patchListener_ = patchListener;
2726
- }
2727
- }
2728
- function revokeScope(scope) {
2729
- leaveScope(scope);
2730
- scope.drafts_.forEach(revokeDraft);
2731
- scope.drafts_ = null;
2732
- }
2733
- function leaveScope(scope) {
2734
- if (scope === currentScope) {
2735
- currentScope = scope.parent_;
2736
- }
2737
- }
2738
- function enterScope(immer2) {
2739
- return currentScope = createScope(currentScope, immer2);
2740
- }
2741
- function revokeDraft(draft) {
2742
- const state = draft[DRAFT_STATE];
2743
- if (state.type_ === 0 || state.type_ === 1)
2744
- state.revoke_();
2745
- else
2746
- state.revoked_ = true;
2747
- }
2748
- function processResult(result, scope) {
2749
- scope.unfinalizedDrafts_ = scope.drafts_.length;
2750
- const baseDraft = scope.drafts_[0];
2751
- const isReplaced = result !== void 0 && result !== baseDraft;
2752
- if (isReplaced) {
2753
- if (baseDraft[DRAFT_STATE].modified_) {
2754
- revokeScope(scope);
2755
- die(4);
2756
- }
2757
- if (isDraftable(result)) {
2758
- result = finalize(scope, result);
2759
- if (!scope.parent_)
2760
- maybeFreeze(scope, result);
2761
- }
2762
- if (scope.patches_) {
2763
- getPlugin("Patches").generateReplacementPatches_(
2764
- baseDraft[DRAFT_STATE].base_,
2765
- result,
2766
- scope.patches_,
2767
- scope.inversePatches_
2768
- );
2769
- }
2770
- } else {
2771
- result = finalize(scope, baseDraft, []);
2772
- }
2773
- revokeScope(scope);
2774
- if (scope.patches_) {
2775
- scope.patchListener_(scope.patches_, scope.inversePatches_);
2776
- }
2777
- return result !== NOTHING ? result : void 0;
2778
- }
2779
- function finalize(rootScope, value, path) {
2780
- if (isFrozen(value))
2781
- return value;
2782
- const state = value[DRAFT_STATE];
2783
- if (!state) {
2784
- each(
2785
- value,
2786
- (key, childValue) => finalizeProperty(rootScope, state, value, key, childValue, path)
2787
- );
2788
- return value;
2789
- }
2790
- if (state.scope_ !== rootScope)
2791
- return value;
2792
- if (!state.modified_) {
2793
- maybeFreeze(rootScope, state.base_, true);
2794
- return state.base_;
2795
- }
2796
- if (!state.finalized_) {
2797
- state.finalized_ = true;
2798
- state.scope_.unfinalizedDrafts_--;
2799
- const result = state.copy_;
2800
- let resultEach = result;
2801
- let isSet2 = false;
2802
- if (state.type_ === 3) {
2803
- resultEach = new Set(result);
2804
- result.clear();
2805
- isSet2 = true;
2806
- }
2807
- each(
2808
- resultEach,
2809
- (key, childValue) => finalizeProperty(rootScope, state, result, key, childValue, path, isSet2)
2810
- );
2811
- maybeFreeze(rootScope, result, false);
2812
- if (path && rootScope.patches_) {
2813
- getPlugin("Patches").generatePatches_(
2814
- state,
2815
- path,
2816
- rootScope.patches_,
2817
- rootScope.inversePatches_
2818
- );
2819
- }
2820
- }
2821
- return state.copy_;
2822
- }
2823
- function finalizeProperty(rootScope, parentState, targetObject, prop, childValue, rootPath, targetIsSet) {
2824
- if (process.env.NODE_ENV !== "production" && childValue === targetObject)
2825
- die(5);
2826
- if (isDraft(childValue)) {
2827
- const path = rootPath && parentState && parentState.type_ !== 3 && // Set objects are atomic since they have no keys.
2828
- !has(parentState.assigned_, prop) ? rootPath.concat(prop) : void 0;
2829
- const res = finalize(rootScope, childValue, path);
2830
- set(targetObject, prop, res);
2831
- if (isDraft(res)) {
2832
- rootScope.canAutoFreeze_ = false;
2833
- } else
2834
- return;
2835
- } else if (targetIsSet) {
2836
- targetObject.add(childValue);
2837
- }
2838
- if (isDraftable(childValue) && !isFrozen(childValue)) {
2839
- if (!rootScope.immer_.autoFreeze_ && rootScope.unfinalizedDrafts_ < 1) {
2840
- return;
2841
- }
2842
- finalize(rootScope, childValue);
2843
- if (!parentState || !parentState.scope_.parent_)
2844
- maybeFreeze(rootScope, childValue);
2845
- }
2846
- }
2847
- function maybeFreeze(scope, value, deep = false) {
2848
- if (!scope.parent_ && scope.immer_.autoFreeze_ && scope.canAutoFreeze_) {
2849
- freeze(value, deep);
2850
- }
2851
- }
2852
- function createProxyProxy(base, parent) {
2853
- const isArray = Array.isArray(base);
2854
- const state = {
2855
- type_: isArray ? 1 : 0,
2856
- // Track which produce call this is associated with.
2857
- scope_: parent ? parent.scope_ : getCurrentScope(),
2858
- // True for both shallow and deep changes.
2859
- modified_: false,
2860
- // Used during finalization.
2861
- finalized_: false,
2862
- // Track which properties have been assigned (true) or deleted (false).
2863
- assigned_: {},
2864
- // The parent draft state.
2865
- parent_: parent,
2866
- // The base state.
2867
- base_: base,
2868
- // The base proxy.
2869
- draft_: null,
2870
- // set below
2871
- // The base copy with any updated values.
2872
- copy_: null,
2873
- // Called by the `produce` function.
2874
- revoke_: null,
2875
- isManual_: false
2876
- };
2877
- let target = state;
2878
- let traps = objectTraps;
2879
- if (isArray) {
2880
- target = [state];
2881
- traps = arrayTraps;
2882
- }
2883
- const { revoke, proxy } = Proxy.revocable(target, traps);
2884
- state.draft_ = proxy;
2885
- state.revoke_ = revoke;
2886
- return proxy;
2887
- }
2888
- var objectTraps = {
2889
- get(state, prop) {
2890
- if (prop === DRAFT_STATE)
2891
- return state;
2892
- const source = latest(state);
2893
- if (!has(source, prop)) {
2894
- return readPropFromProto(state, source, prop);
2895
- }
2896
- const value = source[prop];
2897
- if (state.finalized_ || !isDraftable(value)) {
2898
- return value;
2899
- }
2900
- if (value === peek(state.base_, prop)) {
2901
- prepareCopy(state);
2902
- return state.copy_[prop] = createProxy(value, state);
2903
- }
2904
- return value;
2905
- },
2906
- has(state, prop) {
2907
- return prop in latest(state);
2908
- },
2909
- ownKeys(state) {
2910
- return Reflect.ownKeys(latest(state));
2911
- },
2912
- set(state, prop, value) {
2913
- const desc = getDescriptorFromProto(latest(state), prop);
2914
- if (desc == null ? void 0 : desc.set) {
2915
- desc.set.call(state.draft_, value);
2916
- return true;
2917
- }
2918
- if (!state.modified_) {
2919
- const current2 = peek(latest(state), prop);
2920
- const currentState = current2 == null ? void 0 : current2[DRAFT_STATE];
2921
- if (currentState && currentState.base_ === value) {
2922
- state.copy_[prop] = value;
2923
- state.assigned_[prop] = false;
2924
- return true;
2925
- }
2926
- if (is(value, current2) && (value !== void 0 || has(state.base_, prop)))
2927
- return true;
2928
- prepareCopy(state);
2929
- markChanged(state);
2930
- }
2931
- if (state.copy_[prop] === value && // special case: handle new props with value 'undefined'
2932
- (value !== void 0 || prop in state.copy_) || // special case: NaN
2933
- Number.isNaN(value) && Number.isNaN(state.copy_[prop]))
2934
- return true;
2935
- state.copy_[prop] = value;
2936
- state.assigned_[prop] = true;
2937
- return true;
2938
- },
2939
- deleteProperty(state, prop) {
2940
- if (peek(state.base_, prop) !== void 0 || prop in state.base_) {
2941
- state.assigned_[prop] = false;
2942
- prepareCopy(state);
2943
- markChanged(state);
2944
- } else {
2945
- delete state.assigned_[prop];
2946
- }
2947
- if (state.copy_) {
2948
- delete state.copy_[prop];
2949
- }
2950
- return true;
2951
- },
2952
- // Note: We never coerce `desc.value` into an Immer draft, because we can't make
2953
- // the same guarantee in ES5 mode.
2954
- getOwnPropertyDescriptor(state, prop) {
2955
- const owner = latest(state);
2956
- const desc = Reflect.getOwnPropertyDescriptor(owner, prop);
2957
- if (!desc)
2958
- return desc;
2959
- return {
2960
- writable: true,
2961
- configurable: state.type_ !== 1 || prop !== "length",
2962
- enumerable: desc.enumerable,
2963
- value: owner[prop]
2964
- };
2965
- },
2966
- defineProperty() {
2967
- die(11);
2968
- },
2969
- getPrototypeOf(state) {
2970
- return getPrototypeOf(state.base_);
2971
- },
2972
- setPrototypeOf() {
2973
- die(12);
2974
- }
2975
- };
2976
- var arrayTraps = {};
2977
- each(objectTraps, (key, fn) => {
2978
- arrayTraps[key] = function() {
2979
- arguments[0] = arguments[0][0];
2980
- return fn.apply(this, arguments);
2981
- };
2982
- });
2983
- arrayTraps.deleteProperty = function(state, prop) {
2984
- if (process.env.NODE_ENV !== "production" && isNaN(parseInt(prop)))
2985
- die(13);
2986
- return arrayTraps.set.call(this, state, prop, void 0);
2987
- };
2988
- arrayTraps.set = function(state, prop, value) {
2989
- if (process.env.NODE_ENV !== "production" && prop !== "length" && isNaN(parseInt(prop)))
2990
- die(14);
2991
- return objectTraps.set.call(this, state[0], prop, value, state[0]);
2992
- };
2993
- function peek(draft, prop) {
2994
- const state = draft[DRAFT_STATE];
2995
- const source = state ? latest(state) : draft;
2996
- return source[prop];
2997
- }
2998
- function readPropFromProto(state, source, prop) {
2999
- var _a;
3000
- const desc = getDescriptorFromProto(source, prop);
3001
- return desc ? `value` in desc ? desc.value : (
3002
- // This is a very special case, if the prop is a getter defined by the
3003
- // prototype, we should invoke it with the draft as context!
3004
- (_a = desc.get) == null ? void 0 : _a.call(state.draft_)
3005
- ) : void 0;
3006
- }
3007
- function getDescriptorFromProto(source, prop) {
3008
- if (!(prop in source))
3009
- return void 0;
3010
- let proto = getPrototypeOf(source);
3011
- while (proto) {
3012
- const desc = Object.getOwnPropertyDescriptor(proto, prop);
3013
- if (desc)
3014
- return desc;
3015
- proto = getPrototypeOf(proto);
3016
- }
3017
- return void 0;
3018
- }
3019
- function markChanged(state) {
3020
- if (!state.modified_) {
3021
- state.modified_ = true;
3022
- if (state.parent_) {
3023
- markChanged(state.parent_);
3024
- }
3025
- }
3026
- }
3027
- function prepareCopy(state) {
3028
- if (!state.copy_) {
3029
- state.copy_ = shallowCopy(
3030
- state.base_,
3031
- state.scope_.immer_.useStrictShallowCopy_
3032
- );
3033
- }
3034
- }
3035
- var Immer2 = class {
3036
- constructor(config) {
3037
- this.autoFreeze_ = true;
3038
- this.useStrictShallowCopy_ = false;
3039
- this.produce = (base, recipe, patchListener) => {
3040
- if (typeof base === "function" && typeof recipe !== "function") {
3041
- const defaultBase = recipe;
3042
- recipe = base;
3043
- const self = this;
3044
- return function curriedProduce(base2 = defaultBase, ...args) {
3045
- return self.produce(base2, (draft) => recipe.call(this, draft, ...args));
3046
- };
3047
- }
3048
- if (typeof recipe !== "function")
3049
- die(6);
3050
- if (patchListener !== void 0 && typeof patchListener !== "function")
3051
- die(7);
3052
- let result;
3053
- if (isDraftable(base)) {
3054
- const scope = enterScope(this);
3055
- const proxy = createProxy(base, void 0);
3056
- let hasError = true;
3057
- try {
3058
- result = recipe(proxy);
3059
- hasError = false;
3060
- } finally {
3061
- if (hasError)
3062
- revokeScope(scope);
3063
- else
3064
- leaveScope(scope);
3065
- }
3066
- usePatchesInScope(scope, patchListener);
3067
- return processResult(result, scope);
3068
- } else if (!base || typeof base !== "object") {
3069
- result = recipe(base);
3070
- if (result === void 0)
3071
- result = base;
3072
- if (result === NOTHING)
3073
- result = void 0;
3074
- if (this.autoFreeze_)
3075
- freeze(result, true);
3076
- if (patchListener) {
3077
- const p2 = [];
3078
- const ip = [];
3079
- getPlugin("Patches").generateReplacementPatches_(base, result, p2, ip);
3080
- patchListener(p2, ip);
3081
- }
3082
- return result;
3083
- } else
3084
- die(1, base);
3085
- };
3086
- this.produceWithPatches = (base, recipe) => {
3087
- if (typeof base === "function") {
3088
- return (state, ...args) => this.produceWithPatches(state, (draft) => base(draft, ...args));
3089
- }
3090
- let patches, inversePatches;
3091
- const result = this.produce(base, recipe, (p2, ip) => {
3092
- patches = p2;
3093
- inversePatches = ip;
3094
- });
3095
- return [result, patches, inversePatches];
3096
- };
3097
- if (typeof (config == null ? void 0 : config.autoFreeze) === "boolean")
3098
- this.setAutoFreeze(config.autoFreeze);
3099
- if (typeof (config == null ? void 0 : config.useStrictShallowCopy) === "boolean")
3100
- this.setUseStrictShallowCopy(config.useStrictShallowCopy);
3101
- }
3102
- createDraft(base) {
3103
- if (!isDraftable(base))
3104
- die(8);
3105
- if (isDraft(base))
3106
- base = current(base);
3107
- const scope = enterScope(this);
3108
- const proxy = createProxy(base, void 0);
3109
- proxy[DRAFT_STATE].isManual_ = true;
3110
- leaveScope(scope);
3111
- return proxy;
3112
- }
3113
- finishDraft(draft, patchListener) {
3114
- const state = draft && draft[DRAFT_STATE];
3115
- if (!state || !state.isManual_)
3116
- die(9);
3117
- const { scope_: scope } = state;
3118
- usePatchesInScope(scope, patchListener);
3119
- return processResult(void 0, scope);
3120
- }
3121
- /**
3122
- * Pass true to automatically freeze all copies created by Immer.
3123
- *
3124
- * By default, auto-freezing is enabled.
3125
- */
3126
- setAutoFreeze(value) {
3127
- this.autoFreeze_ = value;
3128
- }
3129
- /**
3130
- * Pass true to enable strict shallow copy.
3131
- *
3132
- * By default, immer does not copy the object descriptors such as getter, setter and non-enumrable properties.
3133
- */
3134
- setUseStrictShallowCopy(value) {
3135
- this.useStrictShallowCopy_ = value;
3136
- }
3137
- applyPatches(base, patches) {
3138
- let i2;
3139
- for (i2 = patches.length - 1; i2 >= 0; i2--) {
3140
- const patch = patches[i2];
3141
- if (patch.path.length === 0 && patch.op === "replace") {
3142
- base = patch.value;
3143
- break;
3144
- }
3145
- }
3146
- if (i2 > -1) {
3147
- patches = patches.slice(i2 + 1);
3148
- }
3149
- const applyPatchesImpl = getPlugin("Patches").applyPatches_;
3150
- if (isDraft(base)) {
3151
- return applyPatchesImpl(base, patches);
3152
- }
3153
- return this.produce(
3154
- base,
3155
- (draft) => applyPatchesImpl(draft, patches)
3156
- );
3157
- }
3158
- };
3159
- function createProxy(value, parent) {
3160
- const draft = isMap(value) ? getPlugin("MapSet").proxyMap_(value, parent) : isSet(value) ? getPlugin("MapSet").proxySet_(value, parent) : createProxyProxy(value, parent);
3161
- const scope = parent ? parent.scope_ : getCurrentScope();
3162
- scope.drafts_.push(draft);
3163
- return draft;
3164
- }
3165
- function current(value) {
3166
- if (!isDraft(value))
3167
- die(10, value);
3168
- return currentImpl(value);
3169
- }
3170
- function currentImpl(value) {
3171
- if (!isDraftable(value) || isFrozen(value))
3172
- return value;
3173
- const state = value[DRAFT_STATE];
3174
- let copy;
3175
- if (state) {
3176
- if (!state.modified_)
3177
- return state.base_;
3178
- state.finalized_ = true;
3179
- copy = shallowCopy(value, state.scope_.immer_.useStrictShallowCopy_);
3180
- } else {
3181
- copy = shallowCopy(value, true);
3182
- }
3183
- each(copy, (key, childValue) => {
3184
- set(copy, key, currentImpl(childValue));
3185
- });
3186
- if (state) {
3187
- state.finalized_ = false;
3188
- }
3189
- return copy;
3190
- }
3191
- var immer = new Immer2();
3192
- immer.produce;
3193
- immer.produceWithPatches.bind(
3194
- immer
3195
- );
3196
- immer.setAutoFreeze.bind(immer);
3197
- immer.setUseStrictShallowCopy.bind(immer);
3198
- immer.applyPatches.bind(immer);
3199
- immer.createDraft.bind(immer);
3200
- immer.finishDraft.bind(immer);
3201
- var nullSafe = function nullSafe2(func) {
3202
- return (
3203
- // @ts-ignore
3204
- curryN$1(func.length, function() {
3205
- var _ref;
3206
- var dataArg = (_ref = func.length - 1, _ref < 0 || arguments.length <= _ref ? void 0 : arguments[_ref]);
3207
- return isNil$1(dataArg) ? dataArg : func.apply(void 0, arguments);
3208
- })
3209
- );
3210
- };
3211
- var noop = function noop2() {
3212
- };
3213
- var isNotEmpty = /* @__PURE__ */ complement$1(isEmpty$1);
3214
- var notEquals = /* @__PURE__ */ curry$1(function(x2, y2) {
3215
- return x2 !== y2;
3216
- });
3217
- var isNot = notEquals;
3218
- var filterNonNull = function filterNonNull2(object) {
3219
- return Object.fromEntries(Object.entries(object).filter(function(_ref5) {
3220
- var _ref6 = _slicedToArray(_ref5, 2), v2 = _ref6[1];
3221
- return !isNil$1(v2);
3222
- }).map(function(_ref7) {
3223
- var _ref8 = _slicedToArray(_ref7, 2), k2 = _ref8[0], v2 = _ref8[1];
3224
- return [k2, _typeof(v2) === "object" && !Array.isArray(v2) ? filterNonNull2(v2) : v2];
3225
- }));
3226
- };
3227
- nullSafe(filterNonNull);
3228
- const filterTimezones = (inputValue) => {
3229
- if (inputValue === "") {
3230
- return groupedOptions;
3231
- }
3232
- const filteredOptions = groupedOptions.map((group) => {
3233
- const key = Object.keys(group)[0];
3234
- const element = group[key].filter(
3235
- (timezone) => timezone.label.toLowerCase().includes(inputValue.toLowerCase()) || timezone.keywords.toLowerCase().includes(inputValue.toLowerCase())
3236
- );
3237
- return isNotEmpty(element) ? { [key]: element } : null;
3238
- });
3239
- return filteredOptions.filter(isNot(null));
3240
- };
3241
- function Options({
3242
- elementId,
3243
- is24H,
3244
- searchInput,
3245
- selectedValue,
3246
- setSelectedValue,
3247
- setIsOverlayVisible
3248
- }) {
3249
- const handleSelect = (e2) => {
3250
- var _a, _b, _c, _d, _e, _f;
3251
- const targetValue = ((_a = e2 == null ? void 0 : e2.target) == null ? void 0 : _a.value) || ((_c = (_b = e2 == null ? void 0 : e2.target) == null ? void 0 : _b.parentNode) == null ? void 0 : _c.value) || ((_f = (_e = (_d = e2 == null ? void 0 : e2.target) == null ? void 0 : _d.parentNode) == null ? void 0 : _e.parentNode) == null ? void 0 : _f.value);
3252
- const selectedTimezone = allTimezones.find(
3253
- (timezone) => (timezone == null ? void 0 : timezone.keywords) === targetValue
3254
- );
3255
- setIsOverlayVisible(false);
3256
- setSelectedValue(selectedTimezone);
3257
- };
3258
- p(() => {
3259
- const selectedElement = document.getElementById(
3260
- valueToId(selectedValue == null ? void 0 : selectedValue.keywords)
3261
- );
3262
- selectedElement.scrollIntoView({ behavior: "auto", block: "center" });
3263
- }, []);
3264
- p(() => {
3265
- if (searchInput === "")
3266
- return;
3267
- const overflowContainer = document.getElementById(
3268
- `${elementId}-ntsp-overflow-container`
3269
- );
3270
- if (overflowContainer) {
3271
- overflowContainer.scrollTop = 0;
3272
- }
3273
- }, [searchInput]);
3274
- return /* @__PURE__ */ y(
3275
- "div",
3276
- {
3277
- className: "neeto-time-zones-dropdown-list__body",
3278
- id: `${elementId}-ntsp-overflow-container`
3279
- },
3280
- createGroupedOptionButton(
3281
- filterTimezones(searchInput),
3282
- selectedValue,
3283
- handleSelect,
3284
- is24H
3285
- )
3286
- );
3287
- }
3288
- function Switch({
3289
- id = "ntsp-switch",
3290
- onChange = noop,
3291
- labelRight = "Toggle switch",
3292
- labelLeft = "Toggle switch",
3293
- defaultValue = false
3294
- }) {
3295
- const [isChecked, setIsChecked] = h(defaultValue);
3296
- const handleChange = ({ target: { checked } }) => {
3297
- setIsChecked(checked);
3298
- onChange(checked);
3299
- };
3300
- return /* @__PURE__ */ y("div", { className: "neeto-time-zones-switch__wrapper" }, /* @__PURE__ */ y("label", { htmlFor: id, className: "neeto-time-zones-switch__container" }, /* @__PURE__ */ y(
3301
- "span",
3302
- {
3303
- className: `neeto-time-zones-switch-label ${!isChecked && "neeto-time-zones-switch-label--active"}`
3304
- },
3305
- labelLeft
3306
- ), /* @__PURE__ */ y("span", { className: "neeto-time-zones-switch" }, /* @__PURE__ */ y(
3307
- "input",
3308
- {
3309
- ...{ id },
3310
- type: "checkbox",
3311
- checked: isChecked,
3312
- onChange: handleChange
3313
- }
3314
- ), /* @__PURE__ */ y("span", { className: "neeto-time-zones-switch-bg" }), /* @__PURE__ */ y("span", { className: "neeto-time-zones-switch-block" })), /* @__PURE__ */ y(
3315
- "span",
3316
- {
3317
- className: `neeto-time-zones-switch-label ${isChecked && "neeto-time-zones-switch-label--active"}`
3318
- },
3319
- labelRight
3320
- )));
3321
- }
3322
- function OptionsContainer({
3323
- is24H,
3324
- elementId,
3325
- selectedValue,
3326
- setSelectedValue,
3327
- setIsOverlayVisible,
3328
- setIs24H,
3329
- position
3330
- }) {
3331
- const [searchInput, setSearchInput] = h("");
3332
- const handleTimeFormatChange = (value) => {
3333
- setToLocalStorage("ntsp-24-hr-time-format", value);
3334
- setIs24H(value);
3335
- };
3336
- return /* @__PURE__ */ y(
3337
- "div",
3338
- {
3339
- className: `neeto-time-zones-dropdown-list__wrapper ${position === "top" ? "dropdown-position-bottom" : "dropdown-position-top"}`
3340
- },
3341
- /* @__PURE__ */ y("div", { className: "neeto-time-zones-dropdown-list__header" }, /* @__PURE__ */ y(Search, { ...{ elementId, searchInput, setSearchInput } }), /* @__PURE__ */ y(
3342
- Switch,
3343
- {
3344
- defaultValue: is24H,
3345
- labelRight: "24H",
3346
- labelLeft: "AM/PM",
3347
- onChange: handleTimeFormatChange
3348
- }
3349
- )),
3350
- /* @__PURE__ */ y(
3351
- Options,
3352
- {
3353
- ...{
3354
- elementId,
3355
- is24H,
3356
- searchInput,
3357
- selectedValue,
3358
- setIsOverlayVisible,
3359
- setSelectedValue
3360
- }
3361
- }
3362
- )
3363
- );
3364
- }
3365
- function Selector({
3366
- className = "",
3367
- elementId = "timezone-selector",
3368
- initialValue,
3369
- position = "bottom",
3370
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
3371
- onChange = (selectedValue) => {
3372
- },
3373
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
3374
- onHourFormatChange = (hourFormat) => {
3375
- }
3376
- }) {
3377
- const [selectedValue, setSelectedValue] = h(
3378
- getTimezoneObject(initialValue) || getDefaultValue
3379
- );
3380
- const [isOverlayVisible, setIsOverlayVisible] = h(false);
3381
- const [is24H, setIs24H] = h(
3382
- getFromLocalStorage("ntsp-24-hr-time-format") || false
3383
- );
3384
- p(() => {
3385
- const handleOutsideClick = (e2) => {
3386
- const element = document.getElementById(elementId);
3387
- if (element && !(element == null ? void 0 : element.contains(e2.target))) {
3388
- setIsOverlayVisible(false);
3389
- }
3390
- };
3391
- window.addEventListener("click", handleOutsideClick);
3392
- return () => {
3393
- window.removeEventListener("click", handleOutsideClick);
3394
- };
3395
- }, []);
3396
- p(() => {
3397
- onChange(selectedValue);
3398
- }, [selectedValue]);
3399
- p(() => {
3400
- const hourFormat = is24H ? "24H" : "12H";
3401
- onHourFormatChange(hourFormat);
3402
- }, [is24H]);
3403
- p(() => {
3404
- const timeZone = getTimezoneObject(initialValue) || getDefaultValue;
3405
- setSelectedValue(timeZone);
3406
- }, [initialValue]);
3407
- return /* @__PURE__ */ y("div", { className: "neeto-time-zones__wrapper", id: elementId }, /* @__PURE__ */ y("div", { className: `neeto-time-zones__container ${className}` }, /* @__PURE__ */ y(
3408
- Dropdown,
3409
- {
3410
- ...{
3411
- elementId,
3412
- is24H,
3413
- isOverlayVisible,
3414
- selectedValue,
3415
- setIsOverlayVisible
3416
- }
3417
- }
3418
- ), isOverlayVisible === true && /* @__PURE__ */ y(
3419
- OptionsContainer,
3420
- {
3421
- ...{
3422
- elementId,
3423
- is24H,
3424
- position,
3425
- selectedValue,
3426
- setIs24H,
3427
- setIsOverlayVisible,
3428
- setSelectedValue
3429
- }
3430
- }
3431
- )));
3432
- }
3433
- const main = "";
3434
- class Plugin {
3435
- constructor(element, options) {
3436
- this.element = element;
3437
- this.options = options;
3438
- this.render();
3439
- }
3440
- render() {
3441
- B$1(/* @__PURE__ */ y(Selector, { ...this.options }), this.element);
3442
- }
3443
- }
3444
- window.NeetoTimezoneSelector = Plugin;
3445
- export {
3446
- America as A,
3447
- Europe as E,
3448
- Pacific as P,
3449
- UsCanada as U,
3450
- Asia as a,
3451
- Africa as b,
3452
- Atlantic as c,
3453
- Australia as d,
3454
- Plugin as e
3455
- };