peachsim 0.1.1667 → 0.1.1673

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.
Files changed (178) hide show
  1. package/README.md +1 -1
  2. package/cli/bridge-flow-runner.ts +4 -1
  3. package/cli/commands/coverage-swift.ts +291 -0
  4. package/cli/commands/coverage.ts +168 -24
  5. package/cli/commands/diagnose.ts +1 -19
  6. package/cli/commands/react.ts +3 -18
  7. package/cli/commands/screenshot.ts +1 -1
  8. package/cli/commands/screenshots-capture.ts +1 -1
  9. package/cli/drivers/playwright-provisioning.ts +1 -4
  10. package/cli/drivers/playwright.ts +15 -1
  11. package/cli/scene-video.ts +1 -1
  12. package/cli/ui.ts +20 -0
  13. package/cli/ws-bridge.ts +7 -36
  14. package/detox/frame-identity.cjs +21 -0
  15. package/detox/frame-identity.d.cts +6 -0
  16. package/detox/index.ts +39 -33
  17. package/detox/jest-environment.cjs +4 -1
  18. package/detox/jest-setup-after-env.cjs +0 -4
  19. package/detox/navigation-lifecycle.ts +2 -2
  20. package/detox/proof-observer.ts +126 -0
  21. package/dist-lib/agent-daemon-client.cjs +29 -1
  22. package/dist-lib/agent-events.cjs +1 -1
  23. package/dist-lib/attached-projects.cjs +10 -1
  24. package/dist-lib/auth/shared-session.cjs +1 -1
  25. package/dist-lib/backend-origin.cjs +1 -1
  26. package/dist-lib/beta.cjs +1 -1
  27. package/dist-lib/beta.mjs +1 -1
  28. package/dist-lib/bridge-constants.cjs +1 -1
  29. package/dist-lib/bridge-contract-input.cjs +1 -1
  30. package/dist-lib/bridge-contract-input.mjs +1 -1
  31. package/dist-lib/bridge-contract.cjs +1 -1
  32. package/dist-lib/bridge-contract.mjs +1 -1
  33. package/dist-lib/bundle-channel.cjs +530 -154
  34. package/dist-lib/capture-contract.cjs +1 -1
  35. package/dist-lib/capture-contract.mjs +1 -1
  36. package/dist-lib/cloud-contract.cjs +1 -1
  37. package/dist-lib/cloud-contract.mjs +1 -1
  38. package/dist-lib/cloud-test-args.cjs +1 -1
  39. package/dist-lib/cloud-test-args.mjs +1 -1
  40. package/dist-lib/cloud.cjs +1 -1
  41. package/dist-lib/cloud.mjs +1 -1
  42. package/dist-lib/config.cjs +1 -1
  43. package/dist-lib/config.mjs +1 -1
  44. package/dist-lib/detox/index.cjs +5074 -7353
  45. package/dist-lib/detox/jest-environment.cjs +4 -1
  46. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  47. package/dist-lib/expo-swift-bundle.cjs +578 -151
  48. package/dist-lib/expo-swift-metadata.cjs +1 -1
  49. package/dist-lib/expo-swift-metadata.mjs +1 -1
  50. package/dist-lib/home-paths.cjs +1 -1
  51. package/dist-lib/host/bridge-host.cjs +660 -192
  52. package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
  53. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  54. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  55. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  56. package/dist-lib/host/websocket-proxy.cjs +1 -1
  57. package/dist-lib/index.cjs +206 -6
  58. package/dist-lib/jump-to-source-babel.cjs +1 -1
  59. package/dist-lib/jump-to-source-native.cjs +1 -1
  60. package/dist-lib/kotlin-host.cjs +1 -1
  61. package/dist-lib/menu.cjs +1 -1
  62. package/dist-lib/menu.mjs +1 -1
  63. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  64. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  65. package/dist-lib/metro-production-bundle.cjs +10 -1
  66. package/dist-lib/metro-production-bundle.mjs +12 -1
  67. package/dist-lib/metro.cjs +155 -5
  68. package/dist-lib/native-app-identity-project.cjs +43 -5
  69. package/dist-lib/native-app-identity-project.mjs +43 -5
  70. package/dist-lib/native-app-identity.cjs +1 -1
  71. package/dist-lib/native-app-identity.mjs +1 -1
  72. package/dist-lib/native-firebase-metadata.cjs +1 -1
  73. package/dist-lib/native-firebase-metadata.mjs +1 -1
  74. package/dist-lib/plist.cjs +1 -1
  75. package/dist-lib/plist.mjs +1 -1
  76. package/dist-lib/profiles.cjs +21 -1
  77. package/dist-lib/public-brand.cjs +1 -1
  78. package/dist-lib/public-origins-lib-esm.json +73 -27
  79. package/dist-lib/public-origins-lib-static.json +1 -1
  80. package/dist-lib/public-origins-lib.json +563 -183
  81. package/dist-lib/react-native-host-modules.cjs +1 -1
  82. package/dist-lib/react-native-host-modules.mjs +1 -1
  83. package/dist-lib/reap-browser.cjs +964 -0
  84. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  85. package/dist-lib/sdk.cjs +1 -1
  86. package/dist-lib/sdk.mjs +1 -1
  87. package/dist-lib/skills.cjs +963 -521
  88. package/dist-lib/swift-compile.cjs +276 -86
  89. package/dist-lib/swift-compile.mjs +276 -86
  90. package/dist-lib/swift-package.cjs +34 -4
  91. package/dist-lib/swift-package.mjs +33 -4
  92. package/dist-lib/swift-submit.cjs +2 -2
  93. package/dist-lib/swift-submit.mjs +2 -2
  94. package/dist-lib/swift-toolchain.cjs +25 -44
  95. package/dist-lib/swift.cjs +1 -1
  96. package/dist-lib/vite-swift.cjs +579 -113
  97. package/dist-lib/vite.cjs +61 -2
  98. package/dist-lib/worklet-executable.cjs +1 -1
  99. package/dist-lib/worklet-executable.mjs +1 -1
  100. package/dist-types/packages/peach-engine/src/engine/clipboardContract.d.ts +7 -0
  101. package/dist-types/packages/peach-engine/src/engine/glass-material.d.ts +1 -1
  102. package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +2 -0
  103. package/dist-types/packages/peach-engine/src/engine/inspect-outline.d.ts +2 -1
  104. package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +1 -0
  105. package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +3 -1
  106. package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +7 -0
  107. package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime-kind.d.ts +24 -0
  108. package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +4 -2
  109. package/dist-types/packages/peach-engine/src/settings/devices.d.ts +1 -0
  110. package/dist-types/packages/peach-globals/src/clipboardBridgeContract.d.ts +18 -0
  111. package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
  112. package/dist-types/packages/peach-globals/src/nodeContract.d.ts +1 -0
  113. package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
  114. package/package.json +1 -1
  115. package/runtime-companion.json +1 -1
  116. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h +2 -0
  117. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +36 -0
  118. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStore.h +439 -0
  119. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStoreCopySpecific.h +216 -0
  120. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStoreKey.h +267 -0
  121. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetwork.h +204 -0
  122. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkConfiguration.h +1393 -0
  123. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkConnection.h +568 -0
  124. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkReachability.h +369 -0
  125. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCPreferences.h +473 -0
  126. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCPreferencesPath.h +179 -0
  127. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCPreferencesSetSpecific.h +95 -0
  128. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCSchemaDefinitions.h +2395 -0
  129. package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SystemConfiguration.h +184 -0
  130. package/sdk/ios/usr/include/libkern/OSByteOrder.h +315 -0
  131. package/sdk/ios/usr/include/libkern/machine/OSByteOrder.h +147 -0
  132. package/src/bridge-contract.ts +42 -0
  133. package/src/chromium-admission.ts +196 -0
  134. package/src/host/bridge-host.ts +6 -43
  135. package/src/launch-deadline.ts +74 -0
  136. package/src/nitro-adapter.lock.json +3 -3
  137. package/src/profiles.ts +21 -0
  138. package/src/react-native-coverage/capability-reference-resolution.ts +402 -0
  139. package/src/react-native-coverage/capability-source-references.ts +1296 -0
  140. package/src/react-native-coverage/native-typescript-parser.ts +74 -0
  141. package/src/react-native-coverage/project-aliases.ts +207 -0
  142. package/src/react-native-coverage/verified-reach.ts +47 -0
  143. package/src/reap-browser.ts +1019 -0
  144. package/src/skills/builtin/a11y-review.ts +1 -1
  145. package/src/skills/builtin/perf-profile.ts +1 -1
  146. package/src/skills/builtin/screenshot-all.ts +1 -1
  147. package/src/skills/builtin/visual-diff.ts +1 -1
  148. package/src/swift-compile.ts +107 -56
  149. package/src/swift-coverage/indexdump.ts +80 -0
  150. package/src/swift-coverage/indexing.ts +147 -0
  151. package/src/swift-coverage/package.ts +230 -0
  152. package/src/swift-coverage/provenance.ts +47 -0
  153. package/src/swift-coverage/reader.ts +81 -0
  154. package/src/swift-coverage/source.ts +252 -0
  155. package/src/swift-coverage/types.ts +58 -0
  156. package/src/swift-coverage/xcode-assets.ts +175 -0
  157. package/src/swift-coverage/xcode-bridging.ts +160 -0
  158. package/src/swift-coverage/xcode-packages.ts +251 -0
  159. package/src/swift-coverage/xcode-strings.ts +78 -0
  160. package/src/swift-coverage/xcode.ts +656 -0
  161. package/src/swift-distribution.lock.json +8 -8
  162. package/src/swift-host.ts +21 -1
  163. package/src/swift-objc-import.ts +191 -27
  164. package/src/swift-objc-standin.ts +4 -2
  165. package/src/swift-package-manifest.ts +134 -13
  166. package/src/swift-package.ts +46 -4
  167. package/src/swift-submit.ts +2 -1
  168. package/src/swift-toolchain.ts +36 -61
  169. package/src/worker-system-chunks.ts +3 -10
  170. package/src/xcode-project.ts +5 -5
  171. package/detox/attempt-events.cjs +0 -914
  172. package/detox/attempt-events.d.cts +0 -113
  173. package/detox/motion-change.cjs +0 -524
  174. package/detox/motion-change.d.cts +0 -140
  175. package/detox/motion-leg-starts.cjs +0 -20
  176. package/detox/motion-leg-starts.d.cts +0 -8
  177. package/detox/proof-frame.cjs +0 -190
  178. package/detox/record-block-execution.cjs +0 -78
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1667 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1673 | (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: "f8112e72d9130f18700ad5452a0c7c15668e92fea21944e00893a85694924cb5", file: "node/cli-f8112e72d9130f18700ad5452a0c7c15668e92fea21944e00893a85694924cb5.cjs" };
10133
+ runtime_companion_default = { abi: 1, sha256: "64b30b73101e38ea8d4aaa3e07f22bdedd2736a7d1f0f21f9229f2f4daf45756", file: "node/cli-64b30b73101e38ea8d4aaa3e07f22bdedd2736a7d1f0f21f9229f2f4daf45756.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
- // ../../scripts/lib/chromium-admission.ts
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
- return directory ? ["--swift-sdks-path", import_node_path8.default.resolve(directory)] : [];
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
- scratch = dir;
15627
- if (process.platform === "linux") {
15628
- swiftHome = import_node_path8.default.join(root, "home");
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 swiftHome ? { ...base, TMPDIR: scratch, HOME: swiftHome } : { ...base, TMPDIR: scratch };
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
- const previous = symbols.get(symbol.identifier.precise);
16720
- if (previous && JSON.stringify(previous) !== JSON.stringify(symbol))
16721
- fail(symbol.identifier.precise, "ambiguous imported declaration");
16722
- symbols.set(symbol.identifier.precise, symbol);
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 symbol = symbols.get(`c:objc(cs)${nativeName}`);
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
- for (const symbol of symbols.values()) {
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
- if (member.variadic === true)
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|NSConsumesSelf)Attr$/.test(
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 symbols.values()) {
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", "import PeachObjC"] : [],
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,11 +17435,12 @@ 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 = "3";
17443
+ var OBJC_IMPORT_VERSION = "4";
17204
17444
  var NATIVE_GRAPH_SDK_VERSION = "27.1";
17205
17445
  var NATIVE_GRAPH_INPUTS = {
17206
17446
  sdk: NATIVE_GRAPH_SDK_VERSION,
@@ -17480,7 +17720,9 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original) {
17480
17720
  "-module-cache-path",
17481
17721
  import_node_path11.default.join(cacheDir5, "ios-module-cache"),
17482
17722
  "-minimum-access-level",
17483
- "public",
17723
+ // symbol graphs hide public underscored names at the public threshold.
17724
+ // original clang headers remain the declaration boundary.
17725
+ original ? "internal" : "public",
17484
17726
  "-skip-synthesized-members",
17485
17727
  "-omit-extension-block-symbols",
17486
17728
  "-output-dir",
@@ -17869,6 +18111,7 @@ function validateObjcPeerStartupLibraries(libraries) {
17869
18111
  }
17870
18112
 
17871
18113
  // src/swift-package.ts
18114
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
17872
18115
  function swiftImplicitResourcePaths(paths) {
17873
18116
  return paths.filter(
17874
18117
  (file) => !file.endsWith(".swift") && (/\.(xcassets|xcstrings|nib|xib|storyboard|xcdatamodeld|xcdatamodel|xcmappingmodel|metal|xcprivacy)(?:\/|$)/.test(
@@ -17985,6 +18228,32 @@ function swiftTargetModuleName(name3) {
17985
18228
  function swiftPackageIdentity(url) {
17986
18229
  return (url.split("/").pop() ?? url).replace(/\.git$/, "").toLowerCase();
17987
18230
  }
18231
+ function clangMacroSetting(macro) {
18232
+ const [name3, ...value] = macro.split("=");
18233
+ return value.length === 0 ? `.define(${JSON.stringify(name3)})` : `.define(${JSON.stringify(name3)}, to: ${JSON.stringify(value.join("="))})`;
18234
+ }
18235
+ function settingDefines(call, tool) {
18236
+ const defines = [];
18237
+ for (const open of call.matchAll(new RegExp(`\\b${tool}Settings\\s*:\\s*\\[`, "g"))) {
18238
+ let depth = 1;
18239
+ let index = open.index + open[0].length;
18240
+ const start = index;
18241
+ for (; index < call.length && depth > 0; index++) {
18242
+ const char = call[index];
18243
+ if (char === '"') {
18244
+ for (index++; index < call.length && call[index] !== '"'; index++)
18245
+ if (call[index] === "\\") index++;
18246
+ } else if (char === "[") depth++;
18247
+ else if (char === "]") depth--;
18248
+ }
18249
+ const body = call.slice(start, index - 1);
18250
+ for (const match of body.matchAll(
18251
+ /\.define\(\s*"([A-Za-z_][A-Za-z0-9_]*)"\s*(?:,\s*to:\s*"([^"]*)"\s*)?\)/g
18252
+ ))
18253
+ defines.push(match[2] === void 0 ? match[1] : `${match[1]}=${match[2]}`);
18254
+ }
18255
+ return defines;
18256
+ }
17988
18257
  function swiftManifestTargets(manifest, resourcePaths = []) {
17989
18258
  const implicitResources = swiftImplicitResourcePaths(resourcePaths);
17990
18259
  const targets = [];
@@ -18012,9 +18281,9 @@ function swiftManifestTargets(manifest, resourcePaths = []) {
18012
18281
  const cxxInterop = /\.interoperabilityMode\(\s*\.Cxx\s*\)/.test(
18013
18282
  call.replace(/"(?:\\.|[^"\\])*"/g, "")
18014
18283
  );
18015
- const defines = [
18016
- ...call.matchAll(/\.define\(\s*"([A-Za-z_][A-Za-z0-9_]*)"\s*\)/g)
18017
- ].map((match) => match[1]);
18284
+ const defines = settingDefines(call, "swift").map((define) => define.split("=")[0]);
18285
+ const cDefines = settingDefines(call, "c");
18286
+ const cxxDefines = settingDefines(call, "cxx");
18018
18287
  const linkedLibraries = [...call.matchAll(/\.linkedLibrary\(\s*"([^"]+)"\s*\)/g)].map(
18019
18288
  (match) => match[1]
18020
18289
  );
@@ -18057,6 +18326,8 @@ function swiftManifestTargets(manifest, resourcePaths = []) {
18057
18326
  mainActorIsolation,
18058
18327
  ...cxxInterop ? { cxxInterop: true } : {},
18059
18328
  ...defines.length === 0 ? {} : { defines },
18329
+ ...cDefines.length === 0 ? {} : { cDefines },
18330
+ ...cxxDefines.length === 0 ? {} : { cxxDefines },
18060
18331
  ...linkedLibraries.length === 0 ? {} : { linkedLibraries },
18061
18332
  resources,
18062
18333
  ...dependencies.length === 0 ? {} : { dependencies },
@@ -18194,6 +18465,7 @@ function swiftPackagePartition(manifest, resourcePaths = []) {
18194
18465
  }
18195
18466
 
18196
18467
  // src/swift-root-lock.ts
18468
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
18197
18469
  var import_node_child_process8 = require("node:child_process");
18198
18470
  var import_node_crypto8 = require("node:crypto");
18199
18471
  var import_node_fs12 = require("node:fs");
@@ -18386,6 +18658,12 @@ async function withSwiftRootLock(root, work, signal) {
18386
18658
  }
18387
18659
  }
18388
18660
 
18661
+ // src/swiftContract.ts
18662
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
18663
+
18664
+ // src/assetCatalogContract.ts
18665
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
18666
+
18389
18667
  // src/swiftContract.ts
18390
18668
  function isSwiftObjCPeerStartup(value) {
18391
18669
  return value !== null && typeof value === "object" && "registration" in value && isSwiftResourcePath(value.registration) && value.registration.endsWith(".swift") && Object.keys(value).length === 1;
@@ -18447,6 +18725,7 @@ function isSwiftMetalLibrarySources(value) {
18447
18725
  }
18448
18726
 
18449
18727
  // src/xcode-header-search.ts
18728
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
18450
18729
  var import_node_fs13 = __toESM(require("node:fs"), 1);
18451
18730
  var import_node_path13 = __toESM(require("node:path"), 1);
18452
18731
  function headerMap(entries) {
@@ -19021,7 +19300,7 @@ var EXECUTABLE_LINK_FLAGS = ` "-Xclang-linker", "-O0",
19021
19300
  `;
19022
19301
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
19023
19302
  var MULTI_MANIFEST_VERSION = 40;
19024
- var compilerSourceDigest = true ? "baf55512a114f4eec85d80685c9e0f04d08ac1ad34d8c18745c233b3d7827025" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
19303
+ var compilerSourceDigest = true ? "6ea8d8a06ae707693b5fbb43a21e9d705ee8a19779051d47b05c4bbaeb39fb6c" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
19025
19304
  function swiftArtifactHash(input, release, moduleRoot) {
19026
19305
  const hash2 = (0, import_node_crypto9.createHash)("sha256");
19027
19306
  hash2.update(`swift-compile
@@ -19138,6 +19417,7 @@ function emitSwiftPackageManifest(args) {
19138
19417
  const linkedNativeModules = [...args.native?.entries() ?? []].flatMap(
19139
19418
  ([name3, value]) => value.clang ? [name3] : []
19140
19419
  );
19420
+ const macroSettings = (values) => (values ?? []).map((value) => ` ${clangMacroSetting(value)},`).join("");
19141
19421
  const stanza = (target) => {
19142
19422
  if (target.systemLibrary)
19143
19423
  return ` .systemLibrary(name: ${JSON.stringify(target.name)}, path: ${JSON.stringify(target.path)}),`;
@@ -19214,10 +19494,15 @@ function emitSwiftPackageManifest(args) {
19214
19494
  .unsafeFlags(["-Xlinker", "--strip-all"], .when(configuration: .release)),
19215
19495
  ]` : librarySettings.length > 0 ? `,
19216
19496
  linkerSettings: [${librarySettings.join(", ")}]` : "";
19497
+ const cDefines = macroSettings(target.cDefines);
19498
+ const cxxDefines = macroSettings(target.cxxDefines);
19217
19499
  const nativeSettings = native?.clang ? [
19218
- `cSettings: [.unsafeFlags(${JSON.stringify([...args.objcExports?.flags ?? args.nativeFlags ?? [], ...native.clang.flags])})]`,
19219
- `cxxSettings: [${defines} .unsafeFlags(${JSON.stringify(["-fno-cxx-modules", ...args.objcExports?.flags ?? args.nativeFlags ?? [], ...native.clang.cxxFlags])})]`
19220
- ].join(", ") : `${args.objcExports ? `cSettings: [.unsafeFlags(${JSON.stringify(args.objcExports.flags)})], ` : ""}cxxSettings: [${defines} .unsafeFlags(["-fno-cxx-modules"])]`;
19500
+ `cSettings: [${cDefines} .unsafeFlags(${JSON.stringify([...args.objcExports?.flags ?? args.nativeFlags ?? [], ...native.clang.flags])})]`,
19501
+ `cxxSettings: [${cxxDefines} .unsafeFlags(${JSON.stringify(["-fno-cxx-modules", ...args.objcExports?.flags ?? args.nativeFlags ?? [], ...native.clang.cxxFlags])})]`
19502
+ ].join(", ") : [
19503
+ `cSettings: [${cDefines} .unsafeFlags(${JSON.stringify([...args.objcExports?.flags ?? args.nativeFlags ?? [], ...native?.flags ?? []])})]`,
19504
+ `cxxSettings: [${cxxDefines} .unsafeFlags(${JSON.stringify(["-fno-cxx-modules", ...args.objcExports?.flags ?? args.nativeFlags ?? [], ...native?.cxxFlags ?? []])})]`
19505
+ ].join(", ");
19221
19506
  return [
19222
19507
  ` ${kind}(`,
19223
19508
  ` name: "${target.name}",`,
@@ -19227,7 +19512,7 @@ function emitSwiftPackageManifest(args) {
19227
19512
  ...native?.clang ? [
19228
19513
  ` sources: ${JSON.stringify(native.clang.sources.map((source) => import_node_path14.default.posix.join(native.path, source)))},`,
19229
19514
  ` publicHeadersPath: ${JSON.stringify(import_node_path14.default.posix.dirname(native.clang.modulemap))},`
19230
- ] : [],
19515
+ ] : native?.flags ? [` sources: ${JSON.stringify(native.sources)},`] : [],
19231
19516
  // the native backend supplies dependency module maps without their
19232
19517
  // compiled modules. textual c++ includes keep those dependencies usable.
19233
19518
  ` ${clang ? nativeSettings : swiftSettings}${link}`,
@@ -19253,24 +19538,26 @@ function emitSwiftPackageManifest(args) {
19253
19538
  ' publicHeadersPath: "include",',
19254
19539
  ` cSettings: [.unsafeFlags(${JSON.stringify([...args.objcExports.flags.filter((flag) => flag !== "-fobjc-arc"), "-fno-objc-arc", "-Xclang", "-disable-objc-default-synthesize-properties"])})]),`
19255
19540
  ] : [],
19256
- ...[...args.native?.entries() ?? []].flatMap(
19257
- ([name3, native]) => native.late ? (native.groups ?? [
19541
+ ...[...args.native?.entries() ?? []].flatMap(([name3, native]) => {
19542
+ const late = native.late;
19543
+ const owner = targets.find((target) => target.name === name3);
19544
+ return late ? (native.groups ?? [
19258
19545
  {
19259
- name: native.late.name,
19546
+ name: late.name,
19260
19547
  sources: native.lateSources,
19261
19548
  flags: [],
19262
19549
  cxxFlags: []
19263
19550
  }
19264
19551
  ]).flatMap((group) => [
19265
19552
  ` .target(name: ${JSON.stringify(group.name)},`,
19266
- ` dependencies: ${JSON.stringify(args.native?.get(name3)?.mixed ? [] : [name3])},`,
19553
+ ` dependencies: ${JSON.stringify(native.mixed ? [] : [name3, ...late.producers])},`,
19267
19554
  ` path: ${JSON.stringify(native.clang ? "." : native.path)},`,
19268
19555
  ` sources: ${JSON.stringify(native.clang ? group.sources.map((source) => import_node_path14.default.posix.join(native.path, source)) : group.sources)},`,
19269
19556
  ` 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
- ),
19557
+ ` cSettings: [${macroSettings(owner?.cDefines)} .unsafeFlags(${JSON.stringify([...args.objcExports?.flags ?? args.nativeFlags ?? [], ...group.flags])})],`,
19558
+ ` cxxSettings: [${macroSettings(owner?.cxxDefines)} .unsafeFlags(${JSON.stringify(["-fno-cxx-modules", ...args.objcExports?.flags ?? args.nativeFlags ?? [], "-I", native.includeDirectory, "-I", args.headerDirectory, ...group.cxxFlags])})]),`
19559
+ ]) : [];
19560
+ }),
19274
19561
  args.cxxLanguageStandard ? ` ],
19275
19562
  cxxLanguageStandard: .${args.cxxLanguageStandard}` : " ]",
19276
19563
  ")",
@@ -23292,7 +23579,7 @@ function writeSwiftProject(layout, input, moduleRoot) {
23292
23579
  else files2.set(file, prior);
23293
23580
  }
23294
23581
  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) && entries.some(([file]) => /\.mm?$/.test(file)))) {
23582
+ if (entries.some(([file]) => /\.(?:c|cc|cpp|cxx|m|mm)$/.test(file)) && (swift || input.nativeTargets?.some((value) => value.name === target.name))) {
23296
23583
  if (!swift) {
23297
23584
  const unprepared = import_node_path14.default.join(
23298
23585
  layout.root,
@@ -23365,8 +23652,42 @@ function writeSwiftProject(layout, input, moduleRoot) {
23365
23652
  const entries = targetEntries(target);
23366
23653
  const units = entries.filter(([file]) => /\.(?:c|cc|cpp|cxx|m|mm)$/.test(file));
23367
23654
  if (units.length === 0) continue;
23655
+ const includes = `${prefix}include/`;
23656
+ const consumers = /* @__PURE__ */ new Map();
23657
+ const reverse = /* @__PURE__ */ new Map();
23658
+ for (const [file, contents] of entries) {
23659
+ const producers2 = /* @__PURE__ */ new Set();
23660
+ const source = contents.replace(/\/\*[\s\S]*?\*\//g, "");
23661
+ for (const match of source.matchAll(
23662
+ /^\s*#\s*(?:include|import)\s*[<"]([^>"]+)[>"]/gm
23663
+ )) {
23664
+ const include2 = match[1];
23665
+ const producer = /(?:^|\/)([^/]+)-Swift\.h$/.exec(include2)?.[1];
23666
+ if (producer && targets.some((value) => value.name === producer))
23667
+ producers2.add(producer);
23668
+ const local = [
23669
+ import_node_path14.default.posix.join(import_node_path14.default.posix.dirname(file), include2),
23670
+ `${includes}${include2}`
23671
+ ].find((candidate) => input.files[candidate] !== void 0);
23672
+ if (local) {
23673
+ reverse.set(local, [...reverse.get(local) ?? [], file]);
23674
+ }
23675
+ }
23676
+ consumers.set(file, producers2);
23677
+ }
23678
+ const queue = [...consumers.keys()].filter((file) => consumers.get(file).size > 0);
23679
+ for (let index = 0; index < queue.length; index++) {
23680
+ const file = queue[index];
23681
+ for (const parent of reverse.get(file) ?? []) {
23682
+ const inherited = consumers.get(parent);
23683
+ const before = inherited.size;
23684
+ for (const producer of consumers.get(file)) inherited.add(producer);
23685
+ if (before !== inherited.size) queue.push(parent);
23686
+ }
23687
+ }
23688
+ const late = units.filter(([file]) => consumers.get(file).size > 0);
23368
23689
  const settings = input.nativeTargets?.find((value) => value.name === target.name);
23369
- if (entries.some(([file]) => file.endsWith(".swift")) || settings && units.some(([file]) => /\.mm?$/.test(file))) {
23690
+ if (settings || entries.some(([file]) => file.endsWith(".swift"))) {
23370
23691
  try {
23371
23692
  if (!settings)
23372
23693
  throw new Error(
@@ -23434,7 +23755,7 @@ function writeSwiftProject(layout, input, moduleRoot) {
23434
23755
  return relative2.split("/").some((part) => part.startsWith(".")) ? import_node_path14.default.posix.join(HIDDEN_UNITS, relative2.replaceAll(/(^|\/)\./g, "$1%2E")) : relative2;
23435
23756
  };
23436
23757
  const accessorFlags = accessor ? ["-include", accessorHeader] : [];
23437
- let nativeC = false;
23758
+ let nativeC = !roots2.length && !entries.some(([file]) => file.endsWith(".swift")) && !units.some(([file]) => /\.mm?$/.test(file));
23438
23759
  if (roots2.length) {
23439
23760
  const sourceHeaders = import_node_path14.default.join(
23440
23761
  layout.root,
@@ -23533,7 +23854,13 @@ export *
23533
23854
  )
23534
23855
  ];
23535
23856
  const cxx = /\.(?:cc|cpp|cxx|mm)$/.test(file);
23536
- const identity = (0, import_node_crypto9.createHash)("sha256").update(JSON.stringify([cxx, perFile])).digest("hex").slice(0, 12);
23857
+ const identity = (0, import_node_crypto9.createHash)("sha256").update(
23858
+ JSON.stringify([
23859
+ cxx,
23860
+ perFile,
23861
+ ...nativeC && !roots2.length ? [(consumers.get(file)?.size ?? 0) > 0] : []
23862
+ ])
23863
+ ).digest("hex").slice(0, 12);
23537
23864
  const group = groups.get(identity) ?? {
23538
23865
  name: `${target.name}${nativeC ? "Native" : "Swift"}Implementation_${identity}`,
23539
23866
  sources: [],
@@ -23568,6 +23895,31 @@ export *
23568
23895
  accessor.body
23569
23896
  );
23570
23897
  }
23898
+ if (nativeC && !roots2.length) {
23899
+ const lateSources = new Set(late.map(([file]) => unitSource(file)));
23900
+ const owner = [...groups.values()].find(
23901
+ (group) => group.sources.every((source) => !lateSources.has(source))
23902
+ );
23903
+ const implementations = [...groups.values()].filter((group) => group !== owner);
23904
+ native.set(target.name, {
23905
+ path: target.path,
23906
+ includeDirectory: include2,
23907
+ sources: owner?.sources ?? [],
23908
+ lateSources: implementations.flatMap((group) => group.sources),
23909
+ flags: owner?.flags ?? flags,
23910
+ cxxFlags: owner?.cxxFlags ?? flags,
23911
+ ...implementations.length ? {
23912
+ groups: implementations,
23913
+ late: {
23914
+ name: `${target.name}NativeImplementation`,
23915
+ producers: [
23916
+ ...new Set(late.flatMap(([file]) => [...consumers.get(file)]))
23917
+ ].sort()
23918
+ }
23919
+ } : {}
23920
+ });
23921
+ continue;
23922
+ }
23571
23923
  if (nativeC) {
23572
23924
  const modulemaps = Object.entries(settings.productHeaders).filter(
23573
23925
  ([product2]) => product2.endsWith("/Modules/module.modulemap")
@@ -23638,40 +23990,6 @@ export *
23638
23990
  }
23639
23991
  continue;
23640
23992
  }
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
23993
  native.set(target.name, {
23676
23994
  path: target.path,
23677
23995
  includeDirectory: import_node_path14.default.join(layout.root, includes),
@@ -24587,6 +24905,7 @@ function compileSwiftProjectUnit(input, options) {
24587
24905
  }
24588
24906
 
24589
24907
  // src/xcode-project.ts
24908
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
24590
24909
  var import_node_child_process10 = require("node:child_process");
24591
24910
  var import_node_crypto10 = require("node:crypto");
24592
24911
  var import_node_fs15 = __toESM(require("node:fs"), 1);
@@ -24594,6 +24913,7 @@ var import_node_path16 = __toESM(require("node:path"), 1);
24594
24913
  var import_plist = __toESM(require("plist"), 1);
24595
24914
 
24596
24915
  // src/xcode-json-project.ts
24916
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
24597
24917
  var import_node_path15 = __toESM(require("node:path"), 1);
24598
24918
  var import_json5 = __toESM(require_lib(), 1);
24599
24919
  var isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
@@ -24926,7 +25246,11 @@ function isJsonObject(value) {
24926
25246
  return typeof value === "object" && value !== null && !Array.isArray(value);
24927
25247
  }
24928
25248
 
25249
+ // src/xcode-target-members.ts
25250
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
25251
+
24929
25252
  // src/openstep-plist.ts
25253
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
24930
25254
  var isDict = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
24931
25255
  var str = (value) => typeof value === "string" ? value : void 0;
24932
25256
  var list = (value) => Array.isArray(value) ? value.filter((item) => typeof item === "string") : [];
@@ -25275,10 +25599,10 @@ function loadProject(xcodeproj) {
25275
25599
  const projectFile = xcodeProjectFile(xcodeproj);
25276
25600
  if (!projectFile)
25277
25601
  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
25602
  const source = import_node_fs15.default.readFileSync(projectFile, "utf8");
25603
+ const digest = (0, import_node_crypto10.createHash)("sha256").update(source).digest("hex");
25604
+ const cached3 = loaded.get(projectFile);
25605
+ if (cached3?.digest === digest) return cached3.project;
25282
25606
  const root = projectFile.endsWith(".xcproj") ? readXcodeJsonProject(xcodeproj, source) : parseOpenStepPlist(source);
25283
25607
  if (!isDict(root) || !isDict(root.objects)) {
25284
25608
  throw new Error(`${projectFile} has no objects table`);
@@ -25305,7 +25629,7 @@ function loadProject(xcodeproj) {
25305
25629
  object: object2,
25306
25630
  resolvePath
25307
25631
  };
25308
- loaded.set(projectFile, { mtimeMs, project: result });
25632
+ loaded.set(projectFile, { digest, project: result });
25309
25633
  return result;
25310
25634
  }
25311
25635
  function defaultConfiguration(project) {
@@ -26600,6 +26924,7 @@ public func ${register}() -> RCTModuleHost.Registration {
26600
26924
  }
26601
26925
 
26602
26926
  // src/swift-binary-modules.ts
26927
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
26603
26928
  var import_node_crypto11 = require("node:crypto");
26604
26929
  var import_node_fs17 = __toESM(require("node:fs"), 1);
26605
26930
  var import_node_path18 = __toESM(require("node:path"), 1);
@@ -26682,6 +27007,7 @@ async function swiftBinaryModules(binary2) {
26682
27007
  }
26683
27008
 
26684
27009
  // src/swift-distribution.ts
27010
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
26685
27011
  var import_node_fs18 = __toESM(require("node:fs"), 1);
26686
27012
  var import_node_os6 = __toESM(require("node:os"), 1);
26687
27013
  var import_node_path19 = __toESM(require("node:path"), 1);
@@ -26690,12 +27016,12 @@ init_home_paths();
26690
27016
 
26691
27017
  // src/swift-distribution.lock.json
26692
27018
  var swift_distribution_lock_default = {
26693
- id: "ca4dfda0ca14bc49",
27019
+ id: "433f607a19978269",
26694
27020
  release: "swift-6.4.0-RELEASE-custom-0d775d32d7c74eae",
26695
27021
  wasmSdkId: "swift-6.4.0-RELEASE_wasm-peach-f02bd198",
26696
27022
  wasmSdkUrl: "https://r2.sootsim.com/swift-wasm-sdk/swift-6.4.0-RELEASE_wasm-peach-f02bd198.artifactbundle.tar.gz",
26697
27023
  wasmSdkChecksum: "1e19ea768fd4e821aae34b8966c4ddcee45615c4b3cf018979b061aee2fb5504",
26698
- source: "33e8641403dd73a7ce0ca902007e3a36407e1f0b",
27024
+ source: "f52d21b43f5cba9bd52f1665697284e46d16c0d9",
26699
27025
  targets: [
26700
27026
  "ImagePlayground",
26701
27027
  "QuickLookThumbnailing",
@@ -26884,16 +27210,16 @@ var swift_distribution_lock_default = {
26884
27210
  },
26885
27211
  hosts: {
26886
27212
  "darwin-arm64": {
26887
- sha256: "8679052c4c2b21ad748a8db40cdbc0c91ab14a29fc06bbed777efb57030c01fa",
26888
- size: 70963039
27213
+ sha256: "0b814aa2ced56e4452c82227c4251036346015ba6445e742070ee221c53fc575",
27214
+ size: 71080069
26889
27215
  },
26890
27216
  "linux-x64": {
26891
- sha256: "a1719d844e2f45e8c9a2ccb9dbe7857978918639a3933c225a328d84cae235cf",
26892
- size: 70968746
27217
+ sha256: "62e67740951c7972fde15bc074fe8838f308432a8521e93691035e7fc105b716",
27218
+ size: 71085950
26893
27219
  },
26894
27220
  "linux-arm64": {
26895
- sha256: "3da8f2c920e65c633b5310c778b4a5c54b0f5f8278d58fd109f3db4310794c04",
26896
- size: 70967077
27221
+ sha256: "f900ab5b6a4823966cebe291c91710e6323185df971c667c25ddcc1427935b52",
27222
+ size: 71084016
26897
27223
  }
26898
27224
  }
26899
27225
  };
@@ -27073,11 +27399,13 @@ function swiftModuleToolchain(root) {
27073
27399
  }
27074
27400
 
27075
27401
  // src/swift-host.ts
27402
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
27076
27403
  var import_node_crypto15 = require("node:crypto");
27077
27404
  var import_node_fs26 = __toESM(require("node:fs"), 1);
27078
27405
  var import_node_path26 = __toESM(require("node:path"), 1);
27079
27406
 
27080
27407
  // ../sootsim-swift/src/bundleAssets.ts
27408
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
27081
27409
  var import_svgpath = __toESM(require("svgpath"), 1);
27082
27410
  var RASTER_EXTENSIONS = /* @__PURE__ */ new Set([
27083
27411
  ".avif",
@@ -27379,6 +27707,7 @@ function enumerateBundleResources(paths) {
27379
27707
  }
27380
27708
 
27381
27709
  // ../sootsim-swift/src/stringCatalog.ts
27710
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
27382
27711
  function isRecord2(value) {
27383
27712
  return value !== null && typeof value === "object" && !Array.isArray(value);
27384
27713
  }
@@ -27846,28 +28175,45 @@ var ios_sdk_frameworks_default = {
27846
28175
  ]
27847
28176
  };
27848
28177
 
28178
+ // src/native-app-identity-project.ts
28179
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
28180
+
28181
+ // src/android-app-identity.ts
28182
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
28183
+
28184
+ // src/android-string-value.ts
28185
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
28186
+
28187
+ // src/android-xml.ts
28188
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
28189
+
27849
28190
  // src/native-app-identity-project.ts
27850
28191
  init_is_record();
27851
28192
 
27852
28193
  // src/native-app-identity.ts
28194
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
27853
28195
  init_bundleGlobalFooter();
27854
28196
  init_is_record();
27855
28197
 
27856
28198
  // src/nativeAppIconContract.ts
28199
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
27857
28200
  init_is_record();
27858
28201
 
27859
28202
  // src/plist.ts
28203
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
27860
28204
  var import_plist2 = __toESM(require("plist"), 1);
27861
28205
  function parsePlistSource(source) {
27862
28206
  return import_plist2.default.parse(source);
27863
28207
  }
27864
28208
 
27865
28209
  // src/swift-objc-compile.ts
28210
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
27866
28211
  var import_node_fs23 = __toESM(require("node:fs"), 1);
27867
28212
  var import_node_path24 = __toESM(require("node:path"), 1);
27868
28213
  init_home_paths();
27869
28214
 
27870
28215
  // src/swift-package-manifest.ts
28216
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
27871
28217
  var import_node_child_process11 = require("node:child_process");
27872
28218
  var import_node_crypto12 = require("node:crypto");
27873
28219
  var import_node_fs20 = __toESM(require("node:fs"), 1);
@@ -27887,25 +28233,37 @@ var record2 = (value) => value && typeof value === "object" && !Array.isArray(va
27887
28233
  var array = (value) => Array.isArray(value) ? value : [];
27888
28234
  var string2 = (value) => typeof value === "string" ? value : void 0;
27889
28235
  function swiftCommand() {
27890
- return process.platform === "darwin" ? { file: "xcrun", args: ["swift"] } : { file: import_node_path21.default.join(swiftToolchainBin(swift_distribution_lock_default.release), "swift"), args: [] };
28236
+ return process.platform === "darwin" ? (
28237
+ // runner-toolchain-platform: darwin
28238
+ (0, import_node_child_process11.execFileSync)("xcrun", ["--find", "swift"], { encoding: "utf8" }).trim()
28239
+ ) : import_node_path21.default.join(swiftToolchainBin(swift_distribution_lock_default.release), "swift");
27891
28240
  }
27892
28241
  var cacheDir3 = import_node_path21.default.join(cacheDir(), "swift-manifests");
27893
28242
  var evaluated = /* @__PURE__ */ new Map();
27894
28243
  function dump(dir) {
27895
28244
  const manifests = import_node_fs20.default.readdirSync(dir).filter((name3) => /^Package(@swift-[\d.]+)?\.swift$/.test(name3)).sort();
27896
28245
  const command = swiftCommand();
27897
- const key2 = (0, import_node_crypto12.createHash)("sha256").update(JSON.stringify([command, import_node_path21.default.resolve(dir)])).update(
28246
+ const toolchain = {
28247
+ path: command,
28248
+ realpath: import_node_fs20.default.realpathSync(command),
28249
+ sha256: (0, import_node_crypto12.createHash)("sha256").update(import_node_fs20.default.readFileSync(command)).digest("hex"),
28250
+ version: (0, import_node_child_process11.execFileSync)(command, ["--version"], {
28251
+ encoding: "utf8",
28252
+ env: swiftEnvironment(),
28253
+ stdio: ["ignore", "pipe", "pipe"]
28254
+ }).trim()
28255
+ };
28256
+ const key2 = (0, import_node_crypto12.createHash)("sha256").update(JSON.stringify([toolchain, import_node_path21.default.resolve(dir)])).update(
27898
28257
  manifests.map((name3) => `${name3}\0${import_node_fs20.default.readFileSync(import_node_path21.default.join(dir, name3), "utf8")}`).join("\0")
27899
28258
  ).digest("hex").slice(0, 32);
27900
28259
  const cached3 = import_node_path21.default.join(cacheDir3, `${key2}.json`);
27901
28260
  if (import_node_fs20.default.existsSync(cached3))
27902
- return { key: key2, raw: record2(JSON.parse(import_node_fs20.default.readFileSync(cached3, "utf8"))) };
28261
+ return { key: key2, toolchain, raw: record2(JSON.parse(import_node_fs20.default.readFileSync(cached3, "utf8"))) };
27903
28262
  let output;
27904
28263
  try {
27905
28264
  output = (0, import_node_child_process11.execFileSync)(
27906
- command.file,
28265
+ command,
27907
28266
  [
27908
- ...command.args,
27909
28267
  "package",
27910
28268
  ...swiftPackageCacheOptions(),
27911
28269
  "--package-path",
@@ -27930,7 +28288,7 @@ function dump(dir) {
27930
28288
  }
27931
28289
  import_node_fs20.default.mkdirSync(cacheDir3, { recursive: true });
27932
28290
  import_node_fs20.default.writeFileSync(cached3, output);
27933
- return { key: key2, raw: record2(JSON.parse(output)) };
28291
+ return { key: key2, toolchain, raw: record2(JSON.parse(output)) };
27934
28292
  }
27935
28293
  function defaultTraits(manifest) {
27936
28294
  const traits = new Map(
@@ -27958,15 +28316,18 @@ function linksOnIOS(condition, traits) {
27958
28316
  }
27959
28317
  function swiftPackageManifest(dir) {
27960
28318
  dir = import_node_fs20.default.realpathSync(dir);
27961
- const { key: key2, raw: raw2 } = dump(dir);
28319
+ const { key: key2, raw: raw2, toolchain } = dump(dir);
27962
28320
  const known = evaluated.get(key2);
27963
28321
  if (known) return known;
27964
28322
  const traits = defaultTraits(raw2);
27965
28323
  const tools = Number(
27966
28324
  /^(\d+)/.exec(string2(record2(raw2.toolsVersion)._version) ?? "5")?.[1] ?? 5
27967
28325
  );
27968
- const declaredModes = array(raw2.swiftLanguageVersions).flatMap((mode) => {
27969
- const major = Number(/^(\d+)/.exec(string2(mode) ?? "")?.[1]);
28326
+ const declaredModeValues = array(raw2.swiftLanguageVersions).flatMap(
28327
+ (mode) => string2(mode) ?? []
28328
+ );
28329
+ const declaredModes = declaredModeValues.flatMap((mode) => {
28330
+ const major = Number(/^(\d+)/.exec(mode)?.[1]);
27970
28331
  return Number.isFinite(major) ? [major] : [];
27971
28332
  });
27972
28333
  const packageMode = Math.max(
@@ -28029,10 +28390,14 @@ function swiftPackageManifest(dir) {
28029
28390
  });
28030
28391
  }
28031
28392
  let languageMode = packageMode;
28393
+ let sourceLanguageMode = declaredModeValues.length ? declaredModeValues.reduce(
28394
+ (highest, mode) => Number(mode) > Number(highest) ? mode : highest
28395
+ ) : tools >= 6 ? "6" : tools >= 5 ? "5" : string2(record2(raw2.toolsVersion)._version) ?? "unknown";
28032
28396
  let mainActorIsolation = false;
28033
28397
  const defines = [];
28034
28398
  const libraries = [];
28035
28399
  const nativeSettings = [];
28400
+ const unsupportedSwiftSettings = [];
28036
28401
  for (const [tool, standard] of [
28037
28402
  ["c", string2(raw2.cLanguageStandard)],
28038
28403
  ["cxx", string2(raw2.cxxLanguageStandard)]
@@ -28043,6 +28408,16 @@ function swiftPackageManifest(dir) {
28043
28408
  for (const setting of array(target.settings)) {
28044
28409
  const { kind: rawKind, tool, condition } = record2(setting);
28045
28410
  const settingKind = record2(rawKind);
28411
+ if (tool === "swift") {
28412
+ const kinds = Object.keys(settingKind);
28413
+ const supported = kinds.length === 1 && (kinds[0] === "define" && /^[A-Za-z_][A-Za-z0-9_]*$/.test(
28414
+ string2(record2(settingKind.define)._0) ?? ""
28415
+ ) || kinds[0] === "swiftLanguageMode" && Object.keys(record2(condition)).length === 0 || kinds[0] === "defaultIsolation" && Object.keys(record2(condition)).length === 0 && ["MainActor", "nonisolated"].includes(
28416
+ string2(record2(settingKind.defaultIsolation)._0) ?? ""
28417
+ ));
28418
+ if (!supported)
28419
+ unsupportedSwiftSettings.push(JSON.stringify({ kind: rawKind, condition }));
28420
+ }
28046
28421
  if ((tool === "c" || tool === "cxx") && linksOnIOS(condition, traits)) {
28047
28422
  const config = string2(record2(condition).config);
28048
28423
  const header = string2(record2(settingKind.headerSearchPath)._0);
@@ -28062,6 +28437,7 @@ function swiftPackageManifest(dir) {
28062
28437
  });
28063
28438
  }
28064
28439
  const mode = string2(record2(settingKind.swiftLanguageMode)._0);
28440
+ if (tool === "swift" && mode) sourceLanguageMode = mode;
28065
28441
  if (mode)
28066
28442
  languageMode = Math.max(5, Number(/^(\d+)/.exec(mode)?.[1] ?? languageMode));
28067
28443
  if (string2(record2(settingKind.defaultIsolation)._0) === "MainActor")
@@ -28083,6 +28459,10 @@ function swiftPackageManifest(dir) {
28083
28459
  });
28084
28460
  }
28085
28461
  }
28462
+ if (!["5", "6"].includes(sourceLanguageMode))
28463
+ unsupportedSwiftSettings.push(
28464
+ `unsupported Swift language mode: ${sourceLanguageMode}`
28465
+ );
28086
28466
  targets.set(name4, {
28087
28467
  name: name4,
28088
28468
  type: kind,
@@ -28096,6 +28476,8 @@ function swiftPackageManifest(dir) {
28096
28476
  libraries,
28097
28477
  nativeSettings,
28098
28478
  declaresResources: array(target.resources).length > 0,
28479
+ hasPluginUsages: array(target.pluginUsages).length > 0,
28480
+ unsupportedSwiftSettings,
28099
28481
  publicHeadersPath: string2(target.publicHeadersPath) ?? "include",
28100
28482
  url: string2(target.url) ?? null,
28101
28483
  checksum: string2(target.checksum) ?? null
@@ -28103,7 +28485,7 @@ function swiftPackageManifest(dir) {
28103
28485
  }
28104
28486
  const name3 = string2(raw2.name);
28105
28487
  if (!name3) throw new Error(`swiftpm returned no package name for ${dir}`);
28106
- const manifest = { name: name3, dir, products, targets, packages };
28488
+ const manifest = { name: name3, dir, products, targets, packages, toolchain };
28107
28489
  evaluated.set(key2, manifest);
28108
28490
  return manifest;
28109
28491
  }
@@ -28132,6 +28514,7 @@ function swiftTargetFiles(manifest, target) {
28132
28514
  }
28133
28515
 
28134
28516
  // src/swift-packages.ts
28517
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
28135
28518
  var import_node_child_process12 = require("node:child_process");
28136
28519
  var import_node_crypto13 = require("node:crypto");
28137
28520
  var import_node_fs21 = __toESM(require("node:fs"), 1);
@@ -28413,6 +28796,7 @@ function resolveSwiftPackages(options) {
28413
28796
  }
28414
28797
 
28415
28798
  // src/swift-source-file.ts
28799
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
28416
28800
  var import_node_fs22 = __toESM(require("node:fs"), 1);
28417
28801
  var import_node_path23 = __toESM(require("node:path"), 1);
28418
28802
  function readPackageFile(root, file, maxBytes) {
@@ -28616,11 +29000,13 @@ function xcodeObjCInputs(app, binaries) {
28616
29000
  }
28617
29001
 
28618
29002
  // src/swift-standin-config.ts
29003
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
28619
29004
  var import_acorn = require("acorn");
28620
29005
  var import_sucrase = require("sucrase");
28621
29006
  init_is_record();
28622
29007
 
28623
29008
  // src/swift-standins.ts
29009
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
28624
29010
  var import_node_child_process13 = require("node:child_process");
28625
29011
  var import_node_crypto14 = require("node:crypto");
28626
29012
  var import_node_fs25 = __toESM(require("node:fs"), 1);
@@ -28629,6 +29015,7 @@ init_home_paths();
28629
29015
  init_is_record();
28630
29016
 
28631
29017
  // src/output-lock-stdio.ts
29018
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
28632
29019
  var import_node_fs24 = require("node:fs");
28633
29020
  function outputLockStdio(standard, env = process.env) {
28634
29021
  const stdio = [...standard];
@@ -28655,6 +29042,7 @@ function outputLockStdio(standard, env = process.env) {
28655
29042
  }
28656
29043
 
28657
29044
  // src/swift-standin-emit.ts
29045
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
28658
29046
  var STANDIN_EMIT_VERSION = "12";
28659
29047
  var STANDIN_IMPORTS = ["Foundation", "UIKit"];
28660
29048
  var TYPE_KINDS = /* @__PURE__ */ new Set([
@@ -30669,6 +31057,7 @@ function swiftStandins(binaries, toolchain, provided = /* @__PURE__ */ new Set()
30669
31057
  }
30670
31058
 
30671
31059
  // src/swift-submit.ts
31060
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
30672
31061
  init_is_record();
30673
31062
  var SWIFT_COMPILE_PATH = "/api/swift-compile";
30674
31063
  var MAX_SWIFT_COMPILE_FILES = 256;
@@ -30684,7 +31073,7 @@ var MAX_SWIFT_COMPILE_METAL_TOTAL_BYTES = 8 * 1024 * 1024;
30684
31073
  var MAX_SWIFT_COMPILE_IMAGES = 128;
30685
31074
  var MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
30686
31075
  var MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
30687
- var SWIFT_HOST_ABI = 47;
31076
+ var SWIFT_HOST_ABI = 48;
30688
31077
  var POLL_INTERVAL_MS = 1500;
30689
31078
  function httpSwiftCompileSubmit(context) {
30690
31079
  const { assetReadToken, authorization, endpoint } = context;
@@ -31032,8 +31421,14 @@ function xcodeLayout(root) {
31032
31421
  if (relative3 === ".." || relative3.startsWith(`..${import_node_path26.default.sep}`) || import_node_path26.default.isAbsolute(relative3))
31033
31422
  throw new Error(`swift input escapes the selected package: ${target.dir}`);
31034
31423
  const posix2 = relative3.split(import_node_path26.default.sep).join(import_node_path26.default.posix.sep);
31424
+ const packageMacros = [
31425
+ "SWIFT_PACKAGE=1",
31426
+ ...packageConfiguration === "debug" ? ["DEBUG=1"] : []
31427
+ ];
31035
31428
  targets.push({
31036
31429
  ...target,
31430
+ cDefines: packageMacros,
31431
+ cxxDefines: packageMacros,
31037
31432
  path: target.remote ? import_node_path26.default.posix.join(XCODE_PACKAGES_DIR, posix2) : posix2,
31038
31433
  exclude: [],
31039
31434
  defines: [
@@ -31190,6 +31585,12 @@ function xcodeManifest(layout) {
31190
31585
  ...target.mainActorIsolation ? [".defaultIsolation(MainActor.self)"] : [],
31191
31586
  ...(target.defines ?? []).map((name3) => `.define(${JSON.stringify(name3)})`)
31192
31587
  ].join(", ")}]`;
31588
+ const clangSettings = (target) => [
31589
+ ["cSettings", target.cDefines],
31590
+ ["cxxSettings", target.cxxDefines]
31591
+ ].map(
31592
+ ([label, macros]) => macros?.length ? `${label}: [${macros.map(clangMacroSetting).join(", ")}], ` : ""
31593
+ ).join("");
31193
31594
  const libraries = (target) => target.linkedLibraries?.length ? `, linkerSettings: [${target.linkedLibraries.map((name3) => `.linkedLibrary(${JSON.stringify(name3)})`).join(", ")}]` : "";
31194
31595
  return [
31195
31596
  "// swift-tools-version: 6.2",
@@ -31197,7 +31598,7 @@ function xcodeManifest(layout) {
31197
31598
  'let package = Package(name: "app", targets: [',
31198
31599
  ` .executableTarget(name: "${layout.app.moduleName}", path: "${XCODE_APP_DIR}", ${settings(layout.app)}),`,
31199
31600
  ...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)}),`
31601
+ (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
31602
  ),
31202
31603
  "])",
31203
31604
  ""
@@ -32771,6 +33172,7 @@ async function handleExpoSwiftRequest(req, res) {
32771
33172
  init_home_paths();
32772
33173
 
32773
33174
  // src/process-liveness.ts
33175
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
32774
33176
  var import_node_fs28 = require("node:fs");
32775
33177
  function isProcessRunning(pid) {
32776
33178
  if (process.platform === "linux") {
@@ -32795,6 +33197,7 @@ init_public_brand();
32795
33197
  init_runtime_assets();
32796
33198
 
32797
33199
  // src/runtime-delivery.ts
33200
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
32798
33201
  init_src();
32799
33202
  init_cli_runtime();
32800
33203
  init_home_paths();
@@ -32827,11 +33230,13 @@ var RNX_RUNTIME_PRODUCT = {
32827
33230
  var rnxRuntime = createRuntimeDelivery(RNX_RUNTIME_PRODUCT);
32828
33231
 
32829
33232
  // src/host/agent-host.ts
33233
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
32830
33234
  var import_node_crypto20 = require("node:crypto");
32831
33235
  var import_node_fs35 = __toESM(require("node:fs"), 1);
32832
33236
  var import_node_path35 = __toESM(require("node:path"), 1);
32833
33237
 
32834
33238
  // scripts/dev-server-scanner.ts
33239
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
32835
33240
  var import_child_process = require("child_process");
32836
33241
  var import_promises4 = require("fs/promises");
32837
33242
  var import_http = __toESM(require("http"), 1);
@@ -32842,11 +33247,13 @@ var import_node_path31 = require("node:path");
32842
33247
  init_backend_origin();
32843
33248
 
32844
33249
  // src/config.ts
33250
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
32845
33251
  init_version();
32846
33252
  init_bundleGlobalFooter();
32847
33253
  init_is_record();
32848
33254
 
32849
33255
  // src/nativeViewSourceContract.ts
33256
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
32850
33257
  init_is_record();
32851
33258
 
32852
33259
  // src/config.ts
@@ -32869,9 +33276,11 @@ function applyPeachConfigToUrl(url, config) {
32869
33276
  }
32870
33277
 
32871
33278
  // src/dev-bundle-resolution.ts
33279
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
32872
33280
  init_backend_origin();
32873
33281
 
32874
33282
  // src/expo-manifest-body.ts
33283
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
32875
33284
  function parseExpoManifestBody(body) {
32876
33285
  const opening = /^(--[^\r\n]+)\r?\n/.exec(body);
32877
33286
  if (!opening) return JSON.parse(body);
@@ -32884,6 +33293,7 @@ function parseExpoManifestBody(body) {
32884
33293
  }
32885
33294
 
32886
33295
  // src/native-dev-bundle-url.ts
33296
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
32887
33297
  init_backend_origin();
32888
33298
  function isAbsoluteHttpUrl(url) {
32889
33299
  return /^https?:\/\//i.test(url);
@@ -32987,6 +33397,7 @@ async function fetchDevManifest(baseUrl, pageOrigin) {
32987
33397
  }
32988
33398
 
32989
33399
  // src/kotlinDiscoveryContract.ts
33400
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
32990
33401
  var KOTLIN_DISCOVERY_PATH = "/__peach/kotlin-host";
32991
33402
  var KOTLIN_GUEST_PATH = "/__peach/kotlin-guest.js";
32992
33403
  function parseKotlinHostDiscovery(value) {
@@ -33001,6 +33412,7 @@ function parseKotlinHostDiscovery(value) {
33001
33412
  }
33002
33413
 
33003
33414
  // src/oneWidgetContract.ts
33415
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
33004
33416
  var HOME_WIDGET_FAMILIES = [
33005
33417
  "systemSmall",
33006
33418
  "systemMedium",
@@ -33084,6 +33496,7 @@ function configuredWidgetFromScan(value, bundleUrl) {
33084
33496
  }
33085
33497
 
33086
33498
  // src/settings-bundle.ts
33499
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
33087
33500
  var import_promises3 = require("node:fs/promises");
33088
33501
  var import_node_path29 = require("node:path");
33089
33502
  init_is_record();
@@ -33401,6 +33814,7 @@ async function readAppSettingsBundle(projectRoot) {
33401
33814
  }
33402
33815
 
33403
33816
  // src/swiftDiscoveryContract.ts
33817
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
33404
33818
  var SWIFT_DISCOVERY_PATH = "/__peach/swift-host";
33405
33819
  var SWIFT_GUEST_PATH = "/__peach/swift-guest.js";
33406
33820
  var SWIFT_ICON_PATH = "/__peach/swift-icon";
@@ -34525,6 +34939,7 @@ async function scanDevServers(opts = {}) {
34525
34939
  }
34526
34940
 
34527
34941
  // src/agent-sessions.ts
34942
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
34528
34943
  var import_node_child_process15 = require("node:child_process");
34529
34944
  var import_node_crypto19 = require("node:crypto");
34530
34945
  var import_node_fs34 = __toESM(require("node:fs"), 1);
@@ -34532,6 +34947,7 @@ var import_node_path34 = __toESM(require("node:path"), 1);
34532
34947
  var import_node_readline = __toESM(require("node:readline"), 1);
34533
34948
 
34534
34949
  // cli/self-invocation.ts
34950
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
34535
34951
  var import_node_fs32 = require("node:fs");
34536
34952
  var import_node_path32 = require("node:path");
34537
34953
  var import_node_url4 = require("node:url");
@@ -34569,6 +34985,7 @@ function rnxSelfInvocation() {
34569
34985
  init_standalone();
34570
34986
 
34571
34987
  // src/agent-events.ts
34988
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
34572
34989
  function isAgentEvent(value) {
34573
34990
  if (!value || typeof value !== "object") return false;
34574
34991
  const v = value;
@@ -34586,6 +35003,7 @@ function parseAgentEventLine(line) {
34586
35003
  }
34587
35004
 
34588
35005
  // src/agent-prompt.ts
35006
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
34589
35007
  var ENVELOPE_MARKER = "sootsim-agent-prompt-v1";
34590
35008
  function cleanPromptText(value) {
34591
35009
  return typeof value === "string" ? value.trim() : "";
@@ -34608,6 +35026,7 @@ function encodeAgentPromptEnvelope(input) {
34608
35026
  }
34609
35027
 
34610
35028
  // src/attached-projects.ts
35029
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
34611
35030
  var import_node_crypto18 = require("node:crypto");
34612
35031
  var import_node_fs33 = __toESM(require("node:fs"), 1);
34613
35032
  var import_node_path33 = __toESM(require("node:path"), 1);
@@ -35875,6 +36294,7 @@ function mapFrameworkToProjectFramework(fw) {
35875
36294
  }
35876
36295
 
35877
36296
  // src/host/fetch-proxy-handler.ts
36297
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
35878
36298
  var import_http2 = __toESM(require("http"), 1);
35879
36299
  var import_https = __toESM(require("https"), 1);
35880
36300
  var import_node_http2 = require("node:http2");
@@ -35883,14 +36303,17 @@ init_backend_origin();
35883
36303
  init_packageVersionsContract();
35884
36304
 
35885
36305
  // src/host/dev-server-package-versions.ts
36306
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
35886
36307
  var import_fs3 = __toESM(require("fs"), 1);
35887
36308
  var import_path3 = __toESM(require("path"), 1);
35888
36309
 
35889
36310
  // src/installed-package-versions.ts
36311
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
35890
36312
  var import_fs2 = __toESM(require("fs"), 1);
35891
36313
  var import_path2 = __toESM(require("path"), 1);
35892
36314
 
35893
36315
  // ../peach-compat/src/lazy-stub-patterns.ts
36316
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
35894
36317
  var LAZY_STUB_PATTERNS = [
35895
36318
  "@10play/tentap-editor",
35896
36319
  "@adobe/react-native-aepcore",
@@ -36094,7 +36517,11 @@ var LAZY_STUB_PATTERNS = [
36094
36517
  "voltra"
36095
36518
  ];
36096
36519
 
36520
+ // ../peach-compat/src/generated/native-package-names.ts
36521
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
36522
+
36097
36523
  // ../peach-compat/src/generated/light-native-package-names.ts
36524
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
36098
36525
  var LIGHT_NATIVE_PACKAGE_NAMES = [
36099
36526
  "@100mslive/react-native-hms",
36100
36527
  "@account-kit/react-native-signer",
@@ -37874,7 +38301,11 @@ var NATIVE_RUNTIME_PACKAGE_NAMES = [
37874
38301
  "react-native-sectioned-slider"
37875
38302
  ];
37876
38303
 
38304
+ // ../peach-compat/src/stub-manifest.ts
38305
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
38306
+
37877
38307
  // ../peach-compat/src/wrapper-real-packages.ts
38308
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
37878
38309
  var SOOTSIM_COMPAT_WRAPPER_REAL_PACKAGES = {
37879
38310
  expoUiConfirmationDialog: {
37880
38311
  specifier: "@peach-internal/expo-ui-confirmation-dialog",
@@ -38734,6 +39165,7 @@ var COMPAT_STUBS = {
38734
39165
  };
38735
39166
 
38736
39167
  // src/stub-pattern-matcher.ts
39168
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
38737
39169
  function extractPackageFromPath(modulePath) {
38738
39170
  let nodeModulesIndex = modulePath.lastIndexOf("/node_modules/");
38739
39171
  let prefixLength = "/node_modules/".length;
@@ -38923,6 +39355,7 @@ async function readInstalledNativePackageVersionsAsync(projectRoot) {
38923
39355
  }
38924
39356
 
38925
39357
  // src/metro-project-root.ts
39358
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
38926
39359
  init_backend_origin();
38927
39360
  async function resolveMetroProjectRoot(bundleUrl) {
38928
39361
  const origin = loopbackOriginOf(bundleUrl);
@@ -38978,6 +39411,7 @@ async function readDevServerPackageVersions(bundleUrl) {
38978
39411
  }
38979
39412
 
38980
39413
  // src/host/fetch-proxy-overrides.ts
39414
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
38981
39415
  var FETCH_PROXY_NATIVE_USER_AGENT_HEADER = "x-sootsim-native-user-agent";
38982
39416
  var FETCH_PROXY_FAILURE_PARAM = "peachFailure";
38983
39417
  var FETCH_PROXY_FAILURE_HEADER = "x-peach-upstream-failure";
@@ -39096,6 +39530,7 @@ function nodeRequestHeaderEntries(headers) {
39096
39530
  }
39097
39531
 
39098
39532
  // src/host/loopback-ports.ts
39533
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
39099
39534
  init_backend_origin();
39100
39535
  var LOOPBACK_PORTS = /* @__PURE__ */ new Map();
39101
39536
  for (const pair of process.env.PEACH_LOOPBACK_PORTS?.split(",").filter(Boolean) ?? []) {
@@ -39123,6 +39558,7 @@ function projectLoopbackUrl(value) {
39123
39558
  }
39124
39559
 
39125
39560
  // src/host/rolldown-bundle-forward.ts
39561
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
39126
39562
  var import_stream = require("stream");
39127
39563
  var import_promises5 = require("stream/promises");
39128
39564
  init_cli_runtime();
@@ -39516,6 +39952,7 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
39516
39952
  }
39517
39953
 
39518
39954
  // src/host/fetch-proxy-transport.ts
39955
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
39519
39956
  var import_node_crypto21 = require("node:crypto");
39520
39957
  var import_node_fs36 = require("node:fs");
39521
39958
  var import_node_http22 = require("node:http2");
@@ -39638,6 +40075,7 @@ async function startFetchProxyTransport(identityPath, hasLiveSims = () => false)
39638
40075
  }
39639
40076
 
39640
40077
  // src/host/lease-owner.ts
40078
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
39641
40079
  function isProcessGroupAlive(pgid) {
39642
40080
  if (!Number.isInteger(pgid) || pgid <= 1) return true;
39643
40081
  try {
@@ -39665,6 +40103,7 @@ function isProcessAlive2(pid) {
39665
40103
  }
39666
40104
 
39667
40105
  // src/host/open-url.ts
40106
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
39668
40107
  var import_child_process2 = require("child_process");
39669
40108
  function buildOpenUrlCommand(url, options = {}) {
39670
40109
  if (!url) throw new Error("openUrl requires a url");
@@ -39739,10 +40178,15 @@ async function openUrl(url, options = {}) {
39739
40178
  }
39740
40179
 
39741
40180
  // src/host/plane-host.ts
40181
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
39742
40182
  var import_node_fs38 = __toESM(require("node:fs"), 1);
39743
40183
  var import_node_path38 = __toESM(require("node:path"), 1);
39744
40184
 
40185
+ // ../peach-box/src/plane.ts
40186
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
40187
+
39745
40188
  // ../peach-box/src/planeProtocol.ts
40189
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
39746
40190
  var PLANE_FLAG_READ_ONLY = 1;
39747
40191
  var PLANE_FLAG_BINARY = 2;
39748
40192
  function encodeBase64(bytes) {
@@ -39818,7 +40262,20 @@ async function dispatchPlaneCommand(plane, type, msg, mutationOptions) {
39818
40262
  }
39819
40263
  }
39820
40264
 
40265
+ // ../peach-box/src/planeClient.ts
40266
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
40267
+
40268
+ // ../peach-box/src/projectFileCache.ts
40269
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
40270
+
40271
+ // ../peach-box/src/projectFilePlaneRpc.ts
40272
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
40273
+
40274
+ // ../peach-box/src/planeTransport.browser.ts
40275
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
40276
+
39821
40277
  // cli/commands/box/checkout-plane.ts
40278
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
39822
40279
  var import_node_child_process16 = require("node:child_process");
39823
40280
  var import_node_fs37 = __toESM(require("node:fs"), 1);
39824
40281
  var import_node_path37 = __toESM(require("node:path"), 1);
@@ -40111,16 +40568,19 @@ var PlaneHost = class {
40111
40568
  };
40112
40569
 
40113
40570
  // src/host/replacement-module-handler.ts
40571
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
40114
40572
  var import_node_fs39 = require("node:fs");
40115
40573
  var import_promises7 = __toESM(require("node:fs/promises"), 1);
40116
40574
  var import_node_path39 = __toESM(require("node:path"), 1);
40117
40575
 
40118
40576
  // ../contrast-bundler/src/replacementModule.ts
40577
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
40119
40578
  var import_dist = require("sucrase/dist/index.js");
40120
40579
  var import_parser3 = require("sucrase/dist/parser/index.js");
40121
40580
  var import_types = require("sucrase/dist/parser/tokenizer/types.js");
40122
40581
 
40123
40582
  // ../contrast-bundler/src/posixPath.ts
40583
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
40124
40584
  var sep = "/";
40125
40585
  var delimiter = ":";
40126
40586
  function isAbsolute(p) {
@@ -40577,6 +41037,7 @@ async function handleReplacementModuleRequest(req, res, options = {}) {
40577
41037
  }
40578
41038
 
40579
41039
  // src/host/server-scan-handler.ts
41040
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
40580
41041
  init_backend_origin();
40581
41042
  var SCAN_FRESH_MS = 2e3;
40582
41043
  function createServerScanHandler(options) {
@@ -40641,9 +41102,15 @@ function createServerScanHandler(options) {
40641
41102
  }
40642
41103
 
40643
41104
  // src/host/staged-host-files.ts
41105
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
40644
41106
  var import_node_fs40 = __toESM(require("node:fs"), 1);
40645
41107
  var import_node_path40 = __toESM(require("node:path"), 1);
40646
41108
  init_home_paths();
41109
+
41110
+ // src/launchMetadataContract.ts
41111
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
41112
+
41113
+ // src/host/staged-host-files.ts
40647
41114
  var STAGED_PREFIX = "/__peach/staged/";
40648
41115
  var STAGED_NAME = /^([a-f0-9]{64})(\.[a-z0-9]{1,10})?$/;
40649
41116
  var STAGED_RETENTION_MS = 30 * 24 * 60 * 60 * 1e3;
@@ -40699,6 +41166,7 @@ async function handleStagedHostFileRequest(req, res) {
40699
41166
  }
40700
41167
 
40701
41168
  // src/host/websocket-proxy.ts
41169
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
40702
41170
  var import_crypto = require("crypto");
40703
41171
  var import_http3 = require("http");
40704
41172
  var import_https2 = require("https");