peachsim 0.1.1667 → 0.1.1674
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/README.md +1 -1
- package/cli/bridge-flow-runner.ts +4 -1
- package/cli/commands/coverage-swift.ts +291 -0
- package/cli/commands/coverage.ts +168 -24
- package/cli/commands/diagnose.ts +1 -19
- package/cli/commands/inspect/settling.ts +37 -4
- package/cli/commands/react.ts +3 -18
- package/cli/commands/screenshot.ts +1 -1
- package/cli/commands/screenshots-capture.ts +1 -1
- package/cli/drivers/playwright-provisioning.ts +1 -4
- package/cli/drivers/playwright.ts +15 -1
- package/cli/scene-video.ts +1 -1
- package/cli/ui.ts +20 -0
- package/cli/ws-bridge.ts +7 -36
- package/detox/frame-identity.cjs +21 -0
- package/detox/frame-identity.d.cts +6 -0
- package/detox/index.ts +39 -33
- package/detox/jest-environment.cjs +4 -1
- package/detox/jest-setup-after-env.cjs +0 -4
- package/detox/navigation-lifecycle.ts +2 -2
- package/detox/proof-observer.ts +126 -0
- package/dist-lib/agent-daemon-client.cjs +29 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +10 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +557 -158
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +5098 -7344
- package/dist-lib/detox/jest-environment.cjs +4 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +602 -152
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +688 -194
- package/dist-lib/host/fetch-proxy-handler.cjs +6 -3
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +247 -11
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +10 -1
- package/dist-lib/metro-production-bundle.mjs +12 -1
- package/dist-lib/metro.cjs +155 -5
- package/dist-lib/native-app-identity-project.cjs +43 -5
- package/dist-lib/native-app-identity-project.mjs +43 -5
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +21 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +73 -27
- package/dist-lib/public-origins-lib-static.json +1 -1
- package/dist-lib/public-origins-lib.json +563 -183
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +964 -0
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +38 -5
- package/dist-lib/sdk.mjs +38 -5
- package/dist-lib/skills.cjs +1031 -530
- package/dist-lib/swift-compile.cjs +298 -86
- package/dist-lib/swift-compile.mjs +298 -86
- package/dist-lib/swift-package.cjs +53 -4
- package/dist-lib/swift-package.mjs +52 -4
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +25 -44
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +603 -114
- package/dist-lib/vite.cjs +65 -3
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/clipboardContract.d.ts +7 -0
- package/dist-types/packages/peach-engine/src/engine/glass-material.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/engine/inspect-outline.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +4 -1
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +7 -0
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime-kind.d.ts +24 -0
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +4 -2
- package/dist-types/packages/peach-engine/src/rolldown-bundle-inventory.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/settings/devices.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/clipboardBridgeContract.d.ts +18 -0
- package/dist-types/packages/peach-globals/src/compositorBridgeContract.d.ts +10 -1
- package/dist-types/packages/peach-globals/src/index.d.ts +2 -2
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +1 -0
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +54 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +23 -4
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStore.h +439 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStoreCopySpecific.h +216 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStoreKey.h +267 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetwork.h +204 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkConfiguration.h +1393 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkConnection.h +568 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkReachability.h +369 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCPreferences.h +473 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCPreferencesPath.h +179 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCPreferencesSetSpecific.h +95 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCSchemaDefinitions.h +2395 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SystemConfiguration.h +184 -0
- package/sdk/ios/usr/include/_ctype.h +388 -0
- package/sdk/ios/usr/include/_inttypes.h +296 -0
- package/sdk/ios/usr/include/_locale.h +83 -0
- package/sdk/ios/usr/include/_locale_posix2008.h +65 -0
- package/sdk/ios/usr/include/_time.h +207 -0
- package/sdk/ios/usr/include/ctype.h +70 -0
- package/sdk/ios/usr/include/dispatch/dispatch.h +69 -6
- package/sdk/ios/usr/include/inttypes.h +35 -0
- package/sdk/ios/usr/include/libkern/OSByteOrder.h +315 -0
- package/sdk/ios/usr/include/libkern/machine/OSByteOrder.h +147 -0
- package/sdk/ios/usr/include/locale.h +59 -0
- package/sdk/ios/usr/include/runetype.h +118 -0
- package/sdk/ios/usr/include/setjmp.h +99 -0
- package/sdk/ios/usr/include/sys/_types/_clock_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_ct_rune_t.h +33 -0
- package/sdk/ios/usr/include/sys/_types/_rune_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_time_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_wint_t.h +33 -0
- package/sdk/ios/usr/include/sys/cdefs.h +2 -0
- package/sdk/ios/usr/include/time.h +67 -2
- package/src/bridge-contract.ts +42 -0
- package/src/chromium-admission.ts +196 -0
- package/src/host/bridge-host.ts +6 -43
- package/src/host/rolldown-bundle-forward.ts +4 -1
- package/src/launch-deadline.ts +74 -0
- package/src/nitro-adapter.lock.json +3 -3
- package/src/profiles.ts +21 -0
- package/src/react-native-coverage/capability-reference-resolution.ts +402 -0
- package/src/react-native-coverage/capability-source-references.ts +1296 -0
- package/src/react-native-coverage/native-typescript-parser.ts +74 -0
- package/src/react-native-coverage/project-aliases.ts +207 -0
- package/src/react-native-coverage/verified-reach.ts +47 -0
- package/src/reap-browser.ts +1019 -0
- package/src/skills/builtin/a11y-review.ts +1 -1
- package/src/skills/builtin/perf-profile.ts +1 -1
- package/src/skills/builtin/screenshot-all.ts +1 -1
- package/src/skills/builtin/visual-diff.ts +1 -1
- package/src/swift-compile.ts +109 -57
- package/src/swift-coverage/indexdump.ts +80 -0
- package/src/swift-coverage/indexing.ts +147 -0
- package/src/swift-coverage/package.ts +230 -0
- package/src/swift-coverage/provenance.ts +47 -0
- package/src/swift-coverage/reader.ts +81 -0
- package/src/swift-coverage/source.ts +252 -0
- package/src/swift-coverage/types.ts +58 -0
- package/src/swift-coverage/xcode-assets.ts +175 -0
- package/src/swift-coverage/xcode-bridging.ts +160 -0
- package/src/swift-coverage/xcode-packages.ts +251 -0
- package/src/swift-coverage/xcode-strings.ts +78 -0
- package/src/swift-coverage/xcode.ts +656 -0
- package/src/swift-distribution.lock.json +8 -8
- package/src/swift-host.ts +21 -1
- package/src/swift-objc-compile.ts +7 -3
- package/src/swift-objc-import.ts +191 -27
- package/src/swift-objc-metadata.ts +2 -2
- package/src/swift-objc-standin.ts +9 -2
- package/src/swift-package-manifest.ts +134 -13
- package/src/swift-package.ts +69 -4
- package/src/swift-standins.ts +4 -1
- package/src/swift-submit.ts +2 -1
- package/src/swift-toolchain.ts +36 -61
- package/src/worker-system-chunks.ts +3 -10
- package/src/xcode-project.ts +5 -5
- package/detox/attempt-events.cjs +0 -914
- package/detox/attempt-events.d.cts +0 -113
- package/detox/motion-change.cjs +0 -524
- package/detox/motion-change.d.cts +0 -140
- package/detox/motion-leg-starts.cjs +0 -20
- package/detox/motion-leg-starts.d.cts +0 -8
- package/detox/proof-frame.cjs +0 -190
- package/detox/record-block-execution.cjs +0 -78
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1674 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -35,6 +35,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
35
35
|
));
|
|
36
36
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
37
37
|
|
|
38
|
+
// <define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>
|
|
39
|
+
var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
|
|
40
|
+
"<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
|
|
38
44
|
// src/home-paths.ts
|
|
39
45
|
function rnxHomeDir() {
|
|
40
46
|
const override = process.env[PEACH_HOME_ENV];
|
|
@@ -391,6 +397,7 @@ var import_node_crypto, import_node_fs, import_node_os, import_node_path, PEACH_
|
|
|
391
397
|
var init_home_paths = __esm({
|
|
392
398
|
"src/home-paths.ts"() {
|
|
393
399
|
"use strict";
|
|
400
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
394
401
|
import_node_crypto = require("node:crypto");
|
|
395
402
|
import_node_fs = __toESM(require("node:fs"), 1);
|
|
396
403
|
import_node_os = require("node:os");
|
|
@@ -412,6 +419,7 @@ var name, peachPublicBrand, rnxPublicBrand;
|
|
|
412
419
|
var init_public_brand = __esm({
|
|
413
420
|
"src/public-brand.ts"() {
|
|
414
421
|
"use strict";
|
|
422
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
415
423
|
name = "Peach";
|
|
416
424
|
peachPublicBrand = Object.freeze({
|
|
417
425
|
name,
|
|
@@ -740,6 +748,7 @@ var import_node_child_process, import_node_fs4, import_node_os2, import_node_pat
|
|
|
740
748
|
var init_process_group = __esm({
|
|
741
749
|
"src/process-group.ts"() {
|
|
742
750
|
"use strict";
|
|
751
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
743
752
|
import_node_child_process = require("node:child_process");
|
|
744
753
|
import_node_fs4 = require("node:fs");
|
|
745
754
|
import_node_os2 = require("node:os");
|
|
@@ -759,6 +768,7 @@ function isValidRuntimeVersion(value) {
|
|
|
759
768
|
var init_version = __esm({
|
|
760
769
|
"../contrast-runtime-delivery/src/version.ts"() {
|
|
761
770
|
"use strict";
|
|
771
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
762
772
|
}
|
|
763
773
|
});
|
|
764
774
|
|
|
@@ -798,6 +808,7 @@ var import_node_fs5, import_node_path4;
|
|
|
798
808
|
var init_product = __esm({
|
|
799
809
|
"../contrast-runtime-delivery/src/product.ts"() {
|
|
800
810
|
"use strict";
|
|
811
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
801
812
|
import_node_fs5 = __toESM(require("node:fs"), 1);
|
|
802
813
|
import_node_path4 = __toESM(require("node:path"), 1);
|
|
803
814
|
init_version();
|
|
@@ -1244,6 +1255,7 @@ var import_node_child_process2, import_node_crypto2, import_node_fs6, import_nod
|
|
|
1244
1255
|
var init_src = __esm({
|
|
1245
1256
|
"../contrast-runtime-delivery/src/index.ts"() {
|
|
1246
1257
|
"use strict";
|
|
1258
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1247
1259
|
import_node_child_process2 = require("node:child_process");
|
|
1248
1260
|
import_node_crypto2 = __toESM(require("node:crypto"), 1);
|
|
1249
1261
|
import_node_fs6 = __toESM(require("node:fs"), 1);
|
|
@@ -1263,6 +1275,7 @@ var RNX_FORKED_SCRIPT_ENV;
|
|
|
1263
1275
|
var init_internal_child = __esm({
|
|
1264
1276
|
"cli/internal-child.ts"() {
|
|
1265
1277
|
"use strict";
|
|
1278
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1266
1279
|
RNX_FORKED_SCRIPT_ENV = "PEACH_RUNS_FORKED_SCRIPTS";
|
|
1267
1280
|
}
|
|
1268
1281
|
});
|
|
@@ -1322,6 +1335,7 @@ var DEFAULT_CONTRAST_BACKEND_ORIGIN, LOOPBACK_PROBE_HOSTNAMES, PEACHSIM_NATIVE_H
|
|
|
1322
1335
|
var init_backend_origin = __esm({
|
|
1323
1336
|
"src/backend-origin.ts"() {
|
|
1324
1337
|
"use strict";
|
|
1338
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1325
1339
|
DEFAULT_CONTRAST_BACKEND_ORIGIN = "https://peachsim.com";
|
|
1326
1340
|
LOOPBACK_PROBE_HOSTNAMES = ["127.0.0.1", "::1"];
|
|
1327
1341
|
PEACHSIM_NATIVE_HOST = "native.peachsim.com";
|
|
@@ -1352,6 +1366,7 @@ function isNode(node) {
|
|
|
1352
1366
|
var ALIAS, DOC, MAP, PAIR, SCALAR, SEQ, NODE_TYPE, isAlias, isDocument, isMap, isPair, isScalar, isSeq, hasAnchor;
|
|
1353
1367
|
var init_identity = __esm({
|
|
1354
1368
|
"../../node_modules/yaml/browser/dist/nodes/identity.js"() {
|
|
1369
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1355
1370
|
ALIAS = Symbol.for("yaml.alias");
|
|
1356
1371
|
DOC = Symbol.for("yaml.document");
|
|
1357
1372
|
MAP = Symbol.for("yaml.map");
|
|
@@ -1512,6 +1527,7 @@ function replaceNode(key2, path43, node) {
|
|
|
1512
1527
|
var BREAK, SKIP, REMOVE;
|
|
1513
1528
|
var init_visit = __esm({
|
|
1514
1529
|
"../../node_modules/yaml/browser/dist/visit.js"() {
|
|
1530
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1515
1531
|
init_identity();
|
|
1516
1532
|
BREAK = Symbol("break visit");
|
|
1517
1533
|
SKIP = Symbol("skip children");
|
|
@@ -1529,6 +1545,7 @@ var init_visit = __esm({
|
|
|
1529
1545
|
var escapeChars, escapeTagName, Directives;
|
|
1530
1546
|
var init_directives = __esm({
|
|
1531
1547
|
"../../node_modules/yaml/browser/dist/doc/directives.js"() {
|
|
1548
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1532
1549
|
init_identity();
|
|
1533
1550
|
init_visit();
|
|
1534
1551
|
escapeChars = {
|
|
@@ -1755,6 +1772,7 @@ function createNodeAnchors(doc, prefix) {
|
|
|
1755
1772
|
}
|
|
1756
1773
|
var init_anchors = __esm({
|
|
1757
1774
|
"../../node_modules/yaml/browser/dist/doc/anchors.js"() {
|
|
1775
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1758
1776
|
init_identity();
|
|
1759
1777
|
init_visit();
|
|
1760
1778
|
}
|
|
@@ -1805,6 +1823,7 @@ function applyReviver(reviver, obj, key2, val) {
|
|
|
1805
1823
|
}
|
|
1806
1824
|
var init_applyReviver = __esm({
|
|
1807
1825
|
"../../node_modules/yaml/browser/dist/doc/applyReviver.js"() {
|
|
1826
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1808
1827
|
}
|
|
1809
1828
|
});
|
|
1810
1829
|
|
|
@@ -1832,6 +1851,7 @@ function toJS(value, arg, ctx) {
|
|
|
1832
1851
|
}
|
|
1833
1852
|
var init_toJS = __esm({
|
|
1834
1853
|
"../../node_modules/yaml/browser/dist/nodes/toJS.js"() {
|
|
1854
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1835
1855
|
init_identity();
|
|
1836
1856
|
}
|
|
1837
1857
|
});
|
|
@@ -1840,6 +1860,7 @@ var init_toJS = __esm({
|
|
|
1840
1860
|
var NodeBase;
|
|
1841
1861
|
var init_Node = __esm({
|
|
1842
1862
|
"../../node_modules/yaml/browser/dist/nodes/Node.js"() {
|
|
1863
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1843
1864
|
init_applyReviver();
|
|
1844
1865
|
init_identity();
|
|
1845
1866
|
init_toJS();
|
|
@@ -1900,6 +1921,7 @@ function getAliasCount(doc, node, anchors) {
|
|
|
1900
1921
|
var Alias;
|
|
1901
1922
|
var init_Alias = __esm({
|
|
1902
1923
|
"../../node_modules/yaml/browser/dist/nodes/Alias.js"() {
|
|
1924
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1903
1925
|
init_anchors();
|
|
1904
1926
|
init_visit();
|
|
1905
1927
|
init_identity();
|
|
@@ -1995,6 +2017,7 @@ var init_Alias = __esm({
|
|
|
1995
2017
|
var isScalarValue, Scalar;
|
|
1996
2018
|
var init_Scalar = __esm({
|
|
1997
2019
|
"../../node_modules/yaml/browser/dist/nodes/Scalar.js"() {
|
|
2020
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1998
2021
|
init_identity();
|
|
1999
2022
|
init_Node();
|
|
2000
2023
|
init_toJS();
|
|
@@ -2086,6 +2109,7 @@ function createNode(value, tagName, ctx) {
|
|
|
2086
2109
|
var defaultTagPrefix;
|
|
2087
2110
|
var init_createNode = __esm({
|
|
2088
2111
|
"../../node_modules/yaml/browser/dist/doc/createNode.js"() {
|
|
2112
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2089
2113
|
init_Alias();
|
|
2090
2114
|
init_identity();
|
|
2091
2115
|
init_Scalar();
|
|
@@ -2119,6 +2143,7 @@ function collectionFromPath(schema4, path43, value) {
|
|
|
2119
2143
|
var isEmptyPath, Collection;
|
|
2120
2144
|
var init_Collection = __esm({
|
|
2121
2145
|
"../../node_modules/yaml/browser/dist/nodes/Collection.js"() {
|
|
2146
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2122
2147
|
init_createNode();
|
|
2123
2148
|
init_identity();
|
|
2124
2149
|
init_Node();
|
|
@@ -2242,6 +2267,7 @@ function indentComment(comment, indent) {
|
|
|
2242
2267
|
var stringifyComment, lineComment;
|
|
2243
2268
|
var init_stringifyComment = __esm({
|
|
2244
2269
|
"../../node_modules/yaml/browser/dist/stringify/stringifyComment.js"() {
|
|
2270
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2245
2271
|
stringifyComment = (str2) => str2.replace(/^(?!$)(?: $)?/gm, "#");
|
|
2246
2272
|
lineComment = (str2, indent, comment) => str2.endsWith("\n") ? indentComment(comment, indent) : comment.includes("\n") ? "\n" + indentComment(comment, indent) : (str2.endsWith(" ") ? "" : " ") + comment;
|
|
2247
2273
|
}
|
|
@@ -2373,6 +2399,7 @@ function consumeMoreIndentedLines(text5, i, indent) {
|
|
|
2373
2399
|
var FOLD_FLOW, FOLD_BLOCK, FOLD_QUOTED;
|
|
2374
2400
|
var init_foldFlowLines = __esm({
|
|
2375
2401
|
"../../node_modules/yaml/browser/dist/stringify/foldFlowLines.js"() {
|
|
2402
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2376
2403
|
FOLD_FLOW = "flow";
|
|
2377
2404
|
FOLD_BLOCK = "block";
|
|
2378
2405
|
FOLD_QUOTED = "quoted";
|
|
@@ -2644,6 +2671,7 @@ function stringifyString(item, ctx, onComment, onChompKeep) {
|
|
|
2644
2671
|
var getFoldOptions, containsDocumentMarker, blockEndNewlines;
|
|
2645
2672
|
var init_stringifyString = __esm({
|
|
2646
2673
|
"../../node_modules/yaml/browser/dist/stringify/stringifyString.js"() {
|
|
2674
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2647
2675
|
init_Scalar();
|
|
2648
2676
|
init_foldFlowLines();
|
|
2649
2677
|
getFoldOptions = (ctx, isBlock2) => ({
|
|
@@ -2774,6 +2802,7 @@ ${ctx.indent}${str2}`;
|
|
|
2774
2802
|
}
|
|
2775
2803
|
var init_stringify = __esm({
|
|
2776
2804
|
"../../node_modules/yaml/browser/dist/stringify/stringify.js"() {
|
|
2805
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2777
2806
|
init_anchors();
|
|
2778
2807
|
init_identity();
|
|
2779
2808
|
init_stringifyComment();
|
|
@@ -2905,6 +2934,7 @@ ${ctx.indent}`;
|
|
|
2905
2934
|
}
|
|
2906
2935
|
var init_stringifyPair = __esm({
|
|
2907
2936
|
"../../node_modules/yaml/browser/dist/stringify/stringifyPair.js"() {
|
|
2937
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2908
2938
|
init_identity();
|
|
2909
2939
|
init_Scalar();
|
|
2910
2940
|
init_stringify();
|
|
@@ -2920,6 +2950,7 @@ function warn(logLevel, warning) {
|
|
|
2920
2950
|
}
|
|
2921
2951
|
var init_log = __esm({
|
|
2922
2952
|
"../../node_modules/yaml/browser/dist/log.js"() {
|
|
2953
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2923
2954
|
}
|
|
2924
2955
|
});
|
|
2925
2956
|
|
|
@@ -2963,6 +2994,7 @@ function resolveAliasValue(ctx, value) {
|
|
|
2963
2994
|
var MERGE_KEY, merge, isMergeKey;
|
|
2964
2995
|
var init_merge = __esm({
|
|
2965
2996
|
"../../node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js"() {
|
|
2997
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2966
2998
|
init_identity();
|
|
2967
2999
|
init_Scalar();
|
|
2968
3000
|
MERGE_KEY = "<<";
|
|
@@ -3034,6 +3066,7 @@ function stringifyKey(key2, jsKey, ctx) {
|
|
|
3034
3066
|
}
|
|
3035
3067
|
var init_addPairToJSMap = __esm({
|
|
3036
3068
|
"../../node_modules/yaml/browser/dist/nodes/addPairToJSMap.js"() {
|
|
3069
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3037
3070
|
init_log();
|
|
3038
3071
|
init_merge();
|
|
3039
3072
|
init_stringify();
|
|
@@ -3051,6 +3084,7 @@ function createPair(key2, value, ctx) {
|
|
|
3051
3084
|
var Pair;
|
|
3052
3085
|
var init_Pair = __esm({
|
|
3053
3086
|
"../../node_modules/yaml/browser/dist/nodes/Pair.js"() {
|
|
3087
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3054
3088
|
init_createNode();
|
|
3055
3089
|
init_stringifyPair();
|
|
3056
3090
|
init_addPairToJSMap();
|
|
@@ -3223,6 +3257,7 @@ function addCommentBefore({ indent, options: { commentString } }, lines, comment
|
|
|
3223
3257
|
}
|
|
3224
3258
|
var init_stringifyCollection = __esm({
|
|
3225
3259
|
"../../node_modules/yaml/browser/dist/stringify/stringifyCollection.js"() {
|
|
3260
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3226
3261
|
init_identity();
|
|
3227
3262
|
init_stringify();
|
|
3228
3263
|
init_stringifyComment();
|
|
@@ -3245,6 +3280,7 @@ function findPair(items2, key2) {
|
|
|
3245
3280
|
var YAMLMap;
|
|
3246
3281
|
var init_YAMLMap = __esm({
|
|
3247
3282
|
"../../node_modules/yaml/browser/dist/nodes/YAMLMap.js"() {
|
|
3283
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3248
3284
|
init_stringifyCollection();
|
|
3249
3285
|
init_addPairToJSMap();
|
|
3250
3286
|
init_Collection();
|
|
@@ -3375,6 +3411,7 @@ var init_YAMLMap = __esm({
|
|
|
3375
3411
|
var map;
|
|
3376
3412
|
var init_map = __esm({
|
|
3377
3413
|
"../../node_modules/yaml/browser/dist/schema/common/map.js"() {
|
|
3414
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3378
3415
|
init_identity();
|
|
3379
3416
|
init_YAMLMap();
|
|
3380
3417
|
map = {
|
|
@@ -3402,6 +3439,7 @@ function asItemIndex(key2) {
|
|
|
3402
3439
|
var YAMLSeq;
|
|
3403
3440
|
var init_YAMLSeq = __esm({
|
|
3404
3441
|
"../../node_modules/yaml/browser/dist/nodes/YAMLSeq.js"() {
|
|
3442
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3405
3443
|
init_createNode();
|
|
3406
3444
|
init_stringifyCollection();
|
|
3407
3445
|
init_Collection();
|
|
@@ -3511,6 +3549,7 @@ var init_YAMLSeq = __esm({
|
|
|
3511
3549
|
var seq;
|
|
3512
3550
|
var init_seq = __esm({
|
|
3513
3551
|
"../../node_modules/yaml/browser/dist/schema/common/seq.js"() {
|
|
3552
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3514
3553
|
init_identity();
|
|
3515
3554
|
init_YAMLSeq();
|
|
3516
3555
|
seq = {
|
|
@@ -3532,6 +3571,7 @@ var init_seq = __esm({
|
|
|
3532
3571
|
var string;
|
|
3533
3572
|
var init_string = __esm({
|
|
3534
3573
|
"../../node_modules/yaml/browser/dist/schema/common/string.js"() {
|
|
3574
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3535
3575
|
init_stringifyString();
|
|
3536
3576
|
string = {
|
|
3537
3577
|
identify: (value) => typeof value === "string",
|
|
@@ -3550,6 +3590,7 @@ var init_string = __esm({
|
|
|
3550
3590
|
var nullTag;
|
|
3551
3591
|
var init_null = __esm({
|
|
3552
3592
|
"../../node_modules/yaml/browser/dist/schema/common/null.js"() {
|
|
3593
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3553
3594
|
init_Scalar();
|
|
3554
3595
|
nullTag = {
|
|
3555
3596
|
identify: (value) => value == null,
|
|
@@ -3567,6 +3608,7 @@ var init_null = __esm({
|
|
|
3567
3608
|
var boolTag;
|
|
3568
3609
|
var init_bool = __esm({
|
|
3569
3610
|
"../../node_modules/yaml/browser/dist/schema/core/bool.js"() {
|
|
3611
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3570
3612
|
init_Scalar();
|
|
3571
3613
|
boolTag = {
|
|
3572
3614
|
identify: (value) => typeof value === "boolean",
|
|
@@ -3608,6 +3650,7 @@ function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
|
3608
3650
|
}
|
|
3609
3651
|
var init_stringifyNumber = __esm({
|
|
3610
3652
|
"../../node_modules/yaml/browser/dist/stringify/stringifyNumber.js"() {
|
|
3653
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3611
3654
|
}
|
|
3612
3655
|
});
|
|
3613
3656
|
|
|
@@ -3615,6 +3658,7 @@ var init_stringifyNumber = __esm({
|
|
|
3615
3658
|
var floatNaN, floatExp, float;
|
|
3616
3659
|
var init_float = __esm({
|
|
3617
3660
|
"../../node_modules/yaml/browser/dist/schema/core/float.js"() {
|
|
3661
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3618
3662
|
init_Scalar();
|
|
3619
3663
|
init_stringifyNumber();
|
|
3620
3664
|
floatNaN = {
|
|
@@ -3664,6 +3708,7 @@ function intStringify(node, radix, prefix) {
|
|
|
3664
3708
|
var intIdentify, intResolve, intOct, int, intHex;
|
|
3665
3709
|
var init_int = __esm({
|
|
3666
3710
|
"../../node_modules/yaml/browser/dist/schema/core/int.js"() {
|
|
3711
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3667
3712
|
init_stringifyNumber();
|
|
3668
3713
|
intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
3669
3714
|
intResolve = (str2, offset, radix, { intAsBigInt }) => intAsBigInt ? BigInt(str2) : parseInt(str2.substring(offset), radix);
|
|
@@ -3700,6 +3745,7 @@ var init_int = __esm({
|
|
|
3700
3745
|
var schema;
|
|
3701
3746
|
var init_schema = __esm({
|
|
3702
3747
|
"../../node_modules/yaml/browser/dist/schema/core/schema.js"() {
|
|
3748
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3703
3749
|
init_map();
|
|
3704
3750
|
init_null();
|
|
3705
3751
|
init_seq();
|
|
@@ -3730,6 +3776,7 @@ function intIdentify2(value) {
|
|
|
3730
3776
|
var stringifyJSON, jsonScalars, jsonError, schema2;
|
|
3731
3777
|
var init_schema2 = __esm({
|
|
3732
3778
|
"../../node_modules/yaml/browser/dist/schema/json/schema.js"() {
|
|
3779
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3733
3780
|
init_Scalar();
|
|
3734
3781
|
init_map();
|
|
3735
3782
|
init_seq();
|
|
@@ -3793,6 +3840,7 @@ var init_schema2 = __esm({
|
|
|
3793
3840
|
var binary;
|
|
3794
3841
|
var init_binary = __esm({
|
|
3795
3842
|
"../../node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js"() {
|
|
3843
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3796
3844
|
init_Scalar();
|
|
3797
3845
|
init_stringifyString();
|
|
3798
3846
|
binary = {
|
|
@@ -3910,6 +3958,7 @@ function createPairs(schema4, iterable, ctx) {
|
|
|
3910
3958
|
var pairs;
|
|
3911
3959
|
var init_pairs = __esm({
|
|
3912
3960
|
"../../node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js"() {
|
|
3961
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3913
3962
|
init_identity();
|
|
3914
3963
|
init_Pair();
|
|
3915
3964
|
init_Scalar();
|
|
@@ -3928,6 +3977,7 @@ var init_pairs = __esm({
|
|
|
3928
3977
|
var YAMLOMap, omap;
|
|
3929
3978
|
var init_omap = __esm({
|
|
3930
3979
|
"../../node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js"() {
|
|
3980
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3931
3981
|
init_identity();
|
|
3932
3982
|
init_toJS();
|
|
3933
3983
|
init_YAMLMap();
|
|
@@ -4010,6 +4060,7 @@ function boolStringify({ value, source }, ctx) {
|
|
|
4010
4060
|
var trueTag, falseTag;
|
|
4011
4061
|
var init_bool2 = __esm({
|
|
4012
4062
|
"../../node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js"() {
|
|
4063
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4013
4064
|
init_Scalar();
|
|
4014
4065
|
trueTag = {
|
|
4015
4066
|
identify: (value) => value === true,
|
|
@@ -4034,6 +4085,7 @@ var init_bool2 = __esm({
|
|
|
4034
4085
|
var floatNaN2, floatExp2, float2;
|
|
4035
4086
|
var init_float2 = __esm({
|
|
4036
4087
|
"../../node_modules/yaml/browser/dist/schema/yaml-1.1/float.js"() {
|
|
4088
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4037
4089
|
init_Scalar();
|
|
4038
4090
|
init_stringifyNumber();
|
|
4039
4091
|
floatNaN2 = {
|
|
@@ -4111,6 +4163,7 @@ function intStringify2(node, radix, prefix) {
|
|
|
4111
4163
|
var intIdentify3, intBin, intOct2, int2, intHex2;
|
|
4112
4164
|
var init_int2 = __esm({
|
|
4113
4165
|
"../../node_modules/yaml/browser/dist/schema/yaml-1.1/int.js"() {
|
|
4166
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4114
4167
|
init_stringifyNumber();
|
|
4115
4168
|
intIdentify3 = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
4116
4169
|
intBin = {
|
|
@@ -4155,6 +4208,7 @@ var init_int2 = __esm({
|
|
|
4155
4208
|
var YAMLSet, set;
|
|
4156
4209
|
var init_set = __esm({
|
|
4157
4210
|
"../../node_modules/yaml/browser/dist/schema/yaml-1.1/set.js"() {
|
|
4211
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4158
4212
|
init_identity();
|
|
4159
4213
|
init_Pair();
|
|
4160
4214
|
init_YAMLMap();
|
|
@@ -4275,6 +4329,7 @@ function stringifySexagesimal(node) {
|
|
|
4275
4329
|
var intTime, floatTime, timestamp;
|
|
4276
4330
|
var init_timestamp = __esm({
|
|
4277
4331
|
"../../node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js"() {
|
|
4332
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4278
4333
|
init_stringifyNumber();
|
|
4279
4334
|
intTime = {
|
|
4280
4335
|
identify: (value) => typeof value === "bigint" || Number.isInteger(value),
|
|
@@ -4327,6 +4382,7 @@ var init_timestamp = __esm({
|
|
|
4327
4382
|
var schema3;
|
|
4328
4383
|
var init_schema3 = __esm({
|
|
4329
4384
|
"../../node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js"() {
|
|
4385
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4330
4386
|
init_map();
|
|
4331
4387
|
init_null();
|
|
4332
4388
|
init_seq();
|
|
@@ -4404,6 +4460,7 @@ function getTags(customTags, schemaName, addMergeTag) {
|
|
|
4404
4460
|
var schemas, tagsByName, coreKnownTags;
|
|
4405
4461
|
var init_tags = __esm({
|
|
4406
4462
|
"../../node_modules/yaml/browser/dist/schema/tags.js"() {
|
|
4463
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4407
4464
|
init_map();
|
|
4408
4465
|
init_null();
|
|
4409
4466
|
init_seq();
|
|
@@ -4462,6 +4519,7 @@ var init_tags = __esm({
|
|
|
4462
4519
|
var sortMapEntriesByKey, Schema;
|
|
4463
4520
|
var init_Schema = __esm({
|
|
4464
4521
|
"../../node_modules/yaml/browser/dist/schema/Schema.js"() {
|
|
4522
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4465
4523
|
init_identity();
|
|
4466
4524
|
init_map();
|
|
4467
4525
|
init_seq();
|
|
@@ -4561,6 +4619,7 @@ function stringifyDocument(doc, options) {
|
|
|
4561
4619
|
}
|
|
4562
4620
|
var init_stringifyDocument = __esm({
|
|
4563
4621
|
"../../node_modules/yaml/browser/dist/stringify/stringifyDocument.js"() {
|
|
4622
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4564
4623
|
init_identity();
|
|
4565
4624
|
init_stringify();
|
|
4566
4625
|
init_stringifyComment();
|
|
@@ -4576,6 +4635,7 @@ function assertCollection(contents) {
|
|
|
4576
4635
|
var Document;
|
|
4577
4636
|
var init_Document = __esm({
|
|
4578
4637
|
"../../node_modules/yaml/browser/dist/doc/Document.js"() {
|
|
4638
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4579
4639
|
init_Alias();
|
|
4580
4640
|
init_Collection();
|
|
4581
4641
|
init_identity();
|
|
@@ -4879,6 +4939,7 @@ var init_Document = __esm({
|
|
|
4879
4939
|
var YAMLError, YAMLParseError, YAMLWarning, prettifyError;
|
|
4880
4940
|
var init_errors = __esm({
|
|
4881
4941
|
"../../node_modules/yaml/browser/dist/errors.js"() {
|
|
4942
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4882
4943
|
YAMLError = class extends Error {
|
|
4883
4944
|
constructor(name3, pos, code, message) {
|
|
4884
4945
|
super();
|
|
@@ -5065,6 +5126,7 @@ function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIn
|
|
|
5065
5126
|
}
|
|
5066
5127
|
var init_resolve_props = __esm({
|
|
5067
5128
|
"../../node_modules/yaml/browser/dist/compose/resolve-props.js"() {
|
|
5129
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5068
5130
|
}
|
|
5069
5131
|
});
|
|
5070
5132
|
|
|
@@ -5105,6 +5167,7 @@ function containsNewline(key2) {
|
|
|
5105
5167
|
}
|
|
5106
5168
|
var init_util_contains_newline = __esm({
|
|
5107
5169
|
"../../node_modules/yaml/browser/dist/compose/util-contains-newline.js"() {
|
|
5170
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5108
5171
|
}
|
|
5109
5172
|
});
|
|
5110
5173
|
|
|
@@ -5120,6 +5183,7 @@ function flowIndentCheck(indent, fc, onError) {
|
|
|
5120
5183
|
}
|
|
5121
5184
|
var init_util_flow_indent_check = __esm({
|
|
5122
5185
|
"../../node_modules/yaml/browser/dist/compose/util-flow-indent-check.js"() {
|
|
5186
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5123
5187
|
init_util_contains_newline();
|
|
5124
5188
|
}
|
|
5125
5189
|
});
|
|
@@ -5134,6 +5198,7 @@ function mapIncludes(ctx, items2, search) {
|
|
|
5134
5198
|
}
|
|
5135
5199
|
var init_util_map_includes = __esm({
|
|
5136
5200
|
"../../node_modules/yaml/browser/dist/compose/util-map-includes.js"() {
|
|
5201
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5137
5202
|
init_identity();
|
|
5138
5203
|
}
|
|
5139
5204
|
});
|
|
@@ -5235,6 +5300,7 @@ function resolveBlockMap({ composeNode: composeNode2, composeEmptyNode: composeE
|
|
|
5235
5300
|
var startColMsg;
|
|
5236
5301
|
var init_resolve_block_map = __esm({
|
|
5237
5302
|
"../../node_modules/yaml/browser/dist/compose/resolve-block-map.js"() {
|
|
5303
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5238
5304
|
init_Pair();
|
|
5239
5305
|
init_YAMLMap();
|
|
5240
5306
|
init_resolve_props();
|
|
@@ -5288,6 +5354,7 @@ function resolveBlockSeq({ composeNode: composeNode2, composeEmptyNode: composeE
|
|
|
5288
5354
|
}
|
|
5289
5355
|
var init_resolve_block_seq = __esm({
|
|
5290
5356
|
"../../node_modules/yaml/browser/dist/compose/resolve-block-seq.js"() {
|
|
5357
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5291
5358
|
init_YAMLSeq();
|
|
5292
5359
|
init_resolve_props();
|
|
5293
5360
|
init_util_flow_indent_check();
|
|
@@ -5332,6 +5399,7 @@ function resolveEnd(end, offset, reqSpace, onError) {
|
|
|
5332
5399
|
}
|
|
5333
5400
|
var init_resolve_end = __esm({
|
|
5334
5401
|
"../../node_modules/yaml/browser/dist/compose/resolve-end.js"() {
|
|
5402
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5335
5403
|
}
|
|
5336
5404
|
});
|
|
5337
5405
|
|
|
@@ -5515,6 +5583,7 @@ function resolveFlowCollection({ composeNode: composeNode2, composeEmptyNode: co
|
|
|
5515
5583
|
var blockMsg, isBlock;
|
|
5516
5584
|
var init_resolve_flow_collection = __esm({
|
|
5517
5585
|
"../../node_modules/yaml/browser/dist/compose/resolve-flow-collection.js"() {
|
|
5586
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5518
5587
|
init_identity();
|
|
5519
5588
|
init_Pair();
|
|
5520
5589
|
init_YAMLMap();
|
|
@@ -5581,6 +5650,7 @@ function composeCollection(CN2, ctx, token, props, onError) {
|
|
|
5581
5650
|
}
|
|
5582
5651
|
var init_compose_collection = __esm({
|
|
5583
5652
|
"../../node_modules/yaml/browser/dist/compose/compose-collection.js"() {
|
|
5653
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5584
5654
|
init_identity();
|
|
5585
5655
|
init_Scalar();
|
|
5586
5656
|
init_YAMLMap();
|
|
@@ -5768,6 +5838,7 @@ function splitLines(source) {
|
|
|
5768
5838
|
}
|
|
5769
5839
|
var init_resolve_block_scalar = __esm({
|
|
5770
5840
|
"../../node_modules/yaml/browser/dist/compose/resolve-block-scalar.js"() {
|
|
5841
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5771
5842
|
init_Scalar();
|
|
5772
5843
|
}
|
|
5773
5844
|
});
|
|
@@ -5953,6 +6024,7 @@ function parseCharCode(source, offset, length, onError) {
|
|
|
5953
6024
|
var escapeCodes;
|
|
5954
6025
|
var init_resolve_flow_scalar = __esm({
|
|
5955
6026
|
"../../node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js"() {
|
|
6027
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5956
6028
|
init_Scalar();
|
|
5957
6029
|
init_resolve_end();
|
|
5958
6030
|
escapeCodes = {
|
|
@@ -6063,6 +6135,7 @@ function findScalarTagByTest({ atKey, directives, schema: schema4 }, value, toke
|
|
|
6063
6135
|
}
|
|
6064
6136
|
var init_compose_scalar = __esm({
|
|
6065
6137
|
"../../node_modules/yaml/browser/dist/compose/compose-scalar.js"() {
|
|
6138
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6066
6139
|
init_identity();
|
|
6067
6140
|
init_Scalar();
|
|
6068
6141
|
init_resolve_block_scalar();
|
|
@@ -6095,6 +6168,7 @@ function emptyScalarPosition(offset, before, pos) {
|
|
|
6095
6168
|
}
|
|
6096
6169
|
var init_util_empty_scalar_position = __esm({
|
|
6097
6170
|
"../../node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js"() {
|
|
6171
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6098
6172
|
}
|
|
6099
6173
|
});
|
|
6100
6174
|
|
|
@@ -6192,6 +6266,7 @@ function composeAlias({ options }, { offset, source, end }, onError) {
|
|
|
6192
6266
|
var CN;
|
|
6193
6267
|
var init_compose_node = __esm({
|
|
6194
6268
|
"../../node_modules/yaml/browser/dist/compose/compose-node.js"() {
|
|
6269
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6195
6270
|
init_Alias();
|
|
6196
6271
|
init_identity();
|
|
6197
6272
|
init_compose_collection();
|
|
@@ -6236,6 +6311,7 @@ function composeDoc(options, directives, { offset, start, value, end }, onError)
|
|
|
6236
6311
|
}
|
|
6237
6312
|
var init_compose_doc = __esm({
|
|
6238
6313
|
"../../node_modules/yaml/browser/dist/compose/compose-doc.js"() {
|
|
6314
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6239
6315
|
init_Document();
|
|
6240
6316
|
init_compose_node();
|
|
6241
6317
|
init_resolve_end();
|
|
@@ -6280,6 +6356,7 @@ function parsePrelude(prelude) {
|
|
|
6280
6356
|
var Composer;
|
|
6281
6357
|
var init_composer = __esm({
|
|
6282
6358
|
"../../node_modules/yaml/browser/dist/compose/composer.js"() {
|
|
6359
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6283
6360
|
init_directives();
|
|
6284
6361
|
init_Document();
|
|
6285
6362
|
init_errors();
|
|
@@ -6621,6 +6698,7 @@ function setFlowScalarValue(token, source, type) {
|
|
|
6621
6698
|
}
|
|
6622
6699
|
var init_cst_scalar = __esm({
|
|
6623
6700
|
"../../node_modules/yaml/browser/dist/parse/cst-scalar.js"() {
|
|
6701
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6624
6702
|
init_resolve_block_scalar();
|
|
6625
6703
|
init_resolve_flow_scalar();
|
|
6626
6704
|
init_errors();
|
|
@@ -6684,6 +6762,7 @@ function stringifyItem({ start, key: key2, sep: sep2, value }) {
|
|
|
6684
6762
|
var stringify2;
|
|
6685
6763
|
var init_cst_stringify = __esm({
|
|
6686
6764
|
"../../node_modules/yaml/browser/dist/parse/cst-stringify.js"() {
|
|
6765
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6687
6766
|
stringify2 = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
|
|
6688
6767
|
}
|
|
6689
6768
|
});
|
|
@@ -6721,6 +6800,7 @@ function _visit(path43, item, visitor) {
|
|
|
6721
6800
|
var BREAK2, SKIP2, REMOVE2;
|
|
6722
6801
|
var init_cst_visit = __esm({
|
|
6723
6802
|
"../../node_modules/yaml/browser/dist/parse/cst-visit.js"() {
|
|
6803
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6724
6804
|
BREAK2 = Symbol("break visit");
|
|
6725
6805
|
SKIP2 = Symbol("skip children");
|
|
6726
6806
|
REMOVE2 = Symbol("remove item");
|
|
@@ -6842,6 +6922,7 @@ function tokenType(source) {
|
|
|
6842
6922
|
var BOM, DOCUMENT, FLOW_END, SCALAR2, isCollection2, isScalar2;
|
|
6843
6923
|
var init_cst = __esm({
|
|
6844
6924
|
"../../node_modules/yaml/browser/dist/parse/cst.js"() {
|
|
6925
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6845
6926
|
init_cst_scalar();
|
|
6846
6927
|
init_cst_stringify();
|
|
6847
6928
|
init_cst_visit();
|
|
@@ -6870,6 +6951,7 @@ function isEmpty(ch) {
|
|
|
6870
6951
|
var hexDigits, tagChars, flowIndicatorChars, invalidAnchorChars, isNotAnchorChar, Lexer;
|
|
6871
6952
|
var init_lexer = __esm({
|
|
6872
6953
|
"../../node_modules/yaml/browser/dist/parse/lexer.js"() {
|
|
6954
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6873
6955
|
init_cst();
|
|
6874
6956
|
hexDigits = new Set("0123456789ABCDEFabcdef");
|
|
6875
6957
|
tagChars = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");
|
|
@@ -7446,6 +7528,7 @@ var init_lexer = __esm({
|
|
|
7446
7528
|
var LineCounter;
|
|
7447
7529
|
var init_line_counter = __esm({
|
|
7448
7530
|
"../../node_modules/yaml/browser/dist/parse/line-counter.js"() {
|
|
7531
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
7449
7532
|
LineCounter = class {
|
|
7450
7533
|
constructor() {
|
|
7451
7534
|
this.lineStarts = [];
|
|
@@ -7566,6 +7649,7 @@ function fixFlowSeqItems(fc) {
|
|
|
7566
7649
|
var Parser;
|
|
7567
7650
|
var init_parser = __esm({
|
|
7568
7651
|
"../../node_modules/yaml/browser/dist/parse/parser.js"() {
|
|
7652
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
7569
7653
|
init_cst();
|
|
7570
7654
|
init_lexer();
|
|
7571
7655
|
Parser = class {
|
|
@@ -8424,6 +8508,7 @@ function stringify3(value, replacer, options) {
|
|
|
8424
8508
|
}
|
|
8425
8509
|
var init_public_api = __esm({
|
|
8426
8510
|
"../../node_modules/yaml/browser/dist/public-api.js"() {
|
|
8511
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
8427
8512
|
init_composer();
|
|
8428
8513
|
init_Document();
|
|
8429
8514
|
init_errors();
|
|
@@ -8469,6 +8554,7 @@ __export(dist_exports, {
|
|
|
8469
8554
|
});
|
|
8470
8555
|
var init_dist = __esm({
|
|
8471
8556
|
"../../node_modules/yaml/browser/dist/index.js"() {
|
|
8557
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
8472
8558
|
init_composer();
|
|
8473
8559
|
init_Document();
|
|
8474
8560
|
init_Schema();
|
|
@@ -8492,6 +8578,7 @@ var init_dist = __esm({
|
|
|
8492
8578
|
var browser_default;
|
|
8493
8579
|
var init_browser = __esm({
|
|
8494
8580
|
"../../node_modules/yaml/browser/index.js"() {
|
|
8581
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
8495
8582
|
init_dist();
|
|
8496
8583
|
init_dist();
|
|
8497
8584
|
browser_default = dist_exports;
|
|
@@ -8505,12 +8592,14 @@ function isRecord(value) {
|
|
|
8505
8592
|
var init_is_record = __esm({
|
|
8506
8593
|
"src/is-record.ts"() {
|
|
8507
8594
|
"use strict";
|
|
8595
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
8508
8596
|
}
|
|
8509
8597
|
});
|
|
8510
8598
|
|
|
8511
8599
|
// ../../node_modules/json5/lib/unicode.js
|
|
8512
8600
|
var require_unicode = __commonJS({
|
|
8513
8601
|
"../../node_modules/json5/lib/unicode.js"(exports2, module2) {
|
|
8602
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
8514
8603
|
module2.exports.Space_Separator = /[\u1680\u2000-\u200A\u202F\u205F\u3000]/;
|
|
8515
8604
|
module2.exports.ID_Start = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;
|
|
8516
8605
|
module2.exports.ID_Continue = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/;
|
|
@@ -8520,6 +8609,7 @@ var require_unicode = __commonJS({
|
|
|
8520
8609
|
// ../../node_modules/json5/lib/util.js
|
|
8521
8610
|
var require_util = __commonJS({
|
|
8522
8611
|
"../../node_modules/json5/lib/util.js"(exports2, module2) {
|
|
8612
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
8523
8613
|
var unicode = require_unicode();
|
|
8524
8614
|
module2.exports = {
|
|
8525
8615
|
isSpaceSeparator(c) {
|
|
@@ -8544,6 +8634,7 @@ var require_util = __commonJS({
|
|
|
8544
8634
|
// ../../node_modules/json5/lib/parse.js
|
|
8545
8635
|
var require_parse = __commonJS({
|
|
8546
8636
|
"../../node_modules/json5/lib/parse.js"(exports2, module2) {
|
|
8637
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
8547
8638
|
var util = require_util();
|
|
8548
8639
|
var source;
|
|
8549
8640
|
var parseState;
|
|
@@ -9391,6 +9482,7 @@ var require_parse = __commonJS({
|
|
|
9391
9482
|
// ../../node_modules/json5/lib/stringify.js
|
|
9392
9483
|
var require_stringify = __commonJS({
|
|
9393
9484
|
"../../node_modules/json5/lib/stringify.js"(exports2, module2) {
|
|
9485
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
9394
9486
|
var util = require_util();
|
|
9395
9487
|
module2.exports = function stringify4(value, replacer, space) {
|
|
9396
9488
|
const stack = [];
|
|
@@ -9610,6 +9702,7 @@ var require_stringify = __commonJS({
|
|
|
9610
9702
|
// ../../node_modules/json5/lib/index.js
|
|
9611
9703
|
var require_lib = __commonJS({
|
|
9612
9704
|
"../../node_modules/json5/lib/index.js"(exports2, module2) {
|
|
9705
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
9613
9706
|
var parse5 = require_parse();
|
|
9614
9707
|
var stringify4 = require_stringify();
|
|
9615
9708
|
var JSON53 = {
|
|
@@ -9705,6 +9798,7 @@ var import_node_fs19, import_node_path20, SESSION_VERSION, SESSION_FILE_ENV, DEF
|
|
|
9705
9798
|
var init_shared_session = __esm({
|
|
9706
9799
|
"src/auth/shared-session.ts"() {
|
|
9707
9800
|
"use strict";
|
|
9801
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
9708
9802
|
import_node_fs19 = require("node:fs");
|
|
9709
9803
|
import_node_path20 = require("node:path");
|
|
9710
9804
|
init_home_paths();
|
|
@@ -9723,6 +9817,7 @@ var import_node_async_hooks, PeachExit, sinks, rnxExit;
|
|
|
9723
9817
|
var init_run_rnx = __esm({
|
|
9724
9818
|
"cli/run-rnx.ts"() {
|
|
9725
9819
|
"use strict";
|
|
9820
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
9726
9821
|
import_node_async_hooks = require("node:async_hooks");
|
|
9727
9822
|
PeachExit = class extends Error {
|
|
9728
9823
|
code;
|
|
@@ -9847,6 +9942,7 @@ var GITHUB_TOKEN_PREFIXES, CHOOSE_ACCOUNT_HINT;
|
|
|
9847
9942
|
var init_auth = __esm({
|
|
9848
9943
|
"cli/auth.ts"() {
|
|
9849
9944
|
"use strict";
|
|
9945
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
9850
9946
|
init_shared_session();
|
|
9851
9947
|
init_run_rnx();
|
|
9852
9948
|
GITHUB_TOKEN_PREFIXES = ["ghs_", "ghp_", "gho_", "ghu_", "github_pat_"];
|
|
@@ -9912,6 +10008,7 @@ ${prefix}${json}${suffix}`;
|
|
|
9912
10008
|
var init_bundleGlobalFooter = __esm({
|
|
9913
10009
|
"src/bundleGlobalFooter.ts"() {
|
|
9914
10010
|
"use strict";
|
|
10011
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
9915
10012
|
}
|
|
9916
10013
|
});
|
|
9917
10014
|
|
|
@@ -10019,6 +10116,7 @@ var import_fs, import_path, import_url, _monorepoRootCache, RUNTIME_VERSION_HOST
|
|
|
10019
10116
|
var init_runtime_assets = __esm({
|
|
10020
10117
|
"src/runtime-assets.ts"() {
|
|
10021
10118
|
"use strict";
|
|
10119
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
10022
10120
|
import_fs = __toESM(require("fs"), 1);
|
|
10023
10121
|
import_path = __toESM(require("path"), 1);
|
|
10024
10122
|
import_url = require("url");
|
|
@@ -10032,7 +10130,7 @@ var init_runtime_assets = __esm({
|
|
|
10032
10130
|
var runtime_companion_default;
|
|
10033
10131
|
var init_runtime_companion = __esm({
|
|
10034
10132
|
"runtime-companion.json"() {
|
|
10035
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
10133
|
+
runtime_companion_default = { abi: 1, sha256: "24766e3afc21d3c7b319b6d6db0422d93f64ecd0af7147a8ef16d16b5cb4e9a8", file: "node/cli-24766e3afc21d3c7b319b6d6db0422d93f64ecd0af7147a8ef16d16b5cb4e9a8.cjs" };
|
|
10036
10134
|
}
|
|
10037
10135
|
});
|
|
10038
10136
|
|
|
@@ -10077,6 +10175,7 @@ var import_node_crypto17, import_node_fs29, import_node_module2, import_node_pat
|
|
|
10077
10175
|
var init_cli_runtime = __esm({
|
|
10078
10176
|
"src/cli-runtime.ts"() {
|
|
10079
10177
|
"use strict";
|
|
10178
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
10080
10179
|
import_node_crypto17 = require("node:crypto");
|
|
10081
10180
|
import_node_fs29 = require("node:fs");
|
|
10082
10181
|
import_node_module2 = require("node:module");
|
|
@@ -10131,6 +10230,7 @@ var import_node_fs30, import_node_path30, import_node_url3, REGISTRY_REPO_PATH,
|
|
|
10131
10230
|
var init_optional_demo_registry = __esm({
|
|
10132
10231
|
"scripts/optional-demo-registry.ts"() {
|
|
10133
10232
|
"use strict";
|
|
10233
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
10134
10234
|
import_node_fs30 = require("node:fs");
|
|
10135
10235
|
import_node_path30 = require("node:path");
|
|
10136
10236
|
import_node_url3 = require("node:url");
|
|
@@ -10145,6 +10245,7 @@ var IS_STANDALONE;
|
|
|
10145
10245
|
var init_standalone = __esm({
|
|
10146
10246
|
"cli/standalone.ts"() {
|
|
10147
10247
|
"use strict";
|
|
10248
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
10148
10249
|
IS_STANDALONE = typeof __SOOTSIM_STANDALONE__ !== "undefined" && __SOOTSIM_STANDALONE__;
|
|
10149
10250
|
}
|
|
10150
10251
|
});
|
|
@@ -10177,6 +10278,7 @@ var PACKAGE_VERSIONS_HEADER, FOOTER;
|
|
|
10177
10278
|
var init_packageVersionsContract = __esm({
|
|
10178
10279
|
"src/packageVersionsContract.ts"() {
|
|
10179
10280
|
"use strict";
|
|
10281
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
10180
10282
|
init_bundleGlobalFooter();
|
|
10181
10283
|
PACKAGE_VERSIONS_HEADER = "X-Peach-Package-Versions";
|
|
10182
10284
|
FOOTER = "__peachPackageVersions";
|
|
@@ -10203,6 +10305,7 @@ var FOOTER2;
|
|
|
10203
10305
|
var init_androidAutolinkingContract = __esm({
|
|
10204
10306
|
"src/androidAutolinkingContract.ts"() {
|
|
10205
10307
|
"use strict";
|
|
10308
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
10206
10309
|
init_bundleGlobalFooter();
|
|
10207
10310
|
FOOTER2 = "__peachAndroidAutolinkedPackages";
|
|
10208
10311
|
}
|
|
@@ -10259,6 +10362,7 @@ var import_node_child_process17, import_node_fs41, import_node_module3, import_n
|
|
|
10259
10362
|
var init_android_autolinking = __esm({
|
|
10260
10363
|
"src/android-autolinking.ts"() {
|
|
10261
10364
|
"use strict";
|
|
10365
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
10262
10366
|
import_node_child_process17 = require("node:child_process");
|
|
10263
10367
|
import_node_fs41 = __toESM(require("node:fs"), 1);
|
|
10264
10368
|
import_node_module3 = require("node:module");
|
|
@@ -10311,6 +10415,7 @@ var import_node_crypto22, import_node_fs42, import_node_path42, import_node_url5
|
|
|
10311
10415
|
var init_kotlin_module = __esm({
|
|
10312
10416
|
"src/kotlin-module.ts"() {
|
|
10313
10417
|
"use strict";
|
|
10418
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
10314
10419
|
import_node_crypto22 = require("node:crypto");
|
|
10315
10420
|
import_node_fs42 = __toESM(require("node:fs"), 1);
|
|
10316
10421
|
import_node_path42 = __toESM(require("node:path"), 1);
|
|
@@ -10428,6 +10533,7 @@ var import_node_child_process18, import_node_crypto23, import_node_fs43, import_
|
|
|
10428
10533
|
var init_kotlin_toolchain = __esm({
|
|
10429
10534
|
"src/kotlin-toolchain.ts"() {
|
|
10430
10535
|
"use strict";
|
|
10536
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
10431
10537
|
import_node_child_process18 = require("node:child_process");
|
|
10432
10538
|
import_node_crypto23 = require("node:crypto");
|
|
10433
10539
|
import_node_fs43 = __toESM(require("node:fs"), 1);
|
|
@@ -10464,6 +10570,7 @@ var platform, KOTLIN_SDK_PROFILES, KOTLIN_SDK_FILES;
|
|
|
10464
10570
|
var init_kotlinSdkContract = __esm({
|
|
10465
10571
|
"src/kotlinSdkContract.ts"() {
|
|
10466
10572
|
"use strict";
|
|
10573
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
10467
10574
|
init_is_record();
|
|
10468
10575
|
platform = ["Sources", "JniPlatformSources", "JniSources"];
|
|
10469
10576
|
KOTLIN_SDK_PROFILES = {
|
|
@@ -10564,6 +10671,7 @@ var import_node_child_process19, import_node_crypto24, import_node_fs44, import_
|
|
|
10564
10671
|
var init_kotlin_sdk = __esm({
|
|
10565
10672
|
"src/kotlin-sdk.ts"() {
|
|
10566
10673
|
"use strict";
|
|
10674
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
10567
10675
|
import_node_child_process19 = require("node:child_process");
|
|
10568
10676
|
import_node_crypto24 = require("node:crypto");
|
|
10569
10677
|
import_node_fs44 = __toESM(require("node:fs"), 1);
|
|
@@ -10649,6 +10757,7 @@ var VIEW_MODEL, ANDROID_VIEW_MODEL, APPLICATION2, HANDLE;
|
|
|
10649
10757
|
var init_kotlin_view_models = __esm({
|
|
10650
10758
|
"src/kotlin-view-models.ts"() {
|
|
10651
10759
|
"use strict";
|
|
10760
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
10652
10761
|
init_is_record();
|
|
10653
10762
|
VIEW_MODEL = "androidx.lifecycle.ViewModel";
|
|
10654
10763
|
ANDROID_VIEW_MODEL = "androidx.lifecycle.AndroidViewModel";
|
|
@@ -11665,6 +11774,7 @@ var import_node_child_process20, import_node_crypto25, import_node_fs45, import_
|
|
|
11665
11774
|
var init_kotlin_host = __esm({
|
|
11666
11775
|
"src/kotlin-host.ts"() {
|
|
11667
11776
|
"use strict";
|
|
11777
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
11668
11778
|
import_node_child_process20 = require("node:child_process");
|
|
11669
11779
|
import_node_crypto25 = require("node:crypto");
|
|
11670
11780
|
import_node_fs45 = __toESM(require("node:fs"), 1);
|
|
@@ -11848,6 +11958,7 @@ var import_node_fs46, import_node_path46, EXPO_KOTLIN_ROUTE, compiling2;
|
|
|
11848
11958
|
var init_expo_kotlin_host = __esm({
|
|
11849
11959
|
"src/expo-kotlin-host.ts"() {
|
|
11850
11960
|
"use strict";
|
|
11961
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
11851
11962
|
import_node_fs46 = __toESM(require("node:fs"), 1);
|
|
11852
11963
|
import_node_path46 = __toESM(require("node:path"), 1);
|
|
11853
11964
|
init_android_autolinking();
|
|
@@ -11960,6 +12071,7 @@ var LEGACY_HARDWARE_BUTTONS, PIXEL_HARDWARE_BUTTONS, GALAXY_HARDWARE_BUTTONS, AN
|
|
|
11960
12071
|
var init_device_catalog = __esm({
|
|
11961
12072
|
"src/device-catalog.ts"() {
|
|
11962
12073
|
"use strict";
|
|
12074
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
11963
12075
|
LEGACY_HARDWARE_BUTTONS = {
|
|
11964
12076
|
width: 2.5,
|
|
11965
12077
|
lock: { side: "right", top: 188.7, height: 68.1 },
|
|
@@ -12671,6 +12783,7 @@ var RNX_METRO_MODULE_IDENTITY_VERSION;
|
|
|
12671
12783
|
var init_metro_production_bundle = __esm({
|
|
12672
12784
|
"src/metro-production-bundle.ts"() {
|
|
12673
12785
|
"use strict";
|
|
12786
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
12674
12787
|
init_bundleGlobalFooter();
|
|
12675
12788
|
RNX_METRO_MODULE_IDENTITY_VERSION = 2;
|
|
12676
12789
|
}
|
|
@@ -12725,6 +12838,7 @@ function isStorageSnapshot(value) {
|
|
|
12725
12838
|
var init_storageSnapshotContract = __esm({
|
|
12726
12839
|
"src/storageSnapshotContract.ts"() {
|
|
12727
12840
|
"use strict";
|
|
12841
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
12728
12842
|
}
|
|
12729
12843
|
});
|
|
12730
12844
|
|
|
@@ -12733,6 +12847,7 @@ var PEACH_BUNDLE_ASSET_PREFIX;
|
|
|
12733
12847
|
var init_bundle_asset_resource = __esm({
|
|
12734
12848
|
"src/bundle-asset-resource.ts"() {
|
|
12735
12849
|
"use strict";
|
|
12850
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
12736
12851
|
PEACH_BUNDLE_ASSET_PREFIX = "peach-asset://";
|
|
12737
12852
|
}
|
|
12738
12853
|
});
|
|
@@ -13539,6 +13654,7 @@ var EXPRESSION_KEYWORDS, PLACEHOLDER_JPEG, METRO_ASSET_PLACEHOLDERS;
|
|
|
13539
13654
|
var init_metroAssetArtifact = __esm({
|
|
13540
13655
|
"../contrast-bundler/src/metroAssetArtifact.ts"() {
|
|
13541
13656
|
"use strict";
|
|
13657
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
13542
13658
|
init_bundle_asset_resource();
|
|
13543
13659
|
EXPRESSION_KEYWORDS = /* @__PURE__ */ new Set([
|
|
13544
13660
|
"await",
|
|
@@ -13600,6 +13716,7 @@ var FOOTER3;
|
|
|
13600
13716
|
var init_hostVersionEvidence = __esm({
|
|
13601
13717
|
"../contrast-bundler/src/hostVersionEvidence.ts"() {
|
|
13602
13718
|
"use strict";
|
|
13719
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
13603
13720
|
init_bundleGlobalFooter();
|
|
13604
13721
|
FOOTER3 = "hostVersionEvidence";
|
|
13605
13722
|
}
|
|
@@ -13671,6 +13788,7 @@ var import_gen_mapping, import_trace_mapping;
|
|
|
13671
13788
|
var init_metroDebugSourceMap = __esm({
|
|
13672
13789
|
"../contrast-bundler/src/metroDebugSourceMap.ts"() {
|
|
13673
13790
|
"use strict";
|
|
13791
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
13674
13792
|
import_gen_mapping = require("@jridgewell/gen-mapping");
|
|
13675
13793
|
import_trace_mapping = require("@jridgewell/trace-mapping");
|
|
13676
13794
|
}
|
|
@@ -13875,6 +13993,7 @@ var import_magic_string, import_config2, import_metro_production_bundle, import_
|
|
|
13875
13993
|
var init_metroCloudArtifact = __esm({
|
|
13876
13994
|
"../contrast-bundler/src/metroCloudArtifact.ts"() {
|
|
13877
13995
|
"use strict";
|
|
13996
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
13878
13997
|
import_magic_string = __toESM(require("magic-string"), 1);
|
|
13879
13998
|
import_config2 = require("peachsim/config");
|
|
13880
13999
|
import_metro_production_bundle = require("peachsim/metro-production-bundle");
|
|
@@ -13909,6 +14028,7 @@ var RNX_CLOUD_MAX_ARTIFACT_BYTES, RNX_CLOUD_DESIGN_MAX_STORAGE_BYTES, RNX_CLOUD_
|
|
|
13909
14028
|
var init_cloud_contract = __esm({
|
|
13910
14029
|
"src/cloud-contract.ts"() {
|
|
13911
14030
|
"use strict";
|
|
14031
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
13912
14032
|
RNX_CLOUD_MAX_ARTIFACT_BYTES = 40761776;
|
|
13913
14033
|
RNX_CLOUD_DESIGN_MAX_STORAGE_BYTES = 1024 * 1024;
|
|
13914
14034
|
RNX_CLOUD_COMMAND_SCOPES = {
|
|
@@ -13999,6 +14119,7 @@ var CLOUD_SESSION_VERSION, MAX_ENCODED_SESSION_BYTES, RNX_SHELL_UPDATE_PREFIX, R
|
|
|
13999
14119
|
var init_cloud_session = __esm({
|
|
14000
14120
|
"cli/cloud-session.ts"() {
|
|
14001
14121
|
"use strict";
|
|
14122
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
14002
14123
|
init_backend_origin();
|
|
14003
14124
|
init_is_record();
|
|
14004
14125
|
CLOUD_SESSION_VERSION = 3;
|
|
@@ -14014,6 +14135,7 @@ var import_node_fs47, nodeRepoFileReader;
|
|
|
14014
14135
|
var init_nodeRepoFileReader = __esm({
|
|
14015
14136
|
"cli/commands/nodeRepoFileReader.ts"() {
|
|
14016
14137
|
"use strict";
|
|
14138
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
14017
14139
|
import_node_fs47 = require("node:fs");
|
|
14018
14140
|
nodeRepoFileReader = {
|
|
14019
14141
|
exists: import_node_fs47.existsSync,
|
|
@@ -14110,6 +14232,7 @@ var import_node_path47, import_json52, CONFIG_EXTENSIONS;
|
|
|
14110
14232
|
var init_detect = __esm({
|
|
14111
14233
|
"cli/commands/detect.ts"() {
|
|
14112
14234
|
"use strict";
|
|
14235
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
14113
14236
|
import_node_path47 = require("node:path");
|
|
14114
14237
|
import_json52 = __toESM(require_lib(), 1);
|
|
14115
14238
|
init_browser();
|
|
@@ -14679,6 +14802,7 @@ var import_node_crypto26, import_node_fs48, import_node_path48, import_node_vm,
|
|
|
14679
14802
|
var init_cloud_client = __esm({
|
|
14680
14803
|
"cli/cloud-client.ts"() {
|
|
14681
14804
|
"use strict";
|
|
14805
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
14682
14806
|
import_node_crypto26 = require("node:crypto");
|
|
14683
14807
|
import_node_fs48 = require("node:fs");
|
|
14684
14808
|
import_node_path48 = require("node:path");
|
|
@@ -14773,6 +14897,7 @@ async function sendToBox(options) {
|
|
|
14773
14897
|
var init_send_to_box = __esm({
|
|
14774
14898
|
"cli/send-to-box.ts"() {
|
|
14775
14899
|
"use strict";
|
|
14900
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
14776
14901
|
init_cli_runtime();
|
|
14777
14902
|
init_device_catalog();
|
|
14778
14903
|
init_is_record();
|
|
@@ -14789,6 +14914,7 @@ __export(bridge_host_exports, {
|
|
|
14789
14914
|
injectSharedConfigIntoHtml: () => injectSharedConfigIntoHtml
|
|
14790
14915
|
});
|
|
14791
14916
|
module.exports = __toCommonJS(bridge_host_exports);
|
|
14917
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
14792
14918
|
var import_child_process3 = __toESM(require("child_process"), 1);
|
|
14793
14919
|
var import_crypto2 = require("crypto");
|
|
14794
14920
|
var import_fs4 = __toESM(require("fs"), 1);
|
|
@@ -14797,7 +14923,53 @@ var import_os = __toESM(require("os"), 1);
|
|
|
14797
14923
|
var import_path4 = __toESM(require("path"), 1);
|
|
14798
14924
|
var import_ws2 = require("ws");
|
|
14799
14925
|
|
|
14800
|
-
//
|
|
14926
|
+
// src/automatic-update-policy.ts
|
|
14927
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
14928
|
+
var import_node_fs2 = require("node:fs");
|
|
14929
|
+
var import_node_path2 = require("node:path");
|
|
14930
|
+
init_home_paths();
|
|
14931
|
+
function automaticPeachUpdatesEnabled(env = process.env) {
|
|
14932
|
+
const value = env.PEACH_UPDATE_CHECK?.toLowerCase();
|
|
14933
|
+
return value !== "0" && value !== "false" && value !== "off" && !(0, import_node_fs2.existsSync)((0, import_node_path2.join)(rnxHomeDir(), "runtime-update-disabled"));
|
|
14934
|
+
}
|
|
14935
|
+
|
|
14936
|
+
// src/bridge-constants.ts
|
|
14937
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
14938
|
+
|
|
14939
|
+
// src/simulator-route.ts
|
|
14940
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
14941
|
+
var PEACH_SIMULATOR_PATH = "/simulator";
|
|
14942
|
+
var SIMULATOR_DOCUMENT_PATH = new RegExp(
|
|
14943
|
+
`^${PEACH_SIMULATOR_PATH}(?:/(?:rn(?:/[^/]+)?|app/[^/]+|dock/[^/]+))?/?$`
|
|
14944
|
+
);
|
|
14945
|
+
|
|
14946
|
+
// src/bridge-constants.ts
|
|
14947
|
+
var DEFAULT_SOOTSIM_BRIDGE_PORT = 7668;
|
|
14948
|
+
var DEFAULT_SOOTSIM_BRIDGE_URL = `http://localhost:${DEFAULT_SOOTSIM_BRIDGE_PORT}/`;
|
|
14949
|
+
var HOSTED_SHELL_PATH = new RegExp(`^(?:${PEACH_SIMULATOR_PATH}|/sootsim)(?:/|$)`);
|
|
14950
|
+
var SOOTSIM_BRIDGE_SIM_CLOSE_CODE = 4001;
|
|
14951
|
+
var SOOTSIM_BRIDGE_SIM_CLOSE_REASON = "sootsim close";
|
|
14952
|
+
var AUTOMATION_SIM_IDLE_REAP_TTL_MS = 5 * 6e4;
|
|
14953
|
+
|
|
14954
|
+
// src/bridge-contract.ts
|
|
14955
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
14956
|
+
var WRITE_COMMAND_TYPES = /* @__PURE__ */ new Set([
|
|
14957
|
+
"tap",
|
|
14958
|
+
"keyboard",
|
|
14959
|
+
"longPress",
|
|
14960
|
+
"perform",
|
|
14961
|
+
"reset",
|
|
14962
|
+
"camera"
|
|
14963
|
+
]);
|
|
14964
|
+
function commandWritesSim(msg) {
|
|
14965
|
+
if (typeof msg.type !== "string") return false;
|
|
14966
|
+
if (msg.acquireLock === true) return true;
|
|
14967
|
+
if (msg.readOnly === true) return false;
|
|
14968
|
+
return WRITE_COMMAND_TYPES.has(msg.type);
|
|
14969
|
+
}
|
|
14970
|
+
|
|
14971
|
+
// src/chromium-admission.ts
|
|
14972
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
14801
14973
|
function readChromiumQueue(deps, verified2, own) {
|
|
14802
14974
|
const { fs: fs36, os: os7, path: path43, childProcess: childProcess2 } = deps;
|
|
14803
14975
|
const dir = path43.join(
|
|
@@ -14856,46 +15028,8 @@ function readChromiumQueue(deps, verified2, own) {
|
|
|
14856
15028
|
return { dir, limit, tickets: tickets.map((t) => t.entry) };
|
|
14857
15029
|
}
|
|
14858
15030
|
|
|
14859
|
-
// src/automatic-update-policy.ts
|
|
14860
|
-
var import_node_fs2 = require("node:fs");
|
|
14861
|
-
var import_node_path2 = require("node:path");
|
|
14862
|
-
init_home_paths();
|
|
14863
|
-
function automaticPeachUpdatesEnabled(env = process.env) {
|
|
14864
|
-
const value = env.PEACH_UPDATE_CHECK?.toLowerCase();
|
|
14865
|
-
return value !== "0" && value !== "false" && value !== "off" && !(0, import_node_fs2.existsSync)((0, import_node_path2.join)(rnxHomeDir(), "runtime-update-disabled"));
|
|
14866
|
-
}
|
|
14867
|
-
|
|
14868
|
-
// src/simulator-route.ts
|
|
14869
|
-
var PEACH_SIMULATOR_PATH = "/simulator";
|
|
14870
|
-
var SIMULATOR_DOCUMENT_PATH = new RegExp(
|
|
14871
|
-
`^${PEACH_SIMULATOR_PATH}(?:/(?:rn(?:/[^/]+)?|app/[^/]+|dock/[^/]+))?/?$`
|
|
14872
|
-
);
|
|
14873
|
-
|
|
14874
|
-
// src/bridge-constants.ts
|
|
14875
|
-
var DEFAULT_SOOTSIM_BRIDGE_PORT = 7668;
|
|
14876
|
-
var DEFAULT_SOOTSIM_BRIDGE_URL = `http://localhost:${DEFAULT_SOOTSIM_BRIDGE_PORT}/`;
|
|
14877
|
-
var HOSTED_SHELL_PATH = new RegExp(`^(?:${PEACH_SIMULATOR_PATH}|/sootsim)(?:/|$)`);
|
|
14878
|
-
var SOOTSIM_BRIDGE_SIM_CLOSE_CODE = 4001;
|
|
14879
|
-
var SOOTSIM_BRIDGE_SIM_CLOSE_REASON = "sootsim close";
|
|
14880
|
-
var AUTOMATION_SIM_IDLE_REAP_TTL_MS = 5 * 6e4;
|
|
14881
|
-
|
|
14882
|
-
// src/bridge-contract.ts
|
|
14883
|
-
var WRITE_COMMAND_TYPES = /* @__PURE__ */ new Set([
|
|
14884
|
-
"tap",
|
|
14885
|
-
"keyboard",
|
|
14886
|
-
"longPress",
|
|
14887
|
-
"perform",
|
|
14888
|
-
"reset",
|
|
14889
|
-
"camera"
|
|
14890
|
-
]);
|
|
14891
|
-
function commandWritesSim(msg) {
|
|
14892
|
-
if (typeof msg.type !== "string") return false;
|
|
14893
|
-
if (msg.acquireLock === true) return true;
|
|
14894
|
-
if (msg.readOnly === true) return false;
|
|
14895
|
-
return WRITE_COMMAND_TYPES.has(msg.type);
|
|
14896
|
-
}
|
|
14897
|
-
|
|
14898
15031
|
// src/cli-version.ts
|
|
15032
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
14899
15033
|
var import_node_fs3 = require("node:fs");
|
|
14900
15034
|
var import_node_url = require("node:url");
|
|
14901
15035
|
init_public_brand();
|
|
@@ -14926,6 +15060,7 @@ function getCliVersion() {
|
|
|
14926
15060
|
}
|
|
14927
15061
|
|
|
14928
15062
|
// src/desktop-host-delivery.ts
|
|
15063
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
14929
15064
|
var import_node_child_process3 = require("node:child_process");
|
|
14930
15065
|
var import_node_fs7 = __toESM(require("node:fs"), 1);
|
|
14931
15066
|
var import_node_path6 = __toESM(require("node:path"), 1);
|
|
@@ -14968,6 +15103,7 @@ function activeDesktopHostApp() {
|
|
|
14968
15103
|
}
|
|
14969
15104
|
|
|
14970
15105
|
// src/expo-swift-host.ts
|
|
15106
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
14971
15107
|
var import_node_child_process14 = require("node:child_process");
|
|
14972
15108
|
var import_node_crypto16 = require("node:crypto");
|
|
14973
15109
|
var import_node_fs27 = __toESM(require("node:fs"), 1);
|
|
@@ -14979,10 +15115,12 @@ init_internal_child();
|
|
|
14979
15115
|
init_backend_origin();
|
|
14980
15116
|
|
|
14981
15117
|
// src/react-native-bridge-modules.ts
|
|
15118
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
14982
15119
|
var import_node_fs16 = __toESM(require("node:fs"), 1);
|
|
14983
15120
|
var import_node_path17 = __toESM(require("node:path"), 1);
|
|
14984
15121
|
|
|
14985
15122
|
// src/swift-compile.ts
|
|
15123
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
14986
15124
|
var import_node_child_process9 = require("node:child_process");
|
|
14987
15125
|
var import_node_crypto9 = require("node:crypto");
|
|
14988
15126
|
var import_node_fs14 = require("node:fs");
|
|
@@ -14991,6 +15129,7 @@ var import_node_path14 = __toESM(require("node:path"), 1);
|
|
|
14991
15129
|
init_browser();
|
|
14992
15130
|
|
|
14993
15131
|
// src/admitted-mac-build.ts
|
|
15132
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
14994
15133
|
var import_node_child_process4 = require("node:child_process");
|
|
14995
15134
|
function windowAdmission() {
|
|
14996
15135
|
const result = (0, import_node_child_process4.spawnSync)("tm", ["window", "ancestor", "--json"], {
|
|
@@ -15021,7 +15160,11 @@ init_home_paths();
|
|
|
15021
15160
|
init_is_record();
|
|
15022
15161
|
init_process_group();
|
|
15023
15162
|
|
|
15163
|
+
// src/swift-compiler-digest.ts
|
|
15164
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
15165
|
+
|
|
15024
15166
|
// src/swift-objc-sdk-tree.ts
|
|
15167
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
15025
15168
|
var import_node_fs8 = require("node:fs");
|
|
15026
15169
|
var import_node_path7 = __toESM(require("node:path"), 1);
|
|
15027
15170
|
function readIosSdkTree(root) {
|
|
@@ -15035,6 +15178,7 @@ function readIosSdkTree(root) {
|
|
|
15035
15178
|
}
|
|
15036
15179
|
|
|
15037
15180
|
// src/swift-design-time.ts
|
|
15181
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
15038
15182
|
var IDENT = /[A-Za-z_À-$0-9]/;
|
|
15039
15183
|
function tokenize(source) {
|
|
15040
15184
|
const tokens = [];
|
|
@@ -15455,6 +15599,7 @@ function designTimeDiagnostic(output, files2) {
|
|
|
15455
15599
|
}
|
|
15456
15600
|
|
|
15457
15601
|
// src/swift-distribution-contract.ts
|
|
15602
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
15458
15603
|
init_is_record();
|
|
15459
15604
|
var SWIFT_DISTRIBUTION_MANIFEST = "distribution.json";
|
|
15460
15605
|
var SWIFT_DISTRIBUTION_HOSTS = [
|
|
@@ -15528,6 +15673,7 @@ function swiftDistributionKey(id, host2) {
|
|
|
15528
15673
|
}
|
|
15529
15674
|
|
|
15530
15675
|
// src/swift-icu.ts
|
|
15676
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
15531
15677
|
var import_node_child_process6 = require("node:child_process");
|
|
15532
15678
|
var import_node_crypto4 = require("node:crypto");
|
|
15533
15679
|
var import_node_fs10 = require("node:fs");
|
|
@@ -15536,6 +15682,7 @@ var import_node_util = require("node:util");
|
|
|
15536
15682
|
var import_node_zlib = require("node:zlib");
|
|
15537
15683
|
|
|
15538
15684
|
// src/swift-toolchain.ts
|
|
15685
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
15539
15686
|
var import_node_child_process5 = require("node:child_process");
|
|
15540
15687
|
var import_node_crypto3 = require("node:crypto");
|
|
15541
15688
|
var import_node_fs9 = __toESM(require("node:fs"), 1);
|
|
@@ -15553,7 +15700,17 @@ function sourceSwiftCheckout() {
|
|
|
15553
15700
|
}
|
|
15554
15701
|
function swiftSdkOptions() {
|
|
15555
15702
|
const directory = process.env.PEACH_SWIFT_SDKS_PATH;
|
|
15556
|
-
|
|
15703
|
+
if (directory) return ["--swift-sdks-path", import_node_path8.default.resolve(directory)];
|
|
15704
|
+
if (scratch && process.platform === "linux") {
|
|
15705
|
+
const config = process.env.XDG_CONFIG_HOME;
|
|
15706
|
+
if (config !== void 0 && !import_node_path8.default.isAbsolute(config))
|
|
15707
|
+
throw new Error("XDG_CONFIG_HOME must be an absolute path");
|
|
15708
|
+
return [
|
|
15709
|
+
"--swift-sdks-path",
|
|
15710
|
+
config === void 0 ? import_node_path8.default.join(import_node_os4.default.userInfo().homedir, ".swiftpm", "swift-sdks") : import_node_path8.default.join(config, "swiftpm", "swift-sdks")
|
|
15711
|
+
];
|
|
15712
|
+
}
|
|
15713
|
+
return [];
|
|
15557
15714
|
}
|
|
15558
15715
|
var SWIFT_HOST_COMPILER_RELEASE = "swift-6.4.0-RELEASE-custom-0d775d32d7c74eae";
|
|
15559
15716
|
var SWIFT_HOST_COMPILER_ID = "0d775d32d7c74eae";
|
|
@@ -15612,7 +15769,6 @@ function peachHome() {
|
|
|
15612
15769
|
return override ? import_node_path8.default.resolve(override) : import_node_path8.default.join(import_node_os4.default.homedir(), ".peach");
|
|
15613
15770
|
}
|
|
15614
15771
|
var scratch;
|
|
15615
|
-
var swiftHome;
|
|
15616
15772
|
function confineSwiftScratch(root) {
|
|
15617
15773
|
if (scratch) return;
|
|
15618
15774
|
import_node_fs9.default.mkdirSync(root, { recursive: true });
|
|
@@ -15623,48 +15779,13 @@ function confineSwiftScratch(root) {
|
|
|
15623
15779
|
}
|
|
15624
15780
|
const dir = import_node_path8.default.join(root, String(process.pid));
|
|
15625
15781
|
import_node_fs9.default.mkdirSync(dir, { recursive: true });
|
|
15626
|
-
|
|
15627
|
-
|
|
15628
|
-
|
|
15629
|
-
import_node_fs9.default.mkdirSync(swiftHome, { recursive: true });
|
|
15630
|
-
}
|
|
15631
|
-
const seeded = import_node_path8.default.join(import_node_os4.default.homedir(), ".swiftpm");
|
|
15632
|
-
const dirAbsentBefore = lstatIfKnown(seeded) === null;
|
|
15633
|
-
const absentBefore = swiftpmSeeds.filter(
|
|
15634
|
-
(name3) => lstatIfKnown(import_node_path8.default.join(seeded, name3)) === null
|
|
15635
|
-
);
|
|
15782
|
+
const home = import_node_path8.default.join(root, "home");
|
|
15783
|
+
import_node_fs9.default.mkdirSync(home, { recursive: true });
|
|
15784
|
+
scratch = { directory: dir, home };
|
|
15636
15785
|
process.once("exit", () => {
|
|
15637
15786
|
import_node_fs9.default.rmSync(dir, { recursive: true, force: true });
|
|
15638
|
-
for (const name3 of absentBefore) removeSwiftpmSeed(import_node_path8.default.join(seeded, name3), name3);
|
|
15639
|
-
if (dirAbsentBefore && lstatIfKnown(seeded)?.isDirectory())
|
|
15640
|
-
try {
|
|
15641
|
-
import_node_fs9.default.rmdirSync(seeded);
|
|
15642
|
-
} catch {
|
|
15643
|
-
}
|
|
15644
15787
|
});
|
|
15645
15788
|
}
|
|
15646
|
-
var swiftpmSeeds = ["cache", "configuration", "security"];
|
|
15647
|
-
function lstatIfKnown(entry) {
|
|
15648
|
-
try {
|
|
15649
|
-
return import_node_fs9.default.lstatSync(entry);
|
|
15650
|
-
} catch (error) {
|
|
15651
|
-
if (error instanceof Error && "code" in error && error.code === "ENOENT") return null;
|
|
15652
|
-
return void 0;
|
|
15653
|
-
}
|
|
15654
|
-
}
|
|
15655
|
-
function removeSwiftpmSeed(entry, name3) {
|
|
15656
|
-
const stat2 = lstatIfKnown(entry);
|
|
15657
|
-
if (!stat2) return;
|
|
15658
|
-
try {
|
|
15659
|
-
if (name3 === "cache") {
|
|
15660
|
-
if (stat2.isSymbolicLink() && import_node_fs9.default.readlinkSync(entry).endsWith("/.cache/org.swift.swiftpm"))
|
|
15661
|
-
import_node_fs9.default.unlinkSync(entry);
|
|
15662
|
-
} else if (stat2.isDirectory()) {
|
|
15663
|
-
import_node_fs9.default.rmdirSync(entry);
|
|
15664
|
-
}
|
|
15665
|
-
} catch {
|
|
15666
|
-
}
|
|
15667
|
-
}
|
|
15668
15789
|
function processRuns(pid) {
|
|
15669
15790
|
try {
|
|
15670
15791
|
process.kill(pid, 0);
|
|
@@ -15675,7 +15796,14 @@ function processRuns(pid) {
|
|
|
15675
15796
|
}
|
|
15676
15797
|
function swiftEnvironment(base = process.env) {
|
|
15677
15798
|
if (!scratch) return base;
|
|
15678
|
-
return
|
|
15799
|
+
return {
|
|
15800
|
+
...base,
|
|
15801
|
+
TMPDIR: scratch.directory,
|
|
15802
|
+
XDG_CONFIG_HOME: import_node_path8.default.join(scratch.home, ".config"),
|
|
15803
|
+
XDG_CACHE_HOME: import_node_path8.default.join(scratch.home, ".cache"),
|
|
15804
|
+
XDG_DATA_HOME: import_node_path8.default.join(scratch.home, ".local", "share"),
|
|
15805
|
+
...process.platform === "linux" ? { HOME: scratch.home } : {}
|
|
15806
|
+
};
|
|
15679
15807
|
}
|
|
15680
15808
|
function swiftSourceSdk(root) {
|
|
15681
15809
|
const pin = JSON.parse(
|
|
@@ -15796,7 +15924,7 @@ function verifySwiftSdk(swift, sdk) {
|
|
|
15796
15924
|
function installSwiftSdkArchive(swift, sdk, archive) {
|
|
15797
15925
|
validateSwiftSdkIdentity(sdk);
|
|
15798
15926
|
const staging = import_node_fs9.default.realpathSync(
|
|
15799
|
-
import_node_fs9.default.mkdtempSync(import_node_path8.default.join(scratch ?? import_node_os4.default.tmpdir(), "peach-sdk-verification-"))
|
|
15927
|
+
import_node_fs9.default.mkdtempSync(import_node_path8.default.join(scratch?.directory ?? import_node_os4.default.tmpdir(), "peach-sdk-verification-"))
|
|
15800
15928
|
);
|
|
15801
15929
|
try {
|
|
15802
15930
|
if (swiftFileChecksum(archive) !== sdk.wasmSdkChecksum)
|
|
@@ -15872,7 +16000,7 @@ function installSwiftWasmSdk(release, sdk) {
|
|
|
15872
16000
|
} catch {
|
|
15873
16001
|
}
|
|
15874
16002
|
const swift = import_node_path8.default.join(swiftCompiler(release), "swift");
|
|
15875
|
-
const staging = import_node_fs9.default.mkdtempSync(import_node_path8.default.join(scratch ?? import_node_os4.default.tmpdir(), "builder-swift-sdk-"));
|
|
16003
|
+
const staging = import_node_fs9.default.mkdtempSync(import_node_path8.default.join(scratch?.directory ?? import_node_os4.default.tmpdir(), "builder-swift-sdk-"));
|
|
15876
16004
|
const archive = import_node_path8.default.join(staging, "sdk.artifactbundle.tar.gz");
|
|
15877
16005
|
try {
|
|
15878
16006
|
if (sdk.wasmSdkUrl.startsWith("file:"))
|
|
@@ -16108,6 +16236,7 @@ function icuSegment(object2) {
|
|
|
16108
16236
|
}
|
|
16109
16237
|
|
|
16110
16238
|
// src/swift-objc-export.ts
|
|
16239
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
16111
16240
|
var import_node_crypto5 = require("node:crypto");
|
|
16112
16241
|
function swiftObjCExports(args) {
|
|
16113
16242
|
const classes = [];
|
|
@@ -16548,6 +16677,7 @@ _objcRegisterPeerClass(${owner.name}.self, nativeName: "${owner.native}")
|
|
|
16548
16677
|
}
|
|
16549
16678
|
|
|
16550
16679
|
// src/swift-objc-import.ts
|
|
16680
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
16551
16681
|
var import_node_crypto6 = require("node:crypto");
|
|
16552
16682
|
var SwiftObjCImportError = class extends Error {
|
|
16553
16683
|
};
|
|
@@ -16684,6 +16814,7 @@ function swiftObjCImports(graphs, options) {
|
|
|
16684
16814
|
const categories = /* @__PURE__ */ new Map();
|
|
16685
16815
|
const functions = /* @__PURE__ */ new Map();
|
|
16686
16816
|
const typedefs = /* @__PURE__ */ new Map();
|
|
16817
|
+
const wrappedTypedefs = /* @__PURE__ */ new Map();
|
|
16687
16818
|
const visit3 = (node) => {
|
|
16688
16819
|
if (!record(node)) return;
|
|
16689
16820
|
if (node.kind === "ObjCInterfaceDecl" && typeof node.name === "string" && selected.has(node.name)) {
|
|
@@ -16705,6 +16836,9 @@ function swiftObjCImports(graphs, options) {
|
|
|
16705
16836
|
if (node.kind === "TypedefDecl" && typeof node.name === "string" && record(node.type)) {
|
|
16706
16837
|
const canonical2 = node.type.desugaredQualType ?? node.type.qualType;
|
|
16707
16838
|
if (typeof canonical2 === "string") typedefs.set(node.name, canonical2);
|
|
16839
|
+
if (nodes(node.inner).some((attribute) => attribute.kind === "SwiftNewTypeAttr")) {
|
|
16840
|
+
wrappedTypedefs.set(node.name, [...wrappedTypedefs.get(node.name) ?? [], node]);
|
|
16841
|
+
}
|
|
16708
16842
|
}
|
|
16709
16843
|
for (const child of nodes(node.inner)) visit3(child);
|
|
16710
16844
|
};
|
|
@@ -16712,14 +16846,29 @@ function swiftObjCImports(graphs, options) {
|
|
|
16712
16846
|
fail("declarations", "expected a complete Clang translation unit AST");
|
|
16713
16847
|
visit3(options.clangAST);
|
|
16714
16848
|
const symbols = /* @__PURE__ */ new Map();
|
|
16849
|
+
const seenSymbols = /* @__PURE__ */ new Set();
|
|
16715
16850
|
for (const graph of graphs) {
|
|
16716
16851
|
if (graph.module.name !== options.module)
|
|
16717
16852
|
fail("declarations", `symbol graph belongs to ${graph.module.name}`);
|
|
16718
16853
|
for (const symbol of graph.symbols) {
|
|
16719
|
-
|
|
16720
|
-
|
|
16721
|
-
|
|
16722
|
-
|
|
16854
|
+
if (symbol.availability?.some(
|
|
16855
|
+
(entry) => entry.isUnconditionallyUnavailable && (!entry.domain || entry.domain === "Swift" || entry.domain === "iOS")
|
|
16856
|
+
))
|
|
16857
|
+
continue;
|
|
16858
|
+
const key2 = JSON.stringify([
|
|
16859
|
+
symbol.identifier.precise,
|
|
16860
|
+
symbol.kind.identifier,
|
|
16861
|
+
symbol.pathComponents,
|
|
16862
|
+
symbol.declarationFragments,
|
|
16863
|
+
symbol.functionSignature,
|
|
16864
|
+
symbol.accessLevel,
|
|
16865
|
+
symbol.availability
|
|
16866
|
+
]);
|
|
16867
|
+
if (seenSymbols.has(key2)) continue;
|
|
16868
|
+
seenSymbols.add(key2);
|
|
16869
|
+
const overloads = symbols.get(symbol.identifier.precise) ?? [];
|
|
16870
|
+
overloads.push(symbol);
|
|
16871
|
+
symbols.set(symbol.identifier.precise, overloads);
|
|
16723
16872
|
}
|
|
16724
16873
|
}
|
|
16725
16874
|
const classes = [];
|
|
@@ -16734,7 +16883,10 @@ function swiftObjCImports(graphs, options) {
|
|
|
16734
16883
|
types.set(name3, nativeName);
|
|
16735
16884
|
}
|
|
16736
16885
|
for (const nativeName of [...selected].sort()) {
|
|
16737
|
-
const
|
|
16886
|
+
const candidates = symbols.get(`c:objc(cs)${nativeName}`);
|
|
16887
|
+
if (candidates && candidates.length !== 1)
|
|
16888
|
+
fail(nativeName, "ambiguous imported class declaration");
|
|
16889
|
+
const symbol = candidates?.[0];
|
|
16738
16890
|
const name3 = symbol?.pathComponents[0];
|
|
16739
16891
|
if (!symbol || symbol.kind.identifier !== "swift.class" || !name3 || !identifier(name3))
|
|
16740
16892
|
fail(nativeName, "missing Swift-imported class declaration");
|
|
@@ -16749,6 +16901,70 @@ function swiftObjCImports(graphs, options) {
|
|
|
16749
16901
|
types.set(name3, nativeName);
|
|
16750
16902
|
classes.push({ name: name3, nativeName });
|
|
16751
16903
|
}
|
|
16904
|
+
const wrapperMembers = /* @__PURE__ */ new Map();
|
|
16905
|
+
const wrapperConformances = /* @__PURE__ */ new Map();
|
|
16906
|
+
for (const graph of graphs)
|
|
16907
|
+
for (const edge of graph.relationships)
|
|
16908
|
+
if (edge.kind === "conformsTo" && edge.source.includes("@T@")) {
|
|
16909
|
+
const protocols = wrapperConformances.get(edge.source) ?? /* @__PURE__ */ new Set();
|
|
16910
|
+
protocols.add(edge.target);
|
|
16911
|
+
wrapperConformances.set(edge.source, protocols);
|
|
16912
|
+
}
|
|
16913
|
+
for (const candidates of symbols.values())
|
|
16914
|
+
for (const member of candidates)
|
|
16915
|
+
if (member.pathComponents.length === 2 && ["init(rawValue:)", "init(_:)"].includes(member.pathComponents[1])) {
|
|
16916
|
+
const owner = member.pathComponents[0];
|
|
16917
|
+
wrapperMembers.set(owner, [...wrapperMembers.get(owner) ?? [], member]);
|
|
16918
|
+
}
|
|
16919
|
+
const stringWrappers = /* @__PURE__ */ new Map();
|
|
16920
|
+
const wrapperSymbols = [...symbols].filter(
|
|
16921
|
+
([usr, candidates]) => usr.includes("@T@") && candidates[0]?.kind.identifier === "swift.struct"
|
|
16922
|
+
).sort(([left], [right]) => left.localeCompare(right));
|
|
16923
|
+
for (const [usr, candidates] of wrapperSymbols) {
|
|
16924
|
+
const nativeName = /^c:.*@T@([A-Za-z_]\w*)$/.exec(usr)?.[1];
|
|
16925
|
+
if (!nativeName) continue;
|
|
16926
|
+
const originals = wrappedTypedefs.get(nativeName);
|
|
16927
|
+
const declaration = originals?.[0];
|
|
16928
|
+
if (!declaration || !record(declaration.type)) continue;
|
|
16929
|
+
const original = declaration.type.desugaredQualType ?? declaration.type.qualType;
|
|
16930
|
+
if (typeof original !== "string" || original.replace(/\s/g, "") !== "NSString*")
|
|
16931
|
+
continue;
|
|
16932
|
+
const symbol = candidates[0];
|
|
16933
|
+
const name3 = symbol.pathComponents[0];
|
|
16934
|
+
if (candidates.length !== 1 || originals?.length !== 1 || symbol.pathComponents.length !== 1 || !name3 || !identifier(name3) || types.has(name3) || stringWrappers.has(name3) || symbol.accessLevel !== "public" || text2(symbol.declarationFragments ?? []).trim() !== `struct ${name3}` || symbol.availability?.length)
|
|
16935
|
+
fail(usr, "typed string wrapper identity is unqualified");
|
|
16936
|
+
if (!["s:SY", "s:SH", "s:SQ", "s:s8SendableP"].every(
|
|
16937
|
+
(protocol) => wrapperConformances.get(usr)?.has(protocol)
|
|
16938
|
+
))
|
|
16939
|
+
fail(usr, "typed string wrapper conformances are unqualified");
|
|
16940
|
+
const members = wrapperMembers.get(name3) ?? [];
|
|
16941
|
+
const initializers = members.filter(
|
|
16942
|
+
(member) => member.pathComponents[1] === "init(rawValue:)"
|
|
16943
|
+
);
|
|
16944
|
+
if (initializers.length !== 1 || initializers[0].kind.identifier !== "swift.init" || initializers[0].accessLevel !== "public" || text2(initializers[0].declarationFragments ?? []).trim() !== "init(rawValue: String)" || !initializers[0].declarationFragments?.some(
|
|
16945
|
+
(part) => part.kind === "typeIdentifier" && part.preciseIdentifier === "s:SS"
|
|
16946
|
+
))
|
|
16947
|
+
fail(usr, "typed string wrapper raw initializer is unqualified");
|
|
16948
|
+
const unlabelled = members.filter((member) => member.pathComponents[1] === "init(_:)");
|
|
16949
|
+
if (unlabelled.length > 1 || unlabelled.length === 1 && (unlabelled[0].kind.identifier !== "swift.init" || unlabelled[0].accessLevel !== "public" || text2(unlabelled[0].declarationFragments ?? []).trim() !== "init(_ rawValue: String)" || !unlabelled[0].declarationFragments?.some(
|
|
16950
|
+
(part) => part.kind === "typeIdentifier" && part.preciseIdentifier === "s:SS"
|
|
16951
|
+
)))
|
|
16952
|
+
fail(usr, "typed string wrapper unlabeled initializer is unqualified");
|
|
16953
|
+
stringWrappers.set(
|
|
16954
|
+
name3,
|
|
16955
|
+
[
|
|
16956
|
+
`public struct ${swiftName(name3)}: Swift.RawRepresentable, Swift.Hashable, Swift.Equatable, Swift._SwiftNewtypeWrapper, Swift._ObjectiveCBridgeable, Swift.Sendable {`,
|
|
16957
|
+
" public typealias RawValue = Swift.String",
|
|
16958
|
+
" public typealias _ObjectiveCType = Foundation.NSString",
|
|
16959
|
+
" private let _rawValue: Swift.String",
|
|
16960
|
+
" public var rawValue: Swift.String { _rawValue }",
|
|
16961
|
+
" public init(rawValue: Swift.String) { _rawValue = rawValue }",
|
|
16962
|
+
...unlabelled.length ? [" public init(_ rawValue: Swift.String) { _rawValue = rawValue }"] : [],
|
|
16963
|
+
"}",
|
|
16964
|
+
""
|
|
16965
|
+
].join("\n")
|
|
16966
|
+
);
|
|
16967
|
+
}
|
|
16752
16968
|
const type = (parts, where) => {
|
|
16753
16969
|
const written = text2(parts).trim();
|
|
16754
16970
|
const optional = /[?!]$/.test(written);
|
|
@@ -16771,7 +16987,7 @@ function swiftObjCImports(graphs, options) {
|
|
|
16771
16987
|
Double: "double"
|
|
16772
16988
|
};
|
|
16773
16989
|
if (!optional && primitive[written] && !parts.some(
|
|
16774
|
-
(part) => part.preciseIdentifier?.startsWith("c:") || part.preciseIdentifier && symbols.get(part.preciseIdentifier)?.kind.identifier === "swift.class"
|
|
16990
|
+
(part) => part.preciseIdentifier?.startsWith("c:") || part.preciseIdentifier && symbols.get(part.preciseIdentifier)?.[0]?.kind.identifier === "swift.class"
|
|
16775
16991
|
))
|
|
16776
16992
|
return {
|
|
16777
16993
|
swift: `Swift.${written === "()" ? "Void" : written}`,
|
|
@@ -16783,7 +16999,7 @@ function swiftObjCImports(graphs, options) {
|
|
|
16783
16999
|
const identifiers = parts.filter((part) => part.kind === "typeIdentifier");
|
|
16784
17000
|
const id = identifiers.length === 1 ? identifiers[0]?.preciseIdentifier : void 0;
|
|
16785
17001
|
const native = id && nativeClass(id);
|
|
16786
|
-
const swiftClass = id ? symbols.get(id) : void 0;
|
|
17002
|
+
const swiftClass = id ? symbols.get(id)?.[0] : void 0;
|
|
16787
17003
|
const resolved = native ? names.get(native) : swiftClass?.kind.identifier === "swift.class" && swiftClass.pathComponents.length === 1 && swiftClass.pathComponents[0] === spelling && types.has(spelling) ? spelling : void 0;
|
|
16788
17004
|
if (!resolved || identifiers[0]?.spelling !== spelling || spelling !== resolved && spelling !== native)
|
|
16789
17005
|
return fail(
|
|
@@ -16844,7 +17060,8 @@ function swiftObjCImports(graphs, options) {
|
|
|
16844
17060
|
);
|
|
16845
17061
|
};
|
|
16846
17062
|
const membersByClass = /* @__PURE__ */ new Map();
|
|
16847
|
-
|
|
17063
|
+
const importedSymbols = [...symbols.values()].flat();
|
|
17064
|
+
for (const symbol of importedSymbols) {
|
|
16848
17065
|
const owner = /^c:objc\(cs\)([A-Za-z_]\w*)\(/.exec(symbol.identifier.precise)?.[1];
|
|
16849
17066
|
if (owner && selected.has(owner)) {
|
|
16850
17067
|
const members = membersByClass.get(owner);
|
|
@@ -16971,27 +17188,40 @@ function swiftObjCImports(graphs, options) {
|
|
|
16971
17188
|
(n) => nodes(n.inner)
|
|
16972
17189
|
);
|
|
16973
17190
|
for (const member of members) {
|
|
16974
|
-
if (member.kind === "ObjCMethodDecl" && typeof member.name === "string" && (/^init(?:$|[^a-z])/.test(member.name.replace(/^_+/, "")) || nodes(member.inner).some(
|
|
17191
|
+
if (member.kind === "ObjCMethodDecl" && typeof member.name === "string" && member.name !== "init" && (/^init(?:$|[^a-z])/.test(member.name.replace(/^_+/, "")) || nodes(member.inner).some(
|
|
16975
17192
|
(attribute) => attribute.kind === "NSConsumesSelfAttr" || attribute.kind === "ObjCDesignatedInitializerAttr"
|
|
16976
|
-
)))
|
|
17193
|
+
)) && !nodes(member.inner).some((attribute) => attribute.kind === "UnavailableAttr"))
|
|
16977
17194
|
fail(
|
|
16978
17195
|
`${nativeName}.${member.name}`,
|
|
16979
17196
|
"explicit or designated initialization is unqualified"
|
|
16980
17197
|
);
|
|
16981
|
-
|
|
16982
|
-
fail(`${nativeName}.${member.name}`, "variadic methods are unqualified");
|
|
16983
|
-
}
|
|
16984
|
-
const constructor = thunk(
|
|
16985
|
-
`${nativeName}:new`,
|
|
16986
|
-
raw2,
|
|
16987
|
-
[],
|
|
16988
|
-
null,
|
|
16989
|
-
`[[${nativeName} alloc] init]`
|
|
16990
|
-
);
|
|
17198
|
+
}
|
|
16991
17199
|
const body = [
|
|
16992
|
-
`public required init(_objcRetained: Swift.UnsafeMutableRawPointer) { precondition(Self.self == ${swiftName(name3)}.self, "Swift subclass construction is unqualified"); super.init(_objcRetained: _objcRetained) }
|
|
16993
|
-
`public init() { precondition(Self.self == ${swiftName(name3)}.self, "Swift subclass construction is unqualified"); super.init(_objcRetained: ${constructor}()!) }`
|
|
17200
|
+
`public required init(_objcRetained: Swift.UnsafeMutableRawPointer) { precondition(Self.self == ${swiftName(name3)}.self, "Swift subclass construction is unqualified"); super.init(_objcRetained: _objcRetained) }`
|
|
16994
17201
|
];
|
|
17202
|
+
const defaultInitializer = members.find(
|
|
17203
|
+
(member) => member.kind === "ObjCMethodDecl" && member.instance === true && member.name === "init"
|
|
17204
|
+
);
|
|
17205
|
+
const importedInitializer = symbols.get(`c:objc(cs)${nativeName}(im)init`);
|
|
17206
|
+
const initializerSpelling = importedInitializer?.[0] ? text2(importedInitializer[0].declarationFragments ?? []).trim() : "init()";
|
|
17207
|
+
if (!/^init[?!]?\(\)$/.test(initializerSpelling))
|
|
17208
|
+
fail(`${nativeName}.init`, "default initializer signature is unqualified");
|
|
17209
|
+
if (!defaultInitializer || !nodes(defaultInitializer.inner).some(
|
|
17210
|
+
(attribute) => attribute.kind === "UnavailableAttr"
|
|
17211
|
+
)) {
|
|
17212
|
+
if (defaultInitializer && (importedInitializer?.length !== 1 || importedInitializer[0]?.kind.identifier !== "swift.init"))
|
|
17213
|
+
fail(`${nativeName}.init`, "missing Swift-imported default initializer");
|
|
17214
|
+
const constructor = thunk(
|
|
17215
|
+
`${nativeName}:new`,
|
|
17216
|
+
raw2,
|
|
17217
|
+
[],
|
|
17218
|
+
null,
|
|
17219
|
+
`[[${nativeName} alloc] init]`
|
|
17220
|
+
);
|
|
17221
|
+
body.push(
|
|
17222
|
+
`public ${initializerSpelling} { precondition(Self.self == ${swiftName(name3)}.self, "Swift subclass construction is unqualified"); ${/^init[?!]/.test(initializerSpelling) ? `guard let _peer = ${constructor}() else { return nil }; super.init(_objcRetained: _peer)` : `super.init(_objcRetained: ${constructor}()!)`} }`
|
|
17223
|
+
);
|
|
17224
|
+
}
|
|
16995
17225
|
bodies.set(name3, body);
|
|
16996
17226
|
const prefix = `c:objc(cs)${nativeName}`;
|
|
16997
17227
|
for (const symbol of membersByClass.get(nativeName) ?? []) {
|
|
@@ -17009,16 +17239,19 @@ function swiftObjCImports(graphs, options) {
|
|
|
17009
17239
|
(m) => m.kind === (property ? "ObjCPropertyDecl" : "ObjCMethodDecl") && m.name === selector && (property ? m.class !== true === instance : m.instance === instance)
|
|
17010
17240
|
);
|
|
17011
17241
|
if (!decl) fail(usr, "member absent from original Clang interface");
|
|
17242
|
+
if (decl.variadic === true)
|
|
17243
|
+
fail(`${nativeName}.${selector}`, "variadic methods are unqualified");
|
|
17012
17244
|
const parts = symbol.declarationFragments ?? [];
|
|
17013
17245
|
const written = text2(parts);
|
|
17014
17246
|
if (symbol.availability?.length || /@|\b(?:optional|nonisolated|isolated|async|throws|rethrows)\b/.test(written))
|
|
17015
17247
|
fail(usr, "availability and asynchronous or throwing imports are unqualified");
|
|
17016
17248
|
if (nodes(decl.inner).some(
|
|
17017
|
-
(a) => /^(?:Unavailable|SwiftPrivate|SwiftAsync|SwiftError|ObjCRequiresSuper
|
|
17249
|
+
(a) => /^(?:Unavailable|SwiftPrivate|SwiftAsync|SwiftError|ObjCRequiresSuper)Attr$/.test(
|
|
17018
17250
|
String(a.kind)
|
|
17019
|
-
)
|
|
17251
|
+
) || a.kind === "NSConsumesSelfAttr" && selector !== "init"
|
|
17020
17252
|
))
|
|
17021
17253
|
fail(usr, "member attributes require a qualified importer path");
|
|
17254
|
+
if (selector === "init" && symbol.kind.identifier === "swift.init") continue;
|
|
17022
17255
|
const receiver = instance ? "_object" : nativeName;
|
|
17023
17256
|
const access = symbol.accessLevel === "open" ? "open" : "public";
|
|
17024
17257
|
const memberName = parts.find((part) => part.kind === "identifier")?.spelling;
|
|
@@ -17097,7 +17330,7 @@ function swiftObjCImports(graphs, options) {
|
|
|
17097
17330
|
}
|
|
17098
17331
|
}
|
|
17099
17332
|
const importedFunctions = [];
|
|
17100
|
-
for (const symbol of
|
|
17333
|
+
for (const symbol of importedSymbols) {
|
|
17101
17334
|
if (symbol.kind.identifier !== "swift.func") continue;
|
|
17102
17335
|
const usr = symbol.identifier.precise;
|
|
17103
17336
|
const native = /^c:@F@([A-Za-z_]\w*)$/.exec(usr)?.[1];
|
|
@@ -17138,7 +17371,7 @@ function swiftObjCImports(graphs, options) {
|
|
|
17138
17371
|
`public func ${swiftName(name3)}(${argumentsSwift}) -> ${result.swift} { ${result.c === "void" ? "" : "return "}${local}(${parameters.map((p) => swiftName(p.name)).join(", ")}) }`
|
|
17139
17372
|
);
|
|
17140
17373
|
}
|
|
17141
|
-
if (!classes.length && !importedFunctions.length)
|
|
17374
|
+
if (!classes.length && !importedFunctions.length && !stringWrappers.size)
|
|
17142
17375
|
fail("declarations", "no represented original Objective-C classes or C functions");
|
|
17143
17376
|
const registerFunction = `_peachRegisterObjCImports_${hash(options.module)}`;
|
|
17144
17377
|
const registration = [
|
|
@@ -17151,12 +17384,14 @@ function swiftObjCImports(graphs, options) {
|
|
|
17151
17384
|
""
|
|
17152
17385
|
].join("\n");
|
|
17153
17386
|
const swift = [
|
|
17154
|
-
...classes.length ? ["import Foundation"
|
|
17387
|
+
...classes.length || stringWrappers.size ? ["import Foundation"] : [],
|
|
17388
|
+
...classes.length ? ["import PeachObjC"] : [],
|
|
17155
17389
|
"",
|
|
17156
17390
|
...external,
|
|
17157
17391
|
"",
|
|
17158
17392
|
...importedFunctions,
|
|
17159
17393
|
"",
|
|
17394
|
+
...stringWrappers.values(),
|
|
17160
17395
|
...classes.flatMap((c) => [
|
|
17161
17396
|
`open class ${swiftName(c.name)}: PeachObjC._ObjCForeignObject {`,
|
|
17162
17397
|
...bodies.get(c.name).map((line) => ` ${line}`),
|
|
@@ -17174,7 +17409,11 @@ function swiftObjCImports(graphs, options) {
|
|
|
17174
17409
|
};
|
|
17175
17410
|
}
|
|
17176
17411
|
|
|
17412
|
+
// src/swift-objc-metadata.ts
|
|
17413
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
17414
|
+
|
|
17177
17415
|
// src/swift-objc-sdk.ts
|
|
17416
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
17178
17417
|
var import_node_path10 = __toESM(require("node:path"), 1);
|
|
17179
17418
|
var IOS_SDK_TARGET = "arm64-apple-ios16.0-simulator";
|
|
17180
17419
|
var OVERLAY_PATH = /^usr\/lib\/swift\/([^/]+)\.swiftmodule\/arm64-apple-ios-simulator\.swiftinterface$/;
|
|
@@ -17196,12 +17435,15 @@ for (const [file, text5] of tree) {
|
|
|
17196
17435
|
}
|
|
17197
17436
|
|
|
17198
17437
|
// src/swift-objc-standin.ts
|
|
17438
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
17199
17439
|
var import_node_child_process7 = require("node:child_process");
|
|
17200
17440
|
var import_node_crypto7 = require("node:crypto");
|
|
17201
17441
|
var import_node_fs11 = __toESM(require("node:fs"), 1);
|
|
17202
17442
|
var import_node_path11 = __toESM(require("node:path"), 1);
|
|
17203
|
-
var OBJC_IMPORT_VERSION = "
|
|
17443
|
+
var OBJC_IMPORT_VERSION = "4";
|
|
17204
17444
|
var NATIVE_GRAPH_SDK_VERSION = "27.1";
|
|
17445
|
+
var WASI_EMULATION = ["_WASI_EMULATED_SIGNAL", "_WASI_EMULATED_MMAN"];
|
|
17446
|
+
var WASI_EMULATION_FLAGS = WASI_EMULATION.map((name3) => `-D${name3}`);
|
|
17205
17447
|
var NATIVE_GRAPH_INPUTS = {
|
|
17206
17448
|
sdk: NATIVE_GRAPH_SDK_VERSION,
|
|
17207
17449
|
settings: "e68503e5e534e9194af5efe8c636ca8b824e2d8237c5f38ec84aa4d155bc8418",
|
|
@@ -17480,7 +17722,9 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original) {
|
|
|
17480
17722
|
"-module-cache-path",
|
|
17481
17723
|
import_node_path11.default.join(cacheDir5, "ios-module-cache"),
|
|
17482
17724
|
"-minimum-access-level",
|
|
17483
|
-
|
|
17725
|
+
// symbol graphs hide public underscored names at the public threshold.
|
|
17726
|
+
// original clang headers remain the declaration boundary.
|
|
17727
|
+
original ? "internal" : "public",
|
|
17484
17728
|
"-skip-synthesized-members",
|
|
17485
17729
|
"-omit-extension-block-symbols",
|
|
17486
17730
|
"-output-dir",
|
|
@@ -17869,6 +18113,7 @@ function validateObjcPeerStartupLibraries(libraries) {
|
|
|
17869
18113
|
}
|
|
17870
18114
|
|
|
17871
18115
|
// src/swift-package.ts
|
|
18116
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
17872
18117
|
function swiftImplicitResourcePaths(paths) {
|
|
17873
18118
|
return paths.filter(
|
|
17874
18119
|
(file) => !file.endsWith(".swift") && (/\.(xcassets|xcstrings|nib|xib|storyboard|xcdatamodeld|xcdatamodel|xcmappingmodel|metal|xcprivacy)(?:\/|$)/.test(
|
|
@@ -17985,6 +18230,51 @@ function swiftTargetModuleName(name3) {
|
|
|
17985
18230
|
function swiftPackageIdentity(url) {
|
|
17986
18231
|
return (url.split("/").pop() ?? url).replace(/\.git$/, "").toLowerCase();
|
|
17987
18232
|
}
|
|
18233
|
+
function clangMacroSetting(macro) {
|
|
18234
|
+
const [name3, ...value] = macro.split("=");
|
|
18235
|
+
return value.length === 0 ? `.define(${JSON.stringify(name3)})` : `.define(${JSON.stringify(name3)}, to: ${JSON.stringify(value.join("="))})`;
|
|
18236
|
+
}
|
|
18237
|
+
var swiftEscapes = {
|
|
18238
|
+
"\\": "\\",
|
|
18239
|
+
'"': '"',
|
|
18240
|
+
"'": "'",
|
|
18241
|
+
n: "\n",
|
|
18242
|
+
r: "\r",
|
|
18243
|
+
t: " "
|
|
18244
|
+
};
|
|
18245
|
+
function settingDefines(call, tool) {
|
|
18246
|
+
const defines = [];
|
|
18247
|
+
for (const open of call.matchAll(new RegExp(`\\b${tool}Settings\\s*:\\s*\\[`, "g"))) {
|
|
18248
|
+
let depth = 1;
|
|
18249
|
+
let index = open.index + open[0].length;
|
|
18250
|
+
const start = index;
|
|
18251
|
+
for (; index < call.length && depth > 0; index++) {
|
|
18252
|
+
const char = call[index];
|
|
18253
|
+
if (char === '"') {
|
|
18254
|
+
for (index++; index < call.length && call[index] !== '"'; index++)
|
|
18255
|
+
if (call[index] === "\\") index++;
|
|
18256
|
+
} else if (char === "[") depth++;
|
|
18257
|
+
else if (char === "]") depth--;
|
|
18258
|
+
}
|
|
18259
|
+
const body = call.slice(start, index - 1);
|
|
18260
|
+
for (const match of body.matchAll(
|
|
18261
|
+
/\.define\(\s*"([A-Za-z_][A-Za-z0-9_]*)"\s*(?:,\s*to:\s*"((?:[^"\\]|\\.)*)"\s*)?\)/g
|
|
18262
|
+
)) {
|
|
18263
|
+
const name3 = match[1];
|
|
18264
|
+
defines.push(
|
|
18265
|
+
match[2] === void 0 ? name3 : `${name3}=${match[2].replace(/\\(.)/g, (_, escape) => {
|
|
18266
|
+
const value = swiftEscapes[escape];
|
|
18267
|
+
if (value === void 0)
|
|
18268
|
+
throw new Error(
|
|
18269
|
+
`Unsupported escape \\${escape} in the value of macro ${name3}`
|
|
18270
|
+
);
|
|
18271
|
+
return value;
|
|
18272
|
+
})}`
|
|
18273
|
+
);
|
|
18274
|
+
}
|
|
18275
|
+
}
|
|
18276
|
+
return defines;
|
|
18277
|
+
}
|
|
17988
18278
|
function swiftManifestTargets(manifest, resourcePaths = []) {
|
|
17989
18279
|
const implicitResources = swiftImplicitResourcePaths(resourcePaths);
|
|
17990
18280
|
const targets = [];
|
|
@@ -18012,9 +18302,9 @@ function swiftManifestTargets(manifest, resourcePaths = []) {
|
|
|
18012
18302
|
const cxxInterop = /\.interoperabilityMode\(\s*\.Cxx\s*\)/.test(
|
|
18013
18303
|
call.replace(/"(?:\\.|[^"\\])*"/g, "")
|
|
18014
18304
|
);
|
|
18015
|
-
const defines = [
|
|
18016
|
-
|
|
18017
|
-
|
|
18305
|
+
const defines = settingDefines(call, "swift").map((define) => define.split("=")[0]);
|
|
18306
|
+
const cDefines = settingDefines(call, "c");
|
|
18307
|
+
const cxxDefines = settingDefines(call, "cxx");
|
|
18018
18308
|
const linkedLibraries = [...call.matchAll(/\.linkedLibrary\(\s*"([^"]+)"\s*\)/g)].map(
|
|
18019
18309
|
(match) => match[1]
|
|
18020
18310
|
);
|
|
@@ -18057,6 +18347,8 @@ function swiftManifestTargets(manifest, resourcePaths = []) {
|
|
|
18057
18347
|
mainActorIsolation,
|
|
18058
18348
|
...cxxInterop ? { cxxInterop: true } : {},
|
|
18059
18349
|
...defines.length === 0 ? {} : { defines },
|
|
18350
|
+
...cDefines.length === 0 ? {} : { cDefines },
|
|
18351
|
+
...cxxDefines.length === 0 ? {} : { cxxDefines },
|
|
18060
18352
|
...linkedLibraries.length === 0 ? {} : { linkedLibraries },
|
|
18061
18353
|
resources,
|
|
18062
18354
|
...dependencies.length === 0 ? {} : { dependencies },
|
|
@@ -18194,6 +18486,7 @@ function swiftPackagePartition(manifest, resourcePaths = []) {
|
|
|
18194
18486
|
}
|
|
18195
18487
|
|
|
18196
18488
|
// src/swift-root-lock.ts
|
|
18489
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
18197
18490
|
var import_node_child_process8 = require("node:child_process");
|
|
18198
18491
|
var import_node_crypto8 = require("node:crypto");
|
|
18199
18492
|
var import_node_fs12 = require("node:fs");
|
|
@@ -18386,6 +18679,12 @@ async function withSwiftRootLock(root, work, signal) {
|
|
|
18386
18679
|
}
|
|
18387
18680
|
}
|
|
18388
18681
|
|
|
18682
|
+
// src/swiftContract.ts
|
|
18683
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
18684
|
+
|
|
18685
|
+
// src/assetCatalogContract.ts
|
|
18686
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
18687
|
+
|
|
18389
18688
|
// src/swiftContract.ts
|
|
18390
18689
|
function isSwiftObjCPeerStartup(value) {
|
|
18391
18690
|
return value !== null && typeof value === "object" && "registration" in value && isSwiftResourcePath(value.registration) && value.registration.endsWith(".swift") && Object.keys(value).length === 1;
|
|
@@ -18447,6 +18746,7 @@ function isSwiftMetalLibrarySources(value) {
|
|
|
18447
18746
|
}
|
|
18448
18747
|
|
|
18449
18748
|
// src/xcode-header-search.ts
|
|
18749
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
18450
18750
|
var import_node_fs13 = __toESM(require("node:fs"), 1);
|
|
18451
18751
|
var import_node_path13 = __toESM(require("node:path"), 1);
|
|
18452
18752
|
function headerMap(entries) {
|
|
@@ -19021,7 +19321,7 @@ var EXECUTABLE_LINK_FLAGS = ` "-Xclang-linker", "-O0",
|
|
|
19021
19321
|
`;
|
|
19022
19322
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
19023
19323
|
var MULTI_MANIFEST_VERSION = 40;
|
|
19024
|
-
var compilerSourceDigest = true ? "
|
|
19324
|
+
var compilerSourceDigest = true ? "9c8bf514e9d972c32ef441bda4effae79610e2c5add1faca769349803321528f" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
19025
19325
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
19026
19326
|
const hash2 = (0, import_node_crypto9.createHash)("sha256");
|
|
19027
19327
|
hash2.update(`swift-compile
|
|
@@ -19138,6 +19438,7 @@ function emitSwiftPackageManifest(args) {
|
|
|
19138
19438
|
const linkedNativeModules = [...args.native?.entries() ?? []].flatMap(
|
|
19139
19439
|
([name3, value]) => value.clang ? [name3] : []
|
|
19140
19440
|
);
|
|
19441
|
+
const macroSettings = (values) => (values ?? []).map((value) => ` ${clangMacroSetting(value)},`).join("");
|
|
19141
19442
|
const stanza = (target) => {
|
|
19142
19443
|
if (target.systemLibrary)
|
|
19143
19444
|
return ` .systemLibrary(name: ${JSON.stringify(target.name)}, path: ${JSON.stringify(target.path)}),`;
|
|
@@ -19214,10 +19515,15 @@ function emitSwiftPackageManifest(args) {
|
|
|
19214
19515
|
.unsafeFlags(["-Xlinker", "--strip-all"], .when(configuration: .release)),
|
|
19215
19516
|
]` : librarySettings.length > 0 ? `,
|
|
19216
19517
|
linkerSettings: [${librarySettings.join(", ")}]` : "";
|
|
19518
|
+
const cDefines = macroSettings(target.cDefines);
|
|
19519
|
+
const cxxDefines = macroSettings(target.cxxDefines);
|
|
19217
19520
|
const nativeSettings = native?.clang ? [
|
|
19218
|
-
`cSettings: [.unsafeFlags(${JSON.stringify([...args.objcExports?.flags ?? args.nativeFlags ?? [], ...native.clang.flags])})]`,
|
|
19219
|
-
`cxxSettings: [${
|
|
19220
|
-
].join(", ") :
|
|
19521
|
+
`cSettings: [${cDefines} .unsafeFlags(${JSON.stringify([...args.objcExports?.flags ?? args.nativeFlags ?? [], ...native.clang.flags])})]`,
|
|
19522
|
+
`cxxSettings: [${cxxDefines} .unsafeFlags(${JSON.stringify(["-fno-cxx-modules", ...args.objcExports?.flags ?? args.nativeFlags ?? [], ...native.clang.cxxFlags])})]`
|
|
19523
|
+
].join(", ") : [
|
|
19524
|
+
`cSettings: [${cDefines} .unsafeFlags(${JSON.stringify([...args.objcExports?.flags ?? args.nativeFlags ?? [], ...native?.flags ?? []])})]`,
|
|
19525
|
+
`cxxSettings: [${cxxDefines} .unsafeFlags(${JSON.stringify(["-fno-cxx-modules", ...args.objcExports?.flags ?? args.nativeFlags ?? [], ...native?.cxxFlags ?? []])})]`
|
|
19526
|
+
].join(", ");
|
|
19221
19527
|
return [
|
|
19222
19528
|
` ${kind}(`,
|
|
19223
19529
|
` name: "${target.name}",`,
|
|
@@ -19227,7 +19533,7 @@ function emitSwiftPackageManifest(args) {
|
|
|
19227
19533
|
...native?.clang ? [
|
|
19228
19534
|
` sources: ${JSON.stringify(native.clang.sources.map((source) => import_node_path14.default.posix.join(native.path, source)))},`,
|
|
19229
19535
|
` publicHeadersPath: ${JSON.stringify(import_node_path14.default.posix.dirname(native.clang.modulemap))},`
|
|
19230
|
-
] : [],
|
|
19536
|
+
] : native?.flags ? [` sources: ${JSON.stringify(native.sources)},`] : [],
|
|
19231
19537
|
// the native backend supplies dependency module maps without their
|
|
19232
19538
|
// compiled modules. textual c++ includes keep those dependencies usable.
|
|
19233
19539
|
` ${clang ? nativeSettings : swiftSettings}${link}`,
|
|
@@ -19253,24 +19559,26 @@ function emitSwiftPackageManifest(args) {
|
|
|
19253
19559
|
' publicHeadersPath: "include",',
|
|
19254
19560
|
` cSettings: [.unsafeFlags(${JSON.stringify([...args.objcExports.flags.filter((flag) => flag !== "-fobjc-arc"), "-fno-objc-arc", "-Xclang", "-disable-objc-default-synthesize-properties"])})]),`
|
|
19255
19561
|
] : [],
|
|
19256
|
-
...[...args.native?.entries() ?? []].flatMap(
|
|
19257
|
-
|
|
19562
|
+
...[...args.native?.entries() ?? []].flatMap(([name3, native]) => {
|
|
19563
|
+
const late = native.late;
|
|
19564
|
+
const owner = targets.find((target) => target.name === name3);
|
|
19565
|
+
return late ? (native.groups ?? [
|
|
19258
19566
|
{
|
|
19259
|
-
name:
|
|
19567
|
+
name: late.name,
|
|
19260
19568
|
sources: native.lateSources,
|
|
19261
19569
|
flags: [],
|
|
19262
19570
|
cxxFlags: []
|
|
19263
19571
|
}
|
|
19264
19572
|
]).flatMap((group) => [
|
|
19265
19573
|
` .target(name: ${JSON.stringify(group.name)},`,
|
|
19266
|
-
` dependencies: ${JSON.stringify(
|
|
19574
|
+
` dependencies: ${JSON.stringify(native.mixed ? [] : [name3, ...late.producers])},`,
|
|
19267
19575
|
` path: ${JSON.stringify(native.clang ? "." : native.path)},`,
|
|
19268
19576
|
` sources: ${JSON.stringify(native.clang ? group.sources.map((source) => import_node_path14.default.posix.join(native.path, source)) : group.sources)},`,
|
|
19269
19577
|
` publicHeadersPath: ${JSON.stringify(native.clang ? import_node_path14.default.posix.dirname(native.clang.modulemap) : "include")},`,
|
|
19270
|
-
` cSettings: [.unsafeFlags(${JSON.stringify([...args.objcExports?.flags ?? args.nativeFlags ?? [], ...group.flags])})],`,
|
|
19271
|
-
` cxxSettings: [.unsafeFlags(${JSON.stringify(["-fno-cxx-modules", "-I", native.includeDirectory, "-I", args.headerDirectory, ...group.cxxFlags])})]),`
|
|
19272
|
-
]) : []
|
|
19273
|
-
),
|
|
19578
|
+
` cSettings: [${macroSettings(owner?.cDefines)} .unsafeFlags(${JSON.stringify([...args.objcExports?.flags ?? args.nativeFlags ?? [], ...group.flags])})],`,
|
|
19579
|
+
` cxxSettings: [${macroSettings(owner?.cxxDefines)} .unsafeFlags(${JSON.stringify(["-fno-cxx-modules", ...args.objcExports?.flags ?? args.nativeFlags ?? [], "-I", native.includeDirectory, "-I", args.headerDirectory, ...group.cxxFlags])})]),`
|
|
19580
|
+
]) : [];
|
|
19581
|
+
}),
|
|
19274
19582
|
args.cxxLanguageStandard ? ` ],
|
|
19275
19583
|
cxxLanguageStandard: .${args.cxxLanguageStandard}` : " ]",
|
|
19276
19584
|
")",
|
|
@@ -23292,7 +23600,7 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
23292
23600
|
else files2.set(file, prior);
|
|
23293
23601
|
}
|
|
23294
23602
|
targetStagedFiles.delete(target.name);
|
|
23295
|
-
if (entries.some(([file]) => /\.(?:c|cc|cpp|cxx|m|mm)$/.test(file)) && (swift || input.nativeTargets?.some((value) => value.name === target.name)
|
|
23603
|
+
if (entries.some(([file]) => /\.(?:c|cc|cpp|cxx|m|mm)$/.test(file)) && (swift || input.nativeTargets?.some((value) => value.name === target.name))) {
|
|
23296
23604
|
if (!swift) {
|
|
23297
23605
|
const unprepared = import_node_path14.default.join(
|
|
23298
23606
|
layout.root,
|
|
@@ -23365,8 +23673,42 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
23365
23673
|
const entries = targetEntries(target);
|
|
23366
23674
|
const units = entries.filter(([file]) => /\.(?:c|cc|cpp|cxx|m|mm)$/.test(file));
|
|
23367
23675
|
if (units.length === 0) continue;
|
|
23676
|
+
const includes = `${prefix}include/`;
|
|
23677
|
+
const consumers = /* @__PURE__ */ new Map();
|
|
23678
|
+
const reverse = /* @__PURE__ */ new Map();
|
|
23679
|
+
for (const [file, contents] of entries) {
|
|
23680
|
+
const producers2 = /* @__PURE__ */ new Set();
|
|
23681
|
+
const source = contents.replace(/\/\*[\s\S]*?\*\//g, "");
|
|
23682
|
+
for (const match of source.matchAll(
|
|
23683
|
+
/^\s*#\s*(?:include|import)\s*[<"]([^>"]+)[>"]/gm
|
|
23684
|
+
)) {
|
|
23685
|
+
const include2 = match[1];
|
|
23686
|
+
const producer = /(?:^|\/)([^/]+)-Swift\.h$/.exec(include2)?.[1];
|
|
23687
|
+
if (producer && targets.some((value) => value.name === producer))
|
|
23688
|
+
producers2.add(producer);
|
|
23689
|
+
const local = [
|
|
23690
|
+
import_node_path14.default.posix.join(import_node_path14.default.posix.dirname(file), include2),
|
|
23691
|
+
`${includes}${include2}`
|
|
23692
|
+
].find((candidate) => input.files[candidate] !== void 0);
|
|
23693
|
+
if (local) {
|
|
23694
|
+
reverse.set(local, [...reverse.get(local) ?? [], file]);
|
|
23695
|
+
}
|
|
23696
|
+
}
|
|
23697
|
+
consumers.set(file, producers2);
|
|
23698
|
+
}
|
|
23699
|
+
const queue = [...consumers.keys()].filter((file) => consumers.get(file).size > 0);
|
|
23700
|
+
for (let index = 0; index < queue.length; index++) {
|
|
23701
|
+
const file = queue[index];
|
|
23702
|
+
for (const parent of reverse.get(file) ?? []) {
|
|
23703
|
+
const inherited = consumers.get(parent);
|
|
23704
|
+
const before = inherited.size;
|
|
23705
|
+
for (const producer of consumers.get(file)) inherited.add(producer);
|
|
23706
|
+
if (before !== inherited.size) queue.push(parent);
|
|
23707
|
+
}
|
|
23708
|
+
}
|
|
23709
|
+
const late = units.filter(([file]) => consumers.get(file).size > 0);
|
|
23368
23710
|
const settings = input.nativeTargets?.find((value) => value.name === target.name);
|
|
23369
|
-
if (entries.some(([file]) => file.endsWith(".swift"))
|
|
23711
|
+
if (settings || entries.some(([file]) => file.endsWith(".swift"))) {
|
|
23370
23712
|
try {
|
|
23371
23713
|
if (!settings)
|
|
23372
23714
|
throw new Error(
|
|
@@ -23434,7 +23776,7 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
23434
23776
|
return relative2.split("/").some((part) => part.startsWith(".")) ? import_node_path14.default.posix.join(HIDDEN_UNITS, relative2.replaceAll(/(^|\/)\./g, "$1%2E")) : relative2;
|
|
23435
23777
|
};
|
|
23436
23778
|
const accessorFlags = accessor ? ["-include", accessorHeader] : [];
|
|
23437
|
-
let nativeC =
|
|
23779
|
+
let nativeC = !roots2.length && !entries.some(([file]) => file.endsWith(".swift")) && !units.some(([file]) => /\.mm?$/.test(file));
|
|
23438
23780
|
if (roots2.length) {
|
|
23439
23781
|
const sourceHeaders = import_node_path14.default.join(
|
|
23440
23782
|
layout.root,
|
|
@@ -23533,7 +23875,13 @@ export *
|
|
|
23533
23875
|
)
|
|
23534
23876
|
];
|
|
23535
23877
|
const cxx = /\.(?:cc|cpp|cxx|mm)$/.test(file);
|
|
23536
|
-
const identity = (0, import_node_crypto9.createHash)("sha256").update(
|
|
23878
|
+
const identity = (0, import_node_crypto9.createHash)("sha256").update(
|
|
23879
|
+
JSON.stringify([
|
|
23880
|
+
cxx,
|
|
23881
|
+
perFile,
|
|
23882
|
+
...nativeC && !roots2.length ? [(consumers.get(file)?.size ?? 0) > 0] : []
|
|
23883
|
+
])
|
|
23884
|
+
).digest("hex").slice(0, 12);
|
|
23537
23885
|
const group = groups.get(identity) ?? {
|
|
23538
23886
|
name: `${target.name}${nativeC ? "Native" : "Swift"}Implementation_${identity}`,
|
|
23539
23887
|
sources: [],
|
|
@@ -23568,6 +23916,31 @@ export *
|
|
|
23568
23916
|
accessor.body
|
|
23569
23917
|
);
|
|
23570
23918
|
}
|
|
23919
|
+
if (nativeC && !roots2.length) {
|
|
23920
|
+
const lateSources = new Set(late.map(([file]) => unitSource(file)));
|
|
23921
|
+
const owner = [...groups.values()].find(
|
|
23922
|
+
(group) => group.sources.every((source) => !lateSources.has(source))
|
|
23923
|
+
);
|
|
23924
|
+
const implementations = [...groups.values()].filter((group) => group !== owner);
|
|
23925
|
+
native.set(target.name, {
|
|
23926
|
+
path: target.path,
|
|
23927
|
+
includeDirectory: include2,
|
|
23928
|
+
sources: owner?.sources ?? [],
|
|
23929
|
+
lateSources: implementations.flatMap((group) => group.sources),
|
|
23930
|
+
flags: owner?.flags ?? flags,
|
|
23931
|
+
cxxFlags: owner?.cxxFlags ?? flags,
|
|
23932
|
+
...implementations.length ? {
|
|
23933
|
+
groups: implementations,
|
|
23934
|
+
late: {
|
|
23935
|
+
name: `${target.name}NativeImplementation`,
|
|
23936
|
+
producers: [
|
|
23937
|
+
...new Set(late.flatMap(([file]) => [...consumers.get(file)]))
|
|
23938
|
+
].sort()
|
|
23939
|
+
}
|
|
23940
|
+
} : {}
|
|
23941
|
+
});
|
|
23942
|
+
continue;
|
|
23943
|
+
}
|
|
23571
23944
|
if (nativeC) {
|
|
23572
23945
|
const modulemaps = Object.entries(settings.productHeaders).filter(
|
|
23573
23946
|
([product2]) => product2.endsWith("/Modules/module.modulemap")
|
|
@@ -23638,40 +24011,6 @@ export *
|
|
|
23638
24011
|
}
|
|
23639
24012
|
continue;
|
|
23640
24013
|
}
|
|
23641
|
-
const includes = `${prefix}include/`;
|
|
23642
|
-
const consumers = /* @__PURE__ */ new Map();
|
|
23643
|
-
const reverse = /* @__PURE__ */ new Map();
|
|
23644
|
-
for (const [file, contents] of entries) {
|
|
23645
|
-
const producers2 = /* @__PURE__ */ new Set();
|
|
23646
|
-
const source = contents.replace(/\/\*[\s\S]*?\*\//g, "");
|
|
23647
|
-
for (const match of source.matchAll(
|
|
23648
|
-
/^\s*#\s*(?:include|import)\s*[<"]([^>"]+)[>"]/gm
|
|
23649
|
-
)) {
|
|
23650
|
-
const include2 = match[1];
|
|
23651
|
-
const producer = /(?:^|\/)([^/]+)-Swift\.h$/.exec(include2)?.[1];
|
|
23652
|
-
if (producer && targets.some((value) => value.name === producer))
|
|
23653
|
-
producers2.add(producer);
|
|
23654
|
-
const local = [
|
|
23655
|
-
import_node_path14.default.posix.join(import_node_path14.default.posix.dirname(file), include2),
|
|
23656
|
-
`${includes}${include2}`
|
|
23657
|
-
].find((candidate) => input.files[candidate] !== void 0);
|
|
23658
|
-
if (local) {
|
|
23659
|
-
reverse.set(local, [...reverse.get(local) ?? [], file]);
|
|
23660
|
-
}
|
|
23661
|
-
}
|
|
23662
|
-
consumers.set(file, producers2);
|
|
23663
|
-
}
|
|
23664
|
-
const queue = [...consumers.keys()].filter((file) => consumers.get(file).size > 0);
|
|
23665
|
-
for (let index = 0; index < queue.length; index++) {
|
|
23666
|
-
const file = queue[index];
|
|
23667
|
-
for (const parent of reverse.get(file) ?? []) {
|
|
23668
|
-
const inherited = consumers.get(parent);
|
|
23669
|
-
const before = inherited.size;
|
|
23670
|
-
for (const producer of consumers.get(file)) inherited.add(producer);
|
|
23671
|
-
if (before !== inherited.size) queue.push(parent);
|
|
23672
|
-
}
|
|
23673
|
-
}
|
|
23674
|
-
const late = units.filter(([file]) => consumers.get(file).size > 0);
|
|
23675
24014
|
native.set(target.name, {
|
|
23676
24015
|
path: target.path,
|
|
23677
24016
|
includeDirectory: import_node_path14.default.join(layout.root, includes),
|
|
@@ -23900,6 +24239,7 @@ ${[
|
|
|
23900
24239
|
"-fobjc-exceptions",
|
|
23901
24240
|
"-fexceptions",
|
|
23902
24241
|
"-fwasm-exceptions",
|
|
24242
|
+
...WASI_EMULATION_FLAGS,
|
|
23903
24243
|
"-fobjc-arc",
|
|
23904
24244
|
"-fblocks",
|
|
23905
24245
|
"-F",
|
|
@@ -24587,6 +24927,7 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
24587
24927
|
}
|
|
24588
24928
|
|
|
24589
24929
|
// src/xcode-project.ts
|
|
24930
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
24590
24931
|
var import_node_child_process10 = require("node:child_process");
|
|
24591
24932
|
var import_node_crypto10 = require("node:crypto");
|
|
24592
24933
|
var import_node_fs15 = __toESM(require("node:fs"), 1);
|
|
@@ -24594,6 +24935,7 @@ var import_node_path16 = __toESM(require("node:path"), 1);
|
|
|
24594
24935
|
var import_plist = __toESM(require("plist"), 1);
|
|
24595
24936
|
|
|
24596
24937
|
// src/xcode-json-project.ts
|
|
24938
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
24597
24939
|
var import_node_path15 = __toESM(require("node:path"), 1);
|
|
24598
24940
|
var import_json5 = __toESM(require_lib(), 1);
|
|
24599
24941
|
var isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -24926,7 +25268,11 @@ function isJsonObject(value) {
|
|
|
24926
25268
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
24927
25269
|
}
|
|
24928
25270
|
|
|
25271
|
+
// src/xcode-target-members.ts
|
|
25272
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
25273
|
+
|
|
24929
25274
|
// src/openstep-plist.ts
|
|
25275
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
24930
25276
|
var isDict = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
24931
25277
|
var str = (value) => typeof value === "string" ? value : void 0;
|
|
24932
25278
|
var list = (value) => Array.isArray(value) ? value.filter((item) => typeof item === "string") : [];
|
|
@@ -25275,10 +25621,10 @@ function loadProject(xcodeproj) {
|
|
|
25275
25621
|
const projectFile = xcodeProjectFile(xcodeproj);
|
|
25276
25622
|
if (!projectFile)
|
|
25277
25623
|
throw new Error(`${xcodeproj} has no project.pbxproj or project.xcproj`);
|
|
25278
|
-
const mtimeMs = import_node_fs15.default.statSync(projectFile).mtimeMs;
|
|
25279
|
-
const cached3 = loaded.get(projectFile);
|
|
25280
|
-
if (cached3?.mtimeMs === mtimeMs) return cached3.project;
|
|
25281
25624
|
const source = import_node_fs15.default.readFileSync(projectFile, "utf8");
|
|
25625
|
+
const digest = (0, import_node_crypto10.createHash)("sha256").update(source).digest("hex");
|
|
25626
|
+
const cached3 = loaded.get(projectFile);
|
|
25627
|
+
if (cached3?.digest === digest) return cached3.project;
|
|
25282
25628
|
const root = projectFile.endsWith(".xcproj") ? readXcodeJsonProject(xcodeproj, source) : parseOpenStepPlist(source);
|
|
25283
25629
|
if (!isDict(root) || !isDict(root.objects)) {
|
|
25284
25630
|
throw new Error(`${projectFile} has no objects table`);
|
|
@@ -25305,7 +25651,7 @@ function loadProject(xcodeproj) {
|
|
|
25305
25651
|
object: object2,
|
|
25306
25652
|
resolvePath
|
|
25307
25653
|
};
|
|
25308
|
-
loaded.set(projectFile, {
|
|
25654
|
+
loaded.set(projectFile, { digest, project: result });
|
|
25309
25655
|
return result;
|
|
25310
25656
|
}
|
|
25311
25657
|
function defaultConfiguration(project) {
|
|
@@ -26600,6 +26946,7 @@ public func ${register}() -> RCTModuleHost.Registration {
|
|
|
26600
26946
|
}
|
|
26601
26947
|
|
|
26602
26948
|
// src/swift-binary-modules.ts
|
|
26949
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
26603
26950
|
var import_node_crypto11 = require("node:crypto");
|
|
26604
26951
|
var import_node_fs17 = __toESM(require("node:fs"), 1);
|
|
26605
26952
|
var import_node_path18 = __toESM(require("node:path"), 1);
|
|
@@ -26682,6 +27029,7 @@ async function swiftBinaryModules(binary2) {
|
|
|
26682
27029
|
}
|
|
26683
27030
|
|
|
26684
27031
|
// src/swift-distribution.ts
|
|
27032
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
26685
27033
|
var import_node_fs18 = __toESM(require("node:fs"), 1);
|
|
26686
27034
|
var import_node_os6 = __toESM(require("node:os"), 1);
|
|
26687
27035
|
var import_node_path19 = __toESM(require("node:path"), 1);
|
|
@@ -26690,12 +27038,12 @@ init_home_paths();
|
|
|
26690
27038
|
|
|
26691
27039
|
// src/swift-distribution.lock.json
|
|
26692
27040
|
var swift_distribution_lock_default = {
|
|
26693
|
-
id: "
|
|
27041
|
+
id: "433f607a19978269",
|
|
26694
27042
|
release: "swift-6.4.0-RELEASE-custom-0d775d32d7c74eae",
|
|
26695
27043
|
wasmSdkId: "swift-6.4.0-RELEASE_wasm-peach-f02bd198",
|
|
26696
27044
|
wasmSdkUrl: "https://r2.sootsim.com/swift-wasm-sdk/swift-6.4.0-RELEASE_wasm-peach-f02bd198.artifactbundle.tar.gz",
|
|
26697
27045
|
wasmSdkChecksum: "1e19ea768fd4e821aae34b8966c4ddcee45615c4b3cf018979b061aee2fb5504",
|
|
26698
|
-
source: "
|
|
27046
|
+
source: "f52d21b43f5cba9bd52f1665697284e46d16c0d9",
|
|
26699
27047
|
targets: [
|
|
26700
27048
|
"ImagePlayground",
|
|
26701
27049
|
"QuickLookThumbnailing",
|
|
@@ -26884,16 +27232,16 @@ var swift_distribution_lock_default = {
|
|
|
26884
27232
|
},
|
|
26885
27233
|
hosts: {
|
|
26886
27234
|
"darwin-arm64": {
|
|
26887
|
-
sha256: "
|
|
26888
|
-
size:
|
|
27235
|
+
sha256: "0b814aa2ced56e4452c82227c4251036346015ba6445e742070ee221c53fc575",
|
|
27236
|
+
size: 71080069
|
|
26889
27237
|
},
|
|
26890
27238
|
"linux-x64": {
|
|
26891
|
-
sha256: "
|
|
26892
|
-
size:
|
|
27239
|
+
sha256: "62e67740951c7972fde15bc074fe8838f308432a8521e93691035e7fc105b716",
|
|
27240
|
+
size: 71085950
|
|
26893
27241
|
},
|
|
26894
27242
|
"linux-arm64": {
|
|
26895
|
-
sha256: "
|
|
26896
|
-
size:
|
|
27243
|
+
sha256: "f900ab5b6a4823966cebe291c91710e6323185df971c667c25ddcc1427935b52",
|
|
27244
|
+
size: 71084016
|
|
26897
27245
|
}
|
|
26898
27246
|
}
|
|
26899
27247
|
};
|
|
@@ -27073,11 +27421,13 @@ function swiftModuleToolchain(root) {
|
|
|
27073
27421
|
}
|
|
27074
27422
|
|
|
27075
27423
|
// src/swift-host.ts
|
|
27424
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
27076
27425
|
var import_node_crypto15 = require("node:crypto");
|
|
27077
27426
|
var import_node_fs26 = __toESM(require("node:fs"), 1);
|
|
27078
27427
|
var import_node_path26 = __toESM(require("node:path"), 1);
|
|
27079
27428
|
|
|
27080
27429
|
// ../sootsim-swift/src/bundleAssets.ts
|
|
27430
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
27081
27431
|
var import_svgpath = __toESM(require("svgpath"), 1);
|
|
27082
27432
|
var RASTER_EXTENSIONS = /* @__PURE__ */ new Set([
|
|
27083
27433
|
".avif",
|
|
@@ -27379,6 +27729,7 @@ function enumerateBundleResources(paths) {
|
|
|
27379
27729
|
}
|
|
27380
27730
|
|
|
27381
27731
|
// ../sootsim-swift/src/stringCatalog.ts
|
|
27732
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
27382
27733
|
function isRecord2(value) {
|
|
27383
27734
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
27384
27735
|
}
|
|
@@ -27846,28 +28197,45 @@ var ios_sdk_frameworks_default = {
|
|
|
27846
28197
|
]
|
|
27847
28198
|
};
|
|
27848
28199
|
|
|
28200
|
+
// src/native-app-identity-project.ts
|
|
28201
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
28202
|
+
|
|
28203
|
+
// src/android-app-identity.ts
|
|
28204
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
28205
|
+
|
|
28206
|
+
// src/android-string-value.ts
|
|
28207
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
28208
|
+
|
|
28209
|
+
// src/android-xml.ts
|
|
28210
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
28211
|
+
|
|
27849
28212
|
// src/native-app-identity-project.ts
|
|
27850
28213
|
init_is_record();
|
|
27851
28214
|
|
|
27852
28215
|
// src/native-app-identity.ts
|
|
28216
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
27853
28217
|
init_bundleGlobalFooter();
|
|
27854
28218
|
init_is_record();
|
|
27855
28219
|
|
|
27856
28220
|
// src/nativeAppIconContract.ts
|
|
28221
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
27857
28222
|
init_is_record();
|
|
27858
28223
|
|
|
27859
28224
|
// src/plist.ts
|
|
28225
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
27860
28226
|
var import_plist2 = __toESM(require("plist"), 1);
|
|
27861
28227
|
function parsePlistSource(source) {
|
|
27862
28228
|
return import_plist2.default.parse(source);
|
|
27863
28229
|
}
|
|
27864
28230
|
|
|
27865
28231
|
// src/swift-objc-compile.ts
|
|
28232
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
27866
28233
|
var import_node_fs23 = __toESM(require("node:fs"), 1);
|
|
27867
28234
|
var import_node_path24 = __toESM(require("node:path"), 1);
|
|
27868
28235
|
init_home_paths();
|
|
27869
28236
|
|
|
27870
28237
|
// src/swift-package-manifest.ts
|
|
28238
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
27871
28239
|
var import_node_child_process11 = require("node:child_process");
|
|
27872
28240
|
var import_node_crypto12 = require("node:crypto");
|
|
27873
28241
|
var import_node_fs20 = __toESM(require("node:fs"), 1);
|
|
@@ -27887,25 +28255,37 @@ var record2 = (value) => value && typeof value === "object" && !Array.isArray(va
|
|
|
27887
28255
|
var array = (value) => Array.isArray(value) ? value : [];
|
|
27888
28256
|
var string2 = (value) => typeof value === "string" ? value : void 0;
|
|
27889
28257
|
function swiftCommand() {
|
|
27890
|
-
return process.platform === "darwin" ?
|
|
28258
|
+
return process.platform === "darwin" ? (
|
|
28259
|
+
// runner-toolchain-platform: darwin
|
|
28260
|
+
(0, import_node_child_process11.execFileSync)("xcrun", ["--find", "swift"], { encoding: "utf8" }).trim()
|
|
28261
|
+
) : import_node_path21.default.join(swiftToolchainBin(swift_distribution_lock_default.release), "swift");
|
|
27891
28262
|
}
|
|
27892
28263
|
var cacheDir3 = import_node_path21.default.join(cacheDir(), "swift-manifests");
|
|
27893
28264
|
var evaluated = /* @__PURE__ */ new Map();
|
|
27894
28265
|
function dump(dir) {
|
|
27895
28266
|
const manifests = import_node_fs20.default.readdirSync(dir).filter((name3) => /^Package(@swift-[\d.]+)?\.swift$/.test(name3)).sort();
|
|
27896
28267
|
const command = swiftCommand();
|
|
27897
|
-
const
|
|
28268
|
+
const toolchain = {
|
|
28269
|
+
path: command,
|
|
28270
|
+
realpath: import_node_fs20.default.realpathSync(command),
|
|
28271
|
+
sha256: (0, import_node_crypto12.createHash)("sha256").update(import_node_fs20.default.readFileSync(command)).digest("hex"),
|
|
28272
|
+
version: (0, import_node_child_process11.execFileSync)(command, ["--version"], {
|
|
28273
|
+
encoding: "utf8",
|
|
28274
|
+
env: swiftEnvironment(),
|
|
28275
|
+
stdio: ["ignore", "pipe", "pipe"]
|
|
28276
|
+
}).trim()
|
|
28277
|
+
};
|
|
28278
|
+
const key2 = (0, import_node_crypto12.createHash)("sha256").update(JSON.stringify([toolchain, import_node_path21.default.resolve(dir)])).update(
|
|
27898
28279
|
manifests.map((name3) => `${name3}\0${import_node_fs20.default.readFileSync(import_node_path21.default.join(dir, name3), "utf8")}`).join("\0")
|
|
27899
28280
|
).digest("hex").slice(0, 32);
|
|
27900
28281
|
const cached3 = import_node_path21.default.join(cacheDir3, `${key2}.json`);
|
|
27901
28282
|
if (import_node_fs20.default.existsSync(cached3))
|
|
27902
|
-
return { key: key2, raw: record2(JSON.parse(import_node_fs20.default.readFileSync(cached3, "utf8"))) };
|
|
28283
|
+
return { key: key2, toolchain, raw: record2(JSON.parse(import_node_fs20.default.readFileSync(cached3, "utf8"))) };
|
|
27903
28284
|
let output;
|
|
27904
28285
|
try {
|
|
27905
28286
|
output = (0, import_node_child_process11.execFileSync)(
|
|
27906
|
-
command
|
|
28287
|
+
command,
|
|
27907
28288
|
[
|
|
27908
|
-
...command.args,
|
|
27909
28289
|
"package",
|
|
27910
28290
|
...swiftPackageCacheOptions(),
|
|
27911
28291
|
"--package-path",
|
|
@@ -27930,7 +28310,7 @@ function dump(dir) {
|
|
|
27930
28310
|
}
|
|
27931
28311
|
import_node_fs20.default.mkdirSync(cacheDir3, { recursive: true });
|
|
27932
28312
|
import_node_fs20.default.writeFileSync(cached3, output);
|
|
27933
|
-
return { key: key2, raw: record2(JSON.parse(output)) };
|
|
28313
|
+
return { key: key2, toolchain, raw: record2(JSON.parse(output)) };
|
|
27934
28314
|
}
|
|
27935
28315
|
function defaultTraits(manifest) {
|
|
27936
28316
|
const traits = new Map(
|
|
@@ -27958,15 +28338,18 @@ function linksOnIOS(condition, traits) {
|
|
|
27958
28338
|
}
|
|
27959
28339
|
function swiftPackageManifest(dir) {
|
|
27960
28340
|
dir = import_node_fs20.default.realpathSync(dir);
|
|
27961
|
-
const { key: key2, raw: raw2 } = dump(dir);
|
|
28341
|
+
const { key: key2, raw: raw2, toolchain } = dump(dir);
|
|
27962
28342
|
const known = evaluated.get(key2);
|
|
27963
28343
|
if (known) return known;
|
|
27964
28344
|
const traits = defaultTraits(raw2);
|
|
27965
28345
|
const tools = Number(
|
|
27966
28346
|
/^(\d+)/.exec(string2(record2(raw2.toolsVersion)._version) ?? "5")?.[1] ?? 5
|
|
27967
28347
|
);
|
|
27968
|
-
const
|
|
27969
|
-
|
|
28348
|
+
const declaredModeValues = array(raw2.swiftLanguageVersions).flatMap(
|
|
28349
|
+
(mode) => string2(mode) ?? []
|
|
28350
|
+
);
|
|
28351
|
+
const declaredModes = declaredModeValues.flatMap((mode) => {
|
|
28352
|
+
const major = Number(/^(\d+)/.exec(mode)?.[1]);
|
|
27970
28353
|
return Number.isFinite(major) ? [major] : [];
|
|
27971
28354
|
});
|
|
27972
28355
|
const packageMode = Math.max(
|
|
@@ -28029,10 +28412,14 @@ function swiftPackageManifest(dir) {
|
|
|
28029
28412
|
});
|
|
28030
28413
|
}
|
|
28031
28414
|
let languageMode = packageMode;
|
|
28415
|
+
let sourceLanguageMode = declaredModeValues.length ? declaredModeValues.reduce(
|
|
28416
|
+
(highest, mode) => Number(mode) > Number(highest) ? mode : highest
|
|
28417
|
+
) : tools >= 6 ? "6" : tools >= 5 ? "5" : string2(record2(raw2.toolsVersion)._version) ?? "unknown";
|
|
28032
28418
|
let mainActorIsolation = false;
|
|
28033
28419
|
const defines = [];
|
|
28034
28420
|
const libraries = [];
|
|
28035
28421
|
const nativeSettings = [];
|
|
28422
|
+
const unsupportedSwiftSettings = [];
|
|
28036
28423
|
for (const [tool, standard] of [
|
|
28037
28424
|
["c", string2(raw2.cLanguageStandard)],
|
|
28038
28425
|
["cxx", string2(raw2.cxxLanguageStandard)]
|
|
@@ -28043,6 +28430,16 @@ function swiftPackageManifest(dir) {
|
|
|
28043
28430
|
for (const setting of array(target.settings)) {
|
|
28044
28431
|
const { kind: rawKind, tool, condition } = record2(setting);
|
|
28045
28432
|
const settingKind = record2(rawKind);
|
|
28433
|
+
if (tool === "swift") {
|
|
28434
|
+
const kinds = Object.keys(settingKind);
|
|
28435
|
+
const supported = kinds.length === 1 && (kinds[0] === "define" && /^[A-Za-z_][A-Za-z0-9_]*$/.test(
|
|
28436
|
+
string2(record2(settingKind.define)._0) ?? ""
|
|
28437
|
+
) || kinds[0] === "swiftLanguageMode" && Object.keys(record2(condition)).length === 0 || kinds[0] === "defaultIsolation" && Object.keys(record2(condition)).length === 0 && ["MainActor", "nonisolated"].includes(
|
|
28438
|
+
string2(record2(settingKind.defaultIsolation)._0) ?? ""
|
|
28439
|
+
));
|
|
28440
|
+
if (!supported)
|
|
28441
|
+
unsupportedSwiftSettings.push(JSON.stringify({ kind: rawKind, condition }));
|
|
28442
|
+
}
|
|
28046
28443
|
if ((tool === "c" || tool === "cxx") && linksOnIOS(condition, traits)) {
|
|
28047
28444
|
const config = string2(record2(condition).config);
|
|
28048
28445
|
const header = string2(record2(settingKind.headerSearchPath)._0);
|
|
@@ -28062,6 +28459,7 @@ function swiftPackageManifest(dir) {
|
|
|
28062
28459
|
});
|
|
28063
28460
|
}
|
|
28064
28461
|
const mode = string2(record2(settingKind.swiftLanguageMode)._0);
|
|
28462
|
+
if (tool === "swift" && mode) sourceLanguageMode = mode;
|
|
28065
28463
|
if (mode)
|
|
28066
28464
|
languageMode = Math.max(5, Number(/^(\d+)/.exec(mode)?.[1] ?? languageMode));
|
|
28067
28465
|
if (string2(record2(settingKind.defaultIsolation)._0) === "MainActor")
|
|
@@ -28083,6 +28481,10 @@ function swiftPackageManifest(dir) {
|
|
|
28083
28481
|
});
|
|
28084
28482
|
}
|
|
28085
28483
|
}
|
|
28484
|
+
if (!["5", "6"].includes(sourceLanguageMode))
|
|
28485
|
+
unsupportedSwiftSettings.push(
|
|
28486
|
+
`unsupported Swift language mode: ${sourceLanguageMode}`
|
|
28487
|
+
);
|
|
28086
28488
|
targets.set(name4, {
|
|
28087
28489
|
name: name4,
|
|
28088
28490
|
type: kind,
|
|
@@ -28096,6 +28498,8 @@ function swiftPackageManifest(dir) {
|
|
|
28096
28498
|
libraries,
|
|
28097
28499
|
nativeSettings,
|
|
28098
28500
|
declaresResources: array(target.resources).length > 0,
|
|
28501
|
+
hasPluginUsages: array(target.pluginUsages).length > 0,
|
|
28502
|
+
unsupportedSwiftSettings,
|
|
28099
28503
|
publicHeadersPath: string2(target.publicHeadersPath) ?? "include",
|
|
28100
28504
|
url: string2(target.url) ?? null,
|
|
28101
28505
|
checksum: string2(target.checksum) ?? null
|
|
@@ -28103,7 +28507,7 @@ function swiftPackageManifest(dir) {
|
|
|
28103
28507
|
}
|
|
28104
28508
|
const name3 = string2(raw2.name);
|
|
28105
28509
|
if (!name3) throw new Error(`swiftpm returned no package name for ${dir}`);
|
|
28106
|
-
const manifest = { name: name3, dir, products, targets, packages };
|
|
28510
|
+
const manifest = { name: name3, dir, products, targets, packages, toolchain };
|
|
28107
28511
|
evaluated.set(key2, manifest);
|
|
28108
28512
|
return manifest;
|
|
28109
28513
|
}
|
|
@@ -28132,6 +28536,7 @@ function swiftTargetFiles(manifest, target) {
|
|
|
28132
28536
|
}
|
|
28133
28537
|
|
|
28134
28538
|
// src/swift-packages.ts
|
|
28539
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
28135
28540
|
var import_node_child_process12 = require("node:child_process");
|
|
28136
28541
|
var import_node_crypto13 = require("node:crypto");
|
|
28137
28542
|
var import_node_fs21 = __toESM(require("node:fs"), 1);
|
|
@@ -28413,6 +28818,7 @@ function resolveSwiftPackages(options) {
|
|
|
28413
28818
|
}
|
|
28414
28819
|
|
|
28415
28820
|
// src/swift-source-file.ts
|
|
28821
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
28416
28822
|
var import_node_fs22 = __toESM(require("node:fs"), 1);
|
|
28417
28823
|
var import_node_path23 = __toESM(require("node:path"), 1);
|
|
28418
28824
|
function readPackageFile(root, file, maxBytes) {
|
|
@@ -28616,11 +29022,13 @@ function xcodeObjCInputs(app, binaries) {
|
|
|
28616
29022
|
}
|
|
28617
29023
|
|
|
28618
29024
|
// src/swift-standin-config.ts
|
|
29025
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
28619
29026
|
var import_acorn = require("acorn");
|
|
28620
29027
|
var import_sucrase = require("sucrase");
|
|
28621
29028
|
init_is_record();
|
|
28622
29029
|
|
|
28623
29030
|
// src/swift-standins.ts
|
|
29031
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
28624
29032
|
var import_node_child_process13 = require("node:child_process");
|
|
28625
29033
|
var import_node_crypto14 = require("node:crypto");
|
|
28626
29034
|
var import_node_fs25 = __toESM(require("node:fs"), 1);
|
|
@@ -28629,6 +29037,7 @@ init_home_paths();
|
|
|
28629
29037
|
init_is_record();
|
|
28630
29038
|
|
|
28631
29039
|
// src/output-lock-stdio.ts
|
|
29040
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
28632
29041
|
var import_node_fs24 = require("node:fs");
|
|
28633
29042
|
function outputLockStdio(standard, env = process.env) {
|
|
28634
29043
|
const stdio = [...standard];
|
|
@@ -28655,6 +29064,7 @@ function outputLockStdio(standard, env = process.env) {
|
|
|
28655
29064
|
}
|
|
28656
29065
|
|
|
28657
29066
|
// src/swift-standin-emit.ts
|
|
29067
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
28658
29068
|
var STANDIN_EMIT_VERSION = "12";
|
|
28659
29069
|
var STANDIN_IMPORTS = ["Foundation", "UIKit"];
|
|
28660
29070
|
var TYPE_KINDS = /* @__PURE__ */ new Set([
|
|
@@ -29414,7 +29824,6 @@ function stripDefaults(decl) {
|
|
|
29414
29824
|
|
|
29415
29825
|
// src/swift-standins.ts
|
|
29416
29826
|
var TRIPLE = "wasm32-unknown-wasip1";
|
|
29417
|
-
var WASI_EMULATION = ["_WASI_EMULATED_SIGNAL", "_WASI_EMULATED_MMAN"];
|
|
29418
29827
|
var cacheDir4 = import_node_path25.default.join(cacheDir(), "swift-standins");
|
|
29419
29828
|
var SWIFT_STANDINS_DIR = "__standins__";
|
|
29420
29829
|
function exec(file, args, cwd) {
|
|
@@ -29976,6 +30385,7 @@ ${roots.map((file) => ` header "${file}"
|
|
|
29976
30385
|
TRIPLE,
|
|
29977
30386
|
"--sysroot",
|
|
29978
30387
|
sysroot,
|
|
30388
|
+
...WASI_EMULATION_FLAGS,
|
|
29979
30389
|
"-fsyntax-only",
|
|
29980
30390
|
"-I",
|
|
29981
30391
|
include,
|
|
@@ -30042,6 +30452,7 @@ ${roots.map((file) => ` header "${file}"
|
|
|
30042
30452
|
TRIPLE,
|
|
30043
30453
|
"--sysroot",
|
|
30044
30454
|
sysroot,
|
|
30455
|
+
...WASI_EMULATION_FLAGS,
|
|
30045
30456
|
"-fsyntax-only",
|
|
30046
30457
|
"-I",
|
|
30047
30458
|
include,
|
|
@@ -30669,6 +31080,7 @@ function swiftStandins(binaries, toolchain, provided = /* @__PURE__ */ new Set()
|
|
|
30669
31080
|
}
|
|
30670
31081
|
|
|
30671
31082
|
// src/swift-submit.ts
|
|
31083
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
30672
31084
|
init_is_record();
|
|
30673
31085
|
var SWIFT_COMPILE_PATH = "/api/swift-compile";
|
|
30674
31086
|
var MAX_SWIFT_COMPILE_FILES = 256;
|
|
@@ -30684,7 +31096,7 @@ var MAX_SWIFT_COMPILE_METAL_TOTAL_BYTES = 8 * 1024 * 1024;
|
|
|
30684
31096
|
var MAX_SWIFT_COMPILE_IMAGES = 128;
|
|
30685
31097
|
var MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
30686
31098
|
var MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
|
|
30687
|
-
var SWIFT_HOST_ABI =
|
|
31099
|
+
var SWIFT_HOST_ABI = 48;
|
|
30688
31100
|
var POLL_INTERVAL_MS = 1500;
|
|
30689
31101
|
function httpSwiftCompileSubmit(context) {
|
|
30690
31102
|
const { assetReadToken, authorization, endpoint } = context;
|
|
@@ -31032,8 +31444,14 @@ function xcodeLayout(root) {
|
|
|
31032
31444
|
if (relative3 === ".." || relative3.startsWith(`..${import_node_path26.default.sep}`) || import_node_path26.default.isAbsolute(relative3))
|
|
31033
31445
|
throw new Error(`swift input escapes the selected package: ${target.dir}`);
|
|
31034
31446
|
const posix2 = relative3.split(import_node_path26.default.sep).join(import_node_path26.default.posix.sep);
|
|
31447
|
+
const packageMacros = [
|
|
31448
|
+
"SWIFT_PACKAGE=1",
|
|
31449
|
+
...packageConfiguration === "debug" ? ["DEBUG=1"] : []
|
|
31450
|
+
];
|
|
31035
31451
|
targets.push({
|
|
31036
31452
|
...target,
|
|
31453
|
+
cDefines: packageMacros,
|
|
31454
|
+
cxxDefines: packageMacros,
|
|
31037
31455
|
path: target.remote ? import_node_path26.default.posix.join(XCODE_PACKAGES_DIR, posix2) : posix2,
|
|
31038
31456
|
exclude: [],
|
|
31039
31457
|
defines: [
|
|
@@ -31190,6 +31608,12 @@ function xcodeManifest(layout) {
|
|
|
31190
31608
|
...target.mainActorIsolation ? [".defaultIsolation(MainActor.self)"] : [],
|
|
31191
31609
|
...(target.defines ?? []).map((name3) => `.define(${JSON.stringify(name3)})`)
|
|
31192
31610
|
].join(", ")}]`;
|
|
31611
|
+
const clangSettings = (target) => [
|
|
31612
|
+
["cSettings", target.cDefines],
|
|
31613
|
+
["cxxSettings", target.cxxDefines]
|
|
31614
|
+
].map(
|
|
31615
|
+
([label, macros]) => macros?.length ? `${label}: [${macros.map(clangMacroSetting).join(", ")}], ` : ""
|
|
31616
|
+
).join("");
|
|
31193
31617
|
const libraries = (target) => target.linkedLibraries?.length ? `, linkerSettings: [${target.linkedLibraries.map((name3) => `.linkedLibrary(${JSON.stringify(name3)})`).join(", ")}]` : "";
|
|
31194
31618
|
return [
|
|
31195
31619
|
"// swift-tools-version: 6.2",
|
|
@@ -31197,7 +31621,7 @@ function xcodeManifest(layout) {
|
|
|
31197
31621
|
'let package = Package(name: "app", targets: [',
|
|
31198
31622
|
` .executableTarget(name: "${layout.app.moduleName}", path: "${XCODE_APP_DIR}", ${settings(layout.app)}),`,
|
|
31199
31623
|
...layout.targets.map(
|
|
31200
|
-
(target) => target.systemLibrary ? ` .systemLibrary(name: "${target.name}", path: "${target.path}"),` : ` .target(name: "${target.name}", dependencies: ${JSON.stringify((target.dependencies ?? []).map((dependency) => dependency.name))}, path: "${target.path}", ${target.exclude.length > 0 ? `exclude: ${JSON.stringify(target.exclude)}, ` : ""}${target.resources ? "resources: [], " : ""}${settings(target)}${libraries(target)}),`
|
|
31624
|
+
(target) => target.systemLibrary ? ` .systemLibrary(name: "${target.name}", path: "${target.path}"),` : ` .target(name: "${target.name}", dependencies: ${JSON.stringify((target.dependencies ?? []).map((dependency) => dependency.name))}, path: "${target.path}", ${target.exclude.length > 0 ? `exclude: ${JSON.stringify(target.exclude)}, ` : ""}${target.resources ? "resources: [], " : ""}${clangSettings(target)}${settings(target)}${libraries(target)}),`
|
|
31201
31625
|
),
|
|
31202
31626
|
"])",
|
|
31203
31627
|
""
|
|
@@ -32771,6 +33195,7 @@ async function handleExpoSwiftRequest(req, res) {
|
|
|
32771
33195
|
init_home_paths();
|
|
32772
33196
|
|
|
32773
33197
|
// src/process-liveness.ts
|
|
33198
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
32774
33199
|
var import_node_fs28 = require("node:fs");
|
|
32775
33200
|
function isProcessRunning(pid) {
|
|
32776
33201
|
if (process.platform === "linux") {
|
|
@@ -32795,6 +33220,7 @@ init_public_brand();
|
|
|
32795
33220
|
init_runtime_assets();
|
|
32796
33221
|
|
|
32797
33222
|
// src/runtime-delivery.ts
|
|
33223
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
32798
33224
|
init_src();
|
|
32799
33225
|
init_cli_runtime();
|
|
32800
33226
|
init_home_paths();
|
|
@@ -32827,11 +33253,13 @@ var RNX_RUNTIME_PRODUCT = {
|
|
|
32827
33253
|
var rnxRuntime = createRuntimeDelivery(RNX_RUNTIME_PRODUCT);
|
|
32828
33254
|
|
|
32829
33255
|
// src/host/agent-host.ts
|
|
33256
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
32830
33257
|
var import_node_crypto20 = require("node:crypto");
|
|
32831
33258
|
var import_node_fs35 = __toESM(require("node:fs"), 1);
|
|
32832
33259
|
var import_node_path35 = __toESM(require("node:path"), 1);
|
|
32833
33260
|
|
|
32834
33261
|
// scripts/dev-server-scanner.ts
|
|
33262
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
32835
33263
|
var import_child_process = require("child_process");
|
|
32836
33264
|
var import_promises4 = require("fs/promises");
|
|
32837
33265
|
var import_http = __toESM(require("http"), 1);
|
|
@@ -32842,11 +33270,13 @@ var import_node_path31 = require("node:path");
|
|
|
32842
33270
|
init_backend_origin();
|
|
32843
33271
|
|
|
32844
33272
|
// src/config.ts
|
|
33273
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
32845
33274
|
init_version();
|
|
32846
33275
|
init_bundleGlobalFooter();
|
|
32847
33276
|
init_is_record();
|
|
32848
33277
|
|
|
32849
33278
|
// src/nativeViewSourceContract.ts
|
|
33279
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
32850
33280
|
init_is_record();
|
|
32851
33281
|
|
|
32852
33282
|
// src/config.ts
|
|
@@ -32869,9 +33299,11 @@ function applyPeachConfigToUrl(url, config) {
|
|
|
32869
33299
|
}
|
|
32870
33300
|
|
|
32871
33301
|
// src/dev-bundle-resolution.ts
|
|
33302
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
32872
33303
|
init_backend_origin();
|
|
32873
33304
|
|
|
32874
33305
|
// src/expo-manifest-body.ts
|
|
33306
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
32875
33307
|
function parseExpoManifestBody(body) {
|
|
32876
33308
|
const opening = /^(--[^\r\n]+)\r?\n/.exec(body);
|
|
32877
33309
|
if (!opening) return JSON.parse(body);
|
|
@@ -32884,6 +33316,7 @@ function parseExpoManifestBody(body) {
|
|
|
32884
33316
|
}
|
|
32885
33317
|
|
|
32886
33318
|
// src/native-dev-bundle-url.ts
|
|
33319
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
32887
33320
|
init_backend_origin();
|
|
32888
33321
|
function isAbsoluteHttpUrl(url) {
|
|
32889
33322
|
return /^https?:\/\//i.test(url);
|
|
@@ -32987,6 +33420,7 @@ async function fetchDevManifest(baseUrl, pageOrigin) {
|
|
|
32987
33420
|
}
|
|
32988
33421
|
|
|
32989
33422
|
// src/kotlinDiscoveryContract.ts
|
|
33423
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
32990
33424
|
var KOTLIN_DISCOVERY_PATH = "/__peach/kotlin-host";
|
|
32991
33425
|
var KOTLIN_GUEST_PATH = "/__peach/kotlin-guest.js";
|
|
32992
33426
|
function parseKotlinHostDiscovery(value) {
|
|
@@ -33001,6 +33435,7 @@ function parseKotlinHostDiscovery(value) {
|
|
|
33001
33435
|
}
|
|
33002
33436
|
|
|
33003
33437
|
// src/oneWidgetContract.ts
|
|
33438
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
33004
33439
|
var HOME_WIDGET_FAMILIES = [
|
|
33005
33440
|
"systemSmall",
|
|
33006
33441
|
"systemMedium",
|
|
@@ -33084,6 +33519,7 @@ function configuredWidgetFromScan(value, bundleUrl) {
|
|
|
33084
33519
|
}
|
|
33085
33520
|
|
|
33086
33521
|
// src/settings-bundle.ts
|
|
33522
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
33087
33523
|
var import_promises3 = require("node:fs/promises");
|
|
33088
33524
|
var import_node_path29 = require("node:path");
|
|
33089
33525
|
init_is_record();
|
|
@@ -33401,6 +33837,7 @@ async function readAppSettingsBundle(projectRoot) {
|
|
|
33401
33837
|
}
|
|
33402
33838
|
|
|
33403
33839
|
// src/swiftDiscoveryContract.ts
|
|
33840
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
33404
33841
|
var SWIFT_DISCOVERY_PATH = "/__peach/swift-host";
|
|
33405
33842
|
var SWIFT_GUEST_PATH = "/__peach/swift-guest.js";
|
|
33406
33843
|
var SWIFT_ICON_PATH = "/__peach/swift-icon";
|
|
@@ -34525,6 +34962,7 @@ async function scanDevServers(opts = {}) {
|
|
|
34525
34962
|
}
|
|
34526
34963
|
|
|
34527
34964
|
// src/agent-sessions.ts
|
|
34965
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
34528
34966
|
var import_node_child_process15 = require("node:child_process");
|
|
34529
34967
|
var import_node_crypto19 = require("node:crypto");
|
|
34530
34968
|
var import_node_fs34 = __toESM(require("node:fs"), 1);
|
|
@@ -34532,6 +34970,7 @@ var import_node_path34 = __toESM(require("node:path"), 1);
|
|
|
34532
34970
|
var import_node_readline = __toESM(require("node:readline"), 1);
|
|
34533
34971
|
|
|
34534
34972
|
// cli/self-invocation.ts
|
|
34973
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
34535
34974
|
var import_node_fs32 = require("node:fs");
|
|
34536
34975
|
var import_node_path32 = require("node:path");
|
|
34537
34976
|
var import_node_url4 = require("node:url");
|
|
@@ -34569,6 +35008,7 @@ function rnxSelfInvocation() {
|
|
|
34569
35008
|
init_standalone();
|
|
34570
35009
|
|
|
34571
35010
|
// src/agent-events.ts
|
|
35011
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
34572
35012
|
function isAgentEvent(value) {
|
|
34573
35013
|
if (!value || typeof value !== "object") return false;
|
|
34574
35014
|
const v = value;
|
|
@@ -34586,6 +35026,7 @@ function parseAgentEventLine(line) {
|
|
|
34586
35026
|
}
|
|
34587
35027
|
|
|
34588
35028
|
// src/agent-prompt.ts
|
|
35029
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
34589
35030
|
var ENVELOPE_MARKER = "sootsim-agent-prompt-v1";
|
|
34590
35031
|
function cleanPromptText(value) {
|
|
34591
35032
|
return typeof value === "string" ? value.trim() : "";
|
|
@@ -34608,6 +35049,7 @@ function encodeAgentPromptEnvelope(input) {
|
|
|
34608
35049
|
}
|
|
34609
35050
|
|
|
34610
35051
|
// src/attached-projects.ts
|
|
35052
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
34611
35053
|
var import_node_crypto18 = require("node:crypto");
|
|
34612
35054
|
var import_node_fs33 = __toESM(require("node:fs"), 1);
|
|
34613
35055
|
var import_node_path33 = __toESM(require("node:path"), 1);
|
|
@@ -35875,6 +36317,7 @@ function mapFrameworkToProjectFramework(fw) {
|
|
|
35875
36317
|
}
|
|
35876
36318
|
|
|
35877
36319
|
// src/host/fetch-proxy-handler.ts
|
|
36320
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
35878
36321
|
var import_http2 = __toESM(require("http"), 1);
|
|
35879
36322
|
var import_https = __toESM(require("https"), 1);
|
|
35880
36323
|
var import_node_http2 = require("node:http2");
|
|
@@ -35883,14 +36326,17 @@ init_backend_origin();
|
|
|
35883
36326
|
init_packageVersionsContract();
|
|
35884
36327
|
|
|
35885
36328
|
// src/host/dev-server-package-versions.ts
|
|
36329
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
35886
36330
|
var import_fs3 = __toESM(require("fs"), 1);
|
|
35887
36331
|
var import_path3 = __toESM(require("path"), 1);
|
|
35888
36332
|
|
|
35889
36333
|
// src/installed-package-versions.ts
|
|
36334
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
35890
36335
|
var import_fs2 = __toESM(require("fs"), 1);
|
|
35891
36336
|
var import_path2 = __toESM(require("path"), 1);
|
|
35892
36337
|
|
|
35893
36338
|
// ../peach-compat/src/lazy-stub-patterns.ts
|
|
36339
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
35894
36340
|
var LAZY_STUB_PATTERNS = [
|
|
35895
36341
|
"@10play/tentap-editor",
|
|
35896
36342
|
"@adobe/react-native-aepcore",
|
|
@@ -36094,7 +36540,11 @@ var LAZY_STUB_PATTERNS = [
|
|
|
36094
36540
|
"voltra"
|
|
36095
36541
|
];
|
|
36096
36542
|
|
|
36543
|
+
// ../peach-compat/src/generated/native-package-names.ts
|
|
36544
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
36545
|
+
|
|
36097
36546
|
// ../peach-compat/src/generated/light-native-package-names.ts
|
|
36547
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
36098
36548
|
var LIGHT_NATIVE_PACKAGE_NAMES = [
|
|
36099
36549
|
"@100mslive/react-native-hms",
|
|
36100
36550
|
"@account-kit/react-native-signer",
|
|
@@ -37874,7 +38324,11 @@ var NATIVE_RUNTIME_PACKAGE_NAMES = [
|
|
|
37874
38324
|
"react-native-sectioned-slider"
|
|
37875
38325
|
];
|
|
37876
38326
|
|
|
38327
|
+
// ../peach-compat/src/stub-manifest.ts
|
|
38328
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
38329
|
+
|
|
37877
38330
|
// ../peach-compat/src/wrapper-real-packages.ts
|
|
38331
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
37878
38332
|
var SOOTSIM_COMPAT_WRAPPER_REAL_PACKAGES = {
|
|
37879
38333
|
expoUiConfirmationDialog: {
|
|
37880
38334
|
specifier: "@peach-internal/expo-ui-confirmation-dialog",
|
|
@@ -38734,6 +39188,7 @@ var COMPAT_STUBS = {
|
|
|
38734
39188
|
};
|
|
38735
39189
|
|
|
38736
39190
|
// src/stub-pattern-matcher.ts
|
|
39191
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
38737
39192
|
function extractPackageFromPath(modulePath) {
|
|
38738
39193
|
let nodeModulesIndex = modulePath.lastIndexOf("/node_modules/");
|
|
38739
39194
|
let prefixLength = "/node_modules/".length;
|
|
@@ -38923,6 +39378,7 @@ async function readInstalledNativePackageVersionsAsync(projectRoot) {
|
|
|
38923
39378
|
}
|
|
38924
39379
|
|
|
38925
39380
|
// src/metro-project-root.ts
|
|
39381
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
38926
39382
|
init_backend_origin();
|
|
38927
39383
|
async function resolveMetroProjectRoot(bundleUrl) {
|
|
38928
39384
|
const origin = loopbackOriginOf(bundleUrl);
|
|
@@ -38978,6 +39434,7 @@ async function readDevServerPackageVersions(bundleUrl) {
|
|
|
38978
39434
|
}
|
|
38979
39435
|
|
|
38980
39436
|
// src/host/fetch-proxy-overrides.ts
|
|
39437
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
38981
39438
|
var FETCH_PROXY_NATIVE_USER_AGENT_HEADER = "x-sootsim-native-user-agent";
|
|
38982
39439
|
var FETCH_PROXY_FAILURE_PARAM = "peachFailure";
|
|
38983
39440
|
var FETCH_PROXY_FAILURE_HEADER = "x-peach-upstream-failure";
|
|
@@ -39096,6 +39553,7 @@ function nodeRequestHeaderEntries(headers) {
|
|
|
39096
39553
|
}
|
|
39097
39554
|
|
|
39098
39555
|
// src/host/loopback-ports.ts
|
|
39556
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
39099
39557
|
init_backend_origin();
|
|
39100
39558
|
var LOOPBACK_PORTS = /* @__PURE__ */ new Map();
|
|
39101
39559
|
for (const pair of process.env.PEACH_LOOPBACK_PORTS?.split(",").filter(Boolean) ?? []) {
|
|
@@ -39123,6 +39581,7 @@ function projectLoopbackUrl(value) {
|
|
|
39123
39581
|
}
|
|
39124
39582
|
|
|
39125
39583
|
// src/host/rolldown-bundle-forward.ts
|
|
39584
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
39126
39585
|
var import_stream = require("stream");
|
|
39127
39586
|
var import_promises5 = require("stream/promises");
|
|
39128
39587
|
init_cli_runtime();
|
|
@@ -39159,7 +39618,10 @@ async function forwardRolldownBundleResponse(upstream, res) {
|
|
|
39159
39618
|
const message = `could not attach the rolldown bundle inventory: ${error instanceof Error ? error.message : String(error)}`;
|
|
39160
39619
|
console.error(`[peach] ${message}`);
|
|
39161
39620
|
if (contentType2.toLowerCase().includes("multipart/mixed")) {
|
|
39162
|
-
yield Buffer.from(
|
|
39621
|
+
yield Buffer.from(
|
|
39622
|
+
inventory.multipartFailurePart(contentType2, message, payload.slice(0, sent)),
|
|
39623
|
+
"utf8"
|
|
39624
|
+
);
|
|
39163
39625
|
return;
|
|
39164
39626
|
}
|
|
39165
39627
|
res.statusCode = 500;
|
|
@@ -39516,6 +39978,7 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
39516
39978
|
}
|
|
39517
39979
|
|
|
39518
39980
|
// src/host/fetch-proxy-transport.ts
|
|
39981
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
39519
39982
|
var import_node_crypto21 = require("node:crypto");
|
|
39520
39983
|
var import_node_fs36 = require("node:fs");
|
|
39521
39984
|
var import_node_http22 = require("node:http2");
|
|
@@ -39638,6 +40101,7 @@ async function startFetchProxyTransport(identityPath, hasLiveSims = () => false)
|
|
|
39638
40101
|
}
|
|
39639
40102
|
|
|
39640
40103
|
// src/host/lease-owner.ts
|
|
40104
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
39641
40105
|
function isProcessGroupAlive(pgid) {
|
|
39642
40106
|
if (!Number.isInteger(pgid) || pgid <= 1) return true;
|
|
39643
40107
|
try {
|
|
@@ -39665,6 +40129,7 @@ function isProcessAlive2(pid) {
|
|
|
39665
40129
|
}
|
|
39666
40130
|
|
|
39667
40131
|
// src/host/open-url.ts
|
|
40132
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
39668
40133
|
var import_child_process2 = require("child_process");
|
|
39669
40134
|
function buildOpenUrlCommand(url, options = {}) {
|
|
39670
40135
|
if (!url) throw new Error("openUrl requires a url");
|
|
@@ -39739,10 +40204,15 @@ async function openUrl(url, options = {}) {
|
|
|
39739
40204
|
}
|
|
39740
40205
|
|
|
39741
40206
|
// src/host/plane-host.ts
|
|
40207
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
39742
40208
|
var import_node_fs38 = __toESM(require("node:fs"), 1);
|
|
39743
40209
|
var import_node_path38 = __toESM(require("node:path"), 1);
|
|
39744
40210
|
|
|
40211
|
+
// ../peach-box/src/plane.ts
|
|
40212
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
40213
|
+
|
|
39745
40214
|
// ../peach-box/src/planeProtocol.ts
|
|
40215
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
39746
40216
|
var PLANE_FLAG_READ_ONLY = 1;
|
|
39747
40217
|
var PLANE_FLAG_BINARY = 2;
|
|
39748
40218
|
function encodeBase64(bytes) {
|
|
@@ -39818,7 +40288,20 @@ async function dispatchPlaneCommand(plane, type, msg, mutationOptions) {
|
|
|
39818
40288
|
}
|
|
39819
40289
|
}
|
|
39820
40290
|
|
|
40291
|
+
// ../peach-box/src/planeClient.ts
|
|
40292
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
40293
|
+
|
|
40294
|
+
// ../peach-box/src/projectFileCache.ts
|
|
40295
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
40296
|
+
|
|
40297
|
+
// ../peach-box/src/projectFilePlaneRpc.ts
|
|
40298
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
40299
|
+
|
|
40300
|
+
// ../peach-box/src/planeTransport.browser.ts
|
|
40301
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
40302
|
+
|
|
39821
40303
|
// cli/commands/box/checkout-plane.ts
|
|
40304
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
39822
40305
|
var import_node_child_process16 = require("node:child_process");
|
|
39823
40306
|
var import_node_fs37 = __toESM(require("node:fs"), 1);
|
|
39824
40307
|
var import_node_path37 = __toESM(require("node:path"), 1);
|
|
@@ -40111,16 +40594,19 @@ var PlaneHost = class {
|
|
|
40111
40594
|
};
|
|
40112
40595
|
|
|
40113
40596
|
// src/host/replacement-module-handler.ts
|
|
40597
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
40114
40598
|
var import_node_fs39 = require("node:fs");
|
|
40115
40599
|
var import_promises7 = __toESM(require("node:fs/promises"), 1);
|
|
40116
40600
|
var import_node_path39 = __toESM(require("node:path"), 1);
|
|
40117
40601
|
|
|
40118
40602
|
// ../contrast-bundler/src/replacementModule.ts
|
|
40603
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
40119
40604
|
var import_dist = require("sucrase/dist/index.js");
|
|
40120
40605
|
var import_parser3 = require("sucrase/dist/parser/index.js");
|
|
40121
40606
|
var import_types = require("sucrase/dist/parser/tokenizer/types.js");
|
|
40122
40607
|
|
|
40123
40608
|
// ../contrast-bundler/src/posixPath.ts
|
|
40609
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
40124
40610
|
var sep = "/";
|
|
40125
40611
|
var delimiter = ":";
|
|
40126
40612
|
function isAbsolute(p) {
|
|
@@ -40577,6 +41063,7 @@ async function handleReplacementModuleRequest(req, res, options = {}) {
|
|
|
40577
41063
|
}
|
|
40578
41064
|
|
|
40579
41065
|
// src/host/server-scan-handler.ts
|
|
41066
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
40580
41067
|
init_backend_origin();
|
|
40581
41068
|
var SCAN_FRESH_MS = 2e3;
|
|
40582
41069
|
function createServerScanHandler(options) {
|
|
@@ -40641,9 +41128,15 @@ function createServerScanHandler(options) {
|
|
|
40641
41128
|
}
|
|
40642
41129
|
|
|
40643
41130
|
// src/host/staged-host-files.ts
|
|
41131
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
40644
41132
|
var import_node_fs40 = __toESM(require("node:fs"), 1);
|
|
40645
41133
|
var import_node_path40 = __toESM(require("node:path"), 1);
|
|
40646
41134
|
init_home_paths();
|
|
41135
|
+
|
|
41136
|
+
// src/launchMetadataContract.ts
|
|
41137
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
41138
|
+
|
|
41139
|
+
// src/host/staged-host-files.ts
|
|
40647
41140
|
var STAGED_PREFIX = "/__peach/staged/";
|
|
40648
41141
|
var STAGED_NAME = /^([a-f0-9]{64})(\.[a-z0-9]{1,10})?$/;
|
|
40649
41142
|
var STAGED_RETENTION_MS = 30 * 24 * 60 * 60 * 1e3;
|
|
@@ -40699,6 +41192,7 @@ async function handleStagedHostFileRequest(req, res) {
|
|
|
40699
41192
|
}
|
|
40700
41193
|
|
|
40701
41194
|
// src/host/websocket-proxy.ts
|
|
41195
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
40702
41196
|
var import_crypto = require("crypto");
|
|
40703
41197
|
var import_http3 = require("http");
|
|
40704
41198
|
var import_https2 = require("https");
|