-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmod.ts
765 lines (756 loc) · 33.9 KB
/
mod.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
/**
* This file was generated automatically on 2023-10-01.
*
* @module
*/
/**
* A map of device name to device identifier.
*/
export const devices = {
"AirPods (1st generation)": "AirPods1,1",
"AirPods (2nd generation)": "AirPods2,1",
"AirPods Pro": "iProd8,1",
"AirPods Max": "iProd8,6",
"AirPort Express 802.11n (1st generation)": "AirPort4,107",
"AirPort Express 802.11n (2nd generation)": "AirPort10,115",
"AirTag": "AirTag1,1",
"Apple TV (1st generation)": "AppleTV1,1",
"Apple TV (2nd generation)": "AppleTV2,1",
"Apple TV (3rd generation, Early 2012)": "AppleTV3,1",
"Apple TV (3rd generation, Early 2013)": "AppleTV3,2",
"Apple TV HD": "AppleTV5,3",
"Apple TV 4K (1st generation)": "AppleTV6,2",
"Apple TV 4K (2nd generation)": "AppleTV11,1",
"Apple Watch 38mm": "Watch1,1",
"Apple Watch 42mm": "Watch1,2",
"Apple Watch Series 2 38mm": "Watch2,3",
"Apple Watch Series 2 42mm": "Watch2,4",
"Apple Watch Series 1 38mm": "Watch2,6",
"Apple Watch Series 1 42mm": "Watch2,7",
"Apple Watch Series 3 (GPS + Cellular) 38mm": "Watch3,1",
"Apple Watch Series 3 (GPS + Cellular) 42mm": "Watch3,2",
"Apple Watch Series 3 (GPS) 38mm": "Watch3,3",
"Apple Watch Series 3 (GPS) 42mm (GPS)": "Watch3,4",
"Apple Watch Series 4 (GPS) 40mm": "Watch4,1",
"Apple Watch Series 4 (GPS) 44mm": "Watch4,2",
"Apple Watch Series 4 (GPS + Cellular) 40mm": "Watch4,3",
"Apple Watch Series 4 (GPS + Cellular) 44mm": "Watch4,4",
"Apple Watch Series 5 (GPS) 40mm": "Watch5,1",
"Apple Watch Series 5 (GPS) 44mm": "Watch5,2",
"Apple Watch Series 5 (GPS + Cellular) 40mm": "Watch5,3",
"Apple Watch Series 5 (GPS + Cellular) 44mm": "Watch5,4",
"Apple Watch SE (2020, GPS) 40mm": "Watch5,9",
"Apple Watch SE (2020, GPS) 44mm": "Watch5,10",
"Apple Watch SE (2020, GPS + Cellular) 40mm": "Watch5,11",
"Apple Watch SE (2020, GPS + Cellular) 44mm": "Watch5,12",
"Apple Watch Series 6 (GPS) 40mm": "Watch6,1",
"Apple Watch Series 6 (GPS) 44mm": "Watch6,2",
"Apple Watch Series 6 (GPS + Cellular) 40mm": "Watch6,3",
"Apple Watch Series 6 (GPS + Cellular) 44mm": "Watch6,4",
"Apple Watch Series 7 (GPS) 41mm": "Watch6,6",
"Apple Watch Series 7 (GPS) 45mm": "Watch6,7",
"Apple Watch Series 7 (GPS + Cellular) 41mm": "Watch6,8",
"Apple Watch Series 7 (GPS + Cellular) 45mm": "Watch6,9",
"Apple Watch SE (2022, GPS) 40mm": "Watch6,10",
"Apple Watch SE (2022, GPS) 44mm": "Watch6,11",
"Apple Watch SE (2022, GPS + Cellular) 40mm": "Watch6,12",
"Apple Watch SE (2022, GPS + Cellular) 44mm": "Watch6,13",
"Apple Watch Series 8 (GPS) 41mm": "Watch6,14",
"Apple Watch Series 8 (GPS) 45mm": "Watch6,15",
"Apple Watch Series 8 (GPS + Cellular) 41mm": "Watch6,16",
"Apple Watch Series 8 (GPS + Cellular) 45mm": "Watch6,17",
"Apple Watch Ultra": "Watch6,18",
"Apple Studio Display": "AppleDisplay2,1",
"HomePod": "AudioAccessory1,1",
"HomePod (Revision)": "AudioAccessory1,2",
"HomePod Mini": "AudioAccessory5,1",
"iMac (24-inch, Early 2009)": "iMac9,1",
"iMac (20-inch, Early 2009)": "iMac9,1",
"iMac (27-inch, Late 2009)": "iMac10,1",
"iMac (21.5-inch, Late 2009)": "iMac10,1",
"iMac (27-inch, Late 2009, Intel Core i5)": "iMac11,1",
"iMac (21.5-inch, Mid 2010)": "iMac11,2",
"iMac (27-inch, Mid 2010)": "iMac11,3",
"iMac (21.5-inch, Mid 2011)": "iMac12,1",
"iMac (27-inch, Mid 2011)": "iMac12,2",
"iMac (21.5-inch, Late 2012)": "iMac13,1",
"iMac (27-inch, Late 2012)": "iMac13,2",
"iMac (21.5-inch, Late 2013)": "iMac14,1",
"iMac (27-inch, Late 2013)": "iMac14,2",
"iMac (21.5-inch, Mid 2014, Dual Graphics)": "iMac14,3",
"iMac (21.5-inch, Mid 2014)": "iMac14,4",
"iMac (Retina 5K, 27-inch, Late 2014)": "iMac15,1",
"iMac (Retina 5K, 27-inch, Mid 2015)": "iMac15,1",
"iMac (21.5-inch, Late 2015)": "iMac16,1",
"iMac (Retina 4K, 21.5-inch, Late 2015)": "iMac16,2",
"iMac (Retina 5K, 27-inch, Late 2015)": "iMac17,1",
"iMac (21.5-inch, 2017)": "iMac18,1",
"iMac (Retina 4K, 21.5-inch, 2017)": "iMac18,2",
"iMac (Retina 5K, 27-inch, 2017)": "iMac18,3",
"iMac (Retina 5K, 27-inch, 2019)": "iMac19,1",
"iMac (Retina 4K, 21.5-inch, 2019)": "iMac19,2",
"iMac (Retina 5K, 27-inch, 2020)": "iMac20,1",
"iMac (Retina 5K, 27-inch, 2020, Radeon Pro 5700/XT)": "iMac20,2",
"iMac (24-inch, M1, 2021, 4 Ports)": "iMac21,1",
"iMac (24-inch, M1, 2021, 2 Ports)": "iMac21,2",
"iMac Pro": "iMacPro1,1",
"iPad": "iPad1,1",
"iPad 3G": "iPad1,2",
"iPad 2": "iPad2,1",
"iPad 2 (GSM)": "iPad2,2",
"iPad 2 (CDMA)": "iPad2,3",
"iPad 2 (Revision)": "iPad2,4",
"iPad mini": "iPad2,5",
"iPad mini (LTE + GSM)": "iPad2,6",
"iPad mini (LTE + CDMA)": "iPad2,7",
"iPad (3rd generation)": "iPad3,1",
"iPad (3rd generation, CDMA)": "iPad3,2",
"iPad (3rd generation, GSM)": "iPad3,3",
"iPad (4th generation)": "iPad3,4",
"iPad (4th generation, LTE + GSM)": "iPad3,5",
"iPad (4th generation, LTE + CDMA)": "iPad3,6",
"iPad Air Wi-Fi": "iPad4,1",
"iPad Air Wi-Fi + Cellular": "iPad4,2",
"iPad Air Wi-Fi + Cellular (China)": "iPad4,3",
"iPad mini 2 Wi-Fi": "iPad4,4",
"iPad mini 2 Wi-Fi + Cellular": "iPad4,5",
"iPad mini 2 Wi-Fi + Cellular (China)": "iPad4,6",
"iPad mini 3 Wi-Fi": "iPad4,7",
"iPad mini 3 Wi-Fi + Cellular": "iPad4,8",
"iPad mini 3 Wi-Fi + Cellular (China)": "iPad4,9",
"iPad mini 4 Wi-Fi": "iPad5,1",
"iPad mini 4 Wi-Fi + Cellular": "iPad5,2",
"iPad Air 2 Wi-Fi": "iPad5,3",
"iPad Air 2 Wi-Fi + Cellular": "iPad5,4",
"iPad Pro (9.7 inch) Wi-Fi": "iPad6,3",
"iPad Pro (9.7 inch) Wi-Fi + Cellular": "iPad6,4",
"iPad Pro (12.9 inch) Wi-Fi": "iPad6,7",
"iPad Pro (12.9 inch) Wi-Fi + Cellular": "iPad6,8",
"iPad (5th generation) Wi-Fi": "iPad6,12",
"iPad (5th generation) Wi-Fi + Cellular": "iPad6,12",
"iPad Pro (2nd generation) Wi-Fi": "iPad7,1",
"iPad Pro (2nd generation) Wi-Fi + Cellular": "iPad7,2",
"iPad Pro 10.5-inch Wi-Fi": "iPad7,3",
"iPad Pro 10.5-inch Wi-Fi + Cellular": "iPad7,4",
"iPad (6th generation) Wi-Fi": "iPad7,5",
"iPad (6th generation) Wi-Fi + Cellular": "iPad7,6",
"iPad (7th generation) Wi-Fi": "iPad7,11",
"iPad (7th generation) Wi-Fi + Cellular": "iPad7,12",
"iPad Pro 11 inch (1st generation) Wi-Fi": "iPad8,1",
"iPad Pro 11 inch (1st generation) Wi-Fi (1TB)": "iPad8,2",
"iPad Pro 11 inch (1st generation) Wi-Fi + Cellular": "iPad8,3",
"iPad Pro 11 inch (1st generation) Wi-Fi + Cellular (1TB)": "iPad8,4",
"iPad Pro 12.9 inch (3rd generation) Wi-Fi": "iPad8,5",
"iPad Pro 12.9 inch (3rd generation) Wi-Fi (1TB)": "iPad8,6",
"iPad Pro 12.9 inch (3rd generation) Wi-Fi + Cellular": "iPad8,7",
"iPad Pro 12.9 inch (3rd generation) Wi-Fi + Cellular (1TB)": "iPad8,8",
"iPad Pro 11 inch (2nd generation) Wi-Fi": "iPad8,9",
"iPad Pro 11 inch (2nd generation) Wi-Fi + Cellular": "iPad8,10",
"iPad Pro 12.9 inch (4th generation) Wi-Fi": "iPad8,11",
"iPad Pro 12.9 inch (4th generation) Wi-Fi + Cellular": "iPad8,12",
"iPad mini (5th generation) Wi-Fi": "iPad11,1",
"iPad mini (5th generation) Wi-Fi + Cellular": "iPad11,2",
"iPad Air (3rd generation) Wi-Fi": "iPad11,3",
"iPad Air (3rd generation) Wi-Fi + Cellular": "iPad11,4",
"iPad (8th generation) Wi-Fi": "iPad11,6",
"iPad (8th generation) Wi-Fi + Cellular": "iPad11,7",
"iPad (9th generation) Wi-Fi": "iPad12,1",
"iPad (9th generation) Wi-Fi + Cellular": "iPad12,2",
"iPad Air (4th generation) Wi-Fi": "iPad13,1",
"iPad Air (4th generation) Wi-Fi + Cellular": "iPad13,2",
"iPad Pro 11 inch (3rd generation) Wi-Fi": "iPad13,4",
"iPad Pro 11 inch (3rd generation) Wi-Fi + Cellular (US)": "iPad13,5",
"iPad Pro 11 inch (3rd generation) Wi-Fi + Cellular (Global)": "iPad13,6",
"iPad Pro 11 inch (3rd generation) Wi-Fi + Cellular (China)": "iPad13,7",
"iPad Pro 12.9 inch (5th generation) Wi-Fi": "iPad13,8",
"iPad Pro 12.9 inch (5th generation) Wi-Fi + Cellular (US)": "iPad13,9",
"iPad Pro 12.9 inch (5th generation) Wi-Fi + Cellular (Global)": "iPad13,10",
"iPad Pro 12.9 inch (5th generation) Wi-Fi + Cellular (China)": "iPad13,11",
"iPad Air (5th generation) Wi-Fi": "iPad13,16",
"iPad Air (5th generation) Wi-Fi + Cellular": "iPad13,17",
"iPad mini (6th generation) Wi-Fi": "iPad14,1",
"iPad mini (6th generation) Wi-Fi + Cellular": "iPad14,2",
"iPad (10th generation) Wi-Fi": "iPad13,18",
"iPad (10th generation) Wi-Fi + Cellular": "iPad13,19",
"iPad Air 5th Gen (WiFi)": "iPad13,16",
"iPad Air 5th Gen (WiFi + Cellular)": "iPad13,17",
"iPad Pro 11 inch (4rd generation) Wi-Fi": "iPad14,3",
"iPad Pro 11 inch (4rd generation) Wi-Fi + Cellular": "iPad14,4",
"iPad Pro 12.9 inch (6th generation) Wi-Fi": "iPad14,5",
"iPad Pro 12.9 inch (6th generation) Wi-Fi + Cellular": "iPad14,6",
"iPhone": "iPhone1,1",
"iPhone 3G": "iPhone1,2",
"iPhone 3GS": "iPhone2,1",
"iPhone 4 (GSM)": "iPhone3,1",
"iPhone 4 (GSM, Revision A)": "iPhone3,2",
"iPhone 4 (CDMA)": "iPhone3,3",
"iPhone 4S": "iPhone4,1",
"iPhone 5 (GSM)": "iPhone5,1",
"iPhone 5 (Global)": "iPhone5,2",
"iPhone 5C (GSM)": "iPhone5,3",
"iPhone 5C (Global)": "iPhone5,4",
"iPhone 5S (GSM)": "iPhone6,1",
"iPhone 5S (Global)": "iPhone6,2",
"iPhone 6 Plus": "iPhone7,1",
"iPhone 6": "iPhone7,2",
"iPhone 6s": "iPhone8,1",
"iPhone 6s Plus": "iPhone8,2",
"iPhone SE (GSM)": "iPhone8,4",
"iPhone 7 (GSM)": "iPhone9,1",
"iPhone 7 Plus (GSM)": "iPhone9,2",
"iPhone 7 (Global)": "iPhone9,3",
"iPhone 7 Plus (Global)": "iPhone9,4",
"iPhone 8 (GSM)": "iPhone10,1",
"iPhone 8 Plus (GSM)": "iPhone10,2",
"iPhone X (Global)": "iPhone10,3",
"iPhone 8 (Global)": "iPhone10,4",
"iPhone 8 Plus (Global)": "iPhone10,5",
"iPhone X (GSM)": "iPhone10,6",
"iPhone XS": "iPhone11,2",
"iPhone XS Max (unreleased)": "iPhone11,4",
"iPhone XS Max": "iPhone11,6",
"iPhone XR": "iPhone11,8",
"iPhone 11": "iPhone12,1",
"iPhone 11 Pro": "iPhone12,3",
"iPhone 11 Pro Max": "iPhone12,5",
"iPhone SE (2nd generation)": "iPhone12,8",
"iPhone 12 Mini": "iPhone13,1",
"iPhone 12": "iPhone13,2",
"iPhone 12 Pro": "iPhone13,3",
"iPhone 12 Pro Max": "iPhone13,4",
"iPhone 13 Pro": "iPhone14,2",
"iPhone 13 Pro Max": "iPhone14,3",
"iPhone 13 Mini": "iPhone14,4",
"iPhone 13": "iPhone14,5",
"iPhone SE (3rd generation)": "iPhone14,6",
"iPhone 14": "iPhone14,7",
"iPhone 14 Plus": "iPhone14,8",
"iPhone 14 Pro": "iPhone15,2",
"iPhone 14 Pro Max": "iPhone15,3",
"iPhone 15": "iPhone15,4",
"iPhone 15 Plus": "iPhone15,5",
"iPhone 15 Pro": "iPhone16,1",
"iPhone 15 Pro Max": "iPhone16,2",
"iPod touch (1st generation)": "iPod1,1",
"iPod touch (2nd generation)": "iPod2,1",
"iPod touch (3rd generation)": "iPod3,1",
"iPod touch (4th generation)": "iPod4,1",
"iPod touch (5th generation)": "iPod5,1",
"iPod touch (6th generation)": "iPod7,1",
"iPod touch (7th generation)": "iPod9,1",
"MacBook (13-inch, Mid 2009, Unibody)": "MacBook5,1",
"MacBook (13-inch, Mid 2009)": "MacBook5,2",
"MacBook (13-inch, Early 2009)": "MacBook5,2",
"MacBook (13-inch, Late 2009)": "MacBook6,1",
"MacBook (13-inch, Mid 2010)": "MacBook7,1",
"MacBook (Retina, 12-inch, Early 2015)": "MacBook8,1",
"MacBook (Retina, 12-inch, Early 2016)": "MacBook9,1",
"MacBook (Retina, 12-inch, 2017)": "MacBook10,1",
"MacBook Air (Mid 2009)": "MacBookAir2,1",
"MacBook Air (11-inch, Late 2010)": "MacBookAir3,1",
"MacBook Air (13-inch, Late 2010)": "MacBookAir3,2",
"MacBook Air (11-inch, Mid 2011)": "MacBookAir4,1",
"MacBook Air (13-inch, Mid 2011)": "MacBookAir4,2",
"MacBook Air (11-inch, Mid 2012)": "MacBookAir5,1",
"MacBook Air (13-inch, Mid 2012)": "MacBookAir5,2",
"MacBook Air (11-inch, Early 2014)": "MacBookAir6,1",
"MacBook Air (11-inch, Mid 2013)": "MacBookAir6,1",
"MacBook Air (13-inch, Early 2014)": "MacBookAir6,2",
"MacBook Air (13-inch, Mid 2013)": "MacBookAir6,2",
"MacBook Air (11-inch, Early 2015)": "MacBookAir7,1",
"MacBook Air (13-inch, 2017)": "MacBookAir7,2",
"MacBook Air (13-inch, Early 2015)": "MacBookAir7,2",
"MacBook Air (Retina, 13-inch, 2018)": "MacBookAir8,1",
"MacBook Air (Retina, 13-inch, 2019)": "MacBookAir8,2",
"MacBook Air (Retina, 13-inch, 2020)": "MacBookAir9,1",
"MacBook Air (M1, 2020)": "MacBookAir10,1",
"MacBook Air (M2, 2022)": "Mac14,2",
"MacBook Pro (17-inch, Early 2008)": "MacBookPro4,1",
"MacBook Pro (15-inch, Early 2008)": "MacBookPro4,1",
"MacBook Pro (15-inch, Late 2008)": "MacBookPro5,1",
"MacBook Pro (17-inch, Mid 2009)": "MacBookPro5,2",
"MacBook Pro (17-inch, Early 2009)": "MacBookPro5,2",
"MacBook Pro (15-inch, Mid 2009)": "MacBookPro5,3",
"MacBook Pro (15-inch, 2.53GHz, Mid 2009)": "MacBookPro5,3",
"MacBook Pro (13-inch, Mid 2009)": "MacBookPro5,5",
"MacBook Pro (17-inch, Mid 2010)": "MacBookPro6,1",
"MacBook Pro (15-inch, Mid 2010)": "MacBookPro6,2",
"MacBook Pro (13-inch, Mid 2010)": "MacBookPro7,1",
"MacBook Pro (13-inch, Late 2011)": "MacBookPro8,1",
"MacBook Pro (13-inch, Early 2011)": "MacBookPro8,1",
"MacBook Pro (15-inch, Late 2011)": "MacBookPro8,2",
"MacBook Pro (15-inch, Early 2011)": "MacBookPro8,2",
"MacBook Pro (17-inch, Late 2011)": "MacBookPro8,3",
"MacBook Pro (17-inch, Early 2011)": "MacBookPro8,3",
"MacBook Pro (15-inch, Mid 2012)": "MacBookPro9,1",
"MacBook Pro (13-inch, Mid 2012)": "MacBookPro9,2",
"MacBook Pro (Retina, 15-inch, Early 2013)": "MacBookPro10,1",
"MacBook Pro (Retina, 15-inch, Mid 2012)": "MacBookPro10,1",
"MacBook Pro (Retina, 13-inch, Early 2013)": "MacBookPro10,2",
"MacBook Pro (Retina, 13-inch, Late 2012)": "MacBookPro10,2",
"MacBook Pro (Retina, 13-inch, Mid 2014)": "MacBookPro11,1",
"MacBook Pro (Retina, 13-inch, Late 2013)": "MacBookPro11,1",
"MacBook Pro (Retina, 15-inch, Mid 2014)": "MacBookPro11,2",
"MacBook Pro (Retina, 15-inch, Late 2013)": "MacBookPro11,2",
"MacBook Pro (Retina, 15-inch, Mid 2014, Dual Graphics)": "MacBookPro11,3",
"MacBook Pro (Retina, 15-inch, Late 2013, Dual Graphics)": "MacBookPro11,3",
"MacBook Pro (Retina, 15-inch, Mid 2015)": "MacBookPro11,4",
"MacBook Pro (Retina, 15-inch, Mid 2015, Dual Graphics)": "MacBookPro11,5",
"MacBook Pro (Retina, 13-inch, Early 2015)": "MacBookPro12,1",
"MacBook Pro (13-inch, 2016, Two Thunderbolt 3 ports)": "MacBookPro13,1",
"MacBook Pro (13-inch, 2016, Four Thunderbolt 3 ports)": "MacBookPro13,2",
"MacBook Pro (15-inch, 2016)": "MacBookPro13,3",
"MacBook Pro (13-inch, 2017, Two Thunderbolt 3 ports)": "MacBookPro14,1",
"MacBook Pro (13-inch, 2017, Four Thunderbolt 3 ports)": "MacBookPro14,2",
"MacBook Pro (15-inch, 2017)": "MacBookPro14,3",
"MacBook Pro (15-inch, 2019)": "MacBookPro15,1",
"MacBook Pro (15-inch, 2018)": "MacBookPro15,1",
"MacBook Pro (13-inch, 2019, Four Thunderbolt 3 ports)": "MacBookPro15,2",
"MacBook Pro (13-inch, 2018, Four Thunderbolt 3 ports)": "MacBookPro15,2",
"MacBook Pro (15-inch, 2019, Vega)": "MacBookPro15,3",
"MacBook Pro (13-inch, 2019, Two Thunderbolt 3 ports)": "MacBookPro15,4",
"MacBook Pro (16-inch, 2019)": "MacBookPro16,1",
"MacBook Pro (13-inch, 2020, Four Thunderbolt 3 ports)": "MacBookPro16,2",
"MacBook Pro (13-inch, 2020, Two Thunderbolt 3 ports)": "MacBookPro16,3",
"MacBook Pro (16-inch, 2019, AMD Radeon Pro 5600M)": "MacBookPro16,4",
"MacBook Pro (13-inch, 2020, M1)": "MacBookPro17,1",
"MacBook Pro (16-inch, 2021, M1 Pro)": "MacBookPro18,1",
"MacBook Pro (16-inch, 2021, M1 Max)": "MacBookPro18,2",
"MacBook Pro (14-inch, 2021, M1 Pro)": "MacBookPro18,3",
"MacBook Pro (14-inch, 2021, M1 Max)": "MacBookPro18,4",
"MacBook Pro (13-inch, 2022, M2)": "Mac14,7",
"Mac mini (Late 2009)": "Macmini3,1",
"Mac mini (Early 2009)": "Macmini3,1",
"Mac mini (Mid 2010)": "Macmini4,1",
"Mac mini (Mid 2011)": "Macmini5,1",
"Mac mini (Mid 2011, Intel Core i7)": "Macmini5,2",
"Mac mini (Mid 2011, Server)": "Macmini5,3",
"Mac mini (Late 2012)": "Macmini6,1",
"Mac mini (Late 2012, 1TB)": "Macmini6,2",
"Mac mini (Late 2014)": "Macmini7,1",
"Mac mini (2018)": "Macmini8,1",
"Mac mini (M1, 2020)": "Macmini9,1",
"Mac Pro (2019)": "MacPro7,1",
"Mac Pro (Rack, 2019)": "MacPro7,1",
"Mac Pro (Late 2013)": "MacPro6,1",
"Mac Pro (Mid 2012)": "MacPro5,1",
"Mac Pro Server (Mid 2012)": "MacPro5,1",
"Mac Pro (Mid 2010)": "MacPro5,1",
"Mac Pro Server (Mid 2010)": "MacPro5,1",
"Mac Pro (Early 2009)": "MacPro4,1",
"Mac Studio (2022, M1 Max)": "Mac13,1",
"Mac Studio (2022, M1 Ultra)": "Mac13,2",
} as const;
/**
* A map of device identifier to device name.
*/
export const identifiers = {
"AirPods1,1": ["AirPods (1st generation)"],
"AirPods2,1": ["AirPods (2nd generation)"],
"iProd8,1": ["AirPods Pro"],
"iProd8,6": ["AirPods Max"],
"AirPort4,107": ["AirPort Express 802.11n (1st generation)"],
"AirPort10,115": ["AirPort Express 802.11n (2nd generation)"],
"AirTag1,1": ["AirTag"],
"AppleTV1,1": ["Apple TV (1st generation)"],
"AppleTV2,1": ["Apple TV (2nd generation)"],
"AppleTV3,1": ["Apple TV (3rd generation, Early 2012)"],
"AppleTV3,2": ["Apple TV (3rd generation, Early 2013)"],
"AppleTV5,3": ["Apple TV HD"],
"AppleTV6,2": ["Apple TV 4K (1st generation)"],
"AppleTV11,1": ["Apple TV 4K (2nd generation)"],
"Watch1,1": ["Apple Watch 38mm"],
"Watch1,2": ["Apple Watch 42mm"],
"Watch2,3": ["Apple Watch Series 2 38mm"],
"Watch2,4": ["Apple Watch Series 2 42mm"],
"Watch2,6": ["Apple Watch Series 1 38mm"],
"Watch2,7": ["Apple Watch Series 1 42mm"],
"Watch3,1": ["Apple Watch Series 3 (GPS + Cellular) 38mm"],
"Watch3,2": ["Apple Watch Series 3 (GPS + Cellular) 42mm"],
"Watch3,3": ["Apple Watch Series 3 (GPS) 38mm"],
"Watch3,4": ["Apple Watch Series 3 (GPS) 42mm (GPS)"],
"Watch4,1": ["Apple Watch Series 4 (GPS) 40mm"],
"Watch4,2": ["Apple Watch Series 4 (GPS) 44mm"],
"Watch4,3": ["Apple Watch Series 4 (GPS + Cellular) 40mm"],
"Watch4,4": ["Apple Watch Series 4 (GPS + Cellular) 44mm"],
"Watch5,1": ["Apple Watch Series 5 (GPS) 40mm"],
"Watch5,2": ["Apple Watch Series 5 (GPS) 44mm"],
"Watch5,3": ["Apple Watch Series 5 (GPS + Cellular) 40mm"],
"Watch5,4": ["Apple Watch Series 5 (GPS + Cellular) 44mm"],
"Watch5,9": ["Apple Watch SE (2020, GPS) 40mm"],
"Watch5,10": ["Apple Watch SE (2020, GPS) 44mm"],
"Watch5,11": ["Apple Watch SE (2020, GPS + Cellular) 40mm"],
"Watch5,12": ["Apple Watch SE (2020, GPS + Cellular) 44mm"],
"Watch6,1": ["Apple Watch Series 6 (GPS) 40mm"],
"Watch6,2": ["Apple Watch Series 6 (GPS) 44mm"],
"Watch6,3": ["Apple Watch Series 6 (GPS + Cellular) 40mm"],
"Watch6,4": ["Apple Watch Series 6 (GPS + Cellular) 44mm"],
"Watch6,6": ["Apple Watch Series 7 (GPS) 41mm"],
"Watch6,7": ["Apple Watch Series 7 (GPS) 45mm"],
"Watch6,8": ["Apple Watch Series 7 (GPS + Cellular) 41mm"],
"Watch6,9": ["Apple Watch Series 7 (GPS + Cellular) 45mm"],
"Watch6,10": ["Apple Watch SE (2022, GPS) 40mm"],
"Watch6,11": ["Apple Watch SE (2022, GPS) 44mm"],
"Watch6,12": ["Apple Watch SE (2022, GPS + Cellular) 40mm"],
"Watch6,13": ["Apple Watch SE (2022, GPS + Cellular) 44mm"],
"Watch6,14": ["Apple Watch Series 8 (GPS) 41mm"],
"Watch6,15": ["Apple Watch Series 8 (GPS) 45mm"],
"Watch6,16": ["Apple Watch Series 8 (GPS + Cellular) 41mm"],
"Watch6,17": ["Apple Watch Series 8 (GPS + Cellular) 45mm"],
"Watch6,18": ["Apple Watch Ultra"],
"AppleDisplay2,1": ["Apple Studio Display"],
"AudioAccessory1,1": ["HomePod"],
"AudioAccessory1,2": ["HomePod (Revision)"],
"AudioAccessory5,1": ["HomePod Mini"],
"iMac9,1": ["iMac (24-inch, Early 2009)", "iMac (20-inch, Early 2009)"],
"iMac10,1": ["iMac (27-inch, Late 2009)", "iMac (21.5-inch, Late 2009)"],
"iMac11,1": ["iMac (27-inch, Late 2009, Intel Core i5)"],
"iMac11,2": ["iMac (21.5-inch, Mid 2010)"],
"iMac11,3": ["iMac (27-inch, Mid 2010)"],
"iMac12,1": ["iMac (21.5-inch, Mid 2011)"],
"iMac12,2": ["iMac (27-inch, Mid 2011)"],
"iMac13,1": ["iMac (21.5-inch, Late 2012)"],
"iMac13,2": ["iMac (27-inch, Late 2012)"],
"iMac14,1": ["iMac (21.5-inch, Late 2013)"],
"iMac14,2": ["iMac (27-inch, Late 2013)"],
"iMac14,3": ["iMac (21.5-inch, Mid 2014, Dual Graphics)"],
"iMac14,4": ["iMac (21.5-inch, Mid 2014)"],
"iMac15,1": [
"iMac (Retina 5K, 27-inch, Late 2014)",
"iMac (Retina 5K, 27-inch, Mid 2015)",
],
"iMac16,1": ["iMac (21.5-inch, Late 2015)"],
"iMac16,2": ["iMac (Retina 4K, 21.5-inch, Late 2015)"],
"iMac17,1": ["iMac (Retina 5K, 27-inch, Late 2015)"],
"iMac18,1": ["iMac (21.5-inch, 2017)"],
"iMac18,2": ["iMac (Retina 4K, 21.5-inch, 2017)"],
"iMac18,3": ["iMac (Retina 5K, 27-inch, 2017)"],
"iMac19,1": ["iMac (Retina 5K, 27-inch, 2019)"],
"iMac19,2": ["iMac (Retina 4K, 21.5-inch, 2019)"],
"iMac20,1": ["iMac (Retina 5K, 27-inch, 2020)"],
"iMac20,2": ["iMac (Retina 5K, 27-inch, 2020, Radeon Pro 5700/XT)"],
"iMac21,1": ["iMac (24-inch, M1, 2021, 4 Ports)"],
"iMac21,2": ["iMac (24-inch, M1, 2021, 2 Ports)"],
"iMacPro1,1": ["iMac Pro"],
"iPad1,1": ["iPad"],
"iPad1,2": ["iPad 3G"],
"iPad2,1": ["iPad 2"],
"iPad2,2": ["iPad 2 (GSM)"],
"iPad2,3": ["iPad 2 (CDMA)"],
"iPad2,4": ["iPad 2 (Revision)"],
"iPad2,5": ["iPad mini"],
"iPad2,6": ["iPad mini (LTE + GSM)"],
"iPad2,7": ["iPad mini (LTE + CDMA)"],
"iPad3,1": ["iPad (3rd generation)"],
"iPad3,2": ["iPad (3rd generation, CDMA)"],
"iPad3,3": ["iPad (3rd generation, GSM)"],
"iPad3,4": ["iPad (4th generation)"],
"iPad3,5": ["iPad (4th generation, LTE + GSM)"],
"iPad3,6": ["iPad (4th generation, LTE + CDMA)"],
"iPad4,1": ["iPad Air Wi-Fi"],
"iPad4,2": ["iPad Air Wi-Fi + Cellular"],
"iPad4,3": ["iPad Air Wi-Fi + Cellular (China)"],
"iPad4,4": ["iPad mini 2 Wi-Fi"],
"iPad4,5": ["iPad mini 2 Wi-Fi + Cellular"],
"iPad4,6": ["iPad mini 2 Wi-Fi + Cellular (China)"],
"iPad4,7": ["iPad mini 3 Wi-Fi"],
"iPad4,8": ["iPad mini 3 Wi-Fi + Cellular"],
"iPad4,9": ["iPad mini 3 Wi-Fi + Cellular (China)"],
"iPad5,1": ["iPad mini 4 Wi-Fi"],
"iPad5,2": ["iPad mini 4 Wi-Fi + Cellular"],
"iPad5,3": ["iPad Air 2 Wi-Fi"],
"iPad5,4": ["iPad Air 2 Wi-Fi + Cellular"],
"iPad6,3": ["iPad Pro (9.7 inch) Wi-Fi"],
"iPad6,4": ["iPad Pro (9.7 inch) Wi-Fi + Cellular"],
"iPad6,7": ["iPad Pro (12.9 inch) Wi-Fi"],
"iPad6,8": ["iPad Pro (12.9 inch) Wi-Fi + Cellular"],
"iPad6,12": [
"iPad (5th generation) Wi-Fi",
"iPad (5th generation) Wi-Fi + Cellular",
],
"iPad7,1": ["iPad Pro (2nd generation) Wi-Fi"],
"iPad7,2": ["iPad Pro (2nd generation) Wi-Fi + Cellular"],
"iPad7,3": ["iPad Pro 10.5-inch Wi-Fi"],
"iPad7,4": ["iPad Pro 10.5-inch Wi-Fi + Cellular"],
"iPad7,5": ["iPad (6th generation) Wi-Fi"],
"iPad7,6": ["iPad (6th generation) Wi-Fi + Cellular"],
"iPad7,11": ["iPad (7th generation) Wi-Fi"],
"iPad7,12": ["iPad (7th generation) Wi-Fi + Cellular"],
"iPad8,1": ["iPad Pro 11 inch (1st generation) Wi-Fi"],
"iPad8,2": ["iPad Pro 11 inch (1st generation) Wi-Fi (1TB)"],
"iPad8,3": ["iPad Pro 11 inch (1st generation) Wi-Fi + Cellular"],
"iPad8,4": ["iPad Pro 11 inch (1st generation) Wi-Fi + Cellular (1TB)"],
"iPad8,5": ["iPad Pro 12.9 inch (3rd generation) Wi-Fi"],
"iPad8,6": ["iPad Pro 12.9 inch (3rd generation) Wi-Fi (1TB)"],
"iPad8,7": ["iPad Pro 12.9 inch (3rd generation) Wi-Fi + Cellular"],
"iPad8,8": ["iPad Pro 12.9 inch (3rd generation) Wi-Fi + Cellular (1TB)"],
"iPad8,9": ["iPad Pro 11 inch (2nd generation) Wi-Fi"],
"iPad8,10": ["iPad Pro 11 inch (2nd generation) Wi-Fi + Cellular"],
"iPad8,11": ["iPad Pro 12.9 inch (4th generation) Wi-Fi"],
"iPad8,12": ["iPad Pro 12.9 inch (4th generation) Wi-Fi + Cellular"],
"iPad11,1": ["iPad mini (5th generation) Wi-Fi"],
"iPad11,2": ["iPad mini (5th generation) Wi-Fi + Cellular"],
"iPad11,3": ["iPad Air (3rd generation) Wi-Fi"],
"iPad11,4": ["iPad Air (3rd generation) Wi-Fi + Cellular"],
"iPad11,6": ["iPad (8th generation) Wi-Fi"],
"iPad11,7": ["iPad (8th generation) Wi-Fi + Cellular"],
"iPad12,1": ["iPad (9th generation) Wi-Fi"],
"iPad12,2": ["iPad (9th generation) Wi-Fi + Cellular"],
"iPad13,1": ["iPad Air (4th generation) Wi-Fi"],
"iPad13,2": ["iPad Air (4th generation) Wi-Fi + Cellular"],
"iPad13,4": ["iPad Pro 11 inch (3rd generation) Wi-Fi"],
"iPad13,5": ["iPad Pro 11 inch (3rd generation) Wi-Fi + Cellular (US)"],
"iPad13,6": ["iPad Pro 11 inch (3rd generation) Wi-Fi + Cellular (Global)"],
"iPad13,7": ["iPad Pro 11 inch (3rd generation) Wi-Fi + Cellular (China)"],
"iPad13,8": ["iPad Pro 12.9 inch (5th generation) Wi-Fi"],
"iPad13,9": ["iPad Pro 12.9 inch (5th generation) Wi-Fi + Cellular (US)"],
"iPad13,10": [
"iPad Pro 12.9 inch (5th generation) Wi-Fi + Cellular (Global)",
],
"iPad13,11": ["iPad Pro 12.9 inch (5th generation) Wi-Fi + Cellular (China)"],
"iPad13,16": ["iPad Air (5th generation) Wi-Fi", "iPad Air 5th Gen (WiFi)"],
"iPad13,17": [
"iPad Air (5th generation) Wi-Fi + Cellular",
"iPad Air 5th Gen (WiFi + Cellular)",
],
"iPad14,1": ["iPad mini (6th generation) Wi-Fi"],
"iPad14,2": ["iPad mini (6th generation) Wi-Fi + Cellular"],
"iPad13,18": ["iPad (10th generation) Wi-Fi"],
"iPad13,19": ["iPad (10th generation) Wi-Fi + Cellular"],
"iPad14,3": ["iPad Pro 11 inch (4rd generation) Wi-Fi"],
"iPad14,4": ["iPad Pro 11 inch (4rd generation) Wi-Fi + Cellular"],
"iPad14,5": ["iPad Pro 12.9 inch (6th generation) Wi-Fi"],
"iPad14,6": ["iPad Pro 12.9 inch (6th generation) Wi-Fi + Cellular"],
"iPhone1,1": ["iPhone"],
"iPhone1,2": ["iPhone 3G"],
"iPhone2,1": ["iPhone 3GS"],
"iPhone3,1": ["iPhone 4 (GSM)"],
"iPhone3,2": ["iPhone 4 (GSM, Revision A)"],
"iPhone3,3": ["iPhone 4 (CDMA)"],
"iPhone4,1": ["iPhone 4S"],
"iPhone5,1": ["iPhone 5 (GSM)"],
"iPhone5,2": ["iPhone 5 (Global)"],
"iPhone5,3": ["iPhone 5C (GSM)"],
"iPhone5,4": ["iPhone 5C (Global)"],
"iPhone6,1": ["iPhone 5S (GSM)"],
"iPhone6,2": ["iPhone 5S (Global)"],
"iPhone7,1": ["iPhone 6 Plus"],
"iPhone7,2": ["iPhone 6"],
"iPhone8,1": ["iPhone 6s"],
"iPhone8,2": ["iPhone 6s Plus"],
"iPhone8,4": ["iPhone SE (GSM)"],
"iPhone9,1": ["iPhone 7 (GSM)"],
"iPhone9,2": ["iPhone 7 Plus (GSM)"],
"iPhone9,3": ["iPhone 7 (Global)"],
"iPhone9,4": ["iPhone 7 Plus (Global)"],
"iPhone10,1": ["iPhone 8 (GSM)"],
"iPhone10,2": ["iPhone 8 Plus (GSM)"],
"iPhone10,3": ["iPhone X (Global)"],
"iPhone10,4": ["iPhone 8 (Global)"],
"iPhone10,5": ["iPhone 8 Plus (Global)"],
"iPhone10,6": ["iPhone X (GSM)"],
"iPhone11,2": ["iPhone XS"],
"iPhone11,4": ["iPhone XS Max (unreleased)"],
"iPhone11,6": ["iPhone XS Max"],
"iPhone11,8": ["iPhone XR"],
"iPhone12,1": ["iPhone 11"],
"iPhone12,3": ["iPhone 11 Pro"],
"iPhone12,5": ["iPhone 11 Pro Max"],
"iPhone12,8": ["iPhone SE (2nd generation)"],
"iPhone13,1": ["iPhone 12 Mini"],
"iPhone13,2": ["iPhone 12"],
"iPhone13,3": ["iPhone 12 Pro"],
"iPhone13,4": ["iPhone 12 Pro Max"],
"iPhone14,2": ["iPhone 13 Pro"],
"iPhone14,3": ["iPhone 13 Pro Max"],
"iPhone14,4": ["iPhone 13 Mini"],
"iPhone14,5": ["iPhone 13"],
"iPhone14,6": ["iPhone SE (3rd generation)"],
"iPhone14,7": ["iPhone 14"],
"iPhone14,8": ["iPhone 14 Plus"],
"iPhone15,2": ["iPhone 14 Pro"],
"iPhone15,3": ["iPhone 14 Pro Max"],
"iPhone15,4": ["iPhone 15"],
"iPhone15,5": ["iPhone 15 Plus"],
"iPhone16,1": ["iPhone 15 Pro"],
"iPhone16,2": ["iPhone 15 Pro Max"],
"iPod1,1": ["iPod touch (1st generation)"],
"iPod2,1": ["iPod touch (2nd generation)"],
"iPod3,1": ["iPod touch (3rd generation)"],
"iPod4,1": ["iPod touch (4th generation)"],
"iPod5,1": ["iPod touch (5th generation)"],
"iPod7,1": ["iPod touch (6th generation)"],
"iPod9,1": ["iPod touch (7th generation)"],
"MacBook5,1": ["MacBook (13-inch, Mid 2009, Unibody)"],
"MacBook5,2": [
"MacBook (13-inch, Mid 2009)",
"MacBook (13-inch, Early 2009)",
],
"MacBook6,1": ["MacBook (13-inch, Late 2009)"],
"MacBook7,1": ["MacBook (13-inch, Mid 2010)"],
"MacBook8,1": ["MacBook (Retina, 12-inch, Early 2015)"],
"MacBook9,1": ["MacBook (Retina, 12-inch, Early 2016)"],
"MacBook10,1": ["MacBook (Retina, 12-inch, 2017)"],
"MacBookAir2,1": ["MacBook Air (Mid 2009)"],
"MacBookAir3,1": ["MacBook Air (11-inch, Late 2010)"],
"MacBookAir3,2": ["MacBook Air (13-inch, Late 2010)"],
"MacBookAir4,1": ["MacBook Air (11-inch, Mid 2011)"],
"MacBookAir4,2": ["MacBook Air (13-inch, Mid 2011)"],
"MacBookAir5,1": ["MacBook Air (11-inch, Mid 2012)"],
"MacBookAir5,2": ["MacBook Air (13-inch, Mid 2012)"],
"MacBookAir6,1": [
"MacBook Air (11-inch, Early 2014)",
"MacBook Air (11-inch, Mid 2013)",
],
"MacBookAir6,2": [
"MacBook Air (13-inch, Early 2014)",
"MacBook Air (13-inch, Mid 2013)",
],
"MacBookAir7,1": ["MacBook Air (11-inch, Early 2015)"],
"MacBookAir7,2": [
"MacBook Air (13-inch, 2017)",
"MacBook Air (13-inch, Early 2015)",
],
"MacBookAir8,1": ["MacBook Air (Retina, 13-inch, 2018)"],
"MacBookAir8,2": ["MacBook Air (Retina, 13-inch, 2019)"],
"MacBookAir9,1": ["MacBook Air (Retina, 13-inch, 2020)"],
"MacBookAir10,1": ["MacBook Air (M1, 2020)"],
"Mac14,2": ["MacBook Air (M2, 2022)"],
"MacBookPro4,1": [
"MacBook Pro (17-inch, Early 2008)",
"MacBook Pro (15-inch, Early 2008)",
],
"MacBookPro5,1": ["MacBook Pro (15-inch, Late 2008)"],
"MacBookPro5,2": [
"MacBook Pro (17-inch, Mid 2009)",
"MacBook Pro (17-inch, Early 2009)",
],
"MacBookPro5,3": [
"MacBook Pro (15-inch, Mid 2009)",
"MacBook Pro (15-inch, 2.53GHz, Mid 2009)",
],
"MacBookPro5,5": ["MacBook Pro (13-inch, Mid 2009)"],
"MacBookPro6,1": ["MacBook Pro (17-inch, Mid 2010)"],
"MacBookPro6,2": ["MacBook Pro (15-inch, Mid 2010)"],
"MacBookPro7,1": ["MacBook Pro (13-inch, Mid 2010)"],
"MacBookPro8,1": [
"MacBook Pro (13-inch, Late 2011)",
"MacBook Pro (13-inch, Early 2011)",
],
"MacBookPro8,2": [
"MacBook Pro (15-inch, Late 2011)",
"MacBook Pro (15-inch, Early 2011)",
],
"MacBookPro8,3": [
"MacBook Pro (17-inch, Late 2011)",
"MacBook Pro (17-inch, Early 2011)",
],
"MacBookPro9,1": ["MacBook Pro (15-inch, Mid 2012)"],
"MacBookPro9,2": ["MacBook Pro (13-inch, Mid 2012)"],
"MacBookPro10,1": [
"MacBook Pro (Retina, 15-inch, Early 2013)",
"MacBook Pro (Retina, 15-inch, Mid 2012)",
],
"MacBookPro10,2": [
"MacBook Pro (Retina, 13-inch, Early 2013)",
"MacBook Pro (Retina, 13-inch, Late 2012)",
],
"MacBookPro11,1": [
"MacBook Pro (Retina, 13-inch, Mid 2014)",
"MacBook Pro (Retina, 13-inch, Late 2013)",
],
"MacBookPro11,2": [
"MacBook Pro (Retina, 15-inch, Mid 2014)",
"MacBook Pro (Retina, 15-inch, Late 2013)",
],
"MacBookPro11,3": [
"MacBook Pro (Retina, 15-inch, Mid 2014, Dual Graphics)",
"MacBook Pro (Retina, 15-inch, Late 2013, Dual Graphics)",
],
"MacBookPro11,4": ["MacBook Pro (Retina, 15-inch, Mid 2015)"],
"MacBookPro11,5": ["MacBook Pro (Retina, 15-inch, Mid 2015, Dual Graphics)"],
"MacBookPro12,1": ["MacBook Pro (Retina, 13-inch, Early 2015)"],
"MacBookPro13,1": ["MacBook Pro (13-inch, 2016, Two Thunderbolt 3 ports)"],
"MacBookPro13,2": ["MacBook Pro (13-inch, 2016, Four Thunderbolt 3 ports)"],
"MacBookPro13,3": ["MacBook Pro (15-inch, 2016)"],
"MacBookPro14,1": ["MacBook Pro (13-inch, 2017, Two Thunderbolt 3 ports)"],
"MacBookPro14,2": ["MacBook Pro (13-inch, 2017, Four Thunderbolt 3 ports)"],
"MacBookPro14,3": ["MacBook Pro (15-inch, 2017)"],
"MacBookPro15,1": [
"MacBook Pro (15-inch, 2019)",
"MacBook Pro (15-inch, 2018)",
],
"MacBookPro15,2": [
"MacBook Pro (13-inch, 2019, Four Thunderbolt 3 ports)",
"MacBook Pro (13-inch, 2018, Four Thunderbolt 3 ports)",
],
"MacBookPro15,3": ["MacBook Pro (15-inch, 2019, Vega)"],
"MacBookPro15,4": ["MacBook Pro (13-inch, 2019, Two Thunderbolt 3 ports)"],
"MacBookPro16,1": ["MacBook Pro (16-inch, 2019)"],
"MacBookPro16,2": ["MacBook Pro (13-inch, 2020, Four Thunderbolt 3 ports)"],
"MacBookPro16,3": ["MacBook Pro (13-inch, 2020, Two Thunderbolt 3 ports)"],
"MacBookPro16,4": ["MacBook Pro (16-inch, 2019, AMD Radeon Pro 5600M)"],
"MacBookPro17,1": ["MacBook Pro (13-inch, 2020, M1)"],
"MacBookPro18,1": ["MacBook Pro (16-inch, 2021, M1 Pro)"],
"MacBookPro18,2": ["MacBook Pro (16-inch, 2021, M1 Max)"],
"MacBookPro18,3": ["MacBook Pro (14-inch, 2021, M1 Pro)"],
"MacBookPro18,4": ["MacBook Pro (14-inch, 2021, M1 Max)"],
"Mac14,7": ["MacBook Pro (13-inch, 2022, M2)"],
"Macmini3,1": ["Mac mini (Late 2009)", "Mac mini (Early 2009)"],
"Macmini4,1": ["Mac mini (Mid 2010)"],
"Macmini5,1": ["Mac mini (Mid 2011)"],
"Macmini5,2": ["Mac mini (Mid 2011, Intel Core i7)"],
"Macmini5,3": ["Mac mini (Mid 2011, Server)"],
"Macmini6,1": ["Mac mini (Late 2012)"],
"Macmini6,2": ["Mac mini (Late 2012, 1TB)"],
"Macmini7,1": ["Mac mini (Late 2014)"],
"Macmini8,1": ["Mac mini (2018)"],
"Macmini9,1": ["Mac mini (M1, 2020)"],
"MacPro7,1": ["Mac Pro (2019)", "Mac Pro (Rack, 2019)"],
"MacPro6,1": ["Mac Pro (Late 2013)"],
"MacPro5,1": [
"Mac Pro (Mid 2012)",
"Mac Pro Server (Mid 2012)",
"Mac Pro (Mid 2010)",
"Mac Pro Server (Mid 2010)",
],
"MacPro4,1": ["Mac Pro (Early 2009)"],
"Mac13,1": ["Mac Studio (2022, M1 Max)"],
"Mac13,2": ["Mac Studio (2022, M1 Ultra)"],
} as const;
/**
* A type that maps device name to device identifier.
*/
export type Devices = typeof devices;
/**
* An exclusive union of device names. Only currently known device names
* can be assigned to this type.
*
* Most of the time, `AnyDeviceName` is a better fit as it also allows
* any string to be assigned to it.
*/
export type DeviceName = keyof typeof devices;
/**
* An exclusive union of device identifiers. Only currently known identifiers
* can be assigned to this type.
*
* Most of the time, `AnyIdentifier` is a better fit as it also allows
* any string to be assigned to it.
*/
export type Identifier = keyof typeof identifiers;
// All strings can be assigned to `string & {}`, but because it's a distinct
// type from `string`, the compiler can't simplify the type.
// deno-lint-ignore ban-types
type StringSuggestions<T extends string> = T | (string & {});
/**
* A union of device identifiers. Any string can be assigned to this
* type, which allows for future identifiers that were unknown at the time this
* list was created.
*/
export type AnyIdentifier = StringSuggestions<Identifier>;
/**
* A union of device names. Any string can be assigned to this
* type, which allows for future devices that were unknown at the time this
* list was created.
*/
export type AnyDeviceName = StringSuggestions<DeviceName>;