native-fn 1.0.89 → 1.1.0
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.d.ts +747 -29
- package/dist/native.cjs +4283 -74
- package/dist/native.min.cjs +1 -1
- package/dist/native.min.mjs +1 -1
- package/dist/native.mjs +4283 -74
- package/dist/native.umd.js +4283 -74
- package/dist/native.umd.min.js +1 -1
- package/dist/plugin/app/index.cjs +637 -663
- package/dist/plugin/app/index.d.ts +4 -114
- package/dist/plugin/app/index.min.cjs +1 -1
- package/dist/plugin/app/index.min.mjs +1 -1
- package/dist/plugin/app/index.mjs +637 -663
- package/dist/plugin/app/index.umd.js +637 -663
- package/dist/plugin/app/index.umd.min.js +1 -1
- package/dist/plugin/app/src/plugin/app/constants/index.d.ts +13 -0
- package/dist/plugin/app/src/plugin/app/cores/index.d.ts +3 -2
- package/dist/plugin/app/src/plugin/app/index.d.ts +2 -11
- package/dist/plugin/app/src/plugin/app/types/app.d.ts +13 -3
- package/dist/plugin/app/src/plugin/app/types/index.d.ts +0 -15
- package/dist/plugin/app/src/plugin/appearance/cores/index.d.ts +2 -2
- package/dist/plugin/app/src/plugin/appearance/index.d.ts +2 -7
- package/dist/plugin/app/src/plugin/appearance/types/appearance.d.ts +6 -3
- package/dist/plugin/app/src/plugin/appearance/types/index.d.ts +0 -12
- package/dist/plugin/app/src/plugin/clipboard/cores/index.d.ts +2 -2
- package/dist/plugin/app/src/plugin/clipboard/index.d.ts +2 -4
- package/dist/plugin/app/src/plugin/clipboard/types/clipboard.d.ts +3 -1
- package/dist/plugin/app/src/plugin/clipboard/types/index.d.ts +0 -10
- package/dist/plugin/app/src/plugin/dimension/cores/index.d.ts +2 -2
- package/dist/plugin/app/src/plugin/dimension/index.d.ts +3 -4
- package/dist/plugin/app/src/plugin/dimension/types/dimensions.d.ts +4 -2
- package/dist/plugin/app/src/plugin/dimension/types/index.d.ts +0 -12
- package/dist/plugin/app/src/plugin/fullscreen/cores/index.d.ts +2 -2
- package/dist/plugin/app/src/plugin/fullscreen/index.d.ts +2 -4
- package/dist/plugin/app/src/plugin/fullscreen/types/fullscreen.d.ts +6 -4
- package/dist/plugin/app/src/plugin/fullscreen/types/index.d.ts +0 -10
- package/dist/plugin/app/src/plugin/platform/constants/index.d.ts +6 -6
- package/dist/plugin/app/src/plugin/platform/cores/index.d.ts +24 -6
- package/dist/plugin/app/src/plugin/platform/index.d.ts +2 -11
- package/dist/plugin/app/src/plugin/platform/types/index.d.ts +0 -10
- package/dist/plugin/app/src/plugin/platform/types/platform.d.ts +22 -14
- package/dist/plugin/app/src/plugin/theme/cores/index.d.ts +2 -2
- package/dist/plugin/app/src/plugin/theme/index.d.ts +2 -4
- package/dist/plugin/app/src/plugin/theme/types/index.d.ts +0 -10
- package/dist/plugin/app/src/plugin/theme/types/theme.d.ts +3 -1
- package/dist/plugin/app/src/types/native.d.ts +16 -26
- package/dist/plugin/appearance/index.cjs +392 -585
- package/dist/plugin/appearance/index.d.ts +4 -37
- package/dist/plugin/appearance/index.min.cjs +1 -1
- package/dist/plugin/appearance/index.min.mjs +1 -1
- package/dist/plugin/appearance/index.mjs +392 -585
- package/dist/plugin/appearance/index.umd.js +392 -585
- package/dist/plugin/appearance/index.umd.min.js +1 -1
- package/dist/plugin/appearance/src/plugin/app/constants/index.d.ts +13 -0
- package/dist/plugin/appearance/src/plugin/app/cores/index.d.ts +3 -2
- package/dist/plugin/appearance/src/plugin/app/index.d.ts +2 -11
- package/dist/plugin/appearance/src/plugin/app/types/app.d.ts +13 -3
- package/dist/plugin/appearance/src/plugin/app/types/index.d.ts +0 -15
- package/dist/plugin/appearance/src/plugin/appearance/cores/index.d.ts +2 -2
- package/dist/plugin/appearance/src/plugin/appearance/index.d.ts +2 -7
- package/dist/plugin/appearance/src/plugin/appearance/types/appearance.d.ts +6 -3
- package/dist/plugin/appearance/src/plugin/appearance/types/index.d.ts +0 -12
- package/dist/plugin/appearance/src/plugin/clipboard/cores/index.d.ts +2 -2
- package/dist/plugin/appearance/src/plugin/clipboard/index.d.ts +2 -4
- package/dist/plugin/appearance/src/plugin/clipboard/types/clipboard.d.ts +3 -1
- package/dist/plugin/appearance/src/plugin/clipboard/types/index.d.ts +0 -10
- package/dist/plugin/appearance/src/plugin/dimension/cores/index.d.ts +2 -2
- package/dist/plugin/appearance/src/plugin/dimension/index.d.ts +3 -4
- package/dist/plugin/appearance/src/plugin/dimension/types/dimensions.d.ts +4 -2
- package/dist/plugin/appearance/src/plugin/dimension/types/index.d.ts +0 -12
- package/dist/plugin/appearance/src/plugin/fullscreen/cores/index.d.ts +2 -2
- package/dist/plugin/appearance/src/plugin/fullscreen/index.d.ts +2 -4
- package/dist/plugin/appearance/src/plugin/fullscreen/types/fullscreen.d.ts +6 -4
- package/dist/plugin/appearance/src/plugin/fullscreen/types/index.d.ts +0 -10
- package/dist/plugin/appearance/src/plugin/platform/constants/index.d.ts +6 -6
- package/dist/plugin/appearance/src/plugin/platform/cores/index.d.ts +24 -6
- package/dist/plugin/appearance/src/plugin/platform/index.d.ts +2 -11
- package/dist/plugin/appearance/src/plugin/platform/types/index.d.ts +0 -10
- package/dist/plugin/appearance/src/plugin/platform/types/platform.d.ts +22 -14
- package/dist/plugin/appearance/src/plugin/theme/cores/index.d.ts +2 -2
- package/dist/plugin/appearance/src/plugin/theme/index.d.ts +2 -4
- package/dist/plugin/appearance/src/plugin/theme/types/index.d.ts +0 -10
- package/dist/plugin/appearance/src/plugin/theme/types/theme.d.ts +3 -1
- package/dist/plugin/appearance/src/types/native.d.ts +16 -26
- package/dist/plugin/clipboard/index.cjs +48 -822
- package/dist/plugin/clipboard/index.d.ts +4 -27
- package/dist/plugin/clipboard/index.min.cjs +1 -1
- package/dist/plugin/clipboard/index.min.mjs +1 -1
- package/dist/plugin/clipboard/index.mjs +48 -822
- package/dist/plugin/clipboard/index.umd.js +48 -822
- package/dist/plugin/clipboard/index.umd.min.js +1 -1
- package/dist/plugin/clipboard/src/plugin/app/constants/index.d.ts +13 -0
- package/dist/plugin/clipboard/src/plugin/app/cores/index.d.ts +3 -2
- package/dist/plugin/clipboard/src/plugin/app/index.d.ts +2 -11
- package/dist/plugin/clipboard/src/plugin/app/types/app.d.ts +13 -3
- package/dist/plugin/clipboard/src/plugin/app/types/index.d.ts +0 -15
- package/dist/plugin/clipboard/src/plugin/appearance/cores/index.d.ts +2 -2
- package/dist/plugin/clipboard/src/plugin/appearance/index.d.ts +2 -7
- package/dist/plugin/clipboard/src/plugin/appearance/types/appearance.d.ts +6 -3
- package/dist/plugin/clipboard/src/plugin/appearance/types/index.d.ts +0 -12
- package/dist/plugin/clipboard/src/plugin/clipboard/cores/index.d.ts +2 -2
- package/dist/plugin/clipboard/src/plugin/clipboard/index.d.ts +2 -4
- package/dist/plugin/clipboard/src/plugin/clipboard/types/clipboard.d.ts +3 -1
- package/dist/plugin/clipboard/src/plugin/clipboard/types/index.d.ts +0 -10
- package/dist/plugin/clipboard/src/plugin/dimension/cores/index.d.ts +2 -2
- package/dist/plugin/clipboard/src/plugin/dimension/index.d.ts +3 -4
- package/dist/plugin/clipboard/src/plugin/dimension/types/dimensions.d.ts +4 -2
- package/dist/plugin/clipboard/src/plugin/dimension/types/index.d.ts +0 -12
- package/dist/plugin/clipboard/src/plugin/fullscreen/cores/index.d.ts +2 -2
- package/dist/plugin/clipboard/src/plugin/fullscreen/index.d.ts +2 -4
- package/dist/plugin/clipboard/src/plugin/fullscreen/types/fullscreen.d.ts +6 -4
- package/dist/plugin/clipboard/src/plugin/fullscreen/types/index.d.ts +0 -10
- package/dist/plugin/clipboard/src/plugin/platform/constants/index.d.ts +6 -6
- package/dist/plugin/clipboard/src/plugin/platform/cores/index.d.ts +24 -6
- package/dist/plugin/clipboard/src/plugin/platform/index.d.ts +2 -11
- package/dist/plugin/clipboard/src/plugin/platform/types/index.d.ts +0 -10
- package/dist/plugin/clipboard/src/plugin/platform/types/platform.d.ts +22 -14
- package/dist/plugin/clipboard/src/plugin/theme/cores/index.d.ts +2 -2
- package/dist/plugin/clipboard/src/plugin/theme/index.d.ts +2 -4
- package/dist/plugin/clipboard/src/plugin/theme/types/index.d.ts +0 -10
- package/dist/plugin/clipboard/src/plugin/theme/types/theme.d.ts +3 -1
- package/dist/plugin/clipboard/src/types/native.d.ts +16 -26
- package/dist/plugin/dimension/index.cjs +3 -883
- package/dist/plugin/dimension/index.d.ts +4 -36
- package/dist/plugin/dimension/index.min.cjs +1 -1
- package/dist/plugin/dimension/index.min.mjs +1 -1
- package/dist/plugin/dimension/index.mjs +3 -883
- package/dist/plugin/dimension/index.umd.js +3 -883
- package/dist/plugin/dimension/index.umd.min.js +1 -1
- package/dist/plugin/dimension/src/plugin/app/constants/index.d.ts +13 -0
- package/dist/plugin/dimension/src/plugin/app/cores/index.d.ts +3 -2
- package/dist/plugin/dimension/src/plugin/app/index.d.ts +2 -11
- package/dist/plugin/dimension/src/plugin/app/types/app.d.ts +13 -3
- package/dist/plugin/dimension/src/plugin/app/types/index.d.ts +0 -15
- package/dist/plugin/dimension/src/plugin/appearance/cores/index.d.ts +2 -2
- package/dist/plugin/dimension/src/plugin/appearance/index.d.ts +2 -7
- package/dist/plugin/dimension/src/plugin/appearance/types/appearance.d.ts +6 -3
- package/dist/plugin/dimension/src/plugin/appearance/types/index.d.ts +0 -12
- package/dist/plugin/dimension/src/plugin/clipboard/cores/index.d.ts +2 -2
- package/dist/plugin/dimension/src/plugin/clipboard/index.d.ts +2 -4
- package/dist/plugin/dimension/src/plugin/clipboard/types/clipboard.d.ts +3 -1
- package/dist/plugin/dimension/src/plugin/clipboard/types/index.d.ts +0 -10
- package/dist/plugin/dimension/src/plugin/dimension/cores/index.d.ts +2 -2
- package/dist/plugin/dimension/src/plugin/dimension/index.d.ts +3 -4
- package/dist/plugin/dimension/src/plugin/dimension/types/dimensions.d.ts +4 -2
- package/dist/plugin/dimension/src/plugin/dimension/types/index.d.ts +0 -12
- package/dist/plugin/dimension/src/plugin/fullscreen/cores/index.d.ts +2 -2
- package/dist/plugin/dimension/src/plugin/fullscreen/index.d.ts +2 -4
- package/dist/plugin/dimension/src/plugin/fullscreen/types/fullscreen.d.ts +6 -4
- package/dist/plugin/dimension/src/plugin/fullscreen/types/index.d.ts +0 -10
- package/dist/plugin/dimension/src/plugin/platform/constants/index.d.ts +6 -6
- package/dist/plugin/dimension/src/plugin/platform/cores/index.d.ts +24 -6
- package/dist/plugin/dimension/src/plugin/platform/index.d.ts +2 -11
- package/dist/plugin/dimension/src/plugin/platform/types/index.d.ts +0 -10
- package/dist/plugin/dimension/src/plugin/platform/types/platform.d.ts +22 -14
- package/dist/plugin/dimension/src/plugin/theme/cores/index.d.ts +2 -2
- package/dist/plugin/dimension/src/plugin/theme/index.d.ts +2 -4
- package/dist/plugin/dimension/src/plugin/theme/types/index.d.ts +0 -10
- package/dist/plugin/dimension/src/plugin/theme/types/theme.d.ts +3 -1
- package/dist/plugin/dimension/src/types/native.d.ts +16 -26
- package/dist/plugin/fullscreen/index.cjs +391 -588
- package/dist/plugin/fullscreen/index.d.ts +4 -33
- package/dist/plugin/fullscreen/index.min.cjs +1 -1
- package/dist/plugin/fullscreen/index.min.mjs +1 -1
- package/dist/plugin/fullscreen/index.mjs +391 -588
- package/dist/plugin/fullscreen/index.umd.js +391 -588
- package/dist/plugin/fullscreen/index.umd.min.js +1 -1
- package/dist/plugin/fullscreen/src/plugin/app/constants/index.d.ts +13 -0
- package/dist/plugin/fullscreen/src/plugin/app/cores/index.d.ts +3 -2
- package/dist/plugin/fullscreen/src/plugin/app/index.d.ts +2 -11
- package/dist/plugin/fullscreen/src/plugin/app/types/app.d.ts +13 -3
- package/dist/plugin/fullscreen/src/plugin/app/types/index.d.ts +0 -15
- package/dist/plugin/fullscreen/src/plugin/appearance/cores/index.d.ts +2 -2
- package/dist/plugin/fullscreen/src/plugin/appearance/index.d.ts +2 -7
- package/dist/plugin/fullscreen/src/plugin/appearance/types/appearance.d.ts +6 -3
- package/dist/plugin/fullscreen/src/plugin/appearance/types/index.d.ts +0 -12
- package/dist/plugin/fullscreen/src/plugin/clipboard/cores/index.d.ts +2 -2
- package/dist/plugin/fullscreen/src/plugin/clipboard/index.d.ts +2 -4
- package/dist/plugin/fullscreen/src/plugin/clipboard/types/clipboard.d.ts +3 -1
- package/dist/plugin/fullscreen/src/plugin/clipboard/types/index.d.ts +0 -10
- package/dist/plugin/fullscreen/src/plugin/dimension/cores/index.d.ts +2 -2
- package/dist/plugin/fullscreen/src/plugin/dimension/index.d.ts +3 -4
- package/dist/plugin/fullscreen/src/plugin/dimension/types/dimensions.d.ts +4 -2
- package/dist/plugin/fullscreen/src/plugin/dimension/types/index.d.ts +0 -12
- package/dist/plugin/fullscreen/src/plugin/fullscreen/cores/index.d.ts +2 -2
- package/dist/plugin/fullscreen/src/plugin/fullscreen/index.d.ts +2 -4
- package/dist/plugin/fullscreen/src/plugin/fullscreen/types/fullscreen.d.ts +6 -4
- package/dist/plugin/fullscreen/src/plugin/fullscreen/types/index.d.ts +0 -10
- package/dist/plugin/fullscreen/src/plugin/platform/constants/index.d.ts +6 -6
- package/dist/plugin/fullscreen/src/plugin/platform/cores/index.d.ts +24 -6
- package/dist/plugin/fullscreen/src/plugin/platform/index.d.ts +2 -11
- package/dist/plugin/fullscreen/src/plugin/platform/types/index.d.ts +0 -10
- package/dist/plugin/fullscreen/src/plugin/platform/types/platform.d.ts +22 -14
- package/dist/plugin/fullscreen/src/plugin/theme/cores/index.d.ts +2 -2
- package/dist/plugin/fullscreen/src/plugin/theme/index.d.ts +2 -4
- package/dist/plugin/fullscreen/src/plugin/theme/types/index.d.ts +0 -10
- package/dist/plugin/fullscreen/src/plugin/theme/types/theme.d.ts +3 -1
- package/dist/plugin/fullscreen/src/types/native.d.ts +16 -26
- package/dist/plugin/platform/index.cjs +409 -488
- package/dist/plugin/platform/index.d.ts +4 -96
- package/dist/plugin/platform/index.min.cjs +1 -1
- package/dist/plugin/platform/index.min.mjs +1 -1
- package/dist/plugin/platform/index.mjs +409 -488
- package/dist/plugin/platform/index.umd.js +409 -488
- package/dist/plugin/platform/index.umd.min.js +1 -1
- package/dist/plugin/platform/src/plugin/app/constants/index.d.ts +13 -0
- package/dist/plugin/platform/src/plugin/app/cores/index.d.ts +3 -2
- package/dist/plugin/platform/src/plugin/app/index.d.ts +2 -11
- package/dist/plugin/platform/src/plugin/app/types/app.d.ts +13 -3
- package/dist/plugin/platform/src/plugin/app/types/index.d.ts +0 -15
- package/dist/plugin/platform/src/plugin/appearance/cores/index.d.ts +2 -2
- package/dist/plugin/platform/src/plugin/appearance/index.d.ts +2 -7
- package/dist/plugin/platform/src/plugin/appearance/types/appearance.d.ts +6 -3
- package/dist/plugin/platform/src/plugin/appearance/types/index.d.ts +0 -12
- package/dist/plugin/platform/src/plugin/clipboard/cores/index.d.ts +2 -2
- package/dist/plugin/platform/src/plugin/clipboard/index.d.ts +2 -4
- package/dist/plugin/platform/src/plugin/clipboard/types/clipboard.d.ts +3 -1
- package/dist/plugin/platform/src/plugin/clipboard/types/index.d.ts +0 -10
- package/dist/plugin/platform/src/plugin/dimension/cores/index.d.ts +2 -2
- package/dist/plugin/platform/src/plugin/dimension/index.d.ts +3 -4
- package/dist/plugin/platform/src/plugin/dimension/types/dimensions.d.ts +4 -2
- package/dist/plugin/platform/src/plugin/dimension/types/index.d.ts +0 -12
- package/dist/plugin/platform/src/plugin/fullscreen/cores/index.d.ts +2 -2
- package/dist/plugin/platform/src/plugin/fullscreen/index.d.ts +2 -4
- package/dist/plugin/platform/src/plugin/fullscreen/types/fullscreen.d.ts +6 -4
- package/dist/plugin/platform/src/plugin/fullscreen/types/index.d.ts +0 -10
- package/dist/plugin/platform/src/plugin/platform/constants/index.d.ts +6 -6
- package/dist/plugin/platform/src/plugin/platform/cores/index.d.ts +24 -6
- package/dist/plugin/platform/src/plugin/platform/index.d.ts +2 -11
- package/dist/plugin/platform/src/plugin/platform/types/index.d.ts +0 -10
- package/dist/plugin/platform/src/plugin/platform/types/platform.d.ts +22 -14
- package/dist/plugin/platform/src/plugin/theme/cores/index.d.ts +2 -2
- package/dist/plugin/platform/src/plugin/theme/index.d.ts +2 -4
- package/dist/plugin/platform/src/plugin/theme/types/index.d.ts +0 -10
- package/dist/plugin/platform/src/plugin/theme/types/theme.d.ts +3 -1
- package/dist/plugin/platform/src/types/native.d.ts +16 -26
- package/dist/plugin/theme/index.cjs +390 -461
- package/dist/plugin/theme/index.d.ts +4 -27
- package/dist/plugin/theme/index.min.cjs +1 -1
- package/dist/plugin/theme/index.min.mjs +1 -1
- package/dist/plugin/theme/index.mjs +390 -461
- package/dist/plugin/theme/index.umd.js +390 -461
- package/dist/plugin/theme/index.umd.min.js +1 -1
- package/dist/plugin/theme/src/plugin/app/constants/index.d.ts +13 -0
- package/dist/plugin/theme/src/plugin/app/cores/index.d.ts +3 -2
- package/dist/plugin/theme/src/plugin/app/index.d.ts +2 -11
- package/dist/plugin/theme/src/plugin/app/types/app.d.ts +13 -3
- package/dist/plugin/theme/src/plugin/app/types/index.d.ts +0 -15
- package/dist/plugin/theme/src/plugin/appearance/cores/index.d.ts +2 -2
- package/dist/plugin/theme/src/plugin/appearance/index.d.ts +2 -7
- package/dist/plugin/theme/src/plugin/appearance/types/appearance.d.ts +6 -3
- package/dist/plugin/theme/src/plugin/appearance/types/index.d.ts +0 -12
- package/dist/plugin/theme/src/plugin/clipboard/cores/index.d.ts +2 -2
- package/dist/plugin/theme/src/plugin/clipboard/index.d.ts +2 -4
- package/dist/plugin/theme/src/plugin/clipboard/types/clipboard.d.ts +3 -1
- package/dist/plugin/theme/src/plugin/clipboard/types/index.d.ts +0 -10
- package/dist/plugin/theme/src/plugin/dimension/cores/index.d.ts +2 -2
- package/dist/plugin/theme/src/plugin/dimension/index.d.ts +3 -4
- package/dist/plugin/theme/src/plugin/dimension/types/dimensions.d.ts +4 -2
- package/dist/plugin/theme/src/plugin/dimension/types/index.d.ts +0 -12
- package/dist/plugin/theme/src/plugin/fullscreen/cores/index.d.ts +2 -2
- package/dist/plugin/theme/src/plugin/fullscreen/index.d.ts +2 -4
- package/dist/plugin/theme/src/plugin/fullscreen/types/fullscreen.d.ts +6 -4
- package/dist/plugin/theme/src/plugin/fullscreen/types/index.d.ts +0 -10
- package/dist/plugin/theme/src/plugin/platform/constants/index.d.ts +6 -6
- package/dist/plugin/theme/src/plugin/platform/cores/index.d.ts +24 -6
- package/dist/plugin/theme/src/plugin/platform/index.d.ts +2 -11
- package/dist/plugin/theme/src/plugin/platform/types/index.d.ts +0 -10
- package/dist/plugin/theme/src/plugin/platform/types/platform.d.ts +22 -14
- package/dist/plugin/theme/src/plugin/theme/cores/index.d.ts +2 -2
- package/dist/plugin/theme/src/plugin/theme/index.d.ts +2 -4
- package/dist/plugin/theme/src/plugin/theme/types/index.d.ts +0 -10
- package/dist/plugin/theme/src/plugin/theme/types/theme.d.ts +3 -1
- package/dist/plugin/theme/src/types/native.d.ts +16 -26
- package/dist/src/constants/index.d.ts +1 -0
- package/dist/src/errors/not-supported-error.d.ts +2 -0
- package/dist/src/errors/permission-not-granted-error.d.ts +2 -0
- package/dist/src/plugin/Display/constants/index.d.ts +4 -0
- package/dist/src/plugin/Display/cores/index.d.ts +3 -0
- package/dist/src/plugin/Display/index.d.ts +3 -0
- package/dist/src/plugin/Display/types/display.d.ts +13 -0
- package/dist/src/plugin/Display/types/index.d.ts +1 -0
- package/dist/src/plugin/app/constants/index.d.ts +21 -0
- package/dist/src/plugin/app/cores/index.d.ts +10 -2
- package/dist/src/plugin/app/index.d.ts +2 -11
- package/dist/src/plugin/app/types/app.d.ts +73 -3
- package/dist/src/plugin/app/types/index.d.ts +0 -15
- package/dist/src/plugin/appearance/constants/index.d.ts +1 -4
- package/dist/src/plugin/appearance/index.d.ts +2 -7
- package/dist/src/plugin/appearance/types/appearance.d.ts +5 -2
- package/dist/src/plugin/appearance/types/appearanceInstance.d.ts +9 -0
- package/dist/src/plugin/appearance/types/index.d.ts +0 -12
- package/dist/src/plugin/badge/cores/index.d.ts +3 -0
- package/dist/src/plugin/badge/index.d.ts +3 -0
- package/dist/src/plugin/badge/types/badge.d.ts +10 -0
- package/dist/src/plugin/badge/types/index.d.ts +1 -0
- package/dist/src/plugin/battery/cores/index.d.ts +3 -0
- package/dist/src/plugin/battery/index.d.ts +3 -0
- package/dist/src/plugin/battery/types/battery.d.ts +26 -0
- package/dist/src/plugin/battery/types/index.d.ts +1 -0
- package/dist/src/plugin/clipboard/index.d.ts +2 -4
- package/dist/src/plugin/clipboard/types/clipboard.d.ts +2 -0
- package/dist/src/plugin/clipboard/types/index.d.ts +0 -10
- package/dist/src/plugin/dimension/constants/index.d.ts +42 -2
- package/dist/src/plugin/dimension/index.d.ts +3 -4
- package/dist/src/plugin/dimension/types/dimensions.d.ts +24 -1
- package/dist/src/plugin/dimension/types/index.d.ts +0 -12
- package/dist/src/plugin/dimension/utils/create-env-observer.d.ts +24 -0
- package/dist/src/plugin/fullscreen/cores/index.d.ts +3 -1
- package/dist/src/plugin/fullscreen/index.d.ts +2 -4
- package/dist/src/plugin/fullscreen/types/fullscreen.d.ts +11 -6
- package/dist/src/plugin/fullscreen/types/index.d.ts +0 -10
- package/dist/src/plugin/geolocation/constants/index.d.ts +2 -0
- package/dist/src/plugin/geolocation/cores/index.d.ts +3 -0
- package/dist/src/plugin/geolocation/index.d.ts +3 -0
- package/dist/src/plugin/geolocation/types/geolocation.d.ts +12 -0
- package/dist/src/plugin/geolocation/types/index.d.ts +1 -0
- package/dist/src/plugin/network/cores/index.d.ts +15 -0
- package/dist/src/plugin/network/index.d.ts +3 -0
- package/dist/src/plugin/network/types/index.d.ts +1 -0
- package/dist/src/plugin/network/types/network.d.ts +4 -0
- package/dist/src/plugin/notification/cores/index.d.ts +3 -0
- package/dist/src/plugin/notification/index.d.ts +3 -0
- package/dist/src/plugin/notification/types/index.d.ts +1 -0
- package/dist/src/plugin/notification/types/notification.d.ts +27 -0
- package/dist/src/plugin/open/constants/index.d.ts +28 -0
- package/dist/src/plugin/open/cores/index.d.ts +55 -0
- package/dist/src/plugin/open/errors/not-supported-error.d.ts +2 -0
- package/dist/src/plugin/open/errors/url-open-error.d.ts +2 -0
- package/dist/src/plugin/open/errors/user-cancel-error.d.ts +2 -0
- package/dist/src/plugin/open/index.d.ts +3 -0
- package/dist/src/plugin/open/types/index.d.ts +1 -0
- package/dist/src/plugin/open/types/open.d.ts +187 -0
- package/dist/src/plugin/permission/constants/index.d.ts +22 -0
- package/dist/src/plugin/permission/cores/index.d.ts +3 -0
- package/dist/src/plugin/permission/index.d.ts +3 -0
- package/dist/src/plugin/permission/types/index.d.ts +1 -0
- package/dist/src/plugin/permission/types/permission.d.ts +10 -0
- package/dist/src/plugin/pip/cores/index.d.ts +12 -0
- package/dist/src/plugin/pip/index.d.ts +3 -0
- package/dist/src/plugin/pip/types/index.d.ts +1 -0
- package/dist/src/plugin/pip/types/pip.d.ts +15 -0
- package/dist/src/plugin/platform/constants/index.d.ts +5 -6
- package/dist/src/plugin/platform/cores/index.d.ts +36 -5
- package/dist/src/plugin/platform/index.d.ts +2 -11
- package/dist/src/plugin/platform/types/index.d.ts +0 -10
- package/dist/src/plugin/platform/types/platform.d.ts +31 -14
- package/dist/src/plugin/pwa/cores/index.d.ts +3 -0
- package/dist/src/plugin/pwa/index.d.ts +3 -0
- package/dist/src/plugin/pwa/types/index.d.ts +1 -0
- package/dist/src/plugin/pwa/types/pwa.d.ts +8 -0
- package/dist/src/plugin/speech/cores/index.d.ts +53 -0
- package/dist/src/plugin/speech/index.d.ts +3 -0
- package/dist/src/plugin/speech/types/index.d.ts +1 -0
- package/dist/src/plugin/speech/types/speech.d.ts +9 -0
- package/dist/src/plugin/theme/index.d.ts +2 -4
- package/dist/src/plugin/theme/types/index.d.ts +0 -10
- package/dist/src/plugin/theme/types/theme.d.ts +2 -0
- package/dist/src/plugin/vibration/cores/index.d.ts +3 -0
- package/dist/src/plugin/vibration/index.d.ts +3 -0
- package/dist/src/plugin/vibration/types/index.d.ts +1 -0
- package/dist/src/plugin/vibration/types/vibration.d.ts +9 -0
- package/dist/src/types/event-listener.d.ts +35 -0
- package/dist/src/types/index.d.ts +3 -0
- package/dist/src/types/listener-entry.d.ts +0 -1
- package/dist/src/types/native.d.ts +30 -26
- package/dist/src/types/subscription-manager.d.ts +4 -0
- package/dist/src/utils/create-env-observer.d.ts +8 -0
- package/dist/src/utils/create-hidden-element.d.ts +1 -1
- package/dist/src/utils/create-subscription-manager.d.ts +2 -0
- package/dist/src/utils/defer.d.ts +1 -0
- package/dist/src/utils/event-listener.d.ts +3 -0
- package/dist/src/utils/keys.d.ts +1 -0
- package/dist/src/utils/now.d.ts +1 -0
- package/dist/src/utils/pad-start.d.ts +1 -0
- package/dist/src/utils/random-string.d.ts +1 -0
- package/dist/src/utils/set-style.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,5 +1,321 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
function resolveWindowsVersion(string) {
|
|
4
|
+
if (typeof string === 'undefined')
|
|
5
|
+
return '';
|
|
6
|
+
var mapped = {
|
|
7
|
+
'4.90': 'ME',
|
|
8
|
+
'NT3.51': 'NT 3.11',
|
|
9
|
+
'NT4.0': 'NT 4.0',
|
|
10
|
+
'NT 5.0': '2000',
|
|
11
|
+
'NT 5.1': 'XP',
|
|
12
|
+
'NT 5.2': 'XP',
|
|
13
|
+
'NT 6.0': 'Vista',
|
|
14
|
+
'NT 6.1': '7',
|
|
15
|
+
'NT 6.2': '8',
|
|
16
|
+
'NT 6.3': '8.1',
|
|
17
|
+
'NT 6.4': '10',
|
|
18
|
+
'NT 10.0': '10',
|
|
19
|
+
'ARM': 'RT'
|
|
20
|
+
}[string];
|
|
21
|
+
if (typeof mapped !== 'undefined')
|
|
22
|
+
return mapped;
|
|
23
|
+
return string;
|
|
24
|
+
}
|
|
25
|
+
function resolveUnderscoreVersion(string) {
|
|
26
|
+
if (typeof string === 'undefined')
|
|
27
|
+
return '';
|
|
28
|
+
return string.replace(/_/g, '.');
|
|
29
|
+
}
|
|
30
|
+
var OS;
|
|
31
|
+
(function (OS) {
|
|
32
|
+
OS["Unknown"] = "Unknown";
|
|
33
|
+
OS["Android"] = "Android";
|
|
34
|
+
OS["iOS"] = "iOS";
|
|
35
|
+
OS["Windows"] = "Windows";
|
|
36
|
+
OS["MacOS"] = "MacOS";
|
|
37
|
+
})(OS || (OS = {}));
|
|
38
|
+
var Devices;
|
|
39
|
+
(function (Devices) {
|
|
40
|
+
Devices["Unknown"] = "Unknown";
|
|
41
|
+
Devices["Mobile"] = "Mobile";
|
|
42
|
+
Devices["Desktop"] = "Desktop";
|
|
43
|
+
})(Devices || (Devices = {}));
|
|
44
|
+
var Engines;
|
|
45
|
+
(function (Engines) {
|
|
46
|
+
Engines["Unknown"] = "Unknown";
|
|
47
|
+
Engines["EdgeHTML"] = "EdgeHTML";
|
|
48
|
+
Engines["ArkWeb"] = "ArkWeb";
|
|
49
|
+
Engines["Blink"] = "Blink";
|
|
50
|
+
Engines["Presto"] = "Presto";
|
|
51
|
+
Engines["WebKit"] = "WebKit";
|
|
52
|
+
Engines["Trident"] = "Trident";
|
|
53
|
+
Engines["NetFront"] = "NetFront";
|
|
54
|
+
Engines["KHTML"] = "KHTML";
|
|
55
|
+
Engines["Tasman"] = "Tasman";
|
|
56
|
+
Engines["Gecko"] = "Gecko";
|
|
57
|
+
})(Engines || (Engines = {}));
|
|
58
|
+
var Browsers;
|
|
59
|
+
(function (Browsers) {
|
|
60
|
+
Browsers["Unknown"] = "Unknown";
|
|
61
|
+
Browsers["Chrome"] = "Chrome";
|
|
62
|
+
Browsers["Safari"] = "Safari";
|
|
63
|
+
Browsers["Edge"] = "Edge";
|
|
64
|
+
Browsers["Firefox"] = "Firefox";
|
|
65
|
+
Browsers["Opera"] = "Opera";
|
|
66
|
+
Browsers["IE"] = "IE";
|
|
67
|
+
Browsers["SamsungInternet"] = "SamsungInternet";
|
|
68
|
+
})(Browsers || (Browsers = {}));
|
|
69
|
+
var USER_AGENT = typeof globalThis.navigator !== 'undefined' && typeof globalThis.navigator.userAgent === 'string' ? globalThis.navigator.userAgent : '';
|
|
70
|
+
var HIGH_ENTROPY_BRAND_NAME_MAP = {
|
|
71
|
+
'Google Chrome': 'Chrome',
|
|
72
|
+
'Microsoft Edge': 'Edge',
|
|
73
|
+
'Microsoft Edge WebView2': 'Edge WebView2',
|
|
74
|
+
'Android WebView': 'Chrome WebView',
|
|
75
|
+
'HeadlessChrome': 'Chrome Headless',
|
|
76
|
+
'OperaMobile': 'Opera Mobi',
|
|
77
|
+
};
|
|
78
|
+
var RTL_LANGUAGES = ['ae', 'ar', 'arc', 'bcc', 'bqi', 'ckb', 'dv', 'fa', 'glk', 'he', 'iw', 'ku', 'mzn', 'nqo', 'pnb', 'ps', 'sd', 'ug', 'ur', 'yi'];
|
|
79
|
+
var OS_RESOLVER_MAP = [
|
|
80
|
+
[/windows nt (6\.[23]); arm/i, OS.Windows, resolveWindowsVersion],
|
|
81
|
+
[/windows (?:phone|mobile|iot)(?: os)?[\/ ]?([\d.]*( se)?)/i, OS.Windows, resolveWindowsVersion],
|
|
82
|
+
[/windows[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i, OS.Windows, resolveWindowsVersion],
|
|
83
|
+
[/windows nt ?([\d.)]*)(?!.+xbox)/i, OS.Windows, resolveWindowsVersion],
|
|
84
|
+
[/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d.;]*)/i, OS.Windows, resolveWindowsVersion],
|
|
85
|
+
[/windows ce\/?([\d.]*)/i, OS.Windows, resolveWindowsVersion],
|
|
86
|
+
[/[adehimnop]{4,7}\b(?:.*os (\w+) like mac|; opera)/i, OS.iOS, resolveUnderscoreVersion],
|
|
87
|
+
[/(?:ios;fbsv|ios(?=.+ip(?:ad|hone))|ip(?:ad|hone)(?: |.+i(?:pad)?)os)[\/ ]([\w.]+)/i, OS.iOS, resolveUnderscoreVersion],
|
|
88
|
+
[/cfnetwork\/.+darwin/i, OS.iOS, resolveUnderscoreVersion],
|
|
89
|
+
[/mac os x ?([\w. ]*)/i, OS.MacOS, resolveUnderscoreVersion],
|
|
90
|
+
[/(?:macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i, OS.MacOS, resolveUnderscoreVersion],
|
|
91
|
+
[/droid ([\w.]+)\b.+(android[- ]x86)/i, OS.Android],
|
|
92
|
+
[/android\w*[-\/.; ]?([\d.]*)/i, OS.Android],
|
|
93
|
+
];
|
|
94
|
+
var ENGINE_RESOLVER_MAP = [
|
|
95
|
+
[/windows.+ edge\/([\w.]+)/i, Engines.EdgeHTML],
|
|
96
|
+
[/arkweb\/([\w.]+)/i, Engines.ArkWeb],
|
|
97
|
+
[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i, Engines.Blink],
|
|
98
|
+
[/presto\/([\w.]+)/i, Engines.Presto],
|
|
99
|
+
[/webkit\/([\w.]+)/i, Engines.WebKit],
|
|
100
|
+
[/trident\/([\w.]+)/i, Engines.Trident],
|
|
101
|
+
[/netfront\/([\w.]+)/i, Engines.NetFront],
|
|
102
|
+
[/khtml[\/ ]\(?([\w.]+)/i, Engines.KHTML],
|
|
103
|
+
[/tasman[\/ ]\(?([\w.]+)/i, Engines.Tasman],
|
|
104
|
+
[/rv:([\w.]{1,9})\b.+gecko/i, Engines.Gecko]
|
|
105
|
+
];
|
|
106
|
+
var BROWSER_RESOLVER_MAP = [
|
|
107
|
+
[/\b(?:crmo|crios)\/([\w.]+)/i, Browsers.Chrome],
|
|
108
|
+
[/webview.+edge\/([\w.]+)/i, Browsers.Edge],
|
|
109
|
+
[/edg(?:e|ios|a)?\/([\w.]+)/i, Browsers.Edge],
|
|
110
|
+
[/opera mini\/([-\w.]+)/i, Browsers.Opera],
|
|
111
|
+
[/opera [mobileta]{3,6}\b.+version\/([-\w.]+)/i, Browsers.Opera],
|
|
112
|
+
[/opera(?:.+version\/|[\/ ]+)([\w.]+)/i, Browsers.Opera],
|
|
113
|
+
[/opios[\/ ]+([\w.]+)/i, Browsers.Opera],
|
|
114
|
+
[/\bop(?:rg)?x\/([\w.]+)/i, Browsers.Opera],
|
|
115
|
+
[/\bopr\/([\w.]+)/i, Browsers.Opera],
|
|
116
|
+
[/iemobile(?:browser|boat|jet)[\/ ]?([\d.]*)/i, Browsers.IE],
|
|
117
|
+
[/(?:ms|\()ie ([\w.]+)/i, Browsers.IE],
|
|
118
|
+
[/trident.+rv[: ]([\w.]{1,9})\b.+like gecko/i, Browsers.IE],
|
|
119
|
+
[/\bfocus\/([\w.]+)/i, Browsers.Firefox],
|
|
120
|
+
[/\bopt\/([\w.]+)/i, Browsers.Opera],
|
|
121
|
+
[/coast\/([\w.]+)/i, Browsers.Opera],
|
|
122
|
+
[/fxios\/([\w.-]+)/i, Browsers.Firefox],
|
|
123
|
+
[/samsungbrowser\/([\w.]+)/i, Browsers.SamsungInternet],
|
|
124
|
+
[/headlesschrome(?:\/([\w.]+)| )/i, Browsers.Chrome],
|
|
125
|
+
[/wv\).+chrome\/([\w.]+).+edgw\//i, Browsers.Edge],
|
|
126
|
+
[/ wv\).+(chrome)\/([\w.]+)/i, Browsers.Chrome],
|
|
127
|
+
[/chrome\/([\w.]+) mobile/i, Browsers.Chrome],
|
|
128
|
+
[/chrome\/v?([\w.]+)/i, Browsers.Chrome],
|
|
129
|
+
[/version\/([\w.,]+) .*mobile(?:\/\w+ | ?)safari/i, Browsers.Safari],
|
|
130
|
+
[/iphone .*mobile(?:\/\w+ | ?)safari/i, Browsers.Safari],
|
|
131
|
+
[/version\/([\w.,]+) .*safari/i, Browsers.Safari],
|
|
132
|
+
[/webkit.+?(?:mobile ?safari|safari)(\/[\w.]+)/i, Browsers.Safari, '1'],
|
|
133
|
+
[/(?:mobile|tablet);.*firefox\/([\w.-]+)/i, Browsers.Firefox],
|
|
134
|
+
[/mobile vr; rv:([\w.]+)\).+firefox/i, Browsers.Firefox],
|
|
135
|
+
[/firefox\/([\w.]+)/i, Browsers.Firefox],
|
|
136
|
+
];
|
|
137
|
+
var BOT_REGEXP = [
|
|
138
|
+
/ daum[ /]/i,
|
|
139
|
+
/ deusu\//i,
|
|
140
|
+
/(?:^|[^g])news(?!sapphire)/i,
|
|
141
|
+
/(?<! (?:channel\/|google\/))google(?!(app|\/google| pixel))/i,
|
|
142
|
+
/(?<! cu)bots?(?:\b|_)/i,
|
|
143
|
+
/(?<!lib)http/i,
|
|
144
|
+
/(?<![hg]m)score/i,
|
|
145
|
+
/(?<!cam)scan/i,
|
|
146
|
+
/24x7/i,
|
|
147
|
+
/@[a-z][\w-]+\./i,
|
|
148
|
+
/\(\)/i,
|
|
149
|
+
/\.com\b/i,
|
|
150
|
+
/\b\w+\.ai/i,
|
|
151
|
+
/\bmanus-user\//i,
|
|
152
|
+
/\bort\//i,
|
|
153
|
+
/\bperl\b/i,
|
|
154
|
+
/\bsecurityheaders\b/i,
|
|
155
|
+
/\btime\//i,
|
|
156
|
+
/\|/i,
|
|
157
|
+
/^[\w .\-(?:)%]+(?:\/v?\d+(?:\.\d+)?(?:\.\d{1,10})*?)?(?:,|$)/i,
|
|
158
|
+
/^[^ ]{50,}$/i,
|
|
159
|
+
/^\d+\b/i,
|
|
160
|
+
/^\W/i,
|
|
161
|
+
/^\w*search\b/i,
|
|
162
|
+
/^\w+\/[\w()]*$/i,
|
|
163
|
+
/^\w+\/\d\.\d\s\([\w@]+\)$/i,
|
|
164
|
+
/^active/i,
|
|
165
|
+
/^ad muncher/i,
|
|
166
|
+
/^amaya/i,
|
|
167
|
+
/^apache\//i,
|
|
168
|
+
/^avsdevicesdk\//i,
|
|
169
|
+
/^azure/i,
|
|
170
|
+
/^biglotron/i,
|
|
171
|
+
/^bot/i,
|
|
172
|
+
/^bw\//i,
|
|
173
|
+
/^clamav[ /]/i,
|
|
174
|
+
/^client\//i,
|
|
175
|
+
/^cobweb\//i,
|
|
176
|
+
/^custom/i,
|
|
177
|
+
/^ddg[_-]android/i,
|
|
178
|
+
/^discourse/i,
|
|
179
|
+
/^dispatch\/\d/i,
|
|
180
|
+
/^downcast\//i,
|
|
181
|
+
/^duckduckgo/i,
|
|
182
|
+
/^email/i,
|
|
183
|
+
/^facebook/i,
|
|
184
|
+
/^getright\//i,
|
|
185
|
+
/^gozilla\//i,
|
|
186
|
+
/^hobbit/i,
|
|
187
|
+
/^hotzonu/i,
|
|
188
|
+
/^hwcdn\//i,
|
|
189
|
+
/^igetter\//i,
|
|
190
|
+
/^jeode\//i,
|
|
191
|
+
/^jetty\//i,
|
|
192
|
+
/^jigsaw/i,
|
|
193
|
+
/^microsoft bits/i,
|
|
194
|
+
/^movabletype/i,
|
|
195
|
+
/^mozilla\/\d\.\d\s[\w.-]+$/i,
|
|
196
|
+
/^mozilla\/\d\.\d\s\(compatible;?(?:\s[\w-.]+\/\d+\.\d+)?\)$/i,
|
|
197
|
+
/^navermailapp/i,
|
|
198
|
+
/^netsurf/i,
|
|
199
|
+
/^offline/i,
|
|
200
|
+
/^openai\//i,
|
|
201
|
+
/^owler/i,
|
|
202
|
+
/^php/i,
|
|
203
|
+
/^postman/i,
|
|
204
|
+
/^python/i,
|
|
205
|
+
/^rank/i,
|
|
206
|
+
/^read/i,
|
|
207
|
+
/^reed/i,
|
|
208
|
+
/^rest/i,
|
|
209
|
+
/^rss/i,
|
|
210
|
+
/^snapchat/i,
|
|
211
|
+
/^space bison/i,
|
|
212
|
+
/^svn/i,
|
|
213
|
+
/^swcd /i,
|
|
214
|
+
/^taringa/i,
|
|
215
|
+
/^thumbor\//i,
|
|
216
|
+
/^track/i,
|
|
217
|
+
/^w3c/i,
|
|
218
|
+
/^webbandit\//i,
|
|
219
|
+
/^webcopier/i,
|
|
220
|
+
/^wget/i,
|
|
221
|
+
/^whatsapp/i,
|
|
222
|
+
/^wordpress/i,
|
|
223
|
+
/^xenu link sleuth/i,
|
|
224
|
+
/^yahoo/i,
|
|
225
|
+
/^yandex/i,
|
|
226
|
+
/^zdm\/\d/i,
|
|
227
|
+
/^zoom marketplace\//i,
|
|
228
|
+
/advisor/i,
|
|
229
|
+
/agent\b/i,
|
|
230
|
+
/analyzer/i,
|
|
231
|
+
/archive/i,
|
|
232
|
+
/ask jeeves\/teoma/i,
|
|
233
|
+
/audit/i,
|
|
234
|
+
/bit\.ly\//i,
|
|
235
|
+
/bluecoat drtr/i,
|
|
236
|
+
/browsex/i,
|
|
237
|
+
/burpcollaborator/i,
|
|
238
|
+
/capture/i,
|
|
239
|
+
/catch/i,
|
|
240
|
+
/check\b/i,
|
|
241
|
+
/checker/i,
|
|
242
|
+
/chrome-lighthouse/i,
|
|
243
|
+
/chromeframe/i,
|
|
244
|
+
/classifier/i,
|
|
245
|
+
/cloudflare/i,
|
|
246
|
+
/convertify/i,
|
|
247
|
+
/crawl/i,
|
|
248
|
+
/cypress\//i,
|
|
249
|
+
/dareboost/i,
|
|
250
|
+
/datanyze/i,
|
|
251
|
+
/dejaclick/i,
|
|
252
|
+
/detect/i,
|
|
253
|
+
/dmbrowser/i,
|
|
254
|
+
/download/i,
|
|
255
|
+
/exaleadcloudview/i,
|
|
256
|
+
/feed/i,
|
|
257
|
+
/fetcher/i,
|
|
258
|
+
/firephp/i,
|
|
259
|
+
/functionize/i,
|
|
260
|
+
/grab/i,
|
|
261
|
+
/headless/i,
|
|
262
|
+
/httrack/i,
|
|
263
|
+
/hubspot marketing grader/i,
|
|
264
|
+
/ibisbrowser/i,
|
|
265
|
+
/infrawatch/i,
|
|
266
|
+
/insight/i,
|
|
267
|
+
/inspect/i,
|
|
268
|
+
/iplabel/i,
|
|
269
|
+
/java(?!;)/i,
|
|
270
|
+
/library/i,
|
|
271
|
+
/linkcheck/i,
|
|
272
|
+
/mail\.ru\//i,
|
|
273
|
+
/manager/i,
|
|
274
|
+
/measure/i,
|
|
275
|
+
/neustar wpm/i,
|
|
276
|
+
/node\b/i,
|
|
277
|
+
/nutch/i,
|
|
278
|
+
/offbyone/i,
|
|
279
|
+
/onetrust/i,
|
|
280
|
+
/optimize/i,
|
|
281
|
+
/pageburst/i,
|
|
282
|
+
/pagespeed/i,
|
|
283
|
+
/parser/i,
|
|
284
|
+
/phantomjs/i,
|
|
285
|
+
/pingdom/i,
|
|
286
|
+
/powermarks/i,
|
|
287
|
+
/preview/i,
|
|
288
|
+
/proxy/i,
|
|
289
|
+
/ptst[ /]\d/i,
|
|
290
|
+
/retriever/i,
|
|
291
|
+
/rexx;/i,
|
|
292
|
+
/rigor/i,
|
|
293
|
+
/rss\b/i,
|
|
294
|
+
/scrape/i,
|
|
295
|
+
/server/i,
|
|
296
|
+
/sogou/i,
|
|
297
|
+
/sparkler\//i,
|
|
298
|
+
/speedcurve/i,
|
|
299
|
+
/spider/i,
|
|
300
|
+
/splash/i,
|
|
301
|
+
/statuscake/i,
|
|
302
|
+
/supercleaner/i,
|
|
303
|
+
/synapse/i,
|
|
304
|
+
/synthetic/i,
|
|
305
|
+
/tools/i,
|
|
306
|
+
/torrent/i,
|
|
307
|
+
/transcoder/i,
|
|
308
|
+
/url/i,
|
|
309
|
+
/validator/i,
|
|
310
|
+
/virtuoso/i,
|
|
311
|
+
/wappalyzer/i,
|
|
312
|
+
/webglance/i,
|
|
313
|
+
/webkit2png/i,
|
|
314
|
+
/whatcms\//i,
|
|
315
|
+
/xtate\//i
|
|
316
|
+
];
|
|
317
|
+
|
|
318
|
+
var _a$1, _b, _c, _d, _e;
|
|
3
319
|
var AppOpenState;
|
|
4
320
|
(function (AppOpenState) {
|
|
5
321
|
AppOpenState[AppOpenState["Scheme"] = 0] = "Scheme";
|
|
@@ -14,6 +330,69 @@ var MessengerType;
|
|
|
14
330
|
MessengerType["Message"] = "message";
|
|
15
331
|
MessengerType["Mail"] = "mail";
|
|
16
332
|
})(MessengerType || (MessengerType = {}));
|
|
333
|
+
var SettingType;
|
|
334
|
+
(function (SettingType) {
|
|
335
|
+
SettingType["General"] = "general";
|
|
336
|
+
SettingType["Network"] = "network";
|
|
337
|
+
SettingType["Display"] = "display";
|
|
338
|
+
SettingType["Appearance"] = "appearance";
|
|
339
|
+
SettingType["Accessibility"] = "accessibility";
|
|
340
|
+
SettingType["Battery"] = "battery";
|
|
341
|
+
SettingType["Datetime"] = "datetime";
|
|
342
|
+
SettingType["Language"] = "language";
|
|
343
|
+
SettingType["Accounts"] = "accounts";
|
|
344
|
+
SettingType["Storage"] = "storage";
|
|
345
|
+
})(SettingType || (SettingType = {}));
|
|
346
|
+
var SETTING_URL = (_a$1 = {},
|
|
347
|
+
_a$1[OS.Android] = (_b = {},
|
|
348
|
+
_b[SettingType.General] = 'intent:#Intent;action=android.settings.SETTINGS;end',
|
|
349
|
+
_b[SettingType.Network] = 'intent:#Intent;action=android.settings.WIFI_SETTINGS;end',
|
|
350
|
+
_b[SettingType.Display] = 'intent:#Intent;action=android.settings.DISPLAY_SETTINGS;end',
|
|
351
|
+
_b[SettingType.Appearance] = 'intent:#Intent;action=android.settings.DISPLAY_SETTINGS;end',
|
|
352
|
+
_b[SettingType.Accessibility] = 'intent:#Intent;action=android.settings.ACCESSIBILITY_SETTINGS;end',
|
|
353
|
+
_b[SettingType.Battery] = 'intent:#Intent;action=android.settings.BATTERY_SAVER_SETTINGS;end',
|
|
354
|
+
_b[SettingType.Datetime] = 'intent:#Intent;action=android.settings.DATE_SETTINGS;end',
|
|
355
|
+
_b[SettingType.Language] = 'intent:#Intent;action=android.settings.LOCALE_SETTINGS;end',
|
|
356
|
+
_b[SettingType.Accounts] = 'intent:#Intent;action=android.settings.SYNC_SETTINGS;end',
|
|
357
|
+
_b[SettingType.Storage] = 'intent:#Intent;action=android.settings.INTERNAL_STORAGE_SETTINGS;end',
|
|
358
|
+
_b),
|
|
359
|
+
_a$1[OS.Windows] = (_c = {},
|
|
360
|
+
_c[SettingType.General] = 'ms-settings:system',
|
|
361
|
+
_c[SettingType.Network] = 'ms-settings:network',
|
|
362
|
+
_c[SettingType.Display] = 'ms-settings:display',
|
|
363
|
+
_c[SettingType.Appearance] = 'ms-settings:colors',
|
|
364
|
+
_c[SettingType.Accessibility] = 'ms-settings:easeofaccess',
|
|
365
|
+
_c[SettingType.Battery] = 'ms-settings:batterysaver',
|
|
366
|
+
_c[SettingType.Datetime] = 'ms-settings:dateandtime',
|
|
367
|
+
_c[SettingType.Language] = 'ms-settings:regionlanguage',
|
|
368
|
+
_c[SettingType.Accounts] = 'ms-settings:emailandaccounts',
|
|
369
|
+
_c[SettingType.Storage] = 'ms-settings:storagesense',
|
|
370
|
+
_c),
|
|
371
|
+
_a$1[OS.MacOS] = (_d = {},
|
|
372
|
+
_d[SettingType.General] = 'x-apple.systempreferences:',
|
|
373
|
+
_d[SettingType.Network] = 'x-apple.systempreferences:com.apple.preference.network',
|
|
374
|
+
_d[SettingType.Display] = 'x-apple.systempreferences:com.apple.preference.displays',
|
|
375
|
+
_d[SettingType.Appearance] = 'x-apple.systempreferences:com.apple.preference.general',
|
|
376
|
+
_d[SettingType.Accessibility] = 'x-apple.systempreferences:com.apple.preference.universalaccess',
|
|
377
|
+
_d[SettingType.Battery] = 'x-apple.systempreferences:com.apple.preference.energysaver',
|
|
378
|
+
_d[SettingType.Datetime] = 'x-apple.systempreferences:com.apple.preference.datetime',
|
|
379
|
+
_d[SettingType.Language] = 'x-apple.systempreferences:com.apple.Localization',
|
|
380
|
+
_d[SettingType.Accounts] = 'x-apple.systempreferences:com.apple.preferences.internetaccounts',
|
|
381
|
+
_d[SettingType.Storage] = 'x-apple.systempreferences:',
|
|
382
|
+
_d),
|
|
383
|
+
_a$1['MacOS13+'] = (_e = {},
|
|
384
|
+
_e[SettingType.General] = 'x-apple.systempreferences:com.apple.General-Settings.extension',
|
|
385
|
+
_e[SettingType.Network] = 'x-apple.systempreferences:com.apple.Network-Settings.extension',
|
|
386
|
+
_e[SettingType.Display] = 'x-apple.systempreferences:com.apple.Displays-Settings.extension',
|
|
387
|
+
_e[SettingType.Appearance] = 'x-apple.systempreferences:com.apple.Appearance-Settings.extension',
|
|
388
|
+
_e[SettingType.Accessibility] = 'x-apple.systempreferences:com.apple.Accessibility-Settings.extension',
|
|
389
|
+
_e[SettingType.Battery] = 'x-apple.systempreferences:com.apple.Battery-Settings.extension',
|
|
390
|
+
_e[SettingType.Datetime] = 'x-apple.systempreferences:com.apple.Date-Time-Settings.extension',
|
|
391
|
+
_e[SettingType.Language] = 'x-apple.systempreferences:com.apple.Localization-Settings.extension',
|
|
392
|
+
_e[SettingType.Accounts] = 'x-apple.systempreferences:com.apple.Internet-Accounts-Settings.extension',
|
|
393
|
+
_e[SettingType.Storage] = 'x-apple.systempreferences:com.apple.settings.Storage',
|
|
394
|
+
_e),
|
|
395
|
+
_a$1);
|
|
17
396
|
|
|
18
397
|
function createCustomError(name, Base) {
|
|
19
398
|
if (Base === void 0) { Base = Error; }
|
|
@@ -345,346 +724,56 @@ var EventListenerUtils = {
|
|
|
345
724
|
}
|
|
346
725
|
};
|
|
347
726
|
|
|
348
|
-
var
|
|
349
|
-
(function (OS) {
|
|
350
|
-
OS["Unknown"] = "Unknown";
|
|
351
|
-
OS["Android"] = "Android";
|
|
352
|
-
OS["iOS"] = "iOS";
|
|
353
|
-
OS["Windows"] = "Windows";
|
|
354
|
-
OS["MacOS"] = "MacOS";
|
|
355
|
-
})(OS || (OS = {}));
|
|
356
|
-
var Devices;
|
|
357
|
-
(function (Devices) {
|
|
358
|
-
Devices["Unknown"] = "Unknown";
|
|
359
|
-
Devices["Mobile"] = "Mobile";
|
|
360
|
-
Devices["Desktop"] = "Desktop";
|
|
361
|
-
})(Devices || (Devices = {}));
|
|
362
|
-
var Engines;
|
|
363
|
-
(function (Engines) {
|
|
364
|
-
Engines["Unknown"] = "Unknown";
|
|
365
|
-
Engines["EdgeHTML"] = "EdgeHTML";
|
|
366
|
-
Engines["ArkWeb"] = "ArkWeb";
|
|
367
|
-
Engines["Blink"] = "Blink";
|
|
368
|
-
Engines["Presto"] = "Presto";
|
|
369
|
-
Engines["WebKit"] = "WebKit";
|
|
370
|
-
Engines["Trident"] = "Trident";
|
|
371
|
-
Engines["NetFront"] = "NetFront";
|
|
372
|
-
Engines["KHTML"] = "KHTML";
|
|
373
|
-
Engines["Tasman"] = "Tasman";
|
|
374
|
-
Engines["Gecko"] = "Gecko";
|
|
375
|
-
})(Engines || (Engines = {}));
|
|
376
|
-
var Browsers;
|
|
377
|
-
(function (Browsers) {
|
|
378
|
-
Browsers["Unknown"] = "Unknown";
|
|
379
|
-
Browsers["Chrome"] = "Chrome";
|
|
380
|
-
Browsers["Safari"] = "Safari";
|
|
381
|
-
Browsers["Edge"] = "Edge";
|
|
382
|
-
Browsers["Firefox"] = "Firefox";
|
|
383
|
-
Browsers["Opera"] = "Opera";
|
|
384
|
-
Browsers["IE"] = "IE";
|
|
385
|
-
Browsers["SamsungInternet"] = "SamsungInternet";
|
|
386
|
-
})(Browsers || (Browsers = {}));
|
|
387
|
-
var CrossPlatformFramework;
|
|
388
|
-
(function (CrossPlatformFramework) {
|
|
389
|
-
CrossPlatformFramework["Unknown"] = "Unknown";
|
|
390
|
-
CrossPlatformFramework["ReactNative"] = "ReactNative";
|
|
391
|
-
CrossPlatformFramework["Electron"] = "Electron";
|
|
392
|
-
CrossPlatformFramework["Cordova"] = "Cordova";
|
|
393
|
-
})(CrossPlatformFramework || (CrossPlatformFramework = {}));
|
|
394
|
-
var USER_AGENT = typeof globalThis.navigator !== 'undefined' && typeof globalThis.navigator.userAgent === 'string' ? globalThis.navigator.userAgent : '';
|
|
395
|
-
var HIGH_ENTROPY_BRAND_NAME_MAP = {
|
|
396
|
-
'Google Chrome': 'Chrome',
|
|
397
|
-
'Microsoft Edge': 'Edge',
|
|
398
|
-
'Microsoft Edge WebView2': 'Edge WebView2',
|
|
399
|
-
'Android WebView': 'Chrome WebView',
|
|
400
|
-
'HeadlessChrome': 'Chrome Headless',
|
|
401
|
-
'OperaMobile': 'Opera Mobi',
|
|
402
|
-
};
|
|
403
|
-
|
|
404
|
-
var readyState = 'loading';
|
|
405
|
-
var readyCallback = [];
|
|
406
|
-
var pendingTasks = 0;
|
|
727
|
+
var userAgent = USER_AGENT;
|
|
407
728
|
var Platform = {
|
|
408
|
-
os
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
729
|
+
get os() {
|
|
730
|
+
return getOS();
|
|
731
|
+
},
|
|
732
|
+
get engine() {
|
|
733
|
+
return getEngine();
|
|
734
|
+
},
|
|
735
|
+
get browser() {
|
|
736
|
+
return getBrowser();
|
|
737
|
+
},
|
|
738
|
+
get userAgent() {
|
|
739
|
+
return userAgent;
|
|
740
|
+
},
|
|
741
|
+
set userAgent(value) {
|
|
742
|
+
userAgent = value;
|
|
743
|
+
},
|
|
413
744
|
get locale() {
|
|
414
745
|
return getLocale();
|
|
415
746
|
},
|
|
416
747
|
get device() {
|
|
417
|
-
|
|
418
|
-
return Devices.Mobile;
|
|
419
|
-
if (this.os.name === OS.Windows || this.os.name === OS.MacOS)
|
|
420
|
-
return Devices.Desktop;
|
|
421
|
-
return Devices.Unknown;
|
|
748
|
+
return getDevice();
|
|
422
749
|
},
|
|
423
750
|
get renderer() {
|
|
424
751
|
return getRenderer();
|
|
425
752
|
},
|
|
426
753
|
get isWebview() {
|
|
427
|
-
return
|
|
754
|
+
return getIsWebview();
|
|
428
755
|
},
|
|
429
756
|
get isNode() {
|
|
430
|
-
return
|
|
757
|
+
return getIsNode();
|
|
431
758
|
},
|
|
432
759
|
get isStandalone() {
|
|
433
|
-
|
|
434
|
-
return 'standalone' in globalThis.navigator && !!globalThis.navigator.standalone;
|
|
435
|
-
if (!('matchMedia' in globalThis))
|
|
436
|
-
return false;
|
|
437
|
-
return globalThis.matchMedia('(display-mode: standalone)').matches;
|
|
760
|
+
return getIsStandalone();
|
|
438
761
|
},
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
}
|
|
450
|
-
}
|
|
762
|
+
get isBot() {
|
|
763
|
+
return getIsBot();
|
|
764
|
+
},
|
|
765
|
+
Constants: {
|
|
766
|
+
OS: OS,
|
|
767
|
+
Engines: Engines,
|
|
768
|
+
Browsers: Browsers,
|
|
769
|
+
Devices: Devices,
|
|
770
|
+
},
|
|
771
|
+
Errors: {},
|
|
451
772
|
};
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
'4.90': 'ME',
|
|
457
|
-
'NT3.51': 'NT 3.11',
|
|
458
|
-
'NT4.0': 'NT 4.0',
|
|
459
|
-
'NT 5.0': '2000',
|
|
460
|
-
'NT 5.1': 'XP',
|
|
461
|
-
'NT 5.2': 'XP',
|
|
462
|
-
'NT 6.0': 'Vista',
|
|
463
|
-
'NT 6.1': '7',
|
|
464
|
-
'NT 6.2': '8',
|
|
465
|
-
'NT 6.3': '8.1',
|
|
466
|
-
'NT 6.4': '10',
|
|
467
|
-
'NT 10.0': '10',
|
|
468
|
-
'ARM': 'RT'
|
|
469
|
-
}[string];
|
|
470
|
-
if (typeof mapped !== 'undefined')
|
|
471
|
-
return mapped;
|
|
472
|
-
return string;
|
|
473
|
-
}
|
|
474
|
-
function resolveUnderscoreVersion(string) {
|
|
475
|
-
if (typeof string === 'undefined')
|
|
476
|
-
return '';
|
|
477
|
-
return string.replace(/_/g, '.');
|
|
478
|
-
}
|
|
479
|
-
var OS_RESOLVER_MAP = [
|
|
480
|
-
[/windows nt (6\.[23]); arm/i, OS.Windows, resolveWindowsVersion],
|
|
481
|
-
[/windows (?:phone|mobile|iot)(?: os)?[\/ ]?([\d.]*( se)?)/i, OS.Windows, resolveWindowsVersion],
|
|
482
|
-
[/windows[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i, OS.Windows, resolveWindowsVersion],
|
|
483
|
-
[/windows nt ?([\d.)]*)(?!.+xbox)/i, OS.Windows, resolveWindowsVersion],
|
|
484
|
-
[/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d.;]*)/i, OS.Windows, resolveWindowsVersion],
|
|
485
|
-
[/windows ce\/?([\d.]*)/i, OS.Windows, resolveWindowsVersion],
|
|
486
|
-
[/[adehimnop]{4,7}\b(?:.*os (\w+) like mac|; opera)/i, OS.iOS, resolveUnderscoreVersion],
|
|
487
|
-
[/(?:ios;fbsv|ios(?=.+ip(?:ad|hone))|ip(?:ad|hone)(?: |.+i(?:pad)?)os)[\/ ]([\w.]+)/i, OS.iOS, resolveUnderscoreVersion],
|
|
488
|
-
[/cfnetwork\/.+darwin/i, OS.iOS, resolveUnderscoreVersion],
|
|
489
|
-
[/mac os x ?([\w. ]*)/i, OS.MacOS, resolveUnderscoreVersion],
|
|
490
|
-
[/(?:macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i, OS.MacOS, resolveUnderscoreVersion],
|
|
491
|
-
[/droid ([\w.]+)\b.+(android[- ]x86)/i, OS.Android],
|
|
492
|
-
[/android\w*[-\/.; ]?([\d.]*)/i, OS.Android],
|
|
493
|
-
];
|
|
494
|
-
var ENGINE_RESOLVER_MAP = [
|
|
495
|
-
[/windows.+ edge\/([\w.]+)/i, Engines.EdgeHTML],
|
|
496
|
-
[/arkweb\/([\w.]+)/i, Engines.ArkWeb],
|
|
497
|
-
[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i, Engines.Blink],
|
|
498
|
-
[/presto\/([\w.]+)/i, Engines.Presto],
|
|
499
|
-
[/webkit\/([\w.]+)/i, Engines.WebKit],
|
|
500
|
-
[/trident\/([\w.]+)/i, Engines.Trident],
|
|
501
|
-
[/netfront\/([\w.]+)/i, Engines.NetFront],
|
|
502
|
-
[/khtml[\/ ]\(?([\w.]+)/i, Engines.KHTML],
|
|
503
|
-
[/tasman[\/ ]\(?([\w.]+)/i, Engines.Tasman],
|
|
504
|
-
[/rv:([\w.]{1,9})\b.+gecko/i, Engines.Gecko]
|
|
505
|
-
];
|
|
506
|
-
var BROWSER_RESOLVER_MAP = [
|
|
507
|
-
[/\b(?:crmo|crios)\/([\w.]+)/i, Browsers.Chrome],
|
|
508
|
-
[/webview.+edge\/([\w.]+)/i, Browsers.Edge],
|
|
509
|
-
[/edg(?:e|ios|a)?\/([\w.]+)/i, Browsers.Edge],
|
|
510
|
-
[/opera mini\/([-\w.]+)/i, Browsers.Opera],
|
|
511
|
-
[/opera [mobileta]{3,6}\b.+version\/([-\w.]+)/i, Browsers.Opera],
|
|
512
|
-
[/opera(?:.+version\/|[\/ ]+)([\w.]+)/i, Browsers.Opera],
|
|
513
|
-
[/opios[\/ ]+([\w.]+)/i, Browsers.Opera],
|
|
514
|
-
[/\bop(?:rg)?x\/([\w.]+)/i, Browsers.Opera],
|
|
515
|
-
[/\bopr\/([\w.]+)/i, Browsers.Opera],
|
|
516
|
-
[/iemobile(?:browser|boat|jet)[\/ ]?([\d.]*)/i, Browsers.IE],
|
|
517
|
-
[/(?:ms|\()ie ([\w.]+)/i, Browsers.IE],
|
|
518
|
-
[/trident.+rv[: ]([\w.]{1,9})\b.+like gecko/i, Browsers.IE],
|
|
519
|
-
[/\bfocus\/([\w.]+)/i, Browsers.Firefox],
|
|
520
|
-
[/\bopt\/([\w.]+)/i, Browsers.Opera],
|
|
521
|
-
[/coast\/([\w.]+)/i, Browsers.Opera],
|
|
522
|
-
[/fxios\/([\w.-]+)/i, Browsers.Firefox],
|
|
523
|
-
[/samsungbrowser\/([\w.]+)/i, Browsers.SamsungInternet],
|
|
524
|
-
[/headlesschrome(?:\/([\w.]+)| )/i, Browsers.Chrome],
|
|
525
|
-
[/wv\).+chrome\/([\w.]+).+edgw\//i, Browsers.Edge],
|
|
526
|
-
[/ wv\).+(chrome)\/([\w.]+)/i, Browsers.Chrome],
|
|
527
|
-
[/chrome\/([\w.]+) mobile/i, Browsers.Chrome],
|
|
528
|
-
[/chrome\/v?([\w.]+)/i, Browsers.Chrome],
|
|
529
|
-
[/version\/([\w.,]+) .*mobile(?:\/\w+ | ?)safari/i, Browsers.Safari],
|
|
530
|
-
[/iphone .*mobile(?:\/\w+ | ?)safari/i, Browsers.Safari],
|
|
531
|
-
[/version\/([\w.,]+) .*safari/i, Browsers.Safari],
|
|
532
|
-
[/webkit.+?(?:mobile ?safari|safari)(\/[\w.]+)/i, Browsers.Safari, '1'],
|
|
533
|
-
[/(?:mobile|tablet);.*firefox\/([\w.-]+)/i, Browsers.Firefox],
|
|
534
|
-
[/mobile vr; rv:([\w.]+)\).+firefox/i, Browsers.Firefox],
|
|
535
|
-
[/firefox\/([\w.]+)/i, Browsers.Firefox],
|
|
536
|
-
];
|
|
537
|
-
function incrementPendingTasks() {
|
|
538
|
-
pendingTasks++;
|
|
539
|
-
}
|
|
540
|
-
function decrementPendingTasks() {
|
|
541
|
-
pendingTasks--;
|
|
542
|
-
checkReady();
|
|
543
|
-
}
|
|
544
|
-
function checkReady() {
|
|
545
|
-
if (pendingTasks === 0 && readyState === 'loading') {
|
|
546
|
-
readyState = 'complete';
|
|
547
|
-
for (var i = 0; i < readyCallback.length; i++) {
|
|
548
|
-
try {
|
|
549
|
-
readyCallback[i](Platform);
|
|
550
|
-
}
|
|
551
|
-
catch (_) {
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
readyCallback.length = 0;
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
function resolveSemanticWindowsVersion(version, defaultValue) {
|
|
558
|
-
if (version.major === 10 && version.minor === 0 && version.build >= 22000)
|
|
559
|
-
return '11';
|
|
560
|
-
if (version.major === 10 && version.minor === 0 && version.build < 22000)
|
|
561
|
-
return '10';
|
|
562
|
-
if (version.major === 6 && version.minor === 3)
|
|
563
|
-
return '8.1';
|
|
564
|
-
if (version.major === 6 && version.minor === 2)
|
|
565
|
-
return '8';
|
|
566
|
-
if (version.major === 6 && version.minor === 1)
|
|
567
|
-
return '7';
|
|
568
|
-
if (version.major === 6 && version.minor === 0)
|
|
569
|
-
return 'Vista';
|
|
570
|
-
if (version.major === 5 && version.minor === 1)
|
|
571
|
-
return 'XP';
|
|
572
|
-
if (version.major === 5 && version.minor === 2)
|
|
573
|
-
return 'XP';
|
|
574
|
-
if (version.major === 5 && version.minor === 0)
|
|
575
|
-
return '2000';
|
|
576
|
-
if (version.major === 4 && version.minor === 90)
|
|
577
|
-
return 'ME';
|
|
578
|
-
if (version.major === 4 && version.minor === 0)
|
|
579
|
-
return 'NT 4.0';
|
|
580
|
-
if (version.major === 3 && version.minor === 51)
|
|
581
|
-
return 'NT 3.11';
|
|
582
|
-
return defaultValue;
|
|
583
|
-
}
|
|
584
|
-
function resolveSemanticDarwinVersion(version, defaultValue) {
|
|
585
|
-
if (version.major >= 24)
|
|
586
|
-
return '' + (version.major - 9) + '.' + version.minor + '.' + version.build;
|
|
587
|
-
if (version.major === 23)
|
|
588
|
-
return '14.' + version.minor + '.' + version.build;
|
|
589
|
-
if (version.major === 22)
|
|
590
|
-
return '13.' + version.minor + '.' + version.build;
|
|
591
|
-
if (version.major === 21)
|
|
592
|
-
return '12.' + version.minor + '.' + version.build;
|
|
593
|
-
if (version.major === 20)
|
|
594
|
-
return '11.' + version.minor + '.' + version.build;
|
|
595
|
-
if (version.major === 19)
|
|
596
|
-
return '10.15.' + version.minor;
|
|
597
|
-
if (version.major === 18)
|
|
598
|
-
return '10.14.' + version.minor;
|
|
599
|
-
if (version.major === 17)
|
|
600
|
-
return '10.13.' + version.minor;
|
|
601
|
-
if (version.major === 16)
|
|
602
|
-
return '10.12.' + version.minor;
|
|
603
|
-
if (version.major === 15)
|
|
604
|
-
return '10.11.' + version.minor;
|
|
605
|
-
if (version.major === 14)
|
|
606
|
-
return '10.10.' + version.minor;
|
|
607
|
-
if (version.major === 13)
|
|
608
|
-
return '10.9.' + version.minor;
|
|
609
|
-
if (version.major >= 5 && version.major <= 12)
|
|
610
|
-
return '10.' + (version.major - 4) + '.' + version.minor;
|
|
611
|
-
return defaultValue;
|
|
612
|
-
}
|
|
613
|
-
function resolveSemanticAndroidVersion(version, defaultValue) {
|
|
614
|
-
if (version.major >= 36)
|
|
615
|
-
return '16';
|
|
616
|
-
if (version.major === 35)
|
|
617
|
-
return '15';
|
|
618
|
-
if (version.major === 34)
|
|
619
|
-
return '14';
|
|
620
|
-
if (version.major === 33)
|
|
621
|
-
return '13';
|
|
622
|
-
if (version.major === 32)
|
|
623
|
-
return '12.1';
|
|
624
|
-
if (version.major === 31)
|
|
625
|
-
return '12';
|
|
626
|
-
if (version.major === 30)
|
|
627
|
-
return '11';
|
|
628
|
-
if (version.major === 29)
|
|
629
|
-
return '10';
|
|
630
|
-
if (version.major === 28)
|
|
631
|
-
return '9';
|
|
632
|
-
if (version.major === 27)
|
|
633
|
-
return '8.1';
|
|
634
|
-
if (version.major === 26)
|
|
635
|
-
return '8.0';
|
|
636
|
-
if (version.major === 25)
|
|
637
|
-
return '7.1';
|
|
638
|
-
if (version.major === 24)
|
|
639
|
-
return '7.0';
|
|
640
|
-
if (version.major === 23)
|
|
641
|
-
return '6.0';
|
|
642
|
-
if (version.major === 22)
|
|
643
|
-
return '5.1';
|
|
644
|
-
if (version.major === 21)
|
|
645
|
-
return '5.0';
|
|
646
|
-
if (version.major === 20)
|
|
647
|
-
return '4.4';
|
|
648
|
-
if (version.major === 19)
|
|
649
|
-
return '4.4';
|
|
650
|
-
if (version.major === 18)
|
|
651
|
-
return '4.3';
|
|
652
|
-
if (version.major === 17)
|
|
653
|
-
return '4.2';
|
|
654
|
-
if (version.major === 16)
|
|
655
|
-
return '4.1';
|
|
656
|
-
if (version.major === 15)
|
|
657
|
-
return '4.0.3';
|
|
658
|
-
if (version.major === 14)
|
|
659
|
-
return '4.0';
|
|
660
|
-
if (version.major === 13)
|
|
661
|
-
return '3.2';
|
|
662
|
-
if (version.major === 12)
|
|
663
|
-
return '3.1';
|
|
664
|
-
if (version.major === 11)
|
|
665
|
-
return '3.0';
|
|
666
|
-
if (version.major === 10)
|
|
667
|
-
return '2.3.3';
|
|
668
|
-
if (version.major === 9)
|
|
669
|
-
return '2.3';
|
|
670
|
-
if (version.major === 8)
|
|
671
|
-
return '2.2';
|
|
672
|
-
if (version.major === 7)
|
|
673
|
-
return '2.1';
|
|
674
|
-
if (version.major === 6)
|
|
675
|
-
return '2.0.1';
|
|
676
|
-
if (version.major === 5)
|
|
677
|
-
return '2.0';
|
|
678
|
-
if (version.major === 4)
|
|
679
|
-
return '1.6';
|
|
680
|
-
if (version.major === 3)
|
|
681
|
-
return '1.5';
|
|
682
|
-
if (version.major === 2)
|
|
683
|
-
return '1.1';
|
|
684
|
-
if (version.major === 1)
|
|
685
|
-
return '1.0';
|
|
686
|
-
return defaultValue;
|
|
687
|
-
}
|
|
773
|
+
var parsedFromHighEntropyValuesOS = {};
|
|
774
|
+
var parsedFromHighEntropyValuesBrowser = {};
|
|
775
|
+
var parsedFromHighEntropyValuesEngine = {};
|
|
776
|
+
var parsedFromHighEntropyValuesDevice = null;
|
|
688
777
|
function resolveVersion(string, resolver) {
|
|
689
778
|
if (typeof resolver === 'function')
|
|
690
779
|
return resolver(string);
|
|
@@ -701,54 +790,6 @@ function normalizeBrand(entry) {
|
|
|
701
790
|
return { brand: entry, version: '' };
|
|
702
791
|
return { brand: entry.brand, version: entry.version };
|
|
703
792
|
}
|
|
704
|
-
function getSemanticVersion(string) {
|
|
705
|
-
var parts = string.split('.');
|
|
706
|
-
return {
|
|
707
|
-
major: parseInt(parts[0] || '0'),
|
|
708
|
-
minor: parseInt(parts[1] || '0'),
|
|
709
|
-
build: parseInt(parts[2] || '0')
|
|
710
|
-
};
|
|
711
|
-
}
|
|
712
|
-
function parseOSFromCordova() {
|
|
713
|
-
Platform.crossPlatformFramework = CrossPlatformFramework.Cordova;
|
|
714
|
-
if (typeof globalThis.device !== 'undefined') {
|
|
715
|
-
switch (globalThis.device.platform) {
|
|
716
|
-
case 'Android':
|
|
717
|
-
Platform.os = {
|
|
718
|
-
name: OS.Android,
|
|
719
|
-
version: globalThis.device.version,
|
|
720
|
-
};
|
|
721
|
-
break;
|
|
722
|
-
case 'iOS':
|
|
723
|
-
Platform.os = {
|
|
724
|
-
name: OS.iOS,
|
|
725
|
-
version: globalThis.device.version,
|
|
726
|
-
};
|
|
727
|
-
break;
|
|
728
|
-
}
|
|
729
|
-
}
|
|
730
|
-
decrementPendingTasks();
|
|
731
|
-
}
|
|
732
|
-
function getRenderer() {
|
|
733
|
-
if (typeof globalThis.document === 'undefined')
|
|
734
|
-
return '';
|
|
735
|
-
var canvas = globalThis.document.createElement('canvas');
|
|
736
|
-
if (typeof canvas.getContext !== 'function')
|
|
737
|
-
return '';
|
|
738
|
-
var context = canvas.getContext('webgl2') || canvas.getContext('experimental-webgl') || canvas.getContext('webgl');
|
|
739
|
-
if (context === null)
|
|
740
|
-
return '';
|
|
741
|
-
if (context instanceof WebGLRenderingContext || 'getParameter' in context && typeof context.getParameter === 'function') {
|
|
742
|
-
var extension = context.getExtension('WEBGL_debug_renderer_info');
|
|
743
|
-
if (extension === null)
|
|
744
|
-
return context.getParameter(context.RENDERER);
|
|
745
|
-
else
|
|
746
|
-
return context.getParameter(extension.UNMASKED_RENDERER_WEBGL);
|
|
747
|
-
}
|
|
748
|
-
else {
|
|
749
|
-
return '';
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
793
|
function normalizeLocale(locale) {
|
|
753
794
|
if (locale === null || typeof locale === 'undefined')
|
|
754
795
|
return locale;
|
|
@@ -771,13 +812,35 @@ function normalizeLocale(locale) {
|
|
|
771
812
|
parts[1] = parts[1].charAt(0).toUpperCase() + parts[1].slice(1).toLowerCase();
|
|
772
813
|
return parts.join('-');
|
|
773
814
|
}
|
|
815
|
+
function getRenderer() {
|
|
816
|
+
if (typeof globalThis.document === 'undefined')
|
|
817
|
+
return '';
|
|
818
|
+
var canvas = globalThis.document.createElement('canvas');
|
|
819
|
+
if (typeof canvas.getContext !== 'function')
|
|
820
|
+
return '';
|
|
821
|
+
var context = canvas.getContext('webgl2') || canvas.getContext('experimental-webgl') || canvas.getContext('webgl');
|
|
822
|
+
if (context === null)
|
|
823
|
+
return '';
|
|
824
|
+
if (context instanceof WebGLRenderingContext || 'getParameter' in context && typeof context.getParameter === 'function') {
|
|
825
|
+
var extension = context.getExtension('WEBGL_debug_renderer_info');
|
|
826
|
+
if (extension === null)
|
|
827
|
+
return context.getParameter(context.RENDERER);
|
|
828
|
+
else
|
|
829
|
+
return context.getParameter(extension.UNMASKED_RENDERER_WEBGL);
|
|
830
|
+
}
|
|
831
|
+
else {
|
|
832
|
+
return '';
|
|
833
|
+
}
|
|
834
|
+
}
|
|
774
835
|
function getLocale() {
|
|
775
836
|
var locale = {
|
|
776
837
|
language: null,
|
|
777
838
|
languages: [],
|
|
778
839
|
timezone: null,
|
|
779
840
|
timezoneOffset: 0,
|
|
841
|
+
isRTL: false,
|
|
780
842
|
};
|
|
843
|
+
var isRTL = null;
|
|
781
844
|
function addLanguages(language) {
|
|
782
845
|
for (var i = 0; i < language.length; i++)
|
|
783
846
|
addLanguage(language[i]);
|
|
@@ -790,53 +853,6 @@ function getLocale() {
|
|
|
790
853
|
locale.languages.push(language);
|
|
791
854
|
}
|
|
792
855
|
}
|
|
793
|
-
if (Platform.crossPlatformFramework === CrossPlatformFramework.ReactNative) {
|
|
794
|
-
try {
|
|
795
|
-
var reactNative = require('react-native');
|
|
796
|
-
var nativeModules = reactNative.NativeModules;
|
|
797
|
-
if (typeof nativeModules.SettingsManager !== 'undefined') {
|
|
798
|
-
var settingManager = nativeModules.SettingsManager;
|
|
799
|
-
if (typeof settingManager !== 'undefined') {
|
|
800
|
-
var constant = typeof settingManager.getConstants === 'function'
|
|
801
|
-
? settingManager.getConstants()
|
|
802
|
-
: settingManager;
|
|
803
|
-
if (typeof constant !== 'undefined' && typeof constant.settings !== 'undefined') {
|
|
804
|
-
var settings = constant.settings;
|
|
805
|
-
if (typeof settings.AppleLocale === 'string')
|
|
806
|
-
addLanguage(settings.AppleLocale);
|
|
807
|
-
if (Array.isArray(settings.AppleLanguages) && settings.AppleLanguages.length > 0)
|
|
808
|
-
addLanguages(settings.AppleLanguages);
|
|
809
|
-
}
|
|
810
|
-
}
|
|
811
|
-
}
|
|
812
|
-
if (typeof nativeModules.I18nManager !== 'undefined') {
|
|
813
|
-
var i18nManager = nativeModules.I18nManager;
|
|
814
|
-
if (typeof i18nManager !== 'undefined') {
|
|
815
|
-
var constant = typeof i18nManager.getConstants === 'function'
|
|
816
|
-
? i18nManager.getConstants()
|
|
817
|
-
: i18nManager;
|
|
818
|
-
if (typeof constant !== 'undefined' && typeof constant.localeIdentifier !== 'undefined')
|
|
819
|
-
addLanguage(constant.localeIdentifier);
|
|
820
|
-
}
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
catch (_) {
|
|
824
|
-
}
|
|
825
|
-
}
|
|
826
|
-
if (Platform.crossPlatformFramework === CrossPlatformFramework.Electron) {
|
|
827
|
-
try {
|
|
828
|
-
var electron = require('electron');
|
|
829
|
-
var app = electron.app;
|
|
830
|
-
if (typeof app.getLocale !== 'undefined')
|
|
831
|
-
addLanguage(app.getLocale());
|
|
832
|
-
if (typeof app.getSystemLocale !== 'undefined')
|
|
833
|
-
addLanguage(app.getSystemLocale());
|
|
834
|
-
if (typeof app.getPreferredSystemLanguages !== 'undefined')
|
|
835
|
-
addLanguages(app.getPreferredSystemLanguages());
|
|
836
|
-
}
|
|
837
|
-
catch (_) {
|
|
838
|
-
}
|
|
839
|
-
}
|
|
840
856
|
if (typeof Intl !== 'undefined') {
|
|
841
857
|
try {
|
|
842
858
|
addLanguage(Intl.DateTimeFormat().resolvedOptions().locale);
|
|
@@ -866,13 +882,37 @@ function getLocale() {
|
|
|
866
882
|
}
|
|
867
883
|
catch (_) {
|
|
868
884
|
}
|
|
885
|
+
if (typeof locale.language === 'string') {
|
|
886
|
+
if (typeof Intl !== 'undefined' && typeof Intl.Locale !== 'undefined') {
|
|
887
|
+
try {
|
|
888
|
+
var intlLocale = new Intl.Locale(locale.language);
|
|
889
|
+
if (typeof intlLocale.getTextInfo === 'function')
|
|
890
|
+
isRTL = intlLocale.getTextInfo().direction === 'rtl';
|
|
891
|
+
else if (typeof intlLocale.textInfo !== 'undefined')
|
|
892
|
+
isRTL = intlLocale.textInfo.direction === 'rtl';
|
|
893
|
+
}
|
|
894
|
+
catch (_) {
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
if (typeof isRTL !== 'boolean') {
|
|
898
|
+
var matched = /^([A-Za-z]{1,8})(?:[-_][A-Za-z0-9]{1,8})*$/.exec(locale.language);
|
|
899
|
+
if (matched !== null) {
|
|
900
|
+
var language = matched[1].toLowerCase();
|
|
901
|
+
for (var i = 0; i < RTL_LANGUAGES.length; i++) {
|
|
902
|
+
if (RTL_LANGUAGES[i] === language) {
|
|
903
|
+
isRTL = true;
|
|
904
|
+
break;
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
if (typeof isRTL === 'boolean')
|
|
911
|
+
locale.isRTL = isRTL;
|
|
869
912
|
return locale;
|
|
870
913
|
}
|
|
871
|
-
function
|
|
872
|
-
|
|
873
|
-
Platform.crossPlatformFramework = CrossPlatformFramework.Electron;
|
|
874
|
-
if (typeof globalThis.navigator !== 'undefined' && globalThis.navigator.product === 'ReactNative')
|
|
875
|
-
Platform.crossPlatformFramework = CrossPlatformFramework.ReactNative;
|
|
914
|
+
function getOS() {
|
|
915
|
+
var result = { name: OS.Unknown, version: '' };
|
|
876
916
|
for (var i = 0; i < OS_RESOLVER_MAP.length; i++) {
|
|
877
917
|
var map = OS_RESOLVER_MAP[i];
|
|
878
918
|
var regexp = map[0];
|
|
@@ -880,18 +920,26 @@ function init() {
|
|
|
880
920
|
var resolver = map[2];
|
|
881
921
|
var matched = Platform.userAgent.match(regexp);
|
|
882
922
|
if (matched !== null) {
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
version: resolveVersion(matched[1], resolver),
|
|
886
|
-
};
|
|
923
|
+
result.name = os;
|
|
924
|
+
result.version = resolveVersion(matched[1], resolver);
|
|
887
925
|
break;
|
|
888
926
|
}
|
|
889
927
|
}
|
|
890
|
-
if (
|
|
928
|
+
if (result.name === OS.iOS && compareVersion(result.version, '18.6') === 0) {
|
|
891
929
|
var version = /\) Version\/([\d.]+)/.exec(Platform.userAgent);
|
|
892
930
|
if (version !== null && parseInt(version[1].substring(0, 2), 10) >= 26)
|
|
893
|
-
|
|
931
|
+
result.version = version[1];
|
|
894
932
|
}
|
|
933
|
+
if (Platform.userAgent === USER_AGENT) {
|
|
934
|
+
if (typeof parsedFromHighEntropyValuesOS.name !== 'undefined')
|
|
935
|
+
result.name = parsedFromHighEntropyValuesOS.name;
|
|
936
|
+
if (typeof parsedFromHighEntropyValuesOS.version !== 'undefined')
|
|
937
|
+
result.version = parsedFromHighEntropyValuesOS.version;
|
|
938
|
+
}
|
|
939
|
+
return result;
|
|
940
|
+
}
|
|
941
|
+
function getEngine() {
|
|
942
|
+
var result = { name: Engines.Unknown, version: '' };
|
|
895
943
|
for (var i = 0; i < ENGINE_RESOLVER_MAP.length; i++) {
|
|
896
944
|
var map = ENGINE_RESOLVER_MAP[i];
|
|
897
945
|
var regexp = map[0];
|
|
@@ -899,13 +947,21 @@ function init() {
|
|
|
899
947
|
var resolver = map[2];
|
|
900
948
|
var matched = Platform.userAgent.match(regexp);
|
|
901
949
|
if (matched !== null) {
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
version: resolveVersion(matched[1], resolver),
|
|
905
|
-
};
|
|
950
|
+
result.name = engine;
|
|
951
|
+
result.version = resolveVersion(matched[1], resolver);
|
|
906
952
|
break;
|
|
907
953
|
}
|
|
908
954
|
}
|
|
955
|
+
if (Platform.userAgent === USER_AGENT) {
|
|
956
|
+
if (typeof parsedFromHighEntropyValuesEngine.name !== 'undefined')
|
|
957
|
+
result.name = parsedFromHighEntropyValuesEngine.name;
|
|
958
|
+
if (typeof parsedFromHighEntropyValuesEngine.version !== 'undefined')
|
|
959
|
+
result.version = parsedFromHighEntropyValuesEngine.version;
|
|
960
|
+
}
|
|
961
|
+
return result;
|
|
962
|
+
}
|
|
963
|
+
function getBrowser() {
|
|
964
|
+
var result = { name: Browsers.Unknown, version: '' };
|
|
909
965
|
for (var i = 0; i < BROWSER_RESOLVER_MAP.length; i++) {
|
|
910
966
|
var map = BROWSER_RESOLVER_MAP[i];
|
|
911
967
|
var regexp = map[0];
|
|
@@ -913,102 +969,49 @@ function init() {
|
|
|
913
969
|
var resolver = map[2];
|
|
914
970
|
var matched = Platform.userAgent.match(regexp);
|
|
915
971
|
if (matched !== null) {
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
version: resolveVersion(matched[1], resolver),
|
|
919
|
-
};
|
|
972
|
+
result.name = browser;
|
|
973
|
+
result.version = resolveVersion(matched[1], resolver);
|
|
920
974
|
break;
|
|
921
975
|
}
|
|
922
976
|
}
|
|
923
|
-
if (Platform.
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
var release = '' + platform.Version;
|
|
929
|
-
var version = getSemanticVersion(release);
|
|
930
|
-
switch (os) {
|
|
931
|
-
case 'android':
|
|
932
|
-
Platform.os = {
|
|
933
|
-
name: OS.Android,
|
|
934
|
-
version: resolveSemanticAndroidVersion(version, release),
|
|
935
|
-
};
|
|
936
|
-
break;
|
|
937
|
-
case 'ios':
|
|
938
|
-
Platform.os = {
|
|
939
|
-
name: OS.iOS,
|
|
940
|
-
version: release,
|
|
941
|
-
};
|
|
942
|
-
break;
|
|
943
|
-
case 'windows':
|
|
944
|
-
Platform.os = {
|
|
945
|
-
name: OS.Windows,
|
|
946
|
-
version: resolveSemanticWindowsVersion(version, release),
|
|
947
|
-
};
|
|
948
|
-
break;
|
|
949
|
-
case 'macos':
|
|
950
|
-
Platform.os = {
|
|
951
|
-
name: OS.MacOS,
|
|
952
|
-
version: release,
|
|
953
|
-
};
|
|
954
|
-
break;
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
catch (_) {
|
|
958
|
-
}
|
|
959
|
-
finally {
|
|
960
|
-
}
|
|
961
|
-
}
|
|
962
|
-
if (Platform.isNode) {
|
|
963
|
-
try {
|
|
964
|
-
var os = require('os');
|
|
965
|
-
var platform = os.platform();
|
|
966
|
-
var release = os.release();
|
|
967
|
-
var version = getSemanticVersion(release);
|
|
968
|
-
switch (platform) {
|
|
969
|
-
case 'win32':
|
|
970
|
-
Platform.os = {
|
|
971
|
-
name: OS.Windows,
|
|
972
|
-
version: resolveSemanticWindowsVersion(version, release),
|
|
973
|
-
};
|
|
974
|
-
break;
|
|
975
|
-
case 'darwin':
|
|
976
|
-
Platform.os = {
|
|
977
|
-
name: OS.MacOS,
|
|
978
|
-
version: resolveSemanticDarwinVersion(version, release),
|
|
979
|
-
};
|
|
980
|
-
break;
|
|
981
|
-
case 'android':
|
|
982
|
-
Platform.os = {
|
|
983
|
-
name: OS.Android,
|
|
984
|
-
version: release,
|
|
985
|
-
};
|
|
986
|
-
break;
|
|
987
|
-
case 'linux':
|
|
988
|
-
if (/android/i.test(release)) {
|
|
989
|
-
Platform.os = {
|
|
990
|
-
name: OS.Android,
|
|
991
|
-
version: release,
|
|
992
|
-
};
|
|
993
|
-
}
|
|
994
|
-
break;
|
|
995
|
-
}
|
|
996
|
-
}
|
|
997
|
-
catch (_) {
|
|
998
|
-
}
|
|
999
|
-
finally {
|
|
1000
|
-
}
|
|
1001
|
-
}
|
|
1002
|
-
if (typeof globalThis.document !== 'undefined') {
|
|
1003
|
-
if (typeof globalThis.device !== 'undefined') {
|
|
1004
|
-
parseOSFromCordova();
|
|
1005
|
-
}
|
|
1006
|
-
else {
|
|
1007
|
-
globalThis.document.addEventListener("deviceready", parseOSFromCordova, false);
|
|
1008
|
-
}
|
|
977
|
+
if (Platform.userAgent === USER_AGENT) {
|
|
978
|
+
if (typeof parsedFromHighEntropyValuesBrowser.name !== 'undefined')
|
|
979
|
+
result.name = parsedFromHighEntropyValuesBrowser.name;
|
|
980
|
+
if (typeof parsedFromHighEntropyValuesBrowser.version !== 'undefined')
|
|
981
|
+
result.version = parsedFromHighEntropyValuesBrowser.version;
|
|
1009
982
|
}
|
|
983
|
+
return result;
|
|
984
|
+
}
|
|
985
|
+
function getDevice() {
|
|
986
|
+
if (Platform.userAgent === USER_AGENT && parsedFromHighEntropyValuesDevice !== null)
|
|
987
|
+
return parsedFromHighEntropyValuesDevice;
|
|
988
|
+
if (Platform.os.name === OS.iOS || Platform.os.name === OS.Android)
|
|
989
|
+
return Devices.Mobile;
|
|
990
|
+
if (Platform.os.name === OS.Windows || Platform.os.name === OS.MacOS)
|
|
991
|
+
return Devices.Desktop;
|
|
992
|
+
return Devices.Unknown;
|
|
993
|
+
}
|
|
994
|
+
function getIsWebview() {
|
|
995
|
+
return /; ?wv|applewebkit(?!.*safari)/i.test(Platform.userAgent);
|
|
996
|
+
}
|
|
997
|
+
function getIsNode() {
|
|
998
|
+
return typeof globalThis.process !== 'undefined' && typeof globalThis.process.versions !== 'undefined' && typeof globalThis.process.versions.node !== 'undefined';
|
|
999
|
+
}
|
|
1000
|
+
function getIsStandalone() {
|
|
1001
|
+
if (Platform.os.name === OS.iOS)
|
|
1002
|
+
return 'standalone' in globalThis.navigator && !!globalThis.navigator.standalone;
|
|
1003
|
+
if (!('matchMedia' in globalThis))
|
|
1004
|
+
return false;
|
|
1005
|
+
return globalThis.matchMedia('(display-mode: standalone)').matches;
|
|
1006
|
+
}
|
|
1007
|
+
function getIsBot() {
|
|
1008
|
+
for (var i = 0; i < BOT_REGEXP.length; i++)
|
|
1009
|
+
if (BOT_REGEXP[i].test(Platform.userAgent))
|
|
1010
|
+
return true;
|
|
1011
|
+
return false;
|
|
1012
|
+
}
|
|
1013
|
+
function parseFromHighEntropyValues() {
|
|
1010
1014
|
if (typeof globalThis.navigator !== 'undefined' && typeof globalThis.navigator.userAgentData !== 'undefined' && typeof globalThis.navigator.userAgentData.getHighEntropyValues !== 'undefined') {
|
|
1011
|
-
incrementPendingTasks();
|
|
1012
1015
|
globalThis.navigator.userAgentData.getHighEntropyValues(['brands', 'fullVersionList', 'mobile', 'model', 'platform', 'platformVersion', 'architecture', 'formFactors', 'bitness', 'uaFullVersion', 'wow64'])
|
|
1013
1016
|
.then(function (result) {
|
|
1014
1017
|
try {
|
|
@@ -1029,47 +1032,43 @@ function init() {
|
|
|
1029
1032
|
if (prevBrandName === null || /Chrom/.test(prevBrandName) || !/Chrom/.test(brandName)) {
|
|
1030
1033
|
browserName = brandName;
|
|
1031
1034
|
if (browserName === 'Chrome' || browserName === 'Chrome WebView' || browserName === 'Chrome Headless')
|
|
1032
|
-
|
|
1035
|
+
parsedFromHighEntropyValuesBrowser.name = Browsers.Chrome;
|
|
1033
1036
|
else if (browserName === 'Edge' || browserName === 'Edge WebView2')
|
|
1034
|
-
|
|
1037
|
+
parsedFromHighEntropyValuesBrowser.name = Browsers.Edge;
|
|
1035
1038
|
else if (browserName === 'Opera Mobi')
|
|
1036
|
-
|
|
1037
|
-
|
|
1039
|
+
parsedFromHighEntropyValuesBrowser.name = Browsers.Opera;
|
|
1040
|
+
parsedFromHighEntropyValuesBrowser.version = brandVersion;
|
|
1038
1041
|
}
|
|
1039
1042
|
prevBrandName = brandName;
|
|
1040
1043
|
}
|
|
1041
1044
|
if (brandName === 'Chromium')
|
|
1042
|
-
|
|
1045
|
+
parsedFromHighEntropyValuesEngine.version = brandVersion;
|
|
1043
1046
|
}
|
|
1044
1047
|
if (typeof platformVersion === 'string') {
|
|
1045
1048
|
if (Platform.os.name === OS.Windows)
|
|
1046
|
-
|
|
1049
|
+
parsedFromHighEntropyValuesOS.version = parseInt(platformVersion.split('.')[0], 10) >= 13 ? '11' : '10';
|
|
1047
1050
|
else
|
|
1048
|
-
|
|
1051
|
+
parsedFromHighEntropyValuesOS.version = platformVersion;
|
|
1049
1052
|
}
|
|
1050
1053
|
if (typeof platform === 'string') {
|
|
1051
1054
|
if (/android/i.test(platform))
|
|
1052
|
-
|
|
1055
|
+
parsedFromHighEntropyValuesOS.name = OS.Android;
|
|
1053
1056
|
else if (/ios|iphone|ipad/i.test(platform))
|
|
1054
|
-
|
|
1057
|
+
parsedFromHighEntropyValuesOS.name = OS.iOS;
|
|
1055
1058
|
else if (/windows|win32/i.test(platform))
|
|
1056
|
-
|
|
1059
|
+
parsedFromHighEntropyValuesOS.name = OS.Windows;
|
|
1057
1060
|
else if (/macos|macintel/i.test(platform))
|
|
1058
|
-
|
|
1061
|
+
parsedFromHighEntropyValuesOS.name = OS.MacOS;
|
|
1059
1062
|
}
|
|
1060
1063
|
if (result.mobile === true)
|
|
1061
|
-
|
|
1064
|
+
parsedFromHighEntropyValuesDevice = Devices.Mobile;
|
|
1062
1065
|
}
|
|
1063
1066
|
catch (_) {
|
|
1064
1067
|
}
|
|
1065
|
-
finally {
|
|
1066
|
-
decrementPendingTasks();
|
|
1067
|
-
}
|
|
1068
1068
|
});
|
|
1069
1069
|
}
|
|
1070
|
-
checkReady();
|
|
1071
1070
|
}
|
|
1072
|
-
|
|
1071
|
+
parseFromHighEntropyValues();
|
|
1073
1072
|
|
|
1074
1073
|
var _a;
|
|
1075
1074
|
var App = {
|
|
@@ -1079,6 +1078,15 @@ var App = {
|
|
|
1079
1078
|
_a[MessengerType.Message] = openMessengerMessage,
|
|
1080
1079
|
_a[MessengerType.Mail] = openMessengerMail,
|
|
1081
1080
|
_a),
|
|
1081
|
+
setting: setting,
|
|
1082
|
+
Constants: {
|
|
1083
|
+
AppOpenState: AppOpenState,
|
|
1084
|
+
MessengerType: MessengerType,
|
|
1085
|
+
SettingType: SettingType
|
|
1086
|
+
},
|
|
1087
|
+
Errors: {
|
|
1088
|
+
URLOpenError: URLOpenError,
|
|
1089
|
+
}
|
|
1082
1090
|
};
|
|
1083
1091
|
function getTrackId(bundle) {
|
|
1084
1092
|
try {
|
|
@@ -1099,24 +1107,6 @@ function getTrackId(bundle) {
|
|
|
1099
1107
|
return undefined;
|
|
1100
1108
|
}
|
|
1101
1109
|
}
|
|
1102
|
-
function getTrackIdAsync(bundle) {
|
|
1103
|
-
return new Promise(function (resolve) {
|
|
1104
|
-
fetch('https://itunes.apple.com/lookup?bundleId=' + bundle)
|
|
1105
|
-
.then(function (response) {
|
|
1106
|
-
response
|
|
1107
|
-
.json()
|
|
1108
|
-
.then(function (response) {
|
|
1109
|
-
resolve(parseLookupBundleIdResponse(response));
|
|
1110
|
-
})
|
|
1111
|
-
.catch(function () {
|
|
1112
|
-
resolve(undefined);
|
|
1113
|
-
});
|
|
1114
|
-
})
|
|
1115
|
-
.catch(function () {
|
|
1116
|
-
resolve(undefined);
|
|
1117
|
-
});
|
|
1118
|
-
});
|
|
1119
|
-
}
|
|
1120
1110
|
function parseLookupBundleIdResponse(response) {
|
|
1121
1111
|
if (typeof response.results === 'undefined')
|
|
1122
1112
|
return undefined;
|
|
@@ -1142,9 +1132,9 @@ function createIntentURL(scheme, packageName, fallback) {
|
|
|
1142
1132
|
if (typeof packageName !== 'undefined')
|
|
1143
1133
|
intent = intent + 'package=' + packageName + ';';
|
|
1144
1134
|
if (typeof fallback !== 'undefined' && typeof fallback === 'string')
|
|
1145
|
-
intent = intent + 'S.browser_fallback_url=' + fallback + ';';
|
|
1135
|
+
intent = intent + 'S.browser_fallback_url=' + encodeURIComponent(fallback) + ';';
|
|
1146
1136
|
else if (typeof packageName !== 'undefined')
|
|
1147
|
-
intent = intent + 'S.browser_fallback_url=' + createAppStoreURL(packageName, OS.Android) + ';';
|
|
1137
|
+
intent = intent + 'S.browser_fallback_url=' + encodeURIComponent(createAppStoreURL(packageName, OS.Android)) + ';';
|
|
1148
1138
|
return intent + 'end';
|
|
1149
1139
|
}
|
|
1150
1140
|
function parseIntentURL(intent) {
|
|
@@ -1214,21 +1204,20 @@ function getDefaultTimeoutByOS(os) {
|
|
|
1214
1204
|
function canOpenIntentURL() {
|
|
1215
1205
|
if (Platform.os.name !== OS.Android)
|
|
1216
1206
|
return false;
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
if (Platform.browser.name === Browsers.Firefox && compareVersion(Platform.browser.version, '41.0') < 0)
|
|
1207
|
+
var version = Platform.browser.version;
|
|
1208
|
+
if (Platform.browser.name === Browsers.SamsungInternet && compareVersion(version, '17.0.1.69') >= 0 && compareVersion(version, '17.0.7.34') < 0)
|
|
1220
1209
|
return false;
|
|
1221
|
-
if (Platform.browser.name === Browsers.Firefox && compareVersion(
|
|
1210
|
+
if (Platform.browser.name === Browsers.Firefox && compareVersion(version, '41.0') < 0)
|
|
1222
1211
|
return false;
|
|
1223
|
-
if (Platform.browser.name === Browsers.Firefox && compareVersion(
|
|
1212
|
+
if (Platform.browser.name === Browsers.Firefox && compareVersion(version, '58.0') >= 0 && compareVersion(version, '68.11.0') < 0)
|
|
1224
1213
|
return false;
|
|
1225
|
-
if (Platform.browser.name === Browsers.Firefox && compareVersion(
|
|
1214
|
+
if (Platform.browser.name === Browsers.Firefox && compareVersion(version, '79.0') >= 0 && compareVersion(version, '81.2.0') < 0)
|
|
1226
1215
|
return false;
|
|
1227
|
-
if (Platform.browser.name === Browsers.
|
|
1216
|
+
if (Platform.browser.name === Browsers.Firefox && compareVersion(version, '96.0') >= 0 && compareVersion(version, '107.0') < 0)
|
|
1228
1217
|
return false;
|
|
1229
|
-
if (
|
|
1218
|
+
if (Platform.browser.name === Browsers.Opera && compareVersion(version, '14.0') < 0)
|
|
1230
1219
|
return false;
|
|
1231
|
-
return
|
|
1220
|
+
return !(/(?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/[\w.]+;/i.test(Platform.userAgent) || /instagram[\/ ][-\w.]+/i.test(Platform.userAgent) || /micromessenger\/([\w.]+)/i.test(Platform.userAgent) || /musical_ly(?:.+app_?version\/|_)[\w.]+/i.test(Platform.userAgent) || /ultralite app_version\/[\w.]+/i.test(Platform.userAgent));
|
|
1232
1221
|
}
|
|
1233
1222
|
function canOpenUniversalURL() {
|
|
1234
1223
|
return Platform.os.name === OS.iOS && compareVersion(Platform.os.version, '9.0') >= 0;
|
|
@@ -1380,52 +1369,12 @@ function restoreFocus() {
|
|
|
1380
1369
|
}
|
|
1381
1370
|
return hasFocus(topDocument);
|
|
1382
1371
|
}
|
|
1383
|
-
function tryOpenURLViaReactNative(url) {
|
|
1384
|
-
try {
|
|
1385
|
-
var reactNative_1 = require('react-native');
|
|
1386
|
-
return new Promise(function (resolve, reject) {
|
|
1387
|
-
reactNative_1.Linking.canOpenURL(url)
|
|
1388
|
-
.then(function (canOpen) {
|
|
1389
|
-
if (canOpen) {
|
|
1390
|
-
reactNative_1.Linking.openURL(url)
|
|
1391
|
-
.then(resolve)
|
|
1392
|
-
.catch(reject);
|
|
1393
|
-
}
|
|
1394
|
-
else {
|
|
1395
|
-
reject();
|
|
1396
|
-
}
|
|
1397
|
-
})
|
|
1398
|
-
.catch(reject);
|
|
1399
|
-
});
|
|
1400
|
-
}
|
|
1401
|
-
catch (_) {
|
|
1402
|
-
return Promise.reject();
|
|
1403
|
-
}
|
|
1404
|
-
}
|
|
1405
|
-
function tryOpenURLViaElectron(url) {
|
|
1406
|
-
try {
|
|
1407
|
-
var electron_1 = require('electron');
|
|
1408
|
-
return new Promise(function (resolve, reject) {
|
|
1409
|
-
electron_1.shell
|
|
1410
|
-
.openExternal(url)
|
|
1411
|
-
.then(resolve)
|
|
1412
|
-
.catch(reject);
|
|
1413
|
-
});
|
|
1414
|
-
}
|
|
1415
|
-
catch (_) {
|
|
1416
|
-
return Promise.reject();
|
|
1417
|
-
}
|
|
1418
|
-
}
|
|
1419
1372
|
function tryOpenURL(url, index, timeout) {
|
|
1420
|
-
if (Platform.crossPlatformFramework === CrossPlatformFramework.ReactNative)
|
|
1421
|
-
return tryOpenURLViaReactNative(url);
|
|
1422
|
-
if (Platform.crossPlatformFramework === CrossPlatformFramework.Electron)
|
|
1423
|
-
return tryOpenURLViaElectron(url);
|
|
1424
1373
|
var top = getTopmostWindow();
|
|
1425
1374
|
var topDocument = top.document;
|
|
1426
1375
|
var eventType = { focus: undefined, blur: undefined, visibilitychange: undefined };
|
|
1427
1376
|
var eventTarget = { focus: undefined, blur: undefined, visibilitychange: undefined };
|
|
1428
|
-
if (
|
|
1377
|
+
if (typeof globalThis.cordova !== 'undefined') {
|
|
1429
1378
|
eventTarget = { focus: topDocument, blur: topDocument };
|
|
1430
1379
|
eventType = { focus: 'resume', blur: 'pause' };
|
|
1431
1380
|
}
|
|
@@ -1519,7 +1468,7 @@ function tryOpenURL(url, index, timeout) {
|
|
|
1519
1468
|
if (!hasFocus(topDocument))
|
|
1520
1469
|
restoreFocus();
|
|
1521
1470
|
try {
|
|
1522
|
-
if (
|
|
1471
|
+
if (typeof globalThis.cordova !== 'undefined') {
|
|
1523
1472
|
globalThis.open(url, '_system');
|
|
1524
1473
|
}
|
|
1525
1474
|
else {
|
|
@@ -1594,48 +1543,25 @@ function open(options) {
|
|
|
1594
1543
|
infos.allowWebStore = option.allowWebStore;
|
|
1595
1544
|
}
|
|
1596
1545
|
else if (os === OS.MacOS) {
|
|
1597
|
-
var
|
|
1598
|
-
if (typeof
|
|
1546
|
+
var option = options[OS.MacOS] || options['macos'];
|
|
1547
|
+
if (typeof option === 'undefined')
|
|
1599
1548
|
return Promise.reject(getURLOpenError(tried));
|
|
1600
|
-
timeout =
|
|
1601
|
-
infos.scheme = urlToString(
|
|
1602
|
-
infos.bundleId =
|
|
1603
|
-
infos.trackId =
|
|
1604
|
-
infos.fallback = urlToString(
|
|
1549
|
+
timeout = option.timeout;
|
|
1550
|
+
infos.scheme = urlToString(option.scheme);
|
|
1551
|
+
infos.bundleId = option.bundleId;
|
|
1552
|
+
infos.trackId = option.trackId;
|
|
1553
|
+
infos.fallback = urlToString(option.fallback);
|
|
1605
1554
|
infos.appStore = createAppStoreURL(infos.trackId, OS.MacOS);
|
|
1606
1555
|
infos.webStore = createWebStoreURL(infos.trackId, OS.MacOS);
|
|
1607
|
-
infos.allowAppStore =
|
|
1608
|
-
infos.allowWebStore =
|
|
1609
|
-
if (typeof infos.bundleId !== 'undefined' && typeof infos.trackId === 'undefined')
|
|
1610
|
-
|
|
1611
|
-
if (option_1.electronTriedGetTrackId !== true) {
|
|
1612
|
-
var self_1 = this;
|
|
1613
|
-
return new Promise(function (resolve) {
|
|
1614
|
-
if (typeof infos.bundleId !== 'undefined') {
|
|
1615
|
-
getTrackIdAsync(infos.bundleId)
|
|
1616
|
-
.then(function (trackId) {
|
|
1617
|
-
option_1.trackId = trackId;
|
|
1618
|
-
option_1.scheme = infos.scheme;
|
|
1619
|
-
option_1.bundleId = infos.bundleId;
|
|
1620
|
-
option_1.fallback = infos.fallback;
|
|
1621
|
-
option_1.allowAppStore = infos.allowAppStore;
|
|
1622
|
-
option_1.allowWebStore = infos.allowWebStore;
|
|
1623
|
-
option_1.electronTriedGetTrackId = true;
|
|
1624
|
-
resolve(self_1.open({ mac: option_1 }));
|
|
1625
|
-
});
|
|
1626
|
-
}
|
|
1627
|
-
});
|
|
1628
|
-
}
|
|
1629
|
-
}
|
|
1630
|
-
else {
|
|
1631
|
-
infos.trackId = getTrackId(infos.bundleId);
|
|
1632
|
-
}
|
|
1633
|
-
}
|
|
1556
|
+
infos.allowAppStore = option.allowAppStore;
|
|
1557
|
+
infos.allowWebStore = option.allowWebStore;
|
|
1558
|
+
if (typeof infos.bundleId !== 'undefined' && typeof infos.trackId === 'undefined')
|
|
1559
|
+
infos.trackId = getTrackId(infos.bundleId);
|
|
1634
1560
|
}
|
|
1635
1561
|
pushURL(urls, infos.intent, AppOpenState.Intent, canOpenIntentURL());
|
|
1636
1562
|
pushURL(urls, infos.universal, AppOpenState.Universal, canOpenUniversalURL());
|
|
1637
|
-
pushURL(urls, infos.scheme, AppOpenState.Scheme);
|
|
1638
|
-
pushURL(urls, infos.fallback, AppOpenState.Fallback);
|
|
1563
|
+
pushURL(urls, infos.scheme, AppOpenState.Scheme, true);
|
|
1564
|
+
pushURL(urls, infos.fallback, AppOpenState.Fallback, true);
|
|
1639
1565
|
pushURL(urls, infos.appStore, AppOpenState.Store, infos.allowAppStore);
|
|
1640
1566
|
pushURL(urls, infos.webStore, AppOpenState.Store, infos.allowWebStore);
|
|
1641
1567
|
if (typeof timeout === 'undefined')
|
|
@@ -1668,7 +1594,7 @@ function open(options) {
|
|
|
1668
1594
|
});
|
|
1669
1595
|
}
|
|
1670
1596
|
function pushURL(urls, url, state, condition) {
|
|
1671
|
-
if (condition === void 0) { condition =
|
|
1597
|
+
if (condition === void 0) { condition = false; }
|
|
1672
1598
|
if ((typeof url === 'function' || typeof url === 'string') && condition)
|
|
1673
1599
|
urls.push([state, url]);
|
|
1674
1600
|
}
|
|
@@ -1809,18 +1735,66 @@ function openMessengerMessage(options) {
|
|
|
1809
1735
|
function openMessengerMail(options) {
|
|
1810
1736
|
return openMessenger(options, 'mailto');
|
|
1811
1737
|
}
|
|
1812
|
-
|
|
1813
|
-
var
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1738
|
+
function setting(type) {
|
|
1739
|
+
var os = Platform.os.name;
|
|
1740
|
+
var version = Platform.os.version;
|
|
1741
|
+
if (os === OS.Unknown)
|
|
1742
|
+
return Promise.reject(getURLOpenError([]));
|
|
1743
|
+
if (os === OS.Android && !canOpenIntentURL())
|
|
1744
|
+
return Promise.reject(getURLOpenError([]));
|
|
1745
|
+
if (os === OS.iOS)
|
|
1746
|
+
return Promise.reject(getURLOpenError([]));
|
|
1747
|
+
if (os === OS.Windows && (version === 'Vista' || version === 'XP' || version === '2000' || version === 'NT 4.0' || version === 'NT 3.11' || version === 'ME' || compareVersion(version, '10') < 0))
|
|
1748
|
+
return Promise.reject(getURLOpenError([]));
|
|
1749
|
+
if (os === OS.MacOS && compareVersion(version, '10.10') < 0)
|
|
1750
|
+
return Promise.reject(getURLOpenError([]));
|
|
1751
|
+
var urls = [];
|
|
1752
|
+
switch (os) {
|
|
1753
|
+
case OS.Android:
|
|
1754
|
+
if (type !== SettingType.General) {
|
|
1755
|
+
if (type === SettingType.Accessibility && compareVersion(version, '1.6') >= 0)
|
|
1756
|
+
urls.push(SETTING_URL['Android'][SettingType.Accessibility]);
|
|
1757
|
+
else if (type === SettingType.Battery && compareVersion(version, '5.1') >= 0)
|
|
1758
|
+
urls.push(SETTING_URL['Android'][SettingType.Battery]);
|
|
1759
|
+
else if (type === SettingType.Accounts && compareVersion(version, '1.5') >= 0)
|
|
1760
|
+
urls.push(SETTING_URL['Android'][SettingType.Accounts]);
|
|
1761
|
+
else if (type === SettingType.Storage && compareVersion(version, '3.0') >= 0)
|
|
1762
|
+
urls.push(SETTING_URL['Android'][SettingType.Storage]);
|
|
1763
|
+
else
|
|
1764
|
+
urls.push(SETTING_URL['Android'][type]);
|
|
1765
|
+
}
|
|
1766
|
+
urls.push(SETTING_URL['Android'][SettingType.General]);
|
|
1767
|
+
break;
|
|
1768
|
+
case OS.Windows:
|
|
1769
|
+
urls.push(SETTING_URL['Windows'][type]);
|
|
1770
|
+
break;
|
|
1771
|
+
case OS.MacOS:
|
|
1772
|
+
if (type === SettingType.Appearance && compareVersion(version, '10.14') < 0) {
|
|
1773
|
+
urls.push(SETTING_URL['MacOS'][SettingType.General]);
|
|
1774
|
+
break;
|
|
1775
|
+
}
|
|
1776
|
+
if (compareVersion(version, '13.0') < 0)
|
|
1777
|
+
urls.push(SETTING_URL['MacOS'][type]);
|
|
1778
|
+
else
|
|
1779
|
+
urls.push(SETTING_URL['MacOS13+'][type]);
|
|
1780
|
+
break;
|
|
1823
1781
|
}
|
|
1824
|
-
|
|
1782
|
+
return new Promise(function (resolve, reject) {
|
|
1783
|
+
function openURLSequential(index) {
|
|
1784
|
+
if (index === void 0) { index = 0; }
|
|
1785
|
+
if (index >= urls.length)
|
|
1786
|
+
return reject(getURLOpenError([]));
|
|
1787
|
+
var url = urls[index];
|
|
1788
|
+
return tryOpenURL(url, index, 750)
|
|
1789
|
+
.then(function () {
|
|
1790
|
+
resolve();
|
|
1791
|
+
})
|
|
1792
|
+
.catch(function () {
|
|
1793
|
+
openURLSequential(index + 1);
|
|
1794
|
+
});
|
|
1795
|
+
}
|
|
1796
|
+
return openURLSequential();
|
|
1797
|
+
});
|
|
1798
|
+
}
|
|
1825
1799
|
|
|
1826
|
-
module.exports =
|
|
1800
|
+
module.exports = App;
|