@nice2dev/i18n 1.0.10 → 1.0.12
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.
- package/dist/index.cjs +4 -4
- package/dist/index.d.ts +11 -0
- package/dist/index.mjs +438 -379
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as B } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo as w, useContext as N, createContext as I, useEffect as L, useState as P, useCallback as
|
|
2
|
+
import { useMemo as w, useContext as N, createContext as I, useEffect as L, useState as P, useCallback as ee } from "react";
|
|
3
3
|
const j = [
|
|
4
4
|
"en",
|
|
5
5
|
"pl",
|
|
@@ -40,7 +40,7 @@ const j = [
|
|
|
40
40
|
// Filipino
|
|
41
41
|
"ms"
|
|
42
42
|
// Malay
|
|
43
|
-
],
|
|
43
|
+
], Ce = {
|
|
44
44
|
// ── Global / Generic ──
|
|
45
45
|
ok: "OK",
|
|
46
46
|
cancel: "Cancel",
|
|
@@ -601,7 +601,7 @@ const j = [
|
|
|
601
601
|
"noCode.codePreview.format": "Format Code",
|
|
602
602
|
"noCode.codePreview.linesChanged": "Lines Changed",
|
|
603
603
|
"noCode.codePreview.noChanges": "No Changes"
|
|
604
|
-
},
|
|
604
|
+
}, ye = {
|
|
605
605
|
ok: "OK",
|
|
606
606
|
cancel: "Anuluj",
|
|
607
607
|
save: "Zapisz",
|
|
@@ -1123,7 +1123,7 @@ const j = [
|
|
|
1123
1123
|
"noCode.codePreview.format": "Formatuj kod",
|
|
1124
1124
|
"noCode.codePreview.linesChanged": "Zmienione linie",
|
|
1125
1125
|
"noCode.codePreview.noChanges": "Brak zmian"
|
|
1126
|
-
},
|
|
1126
|
+
}, Ee = {
|
|
1127
1127
|
ok: "OK",
|
|
1128
1128
|
cancel: "Abbrechen",
|
|
1129
1129
|
save: "Speichern",
|
|
@@ -1645,7 +1645,7 @@ const j = [
|
|
|
1645
1645
|
"noCode.codePreview.format": "Code formatieren",
|
|
1646
1646
|
"noCode.codePreview.linesChanged": "Geänderte Zeilen",
|
|
1647
1647
|
"noCode.codePreview.noChanges": "Keine Änderungen"
|
|
1648
|
-
},
|
|
1648
|
+
}, Se = {
|
|
1649
1649
|
ok: "OK",
|
|
1650
1650
|
cancel: "Annuler",
|
|
1651
1651
|
save: "Enregistrer",
|
|
@@ -2167,7 +2167,7 @@ const j = [
|
|
|
2167
2167
|
"noCode.codePreview.format": "Formater le code",
|
|
2168
2168
|
"noCode.codePreview.linesChanged": "Lignes modifiées",
|
|
2169
2169
|
"noCode.codePreview.noChanges": "Aucune modification"
|
|
2170
|
-
},
|
|
2170
|
+
}, ze = {
|
|
2171
2171
|
ok: "OK",
|
|
2172
2172
|
cancel: "Cancelar",
|
|
2173
2173
|
save: "Guardar",
|
|
@@ -2530,7 +2530,7 @@ const j = [
|
|
|
2530
2530
|
"wm.minimizeAll": "Minimizar todo",
|
|
2531
2531
|
"wm.newWindow": "Nueva ventana",
|
|
2532
2532
|
"wm.moveToFront": "Al frente"
|
|
2533
|
-
},
|
|
2533
|
+
}, De = {
|
|
2534
2534
|
ok: "OK",
|
|
2535
2535
|
cancel: "Annulla",
|
|
2536
2536
|
save: "Salva",
|
|
@@ -2644,7 +2644,7 @@ const j = [
|
|
|
2644
2644
|
"lang.ko": "Coreano",
|
|
2645
2645
|
"lang.zh": "Cinese",
|
|
2646
2646
|
"lang.ar": "Arabo"
|
|
2647
|
-
},
|
|
2647
|
+
}, Ae = {
|
|
2648
2648
|
ok: "OK",
|
|
2649
2649
|
cancel: "Cancelar",
|
|
2650
2650
|
save: "Salvar",
|
|
@@ -3007,7 +3007,7 @@ const j = [
|
|
|
3007
3007
|
"wm.minimizeAll": "Minimizar todos",
|
|
3008
3008
|
"wm.newWindow": "Nova janela",
|
|
3009
3009
|
"wm.moveToFront": "Trazer para frente"
|
|
3010
|
-
},
|
|
3010
|
+
}, xe = {
|
|
3011
3011
|
ok: "OK",
|
|
3012
3012
|
cancel: "Annuleren",
|
|
3013
3013
|
save: "Opslaan",
|
|
@@ -3092,7 +3092,7 @@ const j = [
|
|
|
3092
3092
|
"lang.ko": "Koreaans",
|
|
3093
3093
|
"lang.zh": "Chinees",
|
|
3094
3094
|
"lang.ar": "Arabisch"
|
|
3095
|
-
},
|
|
3095
|
+
}, Te = {
|
|
3096
3096
|
ok: "OK",
|
|
3097
3097
|
cancel: "Avbryt",
|
|
3098
3098
|
save: "Spara",
|
|
@@ -3162,7 +3162,7 @@ const j = [
|
|
|
3162
3162
|
"lang.ko": "Koreanska",
|
|
3163
3163
|
"lang.zh": "Kinesiska",
|
|
3164
3164
|
"lang.ar": "Arabiska"
|
|
3165
|
-
},
|
|
3165
|
+
}, Pe = {
|
|
3166
3166
|
ok: "OK",
|
|
3167
3167
|
cancel: "Avbryt",
|
|
3168
3168
|
save: "Lagre",
|
|
@@ -3225,7 +3225,7 @@ const j = [
|
|
|
3225
3225
|
"lang.ko": "Koreansk",
|
|
3226
3226
|
"lang.zh": "Kinesisk",
|
|
3227
3227
|
"lang.ar": "Arabisk"
|
|
3228
|
-
},
|
|
3228
|
+
}, je = {
|
|
3229
3229
|
ok: "OK",
|
|
3230
3230
|
cancel: "Annuller",
|
|
3231
3231
|
save: "Gem",
|
|
@@ -3288,7 +3288,7 @@ const j = [
|
|
|
3288
3288
|
"lang.ko": "Koreansk",
|
|
3289
3289
|
"lang.zh": "Kinesisk",
|
|
3290
3290
|
"lang.ar": "Arabisk"
|
|
3291
|
-
},
|
|
3291
|
+
}, Ne = {
|
|
3292
3292
|
ok: "OK",
|
|
3293
3293
|
cancel: "Peruuta",
|
|
3294
3294
|
save: "Tallenna",
|
|
@@ -3351,7 +3351,7 @@ const j = [
|
|
|
3351
3351
|
"lang.ko": "Korea",
|
|
3352
3352
|
"lang.zh": "Kiina",
|
|
3353
3353
|
"lang.ar": "Arabia"
|
|
3354
|
-
},
|
|
3354
|
+
}, Fe = {
|
|
3355
3355
|
ok: "OK",
|
|
3356
3356
|
cancel: "Zrušit",
|
|
3357
3357
|
save: "Uložit",
|
|
@@ -3714,7 +3714,7 @@ const j = [
|
|
|
3714
3714
|
"wm.minimizeAll": "Minimalizovat vše",
|
|
3715
3715
|
"wm.newWindow": "Nové okno",
|
|
3716
3716
|
"wm.moveToFront": "Přenést dopředu"
|
|
3717
|
-
},
|
|
3717
|
+
}, Me = {
|
|
3718
3718
|
ok: "OK",
|
|
3719
3719
|
cancel: "Zrušiť",
|
|
3720
3720
|
save: "Uložiť",
|
|
@@ -3777,7 +3777,7 @@ const j = [
|
|
|
3777
3777
|
"lang.ko": "Kórejčina",
|
|
3778
3778
|
"lang.zh": "Čínština",
|
|
3779
3779
|
"lang.ar": "Arabčina"
|
|
3780
|
-
},
|
|
3780
|
+
}, Oe = {
|
|
3781
3781
|
ok: "OK",
|
|
3782
3782
|
cancel: "Mégse",
|
|
3783
3783
|
save: "Mentés",
|
|
@@ -3840,7 +3840,7 @@ const j = [
|
|
|
3840
3840
|
"lang.ko": "Koreai",
|
|
3841
3841
|
"lang.zh": "Kínai",
|
|
3842
3842
|
"lang.ar": "Arab"
|
|
3843
|
-
},
|
|
3843
|
+
}, Re = {
|
|
3844
3844
|
ok: "OK",
|
|
3845
3845
|
cancel: "Anulare",
|
|
3846
3846
|
save: "Salvare",
|
|
@@ -3895,7 +3895,7 @@ const j = [
|
|
|
3895
3895
|
"lang.ko": "Coreeană",
|
|
3896
3896
|
"lang.zh": "Chineză",
|
|
3897
3897
|
"lang.ar": "Arabă"
|
|
3898
|
-
},
|
|
3898
|
+
}, Le = {
|
|
3899
3899
|
ok: "OK",
|
|
3900
3900
|
cancel: "Отказ",
|
|
3901
3901
|
save: "Запис",
|
|
@@ -3950,7 +3950,7 @@ const j = [
|
|
|
3950
3950
|
"lang.ko": "Корейски",
|
|
3951
3951
|
"lang.zh": "Китайски",
|
|
3952
3952
|
"lang.ar": "Арабски"
|
|
3953
|
-
},
|
|
3953
|
+
}, Be = {
|
|
3954
3954
|
ok: "OK",
|
|
3955
3955
|
cancel: "Скасувати",
|
|
3956
3956
|
save: "Зберегти",
|
|
@@ -4313,7 +4313,7 @@ const j = [
|
|
|
4313
4313
|
"wm.minimizeAll": "Згорнути всі",
|
|
4314
4314
|
"wm.newWindow": "Нове вікно",
|
|
4315
4315
|
"wm.moveToFront": "На передній план"
|
|
4316
|
-
},
|
|
4316
|
+
}, Ie = {
|
|
4317
4317
|
ok: "OK",
|
|
4318
4318
|
cancel: "キャンセル",
|
|
4319
4319
|
save: "保存",
|
|
@@ -4676,7 +4676,7 @@ const j = [
|
|
|
4676
4676
|
"wm.minimizeAll": "すべて最小化",
|
|
4677
4677
|
"wm.newWindow": "新しいウィンドウ",
|
|
4678
4678
|
"wm.moveToFront": "最前面に移動"
|
|
4679
|
-
},
|
|
4679
|
+
}, Ue = {
|
|
4680
4680
|
ok: "확인",
|
|
4681
4681
|
cancel: "취소",
|
|
4682
4682
|
save: "저장",
|
|
@@ -5039,7 +5039,7 @@ const j = [
|
|
|
5039
5039
|
"wm.minimizeAll": "모두 최소화",
|
|
5040
5040
|
"wm.newWindow": "새 창",
|
|
5041
5041
|
"wm.moveToFront": "맨 앞으로"
|
|
5042
|
-
},
|
|
5042
|
+
}, We = {
|
|
5043
5043
|
ok: "确定",
|
|
5044
5044
|
cancel: "取消",
|
|
5045
5045
|
save: "保存",
|
|
@@ -5402,7 +5402,7 @@ const j = [
|
|
|
5402
5402
|
"wm.minimizeAll": "最小化全部",
|
|
5403
5403
|
"wm.newWindow": "新建窗口",
|
|
5404
5404
|
"wm.moveToFront": "置于最前"
|
|
5405
|
-
},
|
|
5405
|
+
}, He = {
|
|
5406
5406
|
ok: "حسناً",
|
|
5407
5407
|
cancel: "إلغاء",
|
|
5408
5408
|
save: "حفظ",
|
|
@@ -5765,7 +5765,7 @@ const j = [
|
|
|
5765
5765
|
"wm.minimizeAll": "تصغير الكل",
|
|
5766
5766
|
"wm.newWindow": "نافذة جديدة",
|
|
5767
5767
|
"wm.moveToFront": "نقل إلى الأمام"
|
|
5768
|
-
},
|
|
5768
|
+
}, Ke = {
|
|
5769
5769
|
ok: "ठीक है",
|
|
5770
5770
|
cancel: "रद्द करें",
|
|
5771
5771
|
save: "सहेजें",
|
|
@@ -5776,7 +5776,7 @@ const j = [
|
|
|
5776
5776
|
error: "त्रुटि",
|
|
5777
5777
|
success: "सफलता",
|
|
5778
5778
|
search: "खोजें"
|
|
5779
|
-
},
|
|
5779
|
+
}, Ve = {
|
|
5780
5780
|
ok: "ঠিক আছে",
|
|
5781
5781
|
cancel: "বাতিল",
|
|
5782
5782
|
save: "সংরক্ষণ",
|
|
@@ -5787,7 +5787,7 @@ const j = [
|
|
|
5787
5787
|
error: "ত্রুটি",
|
|
5788
5788
|
success: "সফল",
|
|
5789
5789
|
search: "অনুসন্ধান"
|
|
5790
|
-
},
|
|
5790
|
+
}, Ze = {
|
|
5791
5791
|
ok: "ตกลง",
|
|
5792
5792
|
cancel: "ยกเลิก",
|
|
5793
5793
|
save: "บันทึก",
|
|
@@ -5798,7 +5798,7 @@ const j = [
|
|
|
5798
5798
|
error: "ข้อผิดพลาด",
|
|
5799
5799
|
success: "สำเร็จ",
|
|
5800
5800
|
search: "ค้นหา"
|
|
5801
|
-
},
|
|
5801
|
+
}, qe = {
|
|
5802
5802
|
ok: "OK",
|
|
5803
5803
|
cancel: "Hủy",
|
|
5804
5804
|
save: "Lưu",
|
|
@@ -5809,7 +5809,7 @@ const j = [
|
|
|
5809
5809
|
error: "Lỗi",
|
|
5810
5810
|
success: "Thành công",
|
|
5811
5811
|
search: "Tìm kiếm"
|
|
5812
|
-
},
|
|
5812
|
+
}, Ge = {
|
|
5813
5813
|
ok: "OK",
|
|
5814
5814
|
cancel: "Batal",
|
|
5815
5815
|
save: "Simpan",
|
|
@@ -5820,7 +5820,7 @@ const j = [
|
|
|
5820
5820
|
error: "Kesalahan",
|
|
5821
5821
|
success: "Berhasil",
|
|
5822
5822
|
search: "Cari"
|
|
5823
|
-
},
|
|
5823
|
+
}, $e = {
|
|
5824
5824
|
ok: "Sawa",
|
|
5825
5825
|
cancel: "Ghairi",
|
|
5826
5826
|
save: "Hifadhi",
|
|
@@ -5831,7 +5831,7 @@ const j = [
|
|
|
5831
5831
|
error: "Hitilafu",
|
|
5832
5832
|
success: "Imefanikiwa",
|
|
5833
5833
|
search: "Tafuta"
|
|
5834
|
-
},
|
|
5834
|
+
}, Je = {
|
|
5835
5835
|
ok: "OK",
|
|
5836
5836
|
cancel: "Kanselahin",
|
|
5837
5837
|
save: "I-save",
|
|
@@ -5842,7 +5842,7 @@ const j = [
|
|
|
5842
5842
|
error: "Error",
|
|
5843
5843
|
success: "Tagumpay",
|
|
5844
5844
|
search: "Maghanap"
|
|
5845
|
-
},
|
|
5845
|
+
}, _e = {
|
|
5846
5846
|
ok: "OK",
|
|
5847
5847
|
cancel: "Batal",
|
|
5848
5848
|
save: "Simpan",
|
|
@@ -5854,37 +5854,93 @@ const j = [
|
|
|
5854
5854
|
success: "Berjaya",
|
|
5855
5855
|
search: "Cari"
|
|
5856
5856
|
}, v = {
|
|
5857
|
-
en:
|
|
5858
|
-
pl:
|
|
5859
|
-
de:
|
|
5860
|
-
fr:
|
|
5861
|
-
es:
|
|
5862
|
-
it:
|
|
5863
|
-
pt:
|
|
5864
|
-
nl:
|
|
5865
|
-
sv:
|
|
5866
|
-
no:
|
|
5867
|
-
da:
|
|
5868
|
-
fi:
|
|
5869
|
-
cs:
|
|
5870
|
-
sk:
|
|
5871
|
-
hu:
|
|
5872
|
-
ro:
|
|
5873
|
-
bg:
|
|
5874
|
-
uk:
|
|
5875
|
-
ja:
|
|
5876
|
-
ko:
|
|
5877
|
-
zh:
|
|
5878
|
-
ar:
|
|
5879
|
-
hi:
|
|
5880
|
-
bn:
|
|
5881
|
-
th:
|
|
5882
|
-
vi:
|
|
5883
|
-
id:
|
|
5884
|
-
sw:
|
|
5885
|
-
fil:
|
|
5886
|
-
ms:
|
|
5887
|
-
},
|
|
5857
|
+
en: Ce,
|
|
5858
|
+
pl: ye,
|
|
5859
|
+
de: Ee,
|
|
5860
|
+
fr: Se,
|
|
5861
|
+
es: ze,
|
|
5862
|
+
it: De,
|
|
5863
|
+
pt: Ae,
|
|
5864
|
+
nl: xe,
|
|
5865
|
+
sv: Te,
|
|
5866
|
+
no: Pe,
|
|
5867
|
+
da: je,
|
|
5868
|
+
fi: Ne,
|
|
5869
|
+
cs: Fe,
|
|
5870
|
+
sk: Me,
|
|
5871
|
+
hu: Oe,
|
|
5872
|
+
ro: Re,
|
|
5873
|
+
bg: Le,
|
|
5874
|
+
uk: Be,
|
|
5875
|
+
ja: Ie,
|
|
5876
|
+
ko: Ue,
|
|
5877
|
+
zh: We,
|
|
5878
|
+
ar: He,
|
|
5879
|
+
hi: Ke,
|
|
5880
|
+
bn: Ve,
|
|
5881
|
+
th: Ze,
|
|
5882
|
+
vi: qe,
|
|
5883
|
+
id: Ge,
|
|
5884
|
+
sw: $e,
|
|
5885
|
+
fil: Je,
|
|
5886
|
+
ms: _e
|
|
5887
|
+
}, J = {
|
|
5888
|
+
save: "Zapisz",
|
|
5889
|
+
cancel: "Anuluj",
|
|
5890
|
+
ok: "OK",
|
|
5891
|
+
delete: "Usuń",
|
|
5892
|
+
edit: "Edytuj",
|
|
5893
|
+
add: "Dodaj",
|
|
5894
|
+
remove: "Usuń",
|
|
5895
|
+
search: "Wyszukaj",
|
|
5896
|
+
loading: "Ładowanie…",
|
|
5897
|
+
confirm: "Proszę potwierdzić",
|
|
5898
|
+
back: "Wstecz",
|
|
5899
|
+
next: "Dalej",
|
|
5900
|
+
previous: "Poprzedni",
|
|
5901
|
+
finish: "Zakończ",
|
|
5902
|
+
submit: "Prześlij",
|
|
5903
|
+
reset: "Wyczyść",
|
|
5904
|
+
apply: "Zastosuj",
|
|
5905
|
+
yes: "Tak",
|
|
5906
|
+
no: "Nie",
|
|
5907
|
+
"form.requiredField": "To pole jest wymagane.",
|
|
5908
|
+
"form.invalidValue": "Proszę podać prawidłową wartość.",
|
|
5909
|
+
"auth.signIn": "Proszę się zalogować",
|
|
5910
|
+
"auth.signOut": "Proszę się wylogować"
|
|
5911
|
+
}, _ = {
|
|
5912
|
+
save: "Zapisz",
|
|
5913
|
+
cancel: "Anuluj",
|
|
5914
|
+
ok: "OK",
|
|
5915
|
+
delete: "Skasuj",
|
|
5916
|
+
edit: "Zmień",
|
|
5917
|
+
add: "Dodaj",
|
|
5918
|
+
remove: "Wyrzuć",
|
|
5919
|
+
search: "Szukaj",
|
|
5920
|
+
loading: "Ładuję…",
|
|
5921
|
+
confirm: "Potwierdź",
|
|
5922
|
+
back: "Cofnij",
|
|
5923
|
+
next: "Dalej",
|
|
5924
|
+
previous: "Poprzedni",
|
|
5925
|
+
finish: "Skończ",
|
|
5926
|
+
submit: "Wyślij",
|
|
5927
|
+
reset: "Wyczyść",
|
|
5928
|
+
apply: "Zatwierdź",
|
|
5929
|
+
yes: "Tak",
|
|
5930
|
+
no: "Nie",
|
|
5931
|
+
"form.requiredField": "Wypełnij to pole.",
|
|
5932
|
+
"form.invalidValue": "Wpisz prawidłową wartość.",
|
|
5933
|
+
"auth.signIn": "Zaloguj się",
|
|
5934
|
+
"auth.signOut": "Wyloguj się"
|
|
5935
|
+
}, Ye = {
|
|
5936
|
+
"pl-PL": { formal: J, informal: _ },
|
|
5937
|
+
pl: { formal: J, informal: _ }
|
|
5938
|
+
};
|
|
5939
|
+
function qo(e) {
|
|
5940
|
+
var o;
|
|
5941
|
+
return { ...v.pl, ...((o = Ye.pl) == null ? void 0 : o[e]) ?? {} };
|
|
5942
|
+
}
|
|
5943
|
+
const Qe = (e, o) => o, oe = I(Qe), Go = ({
|
|
5888
5944
|
t: e,
|
|
5889
5945
|
lang: o = "en",
|
|
5890
5946
|
overrides: t,
|
|
@@ -5896,16 +5952,16 @@ const j = [
|
|
|
5896
5952
|
const r = v[o] ?? v.en, i = t ? { ...r, ...t } : r;
|
|
5897
5953
|
return (s, l) => i[s] ?? l;
|
|
5898
5954
|
}, [e, o, t]);
|
|
5899
|
-
return /* @__PURE__ */ B(
|
|
5955
|
+
return /* @__PURE__ */ B(oe.Provider, { value: n, children: a });
|
|
5900
5956
|
};
|
|
5901
|
-
function
|
|
5902
|
-
return { t: N(
|
|
5957
|
+
function $o() {
|
|
5958
|
+
return { t: N(oe) };
|
|
5903
5959
|
}
|
|
5904
|
-
function
|
|
5960
|
+
function Jo(e = "en", o) {
|
|
5905
5961
|
const t = v[e] ?? v.en, a = o ? { ...t, ...o } : t;
|
|
5906
5962
|
return (n, r) => a[n] ?? r;
|
|
5907
5963
|
}
|
|
5908
|
-
function
|
|
5964
|
+
function _o(e, o = {}) {
|
|
5909
5965
|
let t = e.replace(/\{(\w+)\}/g, (a, n) => {
|
|
5910
5966
|
const r = o[n];
|
|
5911
5967
|
return r !== void 0 ? String(r) : a;
|
|
@@ -5918,17 +5974,17 @@ function qo(e, o = {}) {
|
|
|
5918
5974
|
}
|
|
5919
5975
|
), t;
|
|
5920
5976
|
}
|
|
5921
|
-
function
|
|
5977
|
+
function Xe(e) {
|
|
5922
5978
|
return j.includes(e);
|
|
5923
5979
|
}
|
|
5924
|
-
function
|
|
5980
|
+
function Yo() {
|
|
5925
5981
|
var o;
|
|
5926
5982
|
if (typeof navigator > "u")
|
|
5927
5983
|
return "en";
|
|
5928
5984
|
const e = (o = navigator.language) == null ? void 0 : o.split("-")[0];
|
|
5929
|
-
return
|
|
5985
|
+
return Xe(e) ? e : "en";
|
|
5930
5986
|
}
|
|
5931
|
-
function
|
|
5987
|
+
function ae(e, o) {
|
|
5932
5988
|
var r;
|
|
5933
5989
|
const t = Math.abs(e), a = Math.floor(t), n = e.toString().includes(".") && ((r = e.toString().split(".")[1]) == null ? void 0 : r.length) || 0;
|
|
5934
5990
|
switch (n > 0 && parseInt(e.toString().split(".")[1] || "0", 10), o) {
|
|
@@ -5991,7 +6047,7 @@ function ee(e, o) {
|
|
|
5991
6047
|
return a === 1 && n === 0 ? "one" : "other";
|
|
5992
6048
|
}
|
|
5993
6049
|
}
|
|
5994
|
-
function
|
|
6050
|
+
function te(e, o) {
|
|
5995
6051
|
switch (o) {
|
|
5996
6052
|
// ── English ────────────────────────────────────────────
|
|
5997
6053
|
case "en":
|
|
@@ -6025,7 +6081,7 @@ function oe(e, o) {
|
|
|
6025
6081
|
return "other";
|
|
6026
6082
|
}
|
|
6027
6083
|
}
|
|
6028
|
-
function
|
|
6084
|
+
function eo(e) {
|
|
6029
6085
|
var n;
|
|
6030
6086
|
if (e = e.trim(), !e.includes(","))
|
|
6031
6087
|
return { type: "simple", name: e };
|
|
@@ -6045,7 +6101,7 @@ function Ye(e) {
|
|
|
6045
6101
|
}
|
|
6046
6102
|
return { type: "simple", name: t };
|
|
6047
6103
|
}
|
|
6048
|
-
function
|
|
6104
|
+
function oo(e, o, t) {
|
|
6049
6105
|
const a = {};
|
|
6050
6106
|
switch (t) {
|
|
6051
6107
|
case "currency":
|
|
@@ -6060,7 +6116,7 @@ function Qe(e, o, t) {
|
|
|
6060
6116
|
}
|
|
6061
6117
|
return new Intl.NumberFormat(o, a).format(e);
|
|
6062
6118
|
}
|
|
6063
|
-
function
|
|
6119
|
+
function ao(e, o, t) {
|
|
6064
6120
|
const a = e instanceof Date ? e : new Date(e);
|
|
6065
6121
|
let n;
|
|
6066
6122
|
switch (t) {
|
|
@@ -6080,7 +6136,7 @@ function Xe(e, o, t) {
|
|
|
6080
6136
|
}
|
|
6081
6137
|
return new Intl.DateTimeFormat(o, n).format(a);
|
|
6082
6138
|
}
|
|
6083
|
-
function
|
|
6139
|
+
function to(e, o, t) {
|
|
6084
6140
|
const a = e instanceof Date ? e : new Date(e);
|
|
6085
6141
|
let n;
|
|
6086
6142
|
switch (t) {
|
|
@@ -6100,13 +6156,13 @@ function eo(e, o, t) {
|
|
|
6100
6156
|
}
|
|
6101
6157
|
return new Intl.DateTimeFormat(o, n).format(a);
|
|
6102
6158
|
}
|
|
6103
|
-
function
|
|
6159
|
+
function W(e, o, t) {
|
|
6104
6160
|
return e.replace(/#/g, String(t));
|
|
6105
6161
|
}
|
|
6106
|
-
function
|
|
6162
|
+
function no(e, o = {}, t = {}) {
|
|
6107
6163
|
const a = t.lang || "en", n = t.locale || a, r = /\{([^{}]*(?:\{[^{}]*\}[^{}]*)*)\}/g;
|
|
6108
6164
|
return e.replace(r, (i, s) => {
|
|
6109
|
-
const l =
|
|
6165
|
+
const l = eo(s);
|
|
6110
6166
|
if (!l)
|
|
6111
6167
|
return i;
|
|
6112
6168
|
const d = o[l.name];
|
|
@@ -6116,52 +6172,52 @@ function oo(e, o = {}, t = {}) {
|
|
|
6116
6172
|
case "simple":
|
|
6117
6173
|
return String(d);
|
|
6118
6174
|
case "number":
|
|
6119
|
-
return typeof d != "number" ? i :
|
|
6175
|
+
return typeof d != "number" ? i : oo(d, n, l.style);
|
|
6120
6176
|
case "date":
|
|
6121
|
-
return
|
|
6177
|
+
return ao(d, n, l.style);
|
|
6122
6178
|
case "time":
|
|
6123
|
-
return
|
|
6179
|
+
return to(d, n, l.style);
|
|
6124
6180
|
case "plural": {
|
|
6125
6181
|
if (typeof d != "number" || !l.options)
|
|
6126
6182
|
return i;
|
|
6127
|
-
const m =
|
|
6128
|
-
return
|
|
6183
|
+
const m = ae(d, a), f = `=${d}`, u = l.options[f] ?? l.options[m] ?? l.options.other ?? "";
|
|
6184
|
+
return W(u, l.name, d);
|
|
6129
6185
|
}
|
|
6130
6186
|
case "selectordinal": {
|
|
6131
6187
|
if (typeof d != "number" || !l.options)
|
|
6132
6188
|
return i;
|
|
6133
|
-
const m =
|
|
6134
|
-
return
|
|
6189
|
+
const m = te(d, a), f = l.options[m] ?? l.options.other ?? "";
|
|
6190
|
+
return W(f, l.name, d);
|
|
6135
6191
|
}
|
|
6136
6192
|
case "select": {
|
|
6137
6193
|
if (!l.options)
|
|
6138
6194
|
return i;
|
|
6139
6195
|
const m = l.options[String(d)] ?? l.options.other ?? "";
|
|
6140
|
-
return
|
|
6196
|
+
return W(m, l.name, d);
|
|
6141
6197
|
}
|
|
6142
6198
|
default:
|
|
6143
6199
|
return i;
|
|
6144
6200
|
}
|
|
6145
6201
|
});
|
|
6146
6202
|
}
|
|
6147
|
-
function
|
|
6203
|
+
function Qo(e, o = "en") {
|
|
6148
6204
|
return function(a, n, r) {
|
|
6149
6205
|
const i = e[a] ?? n;
|
|
6150
|
-
return r ?
|
|
6206
|
+
return r ? no(i, r, { lang: o }) : i;
|
|
6151
6207
|
};
|
|
6152
6208
|
}
|
|
6153
|
-
function
|
|
6154
|
-
const a =
|
|
6209
|
+
function Xo(e, o, t = "en") {
|
|
6210
|
+
const a = ae(e, t);
|
|
6155
6211
|
return (o[a] ?? o.other).replace(/#/g, String(e));
|
|
6156
6212
|
}
|
|
6157
|
-
function
|
|
6158
|
-
const a =
|
|
6213
|
+
function ea(e, o, t = "en") {
|
|
6214
|
+
const a = te(e, t);
|
|
6159
6215
|
return (o[a] ?? o.other).replace(/#/g, String(e));
|
|
6160
6216
|
}
|
|
6161
|
-
function
|
|
6217
|
+
function oa(e, o) {
|
|
6162
6218
|
return o[e] ?? o.other;
|
|
6163
6219
|
}
|
|
6164
|
-
const
|
|
6220
|
+
const ro = [
|
|
6165
6221
|
"ar",
|
|
6166
6222
|
// Arabic
|
|
6167
6223
|
"he",
|
|
@@ -6175,28 +6231,28 @@ const ao = [
|
|
|
6175
6231
|
"ps"
|
|
6176
6232
|
// Pashto
|
|
6177
6233
|
];
|
|
6178
|
-
function
|
|
6179
|
-
return
|
|
6234
|
+
function ne(e) {
|
|
6235
|
+
return ro.includes(e);
|
|
6180
6236
|
}
|
|
6181
|
-
function
|
|
6182
|
-
return
|
|
6237
|
+
function io(e) {
|
|
6238
|
+
return ne(e) ? "rtl" : "ltr";
|
|
6183
6239
|
}
|
|
6184
|
-
function
|
|
6240
|
+
function so(e) {
|
|
6185
6241
|
if (typeof document > "u")
|
|
6186
6242
|
return;
|
|
6187
|
-
const o =
|
|
6243
|
+
const o = io(e);
|
|
6188
6244
|
document.documentElement.setAttribute("dir", o), document.documentElement.setAttribute("lang", e);
|
|
6189
6245
|
}
|
|
6190
|
-
function
|
|
6246
|
+
function aa() {
|
|
6191
6247
|
return typeof document > "u" ? "ltr" : document.documentElement.getAttribute("dir") || "ltr";
|
|
6192
6248
|
}
|
|
6193
|
-
function
|
|
6249
|
+
function lo(e, o) {
|
|
6194
6250
|
return o ? e.rtl : e.ltr;
|
|
6195
6251
|
}
|
|
6196
|
-
function
|
|
6252
|
+
function ta(e) {
|
|
6197
6253
|
return e === "left" ? "right" : "left";
|
|
6198
6254
|
}
|
|
6199
|
-
function
|
|
6255
|
+
function co(e, o) {
|
|
6200
6256
|
return o && {
|
|
6201
6257
|
left: "right",
|
|
6202
6258
|
right: "left",
|
|
@@ -6206,7 +6262,7 @@ function io(e, o) {
|
|
|
6206
6262
|
"flex-end": "flex-start"
|
|
6207
6263
|
}[e] || e;
|
|
6208
6264
|
}
|
|
6209
|
-
function
|
|
6265
|
+
function mo(e) {
|
|
6210
6266
|
return {
|
|
6211
6267
|
// Margins
|
|
6212
6268
|
"margin-left": "margin-inline-start",
|
|
@@ -6241,33 +6297,33 @@ const q = I({
|
|
|
6241
6297
|
isRTL: !1,
|
|
6242
6298
|
flip: (e) => e,
|
|
6243
6299
|
value: (e) => e.ltr
|
|
6244
|
-
}),
|
|
6300
|
+
}), na = ({
|
|
6245
6301
|
lang: e,
|
|
6246
6302
|
autoSetDocument: o = !0,
|
|
6247
6303
|
children: t
|
|
6248
6304
|
}) => {
|
|
6249
|
-
const a =
|
|
6305
|
+
const a = ne(e), n = a ? "rtl" : "ltr";
|
|
6250
6306
|
L(() => {
|
|
6251
|
-
o &&
|
|
6307
|
+
o && so(e);
|
|
6252
6308
|
}, [e, o]);
|
|
6253
6309
|
const r = w(
|
|
6254
6310
|
() => ({
|
|
6255
6311
|
dir: n,
|
|
6256
6312
|
isRTL: a,
|
|
6257
|
-
flip: (i) =>
|
|
6258
|
-
value: (i) =>
|
|
6313
|
+
flip: (i) => co(i, a),
|
|
6314
|
+
value: (i) => lo(i, a)
|
|
6259
6315
|
}),
|
|
6260
6316
|
[n, a]
|
|
6261
6317
|
);
|
|
6262
6318
|
return /* @__PURE__ */ B(q.Provider, { value: r, children: t });
|
|
6263
6319
|
};
|
|
6264
|
-
function
|
|
6320
|
+
function ra() {
|
|
6265
6321
|
return N(q);
|
|
6266
6322
|
}
|
|
6267
|
-
function
|
|
6323
|
+
function ia() {
|
|
6268
6324
|
return N(q).isRTL;
|
|
6269
6325
|
}
|
|
6270
|
-
function
|
|
6326
|
+
function sa(e) {
|
|
6271
6327
|
const o = [], t = [
|
|
6272
6328
|
"left",
|
|
6273
6329
|
"right",
|
|
@@ -6279,10 +6335,10 @@ function ta(e) {
|
|
|
6279
6335
|
"border-right"
|
|
6280
6336
|
];
|
|
6281
6337
|
for (const [a, n] of Object.entries(e))
|
|
6282
|
-
t.includes(a) && o.push(`Use logical property instead of '${a}' → '${
|
|
6338
|
+
t.includes(a) && o.push(`Use logical property instead of '${a}' → '${mo(a)}'`), a === "text-align" && (n === "left" || n === "right") && o.push(`Use 'text-align: start/end' instead of 'text-align: ${n}'`), a === "float" && (n === "left" || n === "right") && o.push(`Use flexbox or grid instead of 'float: ${n}' for RTL support`);
|
|
6283
6339
|
return o;
|
|
6284
6340
|
}
|
|
6285
|
-
const
|
|
6341
|
+
const H = {
|
|
6286
6342
|
// Direction multiplier: 1 for LTR, -1 for RTL
|
|
6287
6343
|
dirMultiplier: "--nice-dir-multiplier",
|
|
6288
6344
|
// Inline start (left in LTR, right in RTL)
|
|
@@ -6290,17 +6346,17 @@ const K = {
|
|
|
6290
6346
|
// Inline end (right in LTR, left in RTL)
|
|
6291
6347
|
inlineEnd: "--nice-inline-end"
|
|
6292
6348
|
};
|
|
6293
|
-
function
|
|
6349
|
+
function la(e) {
|
|
6294
6350
|
return {
|
|
6295
|
-
[
|
|
6296
|
-
[
|
|
6297
|
-
[
|
|
6351
|
+
[H.dirMultiplier]: e ? "-1" : "1",
|
|
6352
|
+
[H.inlineStart]: e ? "right" : "left",
|
|
6353
|
+
[H.inlineEnd]: e ? "left" : "right"
|
|
6298
6354
|
};
|
|
6299
6355
|
}
|
|
6300
|
-
function
|
|
6356
|
+
function da() {
|
|
6301
6357
|
return Object.keys(v.en);
|
|
6302
6358
|
}
|
|
6303
|
-
function
|
|
6359
|
+
function uo(e) {
|
|
6304
6360
|
if (e === "en")
|
|
6305
6361
|
return [];
|
|
6306
6362
|
const o = v.en, t = v[e], a = [];
|
|
@@ -6308,7 +6364,7 @@ function lo(e) {
|
|
|
6308
6364
|
t[n] || a.push({ key: n, englishValue: r });
|
|
6309
6365
|
return a;
|
|
6310
6366
|
}
|
|
6311
|
-
function
|
|
6367
|
+
function po(e) {
|
|
6312
6368
|
const o = Object.keys(v.en).length, t = Object.keys(v[e]).length, a = o - t, n = Math.round(t / o * 100);
|
|
6313
6369
|
return {
|
|
6314
6370
|
lang: e,
|
|
@@ -6318,10 +6374,10 @@ function co(e) {
|
|
|
6318
6374
|
coverage: n
|
|
6319
6375
|
};
|
|
6320
6376
|
}
|
|
6321
|
-
function
|
|
6322
|
-
return j.map((e) =>
|
|
6377
|
+
function go() {
|
|
6378
|
+
return j.map((e) => po(e));
|
|
6323
6379
|
}
|
|
6324
|
-
function
|
|
6380
|
+
function ca(e, o) {
|
|
6325
6381
|
const t = o.map((a) => {
|
|
6326
6382
|
const n = a.translated.replace(/'/g, "\\'");
|
|
6327
6383
|
return ` '${a.key}': '${n}',`;
|
|
@@ -6333,8 +6389,8 @@ ${t.join(`
|
|
|
6333
6389
|
`)}
|
|
6334
6390
|
}`;
|
|
6335
6391
|
}
|
|
6336
|
-
function
|
|
6337
|
-
const e =
|
|
6392
|
+
function ma() {
|
|
6393
|
+
const e = go();
|
|
6338
6394
|
let o = `# Translation Coverage Report
|
|
6339
6395
|
|
|
6340
6396
|
Generated: ${(/* @__PURE__ */ new Date()).toISOString()}
|
|
@@ -6357,7 +6413,7 @@ Generated: ${(/* @__PURE__ */ new Date()).toISOString()}
|
|
|
6357
6413
|
o += `### ${t.lang.toUpperCase()} (${t.coverage}% complete)
|
|
6358
6414
|
|
|
6359
6415
|
`;
|
|
6360
|
-
const a =
|
|
6416
|
+
const a = uo(t.lang);
|
|
6361
6417
|
o += `Missing ${a.length} keys:
|
|
6362
6418
|
|
|
6363
6419
|
`, o += "```\n", o += a.slice(0, 10).map((n) => n.key).join(`
|
|
@@ -6366,7 +6422,7 @@ Generated: ${(/* @__PURE__ */ new Date()).toISOString()}
|
|
|
6366
6422
|
}
|
|
6367
6423
|
return o;
|
|
6368
6424
|
}
|
|
6369
|
-
const
|
|
6425
|
+
const ho = {
|
|
6370
6426
|
en: "en-US",
|
|
6371
6427
|
pl: "pl-PL",
|
|
6372
6428
|
de: "de-DE",
|
|
@@ -6399,9 +6455,9 @@ const uo = {
|
|
|
6399
6455
|
ms: "ms-MY"
|
|
6400
6456
|
};
|
|
6401
6457
|
function D(e) {
|
|
6402
|
-
return
|
|
6458
|
+
return ho[e] ?? "en-US";
|
|
6403
6459
|
}
|
|
6404
|
-
function
|
|
6460
|
+
function fo(e, o = "medium") {
|
|
6405
6461
|
const t = D(e), a = new Intl.DateTimeFormat(t, { dateStyle: o });
|
|
6406
6462
|
return {
|
|
6407
6463
|
format: (n) => a.format(n instanceof Date ? n : new Date(n)),
|
|
@@ -6409,22 +6465,22 @@ function po(e, o = "medium") {
|
|
|
6409
6465
|
const i = n instanceof Date ? n : new Date(n), s = r instanceof Date ? r : new Date(r);
|
|
6410
6466
|
return a.formatRange(i, s);
|
|
6411
6467
|
},
|
|
6412
|
-
formatRelative: (n) =>
|
|
6468
|
+
formatRelative: (n) => bo(n instanceof Date ? n : new Date(n), t)
|
|
6413
6469
|
};
|
|
6414
6470
|
}
|
|
6415
|
-
function
|
|
6416
|
-
return w(() =>
|
|
6471
|
+
function ua(e, o = "medium") {
|
|
6472
|
+
return w(() => fo(e, o), [e, o]);
|
|
6417
6473
|
}
|
|
6418
|
-
function
|
|
6474
|
+
function ko(e, o = "short") {
|
|
6419
6475
|
const t = D(e), a = new Intl.DateTimeFormat(t, { timeStyle: o });
|
|
6420
6476
|
return {
|
|
6421
6477
|
format: (n) => a.format(n instanceof Date ? n : new Date(n))
|
|
6422
6478
|
};
|
|
6423
6479
|
}
|
|
6424
|
-
function
|
|
6425
|
-
return w(() =>
|
|
6480
|
+
function pa(e, o = "short") {
|
|
6481
|
+
return w(() => ko(e, o), [e, o]);
|
|
6426
6482
|
}
|
|
6427
|
-
function
|
|
6483
|
+
function wo(e) {
|
|
6428
6484
|
const o = D(e);
|
|
6429
6485
|
return {
|
|
6430
6486
|
format: (t) => new Intl.NumberFormat(o).format(t),
|
|
@@ -6432,23 +6488,23 @@ function ho(e) {
|
|
|
6432
6488
|
formatPercent: (t) => new Intl.NumberFormat(o, { style: "percent", maximumFractionDigits: 1 }).format(t)
|
|
6433
6489
|
};
|
|
6434
6490
|
}
|
|
6435
|
-
function
|
|
6436
|
-
return w(() =>
|
|
6491
|
+
function ga(e) {
|
|
6492
|
+
return w(() => wo(e), [e]);
|
|
6437
6493
|
}
|
|
6438
|
-
function
|
|
6494
|
+
function vo(e, o = "USD") {
|
|
6439
6495
|
const t = D(e), a = new Intl.NumberFormat(t, { style: "currency", currency: o });
|
|
6440
6496
|
return {
|
|
6441
6497
|
format: (n) => a.format(n)
|
|
6442
6498
|
};
|
|
6443
6499
|
}
|
|
6444
|
-
function
|
|
6445
|
-
return w(() =>
|
|
6500
|
+
function ha(e, o = "USD") {
|
|
6501
|
+
return w(() => vo(e, o), [e, o]);
|
|
6446
6502
|
}
|
|
6447
|
-
function
|
|
6503
|
+
function bo(e, o) {
|
|
6448
6504
|
const t = Date.now(), a = e.getTime() - t, n = Math.abs(a), r = new Intl.RelativeTimeFormat(o, { numeric: "auto" });
|
|
6449
6505
|
return n < 6e4 ? r.format(Math.round(a / 1e3), "second") : n < 36e5 ? r.format(Math.round(a / 6e4), "minute") : n < 864e5 ? r.format(Math.round(a / 36e5), "hour") : n < 2592e6 ? r.format(Math.round(a / 864e5), "day") : n < 31536e6 ? r.format(Math.round(a / 2592e6), "month") : r.format(Math.round(a / 31536e6), "year");
|
|
6450
6506
|
}
|
|
6451
|
-
const
|
|
6507
|
+
const re = [
|
|
6452
6508
|
{
|
|
6453
6509
|
en: "Save",
|
|
6454
6510
|
translations: {
|
|
@@ -6600,54 +6656,54 @@ const te = [
|
|
|
6600
6656
|
}
|
|
6601
6657
|
}
|
|
6602
6658
|
];
|
|
6603
|
-
function
|
|
6604
|
-
const t =
|
|
6659
|
+
function Co(e, o) {
|
|
6660
|
+
const t = re.find((a) => a.en.toLowerCase() === e.toLowerCase());
|
|
6605
6661
|
return t == null ? void 0 : t.translations[o];
|
|
6606
6662
|
}
|
|
6607
|
-
function
|
|
6663
|
+
function fa(e, o, t = 0.8) {
|
|
6608
6664
|
const a = v.en, n = v[o], r = e.toLowerCase().trim();
|
|
6609
6665
|
let i;
|
|
6610
6666
|
for (const [s, l] of Object.entries(a)) {
|
|
6611
6667
|
const d = n[s];
|
|
6612
6668
|
if (!d)
|
|
6613
6669
|
continue;
|
|
6614
|
-
const m =
|
|
6670
|
+
const m = yo(r, l.toLowerCase().trim());
|
|
6615
6671
|
m >= t && (!i || m > i.similarity) && (i = { key: s, english: l, translated: d, similarity: m });
|
|
6616
6672
|
}
|
|
6617
6673
|
return i;
|
|
6618
6674
|
}
|
|
6619
|
-
function
|
|
6620
|
-
return
|
|
6675
|
+
function ka(e) {
|
|
6676
|
+
return re.filter((o) => o.translations[e] != null).map((o) => ({
|
|
6621
6677
|
en: o.en,
|
|
6622
6678
|
translation: o.translations[e]
|
|
6623
6679
|
}));
|
|
6624
6680
|
}
|
|
6625
|
-
function
|
|
6681
|
+
function wa(e) {
|
|
6626
6682
|
const o = v[e], t = v.en, a = [];
|
|
6627
6683
|
for (const [n, r] of Object.entries(t)) {
|
|
6628
|
-
const i =
|
|
6684
|
+
const i = Co(r, e), s = o[n];
|
|
6629
6685
|
i && s && s !== i && a.push({ key: n, currentTranslation: s, glossaryTranslation: i });
|
|
6630
6686
|
}
|
|
6631
6687
|
return a;
|
|
6632
6688
|
}
|
|
6633
|
-
function
|
|
6689
|
+
function Y(e) {
|
|
6634
6690
|
const o = /* @__PURE__ */ new Set();
|
|
6635
6691
|
for (let t = 0; t < e.length - 1; t++)
|
|
6636
6692
|
o.add(e.substring(t, t + 2));
|
|
6637
6693
|
return o;
|
|
6638
6694
|
}
|
|
6639
|
-
function
|
|
6695
|
+
function yo(e, o) {
|
|
6640
6696
|
if (e === o)
|
|
6641
6697
|
return 1;
|
|
6642
6698
|
if (e.length < 2 || o.length < 2)
|
|
6643
6699
|
return 0;
|
|
6644
|
-
const t =
|
|
6700
|
+
const t = Y(e), a = Y(o);
|
|
6645
6701
|
let n = 0;
|
|
6646
6702
|
for (const r of t)
|
|
6647
6703
|
a.has(r) && n++;
|
|
6648
6704
|
return 2 * n / (t.size + a.size);
|
|
6649
6705
|
}
|
|
6650
|
-
const
|
|
6706
|
+
const ie = {
|
|
6651
6707
|
UTC: ["UTC", "Etc/UTC", "Etc/GMT"],
|
|
6652
6708
|
NorthAmerica: [
|
|
6653
6709
|
"America/New_York",
|
|
@@ -6715,7 +6771,7 @@ function G() {
|
|
|
6715
6771
|
return "UTC";
|
|
6716
6772
|
}
|
|
6717
6773
|
}
|
|
6718
|
-
function
|
|
6774
|
+
function va(e) {
|
|
6719
6775
|
try {
|
|
6720
6776
|
return new Intl.DateTimeFormat("en", { timeZone: e }), !0;
|
|
6721
6777
|
} catch {
|
|
@@ -6730,38 +6786,38 @@ function F(e, o = "en", t = /* @__PURE__ */ new Date()) {
|
|
|
6730
6786
|
}), r = new Intl.DateTimeFormat(a, {
|
|
6731
6787
|
timeZone: e,
|
|
6732
6788
|
timeZoneName: "short"
|
|
6733
|
-
}), i = n.formatToParts(t), s = r.formatToParts(t), l = ((b = i.find((x) => x.type === "timeZoneName")) == null ? void 0 : b.value) || e, d = ((M = s.find((x) => x.type === "timeZoneName")) == null ? void 0 : M.value) || e, m = new Date(t.toLocaleString("en-US", { timeZone: "UTC" })), f = new Date(t.toLocaleString("en-US", { timeZone: e })), u = Math.round((f.getTime() - m.getTime()) / 6e4), p = new Date(t.getFullYear(), 0, 1), k = new Date(t.getFullYear(), 6, 1), g =
|
|
6789
|
+
}), i = n.formatToParts(t), s = r.formatToParts(t), l = ((b = i.find((x) => x.type === "timeZoneName")) == null ? void 0 : b.value) || e, d = ((M = s.find((x) => x.type === "timeZoneName")) == null ? void 0 : M.value) || e, m = new Date(t.toLocaleString("en-US", { timeZone: "UTC" })), f = new Date(t.toLocaleString("en-US", { timeZone: e })), u = Math.round((f.getTime() - m.getTime()) / 6e4), p = new Date(t.getFullYear(), 0, 1), k = new Date(t.getFullYear(), 6, 1), g = V(e, p), y = V(e, k), E = V(e, t), C = Math.min(g, y), A = E !== C && g !== y;
|
|
6734
6790
|
return {
|
|
6735
6791
|
id: e,
|
|
6736
6792
|
displayName: l,
|
|
6737
6793
|
shortName: d,
|
|
6738
6794
|
offsetMinutes: u,
|
|
6739
|
-
offsetString:
|
|
6795
|
+
offsetString: Do(u),
|
|
6740
6796
|
isDST: A
|
|
6741
6797
|
};
|
|
6742
6798
|
}
|
|
6743
|
-
function
|
|
6744
|
-
return Object.values(
|
|
6799
|
+
function ba(e = "en", o = /* @__PURE__ */ new Date()) {
|
|
6800
|
+
return Object.values(ie).flat().map((a) => F(a, e, o));
|
|
6745
6801
|
}
|
|
6746
|
-
function
|
|
6802
|
+
function Ca(e = "en", o = /* @__PURE__ */ new Date()) {
|
|
6747
6803
|
const t = {};
|
|
6748
|
-
for (const [a, n] of Object.entries(
|
|
6804
|
+
for (const [a, n] of Object.entries(ie))
|
|
6749
6805
|
t[a] = n.map((r) => F(r, e, o));
|
|
6750
6806
|
return t;
|
|
6751
6807
|
}
|
|
6752
|
-
function
|
|
6808
|
+
function se(e, o, t) {
|
|
6753
6809
|
const a = e.toLocaleString("en-US", { timeZone: o }), n = new Date(a), r = e.toLocaleString("en-US", { timeZone: t }), i = new Date(r), s = n.getTime() - i.getTime();
|
|
6754
6810
|
return new Date(e.getTime() + s);
|
|
6755
6811
|
}
|
|
6756
|
-
function
|
|
6812
|
+
function Eo(e, o) {
|
|
6757
6813
|
const t = o || G();
|
|
6758
|
-
return
|
|
6814
|
+
return se(e, t, "UTC");
|
|
6759
6815
|
}
|
|
6760
|
-
function
|
|
6816
|
+
function So(e, o) {
|
|
6761
6817
|
const t = o || G();
|
|
6762
|
-
return
|
|
6818
|
+
return se(e, "UTC", t);
|
|
6763
6819
|
}
|
|
6764
|
-
function
|
|
6820
|
+
function zo(e, o, t = {}) {
|
|
6765
6821
|
const a = D(e), { dateStyle: n = "medium", timeStyle: r = "short", nameStyle: i = "short" } = t, s = new Intl.DateTimeFormat(a, {
|
|
6766
6822
|
timeZone: o,
|
|
6767
6823
|
dateStyle: n,
|
|
@@ -6785,27 +6841,27 @@ function yo(e, o, t = {}) {
|
|
|
6785
6841
|
}
|
|
6786
6842
|
};
|
|
6787
6843
|
}
|
|
6788
|
-
function
|
|
6844
|
+
function K(e, o = /* @__PURE__ */ new Date()) {
|
|
6789
6845
|
return F(e, "en", o).isDST;
|
|
6790
6846
|
}
|
|
6791
|
-
function
|
|
6792
|
-
const t =
|
|
6847
|
+
function ya(e, o = /* @__PURE__ */ new Date()) {
|
|
6848
|
+
const t = K(e, o), a = new Date(o), n = new Date(o);
|
|
6793
6849
|
for (n.setFullYear(n.getFullYear() + 1); a < n; )
|
|
6794
|
-
if (a.setDate(a.getDate() + 1),
|
|
6850
|
+
if (a.setDate(a.getDate() + 1), K(e, a) !== t) {
|
|
6795
6851
|
a.setDate(a.getDate() - 1);
|
|
6796
6852
|
const r = new Date(a);
|
|
6797
6853
|
r.setHours(0, 0, 0, 0);
|
|
6798
6854
|
const i = new Date(a);
|
|
6799
6855
|
for (i.setDate(i.getDate() + 2); i.getTime() - r.getTime() > 6e4; ) {
|
|
6800
6856
|
const s = new Date((r.getTime() + i.getTime()) / 2);
|
|
6801
|
-
|
|
6857
|
+
K(e, s) === t ? r.setTime(s.getTime()) : i.setTime(s.getTime());
|
|
6802
6858
|
}
|
|
6803
6859
|
return i;
|
|
6804
6860
|
}
|
|
6805
6861
|
return null;
|
|
6806
6862
|
}
|
|
6807
|
-
function
|
|
6808
|
-
const [a] = P(() => G()), n = o || a, r = w(() =>
|
|
6863
|
+
function Ea(e, o, t) {
|
|
6864
|
+
const [a] = P(() => G()), n = o || a, r = w(() => zo(e, n, t), [e, n, t]), i = w(() => F(n, e), [n, e]);
|
|
6809
6865
|
return {
|
|
6810
6866
|
timezone: n,
|
|
6811
6867
|
info: i,
|
|
@@ -6813,15 +6869,15 @@ function va(e, o, t) {
|
|
|
6813
6869
|
formatWithZone: r.formatWithZone,
|
|
6814
6870
|
getOffset: r.getOffset,
|
|
6815
6871
|
getAbbreviation: r.getAbbreviation,
|
|
6816
|
-
toUTC: (s) =>
|
|
6817
|
-
fromUTC: (s) =>
|
|
6872
|
+
toUTC: (s) => Eo(s, n),
|
|
6873
|
+
fromUTC: (s) => So(s, n)
|
|
6818
6874
|
};
|
|
6819
6875
|
}
|
|
6820
|
-
function
|
|
6876
|
+
function V(e, o) {
|
|
6821
6877
|
const t = o.toLocaleString("en-US", { timeZone: "UTC" }), a = o.toLocaleString("en-US", { timeZone: e }), n = new Date(t), r = new Date(a);
|
|
6822
6878
|
return Math.round((r.getTime() - n.getTime()) / 6e4);
|
|
6823
6879
|
}
|
|
6824
|
-
function
|
|
6880
|
+
function Do(e) {
|
|
6825
6881
|
const o = e >= 0 ? "+" : "-", t = Math.abs(e), a = Math.floor(t / 60), n = t % 60;
|
|
6826
6882
|
return `${o}${a.toString().padStart(2, "0")}:${n.toString().padStart(2, "0")}`;
|
|
6827
6883
|
}
|
|
@@ -6959,7 +7015,7 @@ const U = {
|
|
|
6959
7015
|
isLunar: !1,
|
|
6960
7016
|
associatedLanguages: ["zh"]
|
|
6961
7017
|
}
|
|
6962
|
-
},
|
|
7018
|
+
}, le = {
|
|
6963
7019
|
en: "gregory",
|
|
6964
7020
|
pl: "gregory",
|
|
6965
7021
|
de: "gregory",
|
|
@@ -6991,7 +7047,7 @@ const U = {
|
|
|
6991
7047
|
fil: "gregory",
|
|
6992
7048
|
ms: "gregory"
|
|
6993
7049
|
};
|
|
6994
|
-
function
|
|
7050
|
+
function de(e, o = "gregory", t = {}) {
|
|
6995
7051
|
const a = D(e), { dateStyle: n = "medium", showEra: r = !1, showWeekday: i = !1 } = t, s = {
|
|
6996
7052
|
calendar: o,
|
|
6997
7053
|
dateStyle: n
|
|
@@ -7048,13 +7104,13 @@ function se(e, o = "gregory", t = {}) {
|
|
|
7048
7104
|
}
|
|
7049
7105
|
};
|
|
7050
7106
|
}
|
|
7051
|
-
function
|
|
7052
|
-
return
|
|
7107
|
+
function ce(e, o, t = "en") {
|
|
7108
|
+
return de(t, o).parseParts(e);
|
|
7053
7109
|
}
|
|
7054
|
-
function
|
|
7055
|
-
return
|
|
7110
|
+
function Ao(e, o = "en") {
|
|
7111
|
+
return ce(/* @__PURE__ */ new Date(), e, o);
|
|
7056
7112
|
}
|
|
7057
|
-
const
|
|
7113
|
+
const Sa = [
|
|
7058
7114
|
"Muharram",
|
|
7059
7115
|
"Safar",
|
|
7060
7116
|
"Rabi' al-Awwal",
|
|
@@ -7068,13 +7124,13 @@ const ba = [
|
|
|
7068
7124
|
"Dhu al-Qi'dah",
|
|
7069
7125
|
"Dhu al-Hijjah"
|
|
7070
7126
|
];
|
|
7071
|
-
function
|
|
7127
|
+
function xo(e) {
|
|
7072
7128
|
return (11 * e + 14) % 30 < 11;
|
|
7073
7129
|
}
|
|
7074
|
-
function
|
|
7075
|
-
return o === 12 ?
|
|
7130
|
+
function za(e, o) {
|
|
7131
|
+
return o === 12 ? xo(e) ? 30 : 29 : o % 2 === 1 ? 30 : 29;
|
|
7076
7132
|
}
|
|
7077
|
-
const
|
|
7133
|
+
const Da = [
|
|
7078
7134
|
"Tishrei",
|
|
7079
7135
|
"Cheshvan",
|
|
7080
7136
|
"Kislev",
|
|
@@ -7087,7 +7143,7 @@ const ya = [
|
|
|
7087
7143
|
"Tammuz",
|
|
7088
7144
|
"Av",
|
|
7089
7145
|
"Elul"
|
|
7090
|
-
],
|
|
7146
|
+
], Aa = [
|
|
7091
7147
|
"Tishrei",
|
|
7092
7148
|
"Cheshvan",
|
|
7093
7149
|
"Kislev",
|
|
@@ -7102,7 +7158,7 @@ const ya = [
|
|
|
7102
7158
|
"Av",
|
|
7103
7159
|
"Elul"
|
|
7104
7160
|
];
|
|
7105
|
-
function
|
|
7161
|
+
function xa(e) {
|
|
7106
7162
|
return (7 * e + 1) % 19 < 7;
|
|
7107
7163
|
}
|
|
7108
7164
|
const Z = [
|
|
@@ -7112,17 +7168,17 @@ const Z = [
|
|
|
7112
7168
|
{ name: "Heisei", kanji: "平成", startDate: new Date(1989, 0, 8) },
|
|
7113
7169
|
{ name: "Reiwa", kanji: "令和", startDate: new Date(2019, 4, 1) }
|
|
7114
7170
|
];
|
|
7115
|
-
function
|
|
7171
|
+
function To(e) {
|
|
7116
7172
|
for (let o = Z.length - 1; o >= 0; o--)
|
|
7117
7173
|
if (e >= Z[o].startDate)
|
|
7118
7174
|
return Z[o];
|
|
7119
7175
|
return null;
|
|
7120
7176
|
}
|
|
7121
|
-
function
|
|
7122
|
-
const o =
|
|
7177
|
+
function Ta(e) {
|
|
7178
|
+
const o = To(e);
|
|
7123
7179
|
return o ? e.getFullYear() - o.startDate.getFullYear() + 1 : null;
|
|
7124
7180
|
}
|
|
7125
|
-
const
|
|
7181
|
+
const Pa = [
|
|
7126
7182
|
"Farvardin",
|
|
7127
7183
|
"Ordibehesht",
|
|
7128
7184
|
"Khordad",
|
|
@@ -7136,10 +7192,10 @@ const Da = [
|
|
|
7136
7192
|
"Bahman",
|
|
7137
7193
|
"Esfand"
|
|
7138
7194
|
];
|
|
7139
|
-
function
|
|
7195
|
+
function ja(e) {
|
|
7140
7196
|
return ((e - 474) % 2820 + 2820) % 2820 * 682 % 2816 < 682;
|
|
7141
7197
|
}
|
|
7142
|
-
const
|
|
7198
|
+
const Po = [
|
|
7143
7199
|
"Rat",
|
|
7144
7200
|
"Ox",
|
|
7145
7201
|
"Tiger",
|
|
@@ -7153,10 +7209,10 @@ const Ao = [
|
|
|
7153
7209
|
"Dog",
|
|
7154
7210
|
"Pig"
|
|
7155
7211
|
];
|
|
7156
|
-
function
|
|
7157
|
-
return
|
|
7212
|
+
function Na(e) {
|
|
7213
|
+
return Po[(e - 4) % 12];
|
|
7158
7214
|
}
|
|
7159
|
-
const
|
|
7215
|
+
const jo = [
|
|
7160
7216
|
"Jia",
|
|
7161
7217
|
"Yi",
|
|
7162
7218
|
"Bing",
|
|
@@ -7168,14 +7224,14 @@ const xo = [
|
|
|
7168
7224
|
"Ren",
|
|
7169
7225
|
"Gui"
|
|
7170
7226
|
];
|
|
7171
|
-
function
|
|
7172
|
-
return
|
|
7227
|
+
function Fa(e) {
|
|
7228
|
+
return jo[(e - 4) % 10];
|
|
7173
7229
|
}
|
|
7174
|
-
function
|
|
7175
|
-
const a = o ||
|
|
7176
|
-
() =>
|
|
7230
|
+
function Ma(e, o, t) {
|
|
7231
|
+
const a = o || le[e], n = w(
|
|
7232
|
+
() => de(e, a, t),
|
|
7177
7233
|
[e, a, t]
|
|
7178
|
-
), r = w(() => U[a], [a]), i = w(() =>
|
|
7234
|
+
), r = w(() => U[a], [a]), i = w(() => Ao(a, e), [a, e]);
|
|
7179
7235
|
return {
|
|
7180
7236
|
calendar: a,
|
|
7181
7237
|
info: r,
|
|
@@ -7188,13 +7244,13 @@ function Pa(e, o, t) {
|
|
|
7188
7244
|
getWeekdayNames: n.getWeekdayNames,
|
|
7189
7245
|
parseParts: n.parseParts,
|
|
7190
7246
|
getEraName: n.getEraName,
|
|
7191
|
-
toCalendar: (s) =>
|
|
7247
|
+
toCalendar: (s) => ce(s, a, e)
|
|
7192
7248
|
};
|
|
7193
7249
|
}
|
|
7194
|
-
function
|
|
7250
|
+
function Oa() {
|
|
7195
7251
|
return Object.keys(U);
|
|
7196
7252
|
}
|
|
7197
|
-
function
|
|
7253
|
+
function Ra(e, o = "en") {
|
|
7198
7254
|
const t = { ...U[e] };
|
|
7199
7255
|
try {
|
|
7200
7256
|
const a = D(o), r = new Intl.DisplayNames([a], { type: "calendar" }).of(e);
|
|
@@ -7203,8 +7259,8 @@ function Na(e, o = "en") {
|
|
|
7203
7259
|
}
|
|
7204
7260
|
return t;
|
|
7205
7261
|
}
|
|
7206
|
-
function
|
|
7207
|
-
const o =
|
|
7262
|
+
function La(e) {
|
|
7263
|
+
const o = le[e], t = /* @__PURE__ */ new Set([o]);
|
|
7208
7264
|
for (const [a, n] of Object.entries(U))
|
|
7209
7265
|
n.associatedLanguages.includes(e) && t.add(a);
|
|
7210
7266
|
return t.add("gregory"), Array.from(t);
|
|
@@ -7264,7 +7320,7 @@ const $ = {
|
|
|
7264
7320
|
X: "Χ",
|
|
7265
7321
|
Y: "Ÿ",
|
|
7266
7322
|
Z: "Ž"
|
|
7267
|
-
},
|
|
7323
|
+
}, No = {
|
|
7268
7324
|
...$,
|
|
7269
7325
|
// Additional mappings
|
|
7270
7326
|
a: "ặ",
|
|
@@ -7279,31 +7335,31 @@ const $ = {
|
|
|
7279
7335
|
O: "Ộ",
|
|
7280
7336
|
U: "Ụ",
|
|
7281
7337
|
Y: "Ỵ"
|
|
7282
|
-
},
|
|
7283
|
-
function
|
|
7284
|
-
const t = o ?
|
|
7338
|
+
}, Fo = "", Mo = "", Q = "", Oo = "~∼~≈";
|
|
7339
|
+
function Ba(e, o = !1) {
|
|
7340
|
+
const t = o ? No : $;
|
|
7285
7341
|
return e.split("").map((a) => t[a] || a).join("");
|
|
7286
7342
|
}
|
|
7287
|
-
function
|
|
7343
|
+
function Ia(e, o = "[", t = "]") {
|
|
7288
7344
|
return `${o}${e}${t}`;
|
|
7289
7345
|
}
|
|
7290
|
-
function
|
|
7346
|
+
function Ro(e, o = 0.3, t = !1) {
|
|
7291
7347
|
if (t)
|
|
7292
|
-
return
|
|
7348
|
+
return Lo(e);
|
|
7293
7349
|
const n = Math.ceil(e.length * (1 + o)) - e.length;
|
|
7294
7350
|
if (n <= 0)
|
|
7295
7351
|
return e;
|
|
7296
|
-
const r =
|
|
7352
|
+
const r = Oo[0].repeat(n);
|
|
7297
7353
|
return e + r;
|
|
7298
7354
|
}
|
|
7299
|
-
function
|
|
7355
|
+
function Lo(e) {
|
|
7300
7356
|
const o = /* @__PURE__ */ new Set(["a", "e", "i", "o", "u", "A", "E", "I", "O", "U"]);
|
|
7301
7357
|
return e.split("").map((t) => o.has(t) ? t + t : t).join("");
|
|
7302
7358
|
}
|
|
7303
|
-
function
|
|
7304
|
-
return o ? `${
|
|
7359
|
+
function Bo(e, o = !1) {
|
|
7360
|
+
return o ? `${Mo}${e}${Q}` : `${Fo}${e}${Q}`;
|
|
7305
7361
|
}
|
|
7306
|
-
function
|
|
7362
|
+
function me(e, o = {}) {
|
|
7307
7363
|
const {
|
|
7308
7364
|
addBrackets: t = !0,
|
|
7309
7365
|
expansionFactor: a = 0.3,
|
|
@@ -7322,12 +7378,12 @@ function de(e, o = {}) {
|
|
|
7322
7378
|
})), l && (u = u.replace(/<[^>]+>/g, (k) => {
|
|
7323
7379
|
const g = `__PH${p++}__`;
|
|
7324
7380
|
return f.set(g, k), g;
|
|
7325
|
-
})), n && (u =
|
|
7381
|
+
})), n && (u = Io(u, f)), a > 0 && (u = Ro(u, a, i)), r && (u = Bo(u)), t && (u = `${d}${u}${m}`);
|
|
7326
7382
|
for (const [k, g] of f.entries())
|
|
7327
7383
|
u = u.replace(k, g);
|
|
7328
7384
|
return u;
|
|
7329
7385
|
}
|
|
7330
|
-
function
|
|
7386
|
+
function Io(e, o) {
|
|
7331
7387
|
const t = new Set(o.keys());
|
|
7332
7388
|
return e.split("").map((a) => {
|
|
7333
7389
|
for (const n of t)
|
|
@@ -7370,22 +7426,22 @@ function T(e) {
|
|
|
7370
7426
|
};
|
|
7371
7427
|
}
|
|
7372
7428
|
}
|
|
7373
|
-
function
|
|
7429
|
+
function Ua(e, o) {
|
|
7374
7430
|
const t = {};
|
|
7375
7431
|
for (const [a, n] of Object.entries(e))
|
|
7376
|
-
t[a] =
|
|
7432
|
+
t[a] = me(n, o);
|
|
7377
7433
|
return t;
|
|
7378
7434
|
}
|
|
7379
|
-
function
|
|
7435
|
+
function Uo(e) {
|
|
7380
7436
|
return /[^\x00-\x7F]/.test(e);
|
|
7381
7437
|
}
|
|
7382
|
-
function
|
|
7438
|
+
function Wo(e) {
|
|
7383
7439
|
if (!e || /^[\d.,-]+$/.test(e) || e.startsWith("["))
|
|
7384
7440
|
return !1;
|
|
7385
|
-
const o = /[a-zA-Z]{2,}/.test(e), t =
|
|
7441
|
+
const o = /[a-zA-Z]{2,}/.test(e), t = Uo(e);
|
|
7386
7442
|
return o && !t;
|
|
7387
7443
|
}
|
|
7388
|
-
function
|
|
7444
|
+
function Wa(e, o) {
|
|
7389
7445
|
const t = {
|
|
7390
7446
|
totalKeys: Object.keys(e).length,
|
|
7391
7447
|
hardcodedStrings: [],
|
|
@@ -7398,8 +7454,8 @@ function La(e, o) {
|
|
|
7398
7454
|
t.emptyValues.push(a), t.potentialIssues++;
|
|
7399
7455
|
continue;
|
|
7400
7456
|
}
|
|
7401
|
-
if (
|
|
7402
|
-
const r =
|
|
7457
|
+
if (Wo(n) && t.hardcodedStrings.push(a), o && o[a]) {
|
|
7458
|
+
const r = X(n), i = X(o[a]), s = r.filter((d) => !i.includes(d)), l = i.filter((d) => !r.includes(d));
|
|
7403
7459
|
(s.length > 0 || l.length > 0) && (t.placeholderMismatches.push({
|
|
7404
7460
|
key: a,
|
|
7405
7461
|
placeholders: [
|
|
@@ -7411,16 +7467,16 @@ function La(e, o) {
|
|
|
7411
7467
|
}
|
|
7412
7468
|
return t;
|
|
7413
7469
|
}
|
|
7414
|
-
function
|
|
7470
|
+
function X(e) {
|
|
7415
7471
|
return (e.match(/\{([^}]+)\}/g) || []).map((t) => t.replace(/[{}]/g, "").split(",")[0].trim());
|
|
7416
7472
|
}
|
|
7417
|
-
const
|
|
7418
|
-
function
|
|
7473
|
+
const ue = I(null);
|
|
7474
|
+
function Ha({
|
|
7419
7475
|
children: e,
|
|
7420
7476
|
initialEnabled: o = !1,
|
|
7421
7477
|
initialMode: t = "full"
|
|
7422
7478
|
}) {
|
|
7423
|
-
const [a, n] = P(o), [r, i] = P(t), s = w(() => T(r), [r]), l = w(() => (m) => a ?
|
|
7479
|
+
const [a, n] = P(o), [r, i] = P(t), s = w(() => T(r), [r]), l = w(() => (m) => a ? me(m, s) : m, [a, s]), d = w(
|
|
7424
7480
|
() => ({
|
|
7425
7481
|
enabled: a,
|
|
7426
7482
|
mode: r,
|
|
@@ -7431,10 +7487,10 @@ function Ba({
|
|
|
7431
7487
|
}),
|
|
7432
7488
|
[a, r, s, l]
|
|
7433
7489
|
);
|
|
7434
|
-
return /* @__PURE__ */ B(
|
|
7490
|
+
return /* @__PURE__ */ B(ue.Provider, { value: d, children: e });
|
|
7435
7491
|
}
|
|
7436
|
-
function
|
|
7437
|
-
const e = N(
|
|
7492
|
+
function Ka() {
|
|
7493
|
+
const e = N(ue);
|
|
7438
7494
|
return e || {
|
|
7439
7495
|
enabled: !1,
|
|
7440
7496
|
mode: "full",
|
|
@@ -7446,7 +7502,7 @@ function Ia() {
|
|
|
7446
7502
|
transform: (o) => o
|
|
7447
7503
|
};
|
|
7448
7504
|
}
|
|
7449
|
-
const
|
|
7505
|
+
const Va = {
|
|
7450
7506
|
/** Minimal: brackets only */
|
|
7451
7507
|
MINIMAL: { addBrackets: !0, addAccents: !1, expansionFactor: 0 },
|
|
7452
7508
|
/** Accented: brackets + accents */
|
|
@@ -7464,7 +7520,7 @@ const Ua = {
|
|
|
7464
7520
|
/** CJK: Short expansion, no accents (CJK often shorter) */
|
|
7465
7521
|
CJK: { addBrackets: !0, addAccents: !1, expansionFactor: -0.1 }
|
|
7466
7522
|
};
|
|
7467
|
-
class
|
|
7523
|
+
class Ho {
|
|
7468
7524
|
constructor(o = 0) {
|
|
7469
7525
|
this.cache = /* @__PURE__ */ new Map(), this.ttl = o;
|
|
7470
7526
|
}
|
|
@@ -7506,7 +7562,7 @@ class Io {
|
|
|
7506
7562
|
};
|
|
7507
7563
|
}
|
|
7508
7564
|
}
|
|
7509
|
-
function
|
|
7565
|
+
function pe(e) {
|
|
7510
7566
|
const {
|
|
7511
7567
|
loadFn: o,
|
|
7512
7568
|
fallbackLang: t = "en",
|
|
@@ -7517,7 +7573,7 @@ function me(e) {
|
|
|
7517
7573
|
onLoadStart: s,
|
|
7518
7574
|
onLoadComplete: l,
|
|
7519
7575
|
onLoadError: d
|
|
7520
|
-
} = e, m = new
|
|
7576
|
+
} = e, m = new Ho(a), f = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Map();
|
|
7521
7577
|
let p = t;
|
|
7522
7578
|
const k = /* @__PURE__ */ new Set();
|
|
7523
7579
|
function g() {
|
|
@@ -7577,25 +7633,25 @@ function me(e) {
|
|
|
7577
7633
|
function x(c, h) {
|
|
7578
7634
|
return m.has(c, h);
|
|
7579
7635
|
}
|
|
7580
|
-
function
|
|
7636
|
+
function he(c) {
|
|
7581
7637
|
for (const h of f)
|
|
7582
7638
|
if (h === c || h.startsWith(`${c}:`))
|
|
7583
7639
|
return !0;
|
|
7584
7640
|
return !1;
|
|
7585
7641
|
}
|
|
7586
|
-
function
|
|
7642
|
+
function fe() {
|
|
7587
7643
|
return m.getStats().languages;
|
|
7588
7644
|
}
|
|
7589
|
-
function
|
|
7645
|
+
function ke(c) {
|
|
7590
7646
|
c ? m.delete(c) : m.clear(), g();
|
|
7591
7647
|
}
|
|
7592
|
-
async function
|
|
7648
|
+
async function we(c) {
|
|
7593
7649
|
x(c) || await C(c), p = c, g();
|
|
7594
7650
|
}
|
|
7595
|
-
function
|
|
7651
|
+
function ve() {
|
|
7596
7652
|
return p;
|
|
7597
7653
|
}
|
|
7598
|
-
function
|
|
7654
|
+
function be(c) {
|
|
7599
7655
|
return k.add(c), () => k.delete(c);
|
|
7600
7656
|
}
|
|
7601
7657
|
return {
|
|
@@ -7604,17 +7660,17 @@ function me(e) {
|
|
|
7604
7660
|
preloadLanguages: b,
|
|
7605
7661
|
getTranslations: M,
|
|
7606
7662
|
isLoaded: x,
|
|
7607
|
-
isLoading:
|
|
7608
|
-
getLoadedLanguages:
|
|
7609
|
-
clearCache:
|
|
7663
|
+
isLoading: he,
|
|
7664
|
+
getLoadedLanguages: fe,
|
|
7665
|
+
clearCache: ke,
|
|
7610
7666
|
getState: E,
|
|
7611
|
-
setLanguage:
|
|
7612
|
-
getCurrentLanguage:
|
|
7613
|
-
subscribe:
|
|
7667
|
+
setLanguage: we,
|
|
7668
|
+
getCurrentLanguage: ve,
|
|
7669
|
+
subscribe: be
|
|
7614
7670
|
};
|
|
7615
7671
|
}
|
|
7616
|
-
function
|
|
7617
|
-
return
|
|
7672
|
+
function Za(e, o) {
|
|
7673
|
+
return pe({
|
|
7618
7674
|
...o,
|
|
7619
7675
|
loadFn: async (t, a) => {
|
|
7620
7676
|
const n = a ? `${e}/${t}/${a}.json` : `${e}/${t}.json`, r = await fetch(n);
|
|
@@ -7624,14 +7680,14 @@ function Ha(e, o) {
|
|
|
7624
7680
|
}
|
|
7625
7681
|
});
|
|
7626
7682
|
}
|
|
7627
|
-
function
|
|
7628
|
-
return
|
|
7683
|
+
function qa(e, o) {
|
|
7684
|
+
return pe({
|
|
7629
7685
|
...o,
|
|
7630
7686
|
loadFn: async (t, a) => (await e(t, a)).default
|
|
7631
7687
|
});
|
|
7632
7688
|
}
|
|
7633
|
-
const
|
|
7634
|
-
function
|
|
7689
|
+
const ge = I(null);
|
|
7690
|
+
function Ga({
|
|
7635
7691
|
children: e,
|
|
7636
7692
|
loader: o,
|
|
7637
7693
|
initialLanguage: t,
|
|
@@ -7641,7 +7697,7 @@ function Va({
|
|
|
7641
7697
|
L(() => o.subscribe(r), [o]), L(() => {
|
|
7642
7698
|
t && !o.isLoaded(t, a) && o.loadLanguage(t, a).catch(s);
|
|
7643
7699
|
}, [o, t, a]);
|
|
7644
|
-
const l = w(() => o.getTranslations(n.currentLanguage, a) || {}, [o, n.currentLanguage, a]), d =
|
|
7700
|
+
const l = w(() => o.getTranslations(n.currentLanguage, a) || {}, [o, n.currentLanguage, a]), d = ee(
|
|
7645
7701
|
async (f) => {
|
|
7646
7702
|
s(null);
|
|
7647
7703
|
try {
|
|
@@ -7663,19 +7719,19 @@ function Va({
|
|
|
7663
7719
|
}),
|
|
7664
7720
|
[o, l, n, i, d]
|
|
7665
7721
|
);
|
|
7666
|
-
return /* @__PURE__ */ B(
|
|
7722
|
+
return /* @__PURE__ */ B(ge.Provider, { value: m, children: e });
|
|
7667
7723
|
}
|
|
7668
|
-
function
|
|
7669
|
-
const e = N(
|
|
7724
|
+
function Ko() {
|
|
7725
|
+
const e = N(ge);
|
|
7670
7726
|
if (!e)
|
|
7671
7727
|
throw new Error("useDynamicI18n must be used within DynamicI18nProvider");
|
|
7672
7728
|
return e;
|
|
7673
7729
|
}
|
|
7674
|
-
function
|
|
7675
|
-
const { translations: o, currentLanguage: t, loader: a, isLoading: n } =
|
|
7730
|
+
function $a(e) {
|
|
7731
|
+
const { translations: o, currentLanguage: t, loader: a, isLoading: n } = Ko();
|
|
7676
7732
|
return L(() => {
|
|
7677
7733
|
e && !a.isLoaded(t, e) && a.loadLanguage(t, e);
|
|
7678
|
-
}, [a, t, e]), { t:
|
|
7734
|
+
}, [a, t, e]), { t: ee(
|
|
7679
7735
|
(i, s) => {
|
|
7680
7736
|
let l = o[i] || i;
|
|
7681
7737
|
if (s)
|
|
@@ -7686,7 +7742,7 @@ function Wa(e) {
|
|
|
7686
7742
|
[o]
|
|
7687
7743
|
), isLoading: n, currentLanguage: t };
|
|
7688
7744
|
}
|
|
7689
|
-
function
|
|
7745
|
+
function Ja(e, o, t) {
|
|
7690
7746
|
switch (t) {
|
|
7691
7747
|
case "immediate":
|
|
7692
7748
|
e.loadLanguages(o);
|
|
@@ -7698,25 +7754,26 @@ function Za(e, o, t) {
|
|
|
7698
7754
|
break;
|
|
7699
7755
|
case "visible":
|
|
7700
7756
|
if ("IntersectionObserver" in window) {
|
|
7701
|
-
const
|
|
7757
|
+
const a = new IntersectionObserver(
|
|
7702
7758
|
() => {
|
|
7703
|
-
e.loadLanguages(o),
|
|
7759
|
+
e.loadLanguages(o), a.disconnect();
|
|
7704
7760
|
},
|
|
7705
7761
|
{ threshold: 0.1 }
|
|
7706
7762
|
);
|
|
7707
|
-
|
|
7763
|
+
a.observe(document.body);
|
|
7708
7764
|
} else
|
|
7709
7765
|
e.loadLanguages(o);
|
|
7710
7766
|
break;
|
|
7711
|
-
case "interaction":
|
|
7767
|
+
case "interaction": {
|
|
7712
7768
|
const a = () => {
|
|
7713
7769
|
e.loadLanguages(o), window.removeEventListener("click", a), window.removeEventListener("keydown", a), window.removeEventListener("touchstart", a);
|
|
7714
7770
|
};
|
|
7715
7771
|
window.addEventListener("click", a, { once: !0 }), window.addEventListener("keydown", a, { once: !0 }), window.addEventListener("touchstart", a, { once: !0 });
|
|
7716
7772
|
break;
|
|
7773
|
+
}
|
|
7717
7774
|
}
|
|
7718
7775
|
}
|
|
7719
|
-
async function
|
|
7776
|
+
async function _a(e, o) {
|
|
7720
7777
|
const { fallback: t = "en", preferredLanguages: a = [] } = o || {};
|
|
7721
7778
|
for (const r of a)
|
|
7722
7779
|
if (j.includes(r))
|
|
@@ -7726,111 +7783,113 @@ async function qa(e, o) {
|
|
|
7726
7783
|
}
|
|
7727
7784
|
export {
|
|
7728
7785
|
U as CALENDAR_INFO,
|
|
7729
|
-
|
|
7730
|
-
|
|
7731
|
-
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
|
|
7735
|
-
|
|
7786
|
+
jo as CELESTIAL_STEMS,
|
|
7787
|
+
Po as CHINESE_ZODIAC,
|
|
7788
|
+
le as DEFAULT_CALENDAR,
|
|
7789
|
+
Ga as DynamicI18nProvider,
|
|
7790
|
+
Da as HEBREW_MONTHS,
|
|
7791
|
+
Aa as HEBREW_MONTHS_LEAP,
|
|
7792
|
+
Sa as HIJRI_MONTHS,
|
|
7736
7793
|
Z as JAPANESE_ERAS,
|
|
7737
|
-
|
|
7794
|
+
re as NICE_GLOSSARY,
|
|
7738
7795
|
v as NICE_I18N_DICTIONARIES,
|
|
7796
|
+
Ye as NICE_I18N_VARIANTS,
|
|
7739
7797
|
j as NICE_SUPPORTED_LANGS,
|
|
7740
|
-
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
|
|
7749
|
-
|
|
7750
|
-
|
|
7751
|
-
|
|
7752
|
-
|
|
7753
|
-
|
|
7754
|
-
|
|
7755
|
-
|
|
7756
|
-
|
|
7757
|
-
|
|
7758
|
-
|
|
7759
|
-
|
|
7760
|
-
|
|
7761
|
-
|
|
7762
|
-
|
|
7763
|
-
|
|
7764
|
-
|
|
7765
|
-
|
|
7766
|
-
|
|
7767
|
-
|
|
7768
|
-
|
|
7798
|
+
Go as NiceI18nProvider,
|
|
7799
|
+
Pa as PERSIAN_MONTHS,
|
|
7800
|
+
Va as PSEUDO_PRESETS,
|
|
7801
|
+
Ha as PseudoLocalizationProvider,
|
|
7802
|
+
na as RTLProvider,
|
|
7803
|
+
H as RTL_CSS_VARS,
|
|
7804
|
+
ro as RTL_LANGUAGES,
|
|
7805
|
+
ie as TIMEZONE_GROUPS,
|
|
7806
|
+
Ba as addAccents,
|
|
7807
|
+
Bo as addBidiMarkers,
|
|
7808
|
+
Ia as addBrackets,
|
|
7809
|
+
Wa as analyzeDictionary,
|
|
7810
|
+
sa as analyzeStylesForRTL,
|
|
7811
|
+
Uo as containsNonAscii,
|
|
7812
|
+
se as convertTimezone,
|
|
7813
|
+
de as createCalendarFormatter,
|
|
7814
|
+
vo as createCurrencyFormatter,
|
|
7815
|
+
fo as createDateFormatter,
|
|
7816
|
+
pe as createDynamicLoader,
|
|
7817
|
+
Za as createFetchLoader,
|
|
7818
|
+
Qo as createICUTranslator,
|
|
7819
|
+
qa as createImportLoader,
|
|
7820
|
+
wo as createNumberFormatter,
|
|
7821
|
+
ko as createTimeFormatter,
|
|
7822
|
+
zo as createTimezoneFormatter,
|
|
7823
|
+
Jo as createTranslator,
|
|
7824
|
+
_a as detectAndLoad,
|
|
7825
|
+
Yo as detectBrowserLanguage,
|
|
7826
|
+
Wo as detectHardcodedText,
|
|
7769
7827
|
G as detectTimezone,
|
|
7770
|
-
|
|
7771
|
-
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
|
|
7778
|
-
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
|
|
7785
|
-
|
|
7786
|
-
|
|
7787
|
-
|
|
7788
|
-
|
|
7789
|
-
|
|
7790
|
-
|
|
7828
|
+
Ro as expandText,
|
|
7829
|
+
fa as findSimilarTranslation,
|
|
7830
|
+
co as flipAlignment,
|
|
7831
|
+
ta as flipHorizontal,
|
|
7832
|
+
no as formatICU,
|
|
7833
|
+
_o as formatMessage,
|
|
7834
|
+
So as fromUTC,
|
|
7835
|
+
ma as generateCoverageReport,
|
|
7836
|
+
ca as generateTranslationCode,
|
|
7837
|
+
ba as getAllTimezones,
|
|
7838
|
+
go as getAllTranslationStats,
|
|
7839
|
+
Oa as getAvailableCalendars,
|
|
7840
|
+
Ra as getCalendarInfo,
|
|
7841
|
+
Fa as getCelestialStem,
|
|
7842
|
+
Na as getChineseZodiac,
|
|
7843
|
+
Ao as getCurrentCalendarDate,
|
|
7844
|
+
aa as getDocumentDirection,
|
|
7845
|
+
ka as getGlossaryForLanguage,
|
|
7846
|
+
za as getHijriMonthDays,
|
|
7847
|
+
To as getJapaneseEra,
|
|
7848
|
+
Ta as getJapaneseYear,
|
|
7791
7849
|
D as getLocaleTag,
|
|
7792
|
-
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
-
|
|
7796
|
-
|
|
7850
|
+
mo as getLogicalProperty,
|
|
7851
|
+
uo as getMissingTranslations,
|
|
7852
|
+
ya as getNextDSTTransition,
|
|
7853
|
+
te as getOrdinalCategory,
|
|
7854
|
+
ae as getPluralCategory,
|
|
7797
7855
|
T as getPseudoLocalizationPreset,
|
|
7798
|
-
|
|
7799
|
-
|
|
7800
|
-
|
|
7801
|
-
|
|
7856
|
+
la as getRTLCSSVars,
|
|
7857
|
+
La as getRecommendedCalendars,
|
|
7858
|
+
da as getSourceKeys,
|
|
7859
|
+
io as getTextDirection,
|
|
7802
7860
|
F as getTimezoneInfo,
|
|
7803
|
-
|
|
7804
|
-
|
|
7805
|
-
|
|
7806
|
-
|
|
7807
|
-
|
|
7808
|
-
|
|
7809
|
-
|
|
7810
|
-
|
|
7811
|
-
|
|
7812
|
-
|
|
7813
|
-
|
|
7814
|
-
|
|
7815
|
-
|
|
7816
|
-
|
|
7817
|
-
|
|
7818
|
-
|
|
7819
|
-
|
|
7820
|
-
|
|
7821
|
-
|
|
7822
|
-
|
|
7823
|
-
|
|
7824
|
-
|
|
7825
|
-
|
|
7826
|
-
|
|
7827
|
-
|
|
7828
|
-
|
|
7829
|
-
|
|
7830
|
-
|
|
7831
|
-
|
|
7832
|
-
|
|
7833
|
-
|
|
7834
|
-
|
|
7835
|
-
|
|
7861
|
+
Ca as getTimezonesGrouped,
|
|
7862
|
+
po as getTranslationStats,
|
|
7863
|
+
K as isDSTActive,
|
|
7864
|
+
xa as isHebrewLeapYear,
|
|
7865
|
+
xo as isHijriLeapYear,
|
|
7866
|
+
ja as isPersianLeapYear,
|
|
7867
|
+
ne as isRTLLanguage,
|
|
7868
|
+
Xe as isSupported,
|
|
7869
|
+
va as isValidTimezone,
|
|
7870
|
+
Co as lookupGlossary,
|
|
7871
|
+
ea as ordinal,
|
|
7872
|
+
Xo as plural,
|
|
7873
|
+
Ja as preloadWithStrategy,
|
|
7874
|
+
me as pseudoLocalize,
|
|
7875
|
+
Ua as pseudoLocalizeDictionary,
|
|
7876
|
+
qo as resolvePlVariant,
|
|
7877
|
+
lo as rtlValue,
|
|
7878
|
+
oa as select,
|
|
7879
|
+
so as setDocumentDirection,
|
|
7880
|
+
ce as toCalendar,
|
|
7881
|
+
Eo as toUTC,
|
|
7882
|
+
Ma as useCalendar,
|
|
7883
|
+
Ko as useDynamicI18n,
|
|
7884
|
+
$a as useDynamicTranslation,
|
|
7885
|
+
ia as useIsRTL,
|
|
7886
|
+
ha as useNiceCurrencyFormat,
|
|
7887
|
+
ua as useNiceDateFormat,
|
|
7888
|
+
ga as useNiceNumberFormat,
|
|
7889
|
+
pa as useNiceTimeFormat,
|
|
7890
|
+
$o as useNiceTranslation,
|
|
7891
|
+
Ka as usePseudoLocalization,
|
|
7892
|
+
ra as useRTL,
|
|
7893
|
+
Ea as useTimezone,
|
|
7894
|
+
wa as validateAgainstGlossary
|
|
7836
7895
|
};
|