@nativescript/core 8.5.3 → 8.5.4-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accessibility/accessibility-css-helper.js +5 -6
- package/accessibility/accessibility-css-helper.js.map +1 -1
- package/accessibility/accessibility-service.android.js +24 -23
- package/accessibility/accessibility-service.android.js.map +1 -1
- package/accessibility/accessibility-service.ios.js +1 -1
- package/accessibility/accessibility-service.ios.js.map +1 -1
- package/accessibility/font-scale.android.js +1 -1
- package/accessibility/font-scale.android.js.map +1 -1
- package/accessibility/font-scale.ios.js +1 -1
- package/accessibility/font-scale.ios.js.map +1 -1
- package/accessibility/index.android.js +1 -1
- package/accessibility/index.android.js.map +1 -1
- package/accessibility/index.ios.js +1 -1
- package/accessibility/index.ios.js.map +1 -1
- package/application/application-common.d.ts +197 -41
- package/application/application-common.js +411 -151
- package/application/application-common.js.map +1 -1
- package/application/application-interfaces.d.ts +116 -28
- package/application/application-shims.d.ts +351 -0
- package/application/application-shims.js +353 -0
- package/application/application-shims.js.map +1 -0
- package/application/application.android.d.ts +75 -0
- package/application/application.android.js +445 -0
- package/application/application.android.js.map +1 -0
- package/application/application.d.ts +105 -0
- package/application/application.ios.d.ts +72 -0
- package/application/application.ios.js +375 -0
- package/application/application.ios.js.map +1 -0
- package/application/index.android.d.ts +2 -77
- package/application/index.android.js +2 -455
- package/application/index.android.js.map +1 -1
- package/application/index.d.ts +2 -759
- package/application/index.ios.d.ts +2 -65
- package/application/index.ios.js +2 -516
- package/application/index.ios.js.map +1 -1
- package/application-settings/index.android.js +2 -2
- package/application-settings/index.android.js.map +1 -1
- package/connectivity/index.android.js +4 -5
- package/connectivity/index.android.js.map +1 -1
- package/css/LICENSE +9 -0
- package/css/Readme.md +278 -0
- package/css-value/LICENSE +9 -0
- package/css-value/Readme.md +45 -0
- package/fetch/LICENSE +20 -0
- package/fetch/README.md +1 -0
- package/file-system/file-system-access.android.d.ts +18 -0
- package/file-system/file-system-access.android.js +205 -3
- package/file-system/file-system-access.android.js.map +1 -1
- package/file-system/file-system-access.d.ts +67 -0
- package/file-system/file-system-access.ios.d.ts +9 -0
- package/file-system/file-system-access.ios.js +106 -0
- package/file-system/file-system-access.ios.js.map +1 -1
- package/file-system/index.d.ts +60 -0
- package/file-system/index.js +197 -3
- package/file-system/index.js.map +1 -1
- package/image-source/index.android.js +2 -2
- package/image-source/index.android.js.map +1 -1
- package/index.d.ts +22 -139
- package/index.js +15 -156
- package/index.js.map +1 -1
- package/js-libs/easysax/LICENSE +20 -0
- package/js-libs/easysax/README.md +46 -0
- package/module-name-resolver/index.js +5 -5
- package/module-name-resolver/index.js.map +1 -1
- package/module-name-resolver/non-bundle-workflow-compat.js +2 -2
- package/module-name-resolver/non-bundle-workflow-compat.js.map +1 -1
- package/package.json +1 -1
- package/platform/index.android.js +5 -5
- package/platform/index.android.js.map +1 -1
- package/platforms/README.md +1 -0
- package/platforms/android/widgets-release.aar +0 -0
- package/platforms/ios/TNSWidgets.xcframework/Info.plist +7 -7
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSWidgets.h +1 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSWidgets.h +1 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Resources/Info.plist +4 -4
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSWidgets.h +1 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Resources/Info.plist +4 -4
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +1 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +14 -3
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/ui/action-bar/index.android.js +5 -5
- package/ui/action-bar/index.android.js.map +1 -1
- package/ui/core/view/index.android.js +2 -2
- package/ui/core/view/index.android.js.map +1 -1
- package/ui/core/view/view-helper/index.ios.js +5 -6
- package/ui/core/view/view-helper/index.ios.js.map +1 -1
- package/ui/dialogs/index.ios.js +9 -3
- package/ui/dialogs/index.ios.js.map +1 -1
- package/ui/frame/activity.android.js +2 -2
- package/ui/frame/activity.android.js.map +1 -1
- package/ui/frame/index.android.d.ts +1 -1
- package/ui/frame/index.android.js +45 -82
- package/ui/frame/index.android.js.map +1 -1
- package/ui/frame/index.ios.js +2 -2
- package/ui/frame/index.ios.js.map +1 -1
- package/ui/styling/background.android.js +3 -5
- package/ui/styling/background.android.js.map +1 -1
- package/ui/styling/style-scope.js +5 -5
- package/ui/styling/style-scope.js.map +1 -1
- package/ui/tab-view/index.android.js +2 -2
- package/ui/tab-view/index.android.js.map +1 -1
- package/ui/transition/shared-transition-helper.ios.js +19 -19
- package/ui/transition/shared-transition-helper.ios.js.map +1 -1
- package/ui/transition/shared-transition.js +1 -2
- package/ui/transition/shared-transition.js.map +1 -1
- package/utils/android/index.d.ts +21 -0
- package/utils/android/index.js +157 -0
- package/utils/android/index.js.map +1 -0
- package/utils/index.android.d.ts +8 -3
- package/utils/index.android.js +15 -10
- package/utils/index.android.js.map +1 -1
- package/utils/index.d.ts +7 -7
- package/utils/index.ios.d.ts +8 -3
- package/utils/index.ios.js +13 -8
- package/utils/index.ios.js.map +1 -1
- package/utils/ios/index.d.ts +36 -0
- package/utils/ios/index.js +276 -0
- package/utils/ios/index.js.map +1 -0
- package/utils/layout-helper/index.android.js +3 -3
- package/utils/layout-helper/index.android.js.map +1 -1
- package/utils/mainthread-helper.android.js +2 -2
- package/utils/mainthread-helper.android.js.map +1 -1
- package/utils/native-helper.android.d.ts +8 -23
- package/utils/native-helper.android.js +10 -169
- package/utils/native-helper.android.js.map +1 -1
- package/utils/native-helper.d.ts +272 -255
- package/utils/native-helper.ios.d.ts +8 -38
- package/utils/native-helper.ios.js +10 -295
- package/utils/native-helper.ios.js.map +1 -1
- package/utils/platform-check.d.ts +4 -0
- package/utils/platform-check.js +21 -0
- package/utils/platform-check.js.map +1 -0
|
@@ -1,65 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export * from './application-
|
|
3
|
-
import { View } from '../ui/core/view';
|
|
4
|
-
import { NavigationEntry } from '../ui/frame/frame-interfaces';
|
|
5
|
-
declare class NotificationObserver extends NSObject {
|
|
6
|
-
private _onReceiveCallback;
|
|
7
|
-
static initWithCallback(onReceiveCallback: (notification: NSNotification) => void): NotificationObserver;
|
|
8
|
-
onReceive(notification: NSNotification): void;
|
|
9
|
-
static ObjCExposedMethods: {
|
|
10
|
-
onReceive: {
|
|
11
|
-
returns: interop.Type<void>;
|
|
12
|
-
params: (typeof NSNotification)[];
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
export declare function setMaxRefreshRate(options?: {
|
|
17
|
-
min?: number;
|
|
18
|
-
max?: number;
|
|
19
|
-
preferred?: number;
|
|
20
|
-
}): void;
|
|
21
|
-
export declare class iOSApplication implements iOSApplicationDefinition {
|
|
22
|
-
private _backgroundColor;
|
|
23
|
-
private _delegate;
|
|
24
|
-
private _window;
|
|
25
|
-
private _observers;
|
|
26
|
-
private _orientation;
|
|
27
|
-
private _rootView;
|
|
28
|
-
private _systemAppearance;
|
|
29
|
-
get paused(): boolean;
|
|
30
|
-
get backgrounded(): boolean;
|
|
31
|
-
constructor();
|
|
32
|
-
get orientation(): 'portrait' | 'landscape' | 'unknown';
|
|
33
|
-
get rootController(): UIViewController;
|
|
34
|
-
get systemAppearance(): 'light' | 'dark' | null;
|
|
35
|
-
get nativeApp(): UIApplication;
|
|
36
|
-
get window(): UIWindow;
|
|
37
|
-
get delegate(): typeof UIApplicationDelegate;
|
|
38
|
-
set delegate(value: typeof UIApplicationDelegate);
|
|
39
|
-
get rootView(): View;
|
|
40
|
-
setSystemAppearance(value: 'light' | 'dark' | null): void;
|
|
41
|
-
addNotificationObserver(notificationName: string, onReceiveCallback: (notification: NSNotification) => void): NotificationObserver;
|
|
42
|
-
removeNotificationObserver(observer: any, notificationName: string): void;
|
|
43
|
-
private didFinishLaunchingWithOptions;
|
|
44
|
-
notifyAppStarted(notification?: NSNotification): void;
|
|
45
|
-
private didBecomeActive;
|
|
46
|
-
private didEnterBackground;
|
|
47
|
-
private willTerminate;
|
|
48
|
-
private didChangeStatusBarOrientation;
|
|
49
|
-
private didReceiveMemoryWarning;
|
|
50
|
-
private getOrientationValue;
|
|
51
|
-
_onLivesync(context?: ModuleContext): void;
|
|
52
|
-
setWindowContent(view?: View): void;
|
|
53
|
-
}
|
|
54
|
-
declare let iosApp: iOSApplication;
|
|
55
|
-
export { iosApp as ios };
|
|
56
|
-
export declare function ensureNativeApplication(): void;
|
|
57
|
-
export declare function getMainEntry(): NavigationEntry;
|
|
58
|
-
export declare function getRootView(): View;
|
|
59
|
-
export declare function run(entry?: string | NavigationEntry): void;
|
|
60
|
-
export declare function addCss(cssText: string, attributeScoped?: boolean): void;
|
|
61
|
-
export declare function _resetRootView(entry?: NavigationEntry | string): void;
|
|
62
|
-
export declare function getNativeApplication(): UIApplication;
|
|
63
|
-
export declare function orientation(): 'portrait' | 'landscape' | 'unknown';
|
|
64
|
-
export declare function systemAppearance(): 'dark' | 'light';
|
|
65
|
-
export declare const AndroidApplication: any;
|
|
1
|
+
export * from './application';
|
|
2
|
+
export * from './application-shims';
|
package/application/index.ios.js
CHANGED
|
@@ -1,517 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const { backgroundEvent, displayedEvent, exitEvent, foregroundEvent, getCssFileName, launchEvent, livesync, lowMemoryEvent, notify, on, orientationChanged, orientationChangedEvent, resumeEvent, setApplication, suspendEvent, systemAppearanceChanged, systemAppearanceChangedEvent } = require('./application-common');
|
|
4
|
-
// First reexport so that app module is initialized.
|
|
5
|
-
export * from './application-common';
|
|
6
|
-
// TODO: Remove this and get it from global to decouple builder for angular
|
|
7
|
-
import { Builder } from '../ui/builder';
|
|
8
|
-
import { CSSUtils } from '../css/system-classes';
|
|
9
|
-
import { IOSHelper } from '../ui/core/view/view-helper';
|
|
10
|
-
import { Device } from '../platform';
|
|
11
|
-
import { profile } from '../profiling';
|
|
12
|
-
import { iOSNativeHelper } from '../utils';
|
|
13
|
-
import { initAccessibilityCssHelper } from '../accessibility/accessibility-css-helper';
|
|
14
|
-
import { initAccessibilityFontScale } from '../accessibility/font-scale';
|
|
15
|
-
import { inBackground, setInBackground, setSuspended, suspended } from './application-common';
|
|
16
|
-
const IOS_PLATFORM = 'ios';
|
|
17
|
-
const getVisibleViewController = iOSNativeHelper.getVisibleViewController;
|
|
18
|
-
const majorVersion = iOSNativeHelper.MajorVersion;
|
|
19
|
-
// NOTE: UIResponder with implementation of window - related to https://github.com/NativeScript/ios-runtime/issues/430
|
|
20
|
-
// TODO: Refactor the UIResponder to use Typescript extends when this issue is resolved:
|
|
21
|
-
// https://github.com/NativeScript/ios-runtime/issues/1012
|
|
22
|
-
const Responder = UIResponder.extend({
|
|
23
|
-
get window() {
|
|
24
|
-
return iosApp ? iosApp.window : undefined;
|
|
25
|
-
},
|
|
26
|
-
set window(setWindow) {
|
|
27
|
-
// NOOP
|
|
28
|
-
},
|
|
29
|
-
}, {
|
|
30
|
-
protocols: [UIApplicationDelegate],
|
|
31
|
-
});
|
|
32
|
-
var NotificationObserver = /** @class */ (function (_super) {
|
|
33
|
-
__extends(NotificationObserver, _super);
|
|
34
|
-
function NotificationObserver() {
|
|
35
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
36
|
-
}
|
|
37
|
-
NotificationObserver.initWithCallback = function (onReceiveCallback) {
|
|
38
|
-
var observer = _super.new.call(this);
|
|
39
|
-
observer._onReceiveCallback = onReceiveCallback;
|
|
40
|
-
return observer;
|
|
41
|
-
};
|
|
42
|
-
NotificationObserver.prototype.onReceive = function (notification) {
|
|
43
|
-
this._onReceiveCallback(notification);
|
|
44
|
-
};
|
|
45
|
-
NotificationObserver.ObjCExposedMethods = {
|
|
46
|
-
onReceive: { returns: interop.types.void, params: [NSNotification] },
|
|
47
|
-
};
|
|
48
|
-
return NotificationObserver;
|
|
49
|
-
}(NSObject));
|
|
50
|
-
let displayedOnce = false;
|
|
51
|
-
let displayedLinkTarget;
|
|
52
|
-
let displayedLink;
|
|
53
|
-
var CADisplayLinkTarget = /** @class */ (function (_super) {
|
|
54
|
-
__extends(CADisplayLinkTarget, _super);
|
|
55
|
-
function CADisplayLinkTarget() {
|
|
56
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
57
|
-
}
|
|
58
|
-
CADisplayLinkTarget.prototype.onDisplayed = function (link) {
|
|
59
|
-
link.invalidate();
|
|
60
|
-
var ios = UIApplication.sharedApplication;
|
|
61
|
-
var object = iosApp;
|
|
62
|
-
displayedOnce = true;
|
|
63
|
-
notify({
|
|
64
|
-
eventName: displayedEvent,
|
|
65
|
-
object: object,
|
|
66
|
-
ios: ios,
|
|
67
|
-
});
|
|
68
|
-
displayedLinkTarget = null;
|
|
69
|
-
displayedLink = null;
|
|
70
|
-
};
|
|
71
|
-
CADisplayLinkTarget.ObjCExposedMethods = {
|
|
72
|
-
onDisplayed: { returns: interop.types.void, params: [CADisplayLink] },
|
|
73
|
-
};
|
|
74
|
-
return CADisplayLinkTarget;
|
|
75
|
-
}(NSObject));
|
|
76
|
-
export function setMaxRefreshRate(options) {
|
|
77
|
-
const adjustRefreshRate = function () {
|
|
78
|
-
if (displayedLink) {
|
|
79
|
-
const minFrameRateDisabled = NSBundle.mainBundle.objectForInfoDictionaryKey('CADisableMinimumFrameDurationOnPhone');
|
|
80
|
-
if (minFrameRateDisabled) {
|
|
81
|
-
let max = 120;
|
|
82
|
-
const deviceMaxFrames = UIScreen.mainScreen?.maximumFramesPerSecond;
|
|
83
|
-
if (options?.max) {
|
|
84
|
-
if (deviceMaxFrames) {
|
|
85
|
-
// iOS 10.3
|
|
86
|
-
max = options.max <= deviceMaxFrames ? options.max : deviceMaxFrames;
|
|
87
|
-
}
|
|
88
|
-
else if (displayedLink.preferredFramesPerSecond) {
|
|
89
|
-
// iOS 10.0
|
|
90
|
-
max = options.max <= displayedLink.preferredFramesPerSecond ? options.max : displayedLink.preferredFramesPerSecond;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
if (iOSNativeHelper.MajorVersion >= 15) {
|
|
94
|
-
const min = options?.min || max / 2;
|
|
95
|
-
const preferred = options?.preferred || max;
|
|
96
|
-
displayedLink.preferredFrameRateRange = CAFrameRateRangeMake(min, max, preferred);
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
displayedLink.preferredFramesPerSecond = max;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
if (!displayedOnce) {
|
|
105
|
-
displayedLinkTarget = CADisplayLinkTarget.new();
|
|
106
|
-
displayedLink = CADisplayLink.displayLinkWithTargetSelector(displayedLinkTarget, 'onDisplayed');
|
|
107
|
-
adjustRefreshRate();
|
|
108
|
-
displayedLink.addToRunLoopForMode(NSRunLoop.mainRunLoop, NSDefaultRunLoopMode);
|
|
109
|
-
displayedLink.addToRunLoopForMode(NSRunLoop.mainRunLoop, UITrackingRunLoopMode);
|
|
110
|
-
}
|
|
111
|
-
else {
|
|
112
|
-
adjustRefreshRate();
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
/* tslint:disable */
|
|
116
|
-
export class iOSApplication {
|
|
117
|
-
get paused() {
|
|
118
|
-
return suspended;
|
|
119
|
-
}
|
|
120
|
-
get backgrounded() {
|
|
121
|
-
return inBackground;
|
|
122
|
-
}
|
|
123
|
-
constructor() {
|
|
124
|
-
/* tslint:enable */
|
|
125
|
-
this._backgroundColor = majorVersion <= 12 || !UIColor.systemBackgroundColor ? UIColor.whiteColor : UIColor.systemBackgroundColor;
|
|
126
|
-
this._observers = new Array();
|
|
127
|
-
this.addNotificationObserver(UIApplicationDidFinishLaunchingNotification, this.didFinishLaunchingWithOptions.bind(this));
|
|
128
|
-
this.addNotificationObserver(UIApplicationDidBecomeActiveNotification, this.didBecomeActive.bind(this));
|
|
129
|
-
this.addNotificationObserver(UIApplicationDidEnterBackgroundNotification, this.didEnterBackground.bind(this));
|
|
130
|
-
this.addNotificationObserver(UIApplicationWillTerminateNotification, this.willTerminate.bind(this));
|
|
131
|
-
this.addNotificationObserver(UIApplicationDidReceiveMemoryWarningNotification, this.didReceiveMemoryWarning.bind(this));
|
|
132
|
-
this.addNotificationObserver(UIApplicationDidChangeStatusBarOrientationNotification, this.didChangeStatusBarOrientation.bind(this));
|
|
133
|
-
}
|
|
134
|
-
get orientation() {
|
|
135
|
-
if (!this._orientation) {
|
|
136
|
-
const statusBarOrientation = UIApplication.sharedApplication.statusBarOrientation;
|
|
137
|
-
this._orientation = this.getOrientationValue(statusBarOrientation);
|
|
138
|
-
}
|
|
139
|
-
return this._orientation;
|
|
140
|
-
}
|
|
141
|
-
get rootController() {
|
|
142
|
-
if (NativeScriptEmbedder.sharedInstance().delegate && !this._window) {
|
|
143
|
-
this._window = UIApplication.sharedApplication.keyWindow;
|
|
144
|
-
}
|
|
145
|
-
return this._window.rootViewController;
|
|
146
|
-
}
|
|
147
|
-
get systemAppearance() {
|
|
148
|
-
// userInterfaceStyle is available on UITraitCollection since iOS 12.
|
|
149
|
-
if (majorVersion <= 11) {
|
|
150
|
-
return null;
|
|
151
|
-
}
|
|
152
|
-
if (!this._systemAppearance) {
|
|
153
|
-
const userInterfaceStyle = this.rootController.traitCollection.userInterfaceStyle;
|
|
154
|
-
this._systemAppearance = getSystemAppearanceValue(userInterfaceStyle);
|
|
155
|
-
}
|
|
156
|
-
return this._systemAppearance;
|
|
157
|
-
}
|
|
158
|
-
get nativeApp() {
|
|
159
|
-
return UIApplication.sharedApplication;
|
|
160
|
-
}
|
|
161
|
-
get window() {
|
|
162
|
-
return this._window;
|
|
163
|
-
}
|
|
164
|
-
get delegate() {
|
|
165
|
-
return this._delegate;
|
|
166
|
-
}
|
|
167
|
-
set delegate(value) {
|
|
168
|
-
if (this._delegate !== value) {
|
|
169
|
-
this._delegate = value;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
get rootView() {
|
|
173
|
-
return this._rootView;
|
|
174
|
-
}
|
|
175
|
-
setSystemAppearance(value) {
|
|
176
|
-
if (this.systemAppearance !== value) {
|
|
177
|
-
this._systemAppearance = value;
|
|
178
|
-
systemAppearanceChanged(this.rootView, value);
|
|
179
|
-
notify({
|
|
180
|
-
eventName: systemAppearanceChangedEvent,
|
|
181
|
-
ios: this,
|
|
182
|
-
newValue: iosApp.systemAppearance,
|
|
183
|
-
object: this,
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
addNotificationObserver(notificationName, onReceiveCallback) {
|
|
188
|
-
const observer = NotificationObserver.initWithCallback(onReceiveCallback);
|
|
189
|
-
NSNotificationCenter.defaultCenter.addObserverSelectorNameObject(observer, 'onReceive', notificationName, null);
|
|
190
|
-
this._observers.push(observer);
|
|
191
|
-
return observer;
|
|
192
|
-
}
|
|
193
|
-
removeNotificationObserver(observer, notificationName) {
|
|
194
|
-
const index = this._observers.indexOf(observer);
|
|
195
|
-
if (index >= 0) {
|
|
196
|
-
this._observers.splice(index, 1);
|
|
197
|
-
NSNotificationCenter.defaultCenter.removeObserverNameObject(observer, notificationName, null);
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
didFinishLaunchingWithOptions(notification) {
|
|
201
|
-
setMaxRefreshRate();
|
|
202
|
-
this._window = UIWindow.alloc().initWithFrame(UIScreen.mainScreen.bounds);
|
|
203
|
-
// TODO: Expose Window module so that it can we styled from XML & CSS
|
|
204
|
-
this._window.backgroundColor = this._backgroundColor;
|
|
205
|
-
this.notifyAppStarted(notification);
|
|
206
|
-
}
|
|
207
|
-
notifyAppStarted(notification) {
|
|
208
|
-
const args = {
|
|
209
|
-
eventName: launchEvent,
|
|
210
|
-
object: this,
|
|
211
|
-
ios: notification?.userInfo?.objectForKey('UIApplicationLaunchOptionsLocalNotificationKey') || null,
|
|
212
|
-
};
|
|
213
|
-
notify(args);
|
|
214
|
-
notify({
|
|
215
|
-
eventName: 'loadAppCss',
|
|
216
|
-
object: this,
|
|
217
|
-
cssFile: getCssFileName(),
|
|
218
|
-
});
|
|
219
|
-
if (this._window) {
|
|
220
|
-
if (args.root !== null && !NativeScriptEmbedder.sharedInstance().delegate) {
|
|
221
|
-
this.setWindowContent(args.root);
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
else {
|
|
225
|
-
this._window = UIApplication.sharedApplication.keyWindow;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
didBecomeActive(notification) {
|
|
229
|
-
const ios = UIApplication.sharedApplication;
|
|
230
|
-
const object = this;
|
|
231
|
-
setInBackground(false);
|
|
232
|
-
setSuspended(false);
|
|
233
|
-
notify({ eventName: resumeEvent, object, ios });
|
|
234
|
-
notify({ eventName: foregroundEvent, object, ios });
|
|
235
|
-
const rootView = this._rootView;
|
|
236
|
-
if (rootView && !rootView.isLoaded) {
|
|
237
|
-
rootView.callLoaded();
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
didEnterBackground(notification) {
|
|
241
|
-
const ios = UIApplication.sharedApplication;
|
|
242
|
-
const object = this;
|
|
243
|
-
setInBackground(true);
|
|
244
|
-
setSuspended(true);
|
|
245
|
-
notify({ eventName: suspendEvent, object, ios });
|
|
246
|
-
notify({ eventName: backgroundEvent, object, ios });
|
|
247
|
-
const rootView = this._rootView;
|
|
248
|
-
if (rootView && rootView.isLoaded) {
|
|
249
|
-
rootView.callUnloaded();
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
willTerminate(notification) {
|
|
253
|
-
notify({
|
|
254
|
-
eventName: exitEvent,
|
|
255
|
-
object: this,
|
|
256
|
-
ios: UIApplication.sharedApplication,
|
|
257
|
-
});
|
|
258
|
-
const rootView = this._rootView;
|
|
259
|
-
if (rootView && rootView.isLoaded) {
|
|
260
|
-
rootView.callUnloaded();
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
didChangeStatusBarOrientation(notification) {
|
|
264
|
-
const statusBarOrientation = UIApplication.sharedApplication.statusBarOrientation;
|
|
265
|
-
const newOrientation = this.getOrientationValue(statusBarOrientation);
|
|
266
|
-
if (this._orientation !== newOrientation) {
|
|
267
|
-
this._orientation = newOrientation;
|
|
268
|
-
orientationChanged(getRootView(), newOrientation);
|
|
269
|
-
notify({
|
|
270
|
-
eventName: orientationChangedEvent,
|
|
271
|
-
ios: this,
|
|
272
|
-
newValue: this._orientation,
|
|
273
|
-
object: this,
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
didReceiveMemoryWarning(notification) {
|
|
278
|
-
notify({
|
|
279
|
-
eventName: lowMemoryEvent,
|
|
280
|
-
object: this,
|
|
281
|
-
ios: UIApplication.sharedApplication,
|
|
282
|
-
});
|
|
283
|
-
}
|
|
284
|
-
getOrientationValue(orientation) {
|
|
285
|
-
switch (orientation) {
|
|
286
|
-
case 3 /* UIInterfaceOrientation.LandscapeRight */:
|
|
287
|
-
case 4 /* UIInterfaceOrientation.LandscapeLeft */:
|
|
288
|
-
return 'landscape';
|
|
289
|
-
case 2 /* UIInterfaceOrientation.PortraitUpsideDown */:
|
|
290
|
-
case 1 /* UIInterfaceOrientation.Portrait */:
|
|
291
|
-
return 'portrait';
|
|
292
|
-
case 0 /* UIInterfaceOrientation.Unknown */:
|
|
293
|
-
return 'unknown';
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
_onLivesync(context) {
|
|
297
|
-
// Handle application root module
|
|
298
|
-
const isAppRootModuleChanged = context && context.path && context.path.includes(getMainEntry().moduleName) && context.type !== 'style';
|
|
299
|
-
// Set window content when:
|
|
300
|
-
// + Application root module is changed
|
|
301
|
-
// + View did not handle the change
|
|
302
|
-
// Note:
|
|
303
|
-
// The case when neither app root module is changed, nor livesync is handled on View,
|
|
304
|
-
// then changes will not apply until navigate forward to the module.
|
|
305
|
-
if (isAppRootModuleChanged || (this._rootView && !this._rootView._onLivesync(context))) {
|
|
306
|
-
this.setWindowContent();
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
setWindowContent(view) {
|
|
310
|
-
if (this._rootView) {
|
|
311
|
-
// if we already have a root view, we reset it.
|
|
312
|
-
this._rootView._onRootViewReset();
|
|
313
|
-
}
|
|
314
|
-
const rootView = createRootView(view);
|
|
315
|
-
const controller = getViewController(rootView);
|
|
316
|
-
this._rootView = rootView;
|
|
317
|
-
// setup view as styleScopeHost
|
|
318
|
-
rootView._setupAsRootView({});
|
|
319
|
-
setViewControllerView(rootView);
|
|
320
|
-
const haveController = this._window.rootViewController !== null;
|
|
321
|
-
this._window.rootViewController = controller;
|
|
322
|
-
setRootViewsSystemAppearanceCssClass(rootView);
|
|
323
|
-
if (!haveController) {
|
|
324
|
-
this._window.makeKeyAndVisible();
|
|
325
|
-
}
|
|
326
|
-
rootView.on(IOSHelper.traitCollectionColorAppearanceChangedEvent, () => {
|
|
327
|
-
const userInterfaceStyle = controller.traitCollection.userInterfaceStyle;
|
|
328
|
-
const newSystemAppearance = getSystemAppearanceValue(userInterfaceStyle);
|
|
329
|
-
this.setSystemAppearance(newSystemAppearance);
|
|
330
|
-
});
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
__decorate([
|
|
334
|
-
profile,
|
|
335
|
-
__metadata("design:type", Function),
|
|
336
|
-
__metadata("design:paramtypes", [NSNotification]),
|
|
337
|
-
__metadata("design:returntype", void 0)
|
|
338
|
-
], iOSApplication.prototype, "didFinishLaunchingWithOptions", null);
|
|
339
|
-
__decorate([
|
|
340
|
-
profile,
|
|
341
|
-
__metadata("design:type", Function),
|
|
342
|
-
__metadata("design:paramtypes", [NSNotification]),
|
|
343
|
-
__metadata("design:returntype", void 0)
|
|
344
|
-
], iOSApplication.prototype, "didBecomeActive", null);
|
|
345
|
-
/* tslint:disable */
|
|
346
|
-
let iosApp;
|
|
347
|
-
/* tslint:enable */
|
|
348
|
-
export { iosApp as ios };
|
|
349
|
-
export function ensureNativeApplication() {
|
|
350
|
-
if (!iosApp) {
|
|
351
|
-
iosApp = new iOSApplication();
|
|
352
|
-
setApplication(iosApp);
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
// attach on global, so it can be overwritten in NativeScript Angular
|
|
356
|
-
global.__onLiveSyncCore = function (context) {
|
|
357
|
-
ensureNativeApplication();
|
|
358
|
-
iosApp._onLivesync(context);
|
|
359
|
-
};
|
|
360
|
-
let mainEntry;
|
|
361
|
-
function createRootView(v) {
|
|
362
|
-
let rootView = v;
|
|
363
|
-
if (!rootView) {
|
|
364
|
-
// try to navigate to the mainEntry (if specified)
|
|
365
|
-
if (!mainEntry) {
|
|
366
|
-
throw new Error('Main entry is missing. App cannot be started. Verify app bootstrap.');
|
|
367
|
-
}
|
|
368
|
-
else {
|
|
369
|
-
// console.log('createRootView mainEntry:', mainEntry);
|
|
370
|
-
rootView = Builder.createViewFromEntry(mainEntry);
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
// console.log('createRootView rootView:', rootView);
|
|
374
|
-
setRootViewsCssClasses(rootView);
|
|
375
|
-
return rootView;
|
|
376
|
-
}
|
|
377
|
-
export function getMainEntry() {
|
|
378
|
-
return mainEntry;
|
|
379
|
-
}
|
|
380
|
-
export function getRootView() {
|
|
381
|
-
ensureNativeApplication();
|
|
382
|
-
return iosApp.rootView;
|
|
383
|
-
}
|
|
384
|
-
let started = false;
|
|
385
|
-
export function run(entry) {
|
|
386
|
-
ensureNativeApplication();
|
|
387
|
-
mainEntry = typeof entry === 'string' ? { moduleName: entry } : entry;
|
|
388
|
-
started = true;
|
|
389
|
-
if (!iosApp.nativeApp) {
|
|
390
|
-
// Normal NativeScript app will need UIApplicationMain.
|
|
391
|
-
UIApplicationMain(0, null, null, iosApp && iosApp.delegate ? NSStringFromClass(iosApp.delegate) : NSStringFromClass(Responder));
|
|
392
|
-
}
|
|
393
|
-
else {
|
|
394
|
-
// TODO: this rootView should be held alive until rootController dismissViewController is called.
|
|
395
|
-
const rootView = createRootView();
|
|
396
|
-
if (rootView) {
|
|
397
|
-
// Attach to the existing iOS app
|
|
398
|
-
const window = iosApp.nativeApp.keyWindow || (iosApp.nativeApp.windows.count > 0 && iosApp.nativeApp.windows[0]);
|
|
399
|
-
if (window) {
|
|
400
|
-
const rootController = window.rootViewController;
|
|
401
|
-
if (rootController) {
|
|
402
|
-
const controller = getViewController(rootView);
|
|
403
|
-
rootView._setupAsRootView({});
|
|
404
|
-
const embedderDelegate = NativeScriptEmbedder.sharedInstance().delegate;
|
|
405
|
-
if (embedderDelegate) {
|
|
406
|
-
setViewControllerView(rootView);
|
|
407
|
-
embedderDelegate.presentNativeScriptApp(controller);
|
|
408
|
-
}
|
|
409
|
-
else {
|
|
410
|
-
const visibleVC = getVisibleViewController(rootController);
|
|
411
|
-
visibleVC.presentViewControllerAnimatedCompletion(controller, true, null);
|
|
412
|
-
}
|
|
413
|
-
// Mind root view CSS classes in future work
|
|
414
|
-
// on embedding NativeScript applications
|
|
415
|
-
setRootViewsSystemAppearanceCssClass(rootView);
|
|
416
|
-
rootView.on(IOSHelper.traitCollectionColorAppearanceChangedEvent, () => {
|
|
417
|
-
const userInterfaceStyle = controller.traitCollection.userInterfaceStyle;
|
|
418
|
-
const newSystemAppearance = getSystemAppearanceValue(userInterfaceStyle);
|
|
419
|
-
iosApp.setSystemAppearance(newSystemAppearance);
|
|
420
|
-
});
|
|
421
|
-
iosApp.notifyAppStarted();
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
initAccessibilityCssHelper();
|
|
427
|
-
initAccessibilityFontScale();
|
|
428
|
-
}
|
|
429
|
-
export function addCss(cssText, attributeScoped) {
|
|
430
|
-
notify({
|
|
431
|
-
eventName: 'cssChanged',
|
|
432
|
-
object: iosApp,
|
|
433
|
-
cssText: cssText,
|
|
434
|
-
});
|
|
435
|
-
if (!attributeScoped) {
|
|
436
|
-
const rootView = getRootView();
|
|
437
|
-
if (rootView) {
|
|
438
|
-
rootView._onCssStateChange();
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
export function _resetRootView(entry) {
|
|
443
|
-
ensureNativeApplication();
|
|
444
|
-
mainEntry = typeof entry === 'string' ? { moduleName: entry } : entry;
|
|
445
|
-
iosApp.setWindowContent();
|
|
446
|
-
}
|
|
447
|
-
export function getNativeApplication() {
|
|
448
|
-
ensureNativeApplication();
|
|
449
|
-
return iosApp.nativeApp;
|
|
450
|
-
}
|
|
451
|
-
function getSystemAppearanceValue(userInterfaceStyle) {
|
|
452
|
-
switch (userInterfaceStyle) {
|
|
453
|
-
case 2 /* UIUserInterfaceStyle.Dark */:
|
|
454
|
-
return 'dark';
|
|
455
|
-
case 1 /* UIUserInterfaceStyle.Light */:
|
|
456
|
-
case 0 /* UIUserInterfaceStyle.Unspecified */:
|
|
457
|
-
return 'light';
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
function getViewController(rootView) {
|
|
461
|
-
let viewController = rootView.viewController || rootView.ios;
|
|
462
|
-
if (!(viewController instanceof UIViewController)) {
|
|
463
|
-
// We set UILayoutViewController dynamically to the root view if it doesn't have a view controller
|
|
464
|
-
// At the moment the root view doesn't have its native view created. We set it in the setViewControllerView func
|
|
465
|
-
viewController = IOSHelper.UILayoutViewController.initWithOwner(new WeakRef(rootView));
|
|
466
|
-
rootView.viewController = viewController;
|
|
467
|
-
}
|
|
468
|
-
return viewController;
|
|
469
|
-
}
|
|
470
|
-
function setViewControllerView(view) {
|
|
471
|
-
const viewController = view.viewController || view.ios;
|
|
472
|
-
const nativeView = view.ios || view.nativeViewProtected;
|
|
473
|
-
if (!nativeView || !viewController) {
|
|
474
|
-
throw new Error('Root should be either UIViewController or UIView');
|
|
475
|
-
}
|
|
476
|
-
if (viewController instanceof IOSHelper.UILayoutViewController) {
|
|
477
|
-
viewController.view.addSubview(nativeView);
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
function setRootViewsCssClasses(rootView) {
|
|
481
|
-
ensureNativeApplication();
|
|
482
|
-
const deviceType = Device.deviceType.toLowerCase();
|
|
483
|
-
CSSUtils.pushToSystemCssClasses(`${CSSUtils.CLASS_PREFIX}${IOS_PLATFORM}`);
|
|
484
|
-
CSSUtils.pushToSystemCssClasses(`${CSSUtils.CLASS_PREFIX}${deviceType}`);
|
|
485
|
-
CSSUtils.pushToSystemCssClasses(`${CSSUtils.CLASS_PREFIX}${iosApp.orientation}`);
|
|
486
|
-
rootView.cssClasses.add(CSSUtils.ROOT_VIEW_CSS_CLASS);
|
|
487
|
-
const rootViewCssClasses = CSSUtils.getSystemCssClasses();
|
|
488
|
-
rootViewCssClasses.forEach((c) => rootView.cssClasses.add(c));
|
|
489
|
-
}
|
|
490
|
-
function setRootViewsSystemAppearanceCssClass(rootView) {
|
|
491
|
-
ensureNativeApplication();
|
|
492
|
-
if (majorVersion >= 13) {
|
|
493
|
-
const systemAppearanceCssClass = `${CSSUtils.CLASS_PREFIX}${iosApp.systemAppearance}`;
|
|
494
|
-
CSSUtils.pushToSystemCssClasses(systemAppearanceCssClass);
|
|
495
|
-
rootView.cssClasses.add(systemAppearanceCssClass);
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
export function orientation() {
|
|
499
|
-
ensureNativeApplication();
|
|
500
|
-
return iosApp.orientation;
|
|
501
|
-
}
|
|
502
|
-
export function systemAppearance() {
|
|
503
|
-
ensureNativeApplication();
|
|
504
|
-
return iosApp.systemAppearance;
|
|
505
|
-
}
|
|
506
|
-
global.__onLiveSync = function __onLiveSync(context) {
|
|
507
|
-
if (!started) {
|
|
508
|
-
return;
|
|
509
|
-
}
|
|
510
|
-
const rootView = getRootView();
|
|
511
|
-
livesync(rootView, context);
|
|
512
|
-
};
|
|
513
|
-
// core exports this symbol so apps may import them in general
|
|
514
|
-
// technically they are only available for use when running that platform
|
|
515
|
-
// helps avoid a webpack nonexistent warning
|
|
516
|
-
export const AndroidApplication = undefined;
|
|
1
|
+
export * from './application';
|
|
2
|
+
export * from './application-shims';
|
|
517
3
|
//# sourceMappingURL=index.ios.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.ios.js","sourceRoot":"","sources":["../../../../packages/core/application/index.ios.ts"],"names":[],"mappings":"AAIA,gDAAgD;AAChD,wDAAwD;AACxD,MAAM,EAAE,eAAe,EAAE,cAAc,EAAE,SAAS,EAAE,eAAe,EAAE,cAAc,EAAE,WAAW,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,EAAE,EAAE,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,WAAW,EAAE,cAAc,EAAE,YAAY,EAAE,uBAAuB,EAAE,4BAA4B,EAAE,GAAG,OAAO,CAAC,sBAAsB,CAA0C,CAAC;AACnW,oDAAoD;AACpD,cAAc,sBAAsB,CAAC;AAIrC,2EAA2E;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAE9F,MAAM,YAAY,GAAG,KAAK,CAAC;AAE3B,MAAM,wBAAwB,GAAG,eAAe,CAAC,wBAAwB,CAAC;AAC1E,MAAM,YAAY,GAAG,eAAe,CAAC,YAAY,C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"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as common from './application-settings-common';
|
|
2
|
-
import {
|
|
2
|
+
import { Application } from '../application';
|
|
3
3
|
let sharedPreferences;
|
|
4
4
|
function ensureSharedPreferences() {
|
|
5
5
|
if (!sharedPreferences) {
|
|
6
|
-
sharedPreferences = getNativeApplication().getApplicationContext().getSharedPreferences('prefs.db', 0);
|
|
6
|
+
sharedPreferences = Application.android.getNativeApplication().getApplicationContext().getSharedPreferences('prefs.db', 0);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
function verify(key) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.android.js","sourceRoot":"","sources":["../../../../packages/core/application-settings/index.android.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.android.js","sourceRoot":"","sources":["../../../../packages/core/application-settings/index.android.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,IAAI,iBAAoD,CAAC;AACzD,SAAS,uBAAuB;IAC/B,IAAI,CAAC,iBAAiB,EAAE;QACvB,iBAAiB,GAAG,WAAW,CAAC,OAAO,CAAC,oBAAoB,EAAE,CAAC,qBAAqB,EAAE,CAAC,oBAAoB,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;KAC3H;AACF,CAAC;AAED,SAAS,MAAM,CAAC,GAAW;IAC1B,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IACrB,uBAAuB,EAAE,CAAC;AAC3B,CAAC;AAED,MAAM,UAAU,MAAM,CAAC,GAAW;IACjC,MAAM,CAAC,GAAG,CAAC,CAAC;IAEZ,OAAO,iBAAiB,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AACxC,CAAC;AAED,UAAU;AACV,MAAM,U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