peachsim 0.1.2247 → 0.1.2248

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 (94) hide show
  1. package/cli/bin.ts +5 -0
  2. package/cli/cloud-dispatch.ts +2 -0
  3. package/cli/commands/control.ts +2 -2
  4. package/cli/commands/coverage-swift.ts +3 -3
  5. package/cli/commands/shell-url.ts +6 -0
  6. package/cli/commands/skills.ts +6 -3
  7. package/dist-lib/agent-daemon-client.cjs +1 -29
  8. package/dist-lib/agent-events.cjs +1 -1
  9. package/dist-lib/attached-projects.cjs +1 -10
  10. package/dist-lib/auth/shared-session.cjs +1 -1
  11. package/dist-lib/backend-origin.cjs +1 -1
  12. package/dist-lib/beta.cjs +1 -1
  13. package/dist-lib/beta.mjs +1 -1
  14. package/dist-lib/bridge-constants.cjs +1 -1
  15. package/dist-lib/bridge-contract-input.cjs +1 -1
  16. package/dist-lib/bridge-contract-input.mjs +1 -1
  17. package/dist-lib/bridge-contract.cjs +1 -1
  18. package/dist-lib/bridge-contract.mjs +1 -1
  19. package/dist-lib/bundle-channel.cjs +4161 -4502
  20. package/dist-lib/capture-contract.cjs +1 -1
  21. package/dist-lib/capture-contract.mjs +1 -1
  22. package/dist-lib/cloud-contract.cjs +1 -1
  23. package/dist-lib/cloud-contract.mjs +1 -1
  24. package/dist-lib/cloud-test-args.cjs +1 -1
  25. package/dist-lib/cloud-test-args.mjs +1 -1
  26. package/dist-lib/cloud.cjs +1 -1
  27. package/dist-lib/cloud.mjs +1 -1
  28. package/dist-lib/config.cjs +1 -1
  29. package/dist-lib/config.mjs +1 -1
  30. package/dist-lib/detox/index.cjs +2 -309
  31. package/dist-lib/dev-bundle-resolution.cjs +1 -12
  32. package/dist-lib/expo-swift-bundle.cjs +3440 -3835
  33. package/dist-lib/expo-swift-metadata.cjs +1 -1
  34. package/dist-lib/expo-swift-metadata.mjs +1 -1
  35. package/dist-lib/home-paths.cjs +1 -1
  36. package/dist-lib/host/bridge-host.cjs +4237 -4653
  37. package/dist-lib/host/fetch-proxy-handler.cjs +97 -713
  38. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  39. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  40. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  41. package/dist-lib/host/websocket-proxy.cjs +1 -1
  42. package/dist-lib/index.cjs +639 -1110
  43. package/dist-lib/jump-to-source-babel.cjs +1 -1
  44. package/dist-lib/jump-to-source-native.cjs +1 -1
  45. package/dist-lib/kotlin-host.cjs +3 -24
  46. package/dist-lib/menu.cjs +1 -1
  47. package/dist-lib/menu.mjs +1 -1
  48. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  49. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  50. package/dist-lib/metro-production-bundle.cjs +1 -10
  51. package/dist-lib/metro-production-bundle.mjs +1 -12
  52. package/dist-lib/metro.cjs +546 -975
  53. package/dist-lib/native-app-identity-project.cjs +299 -592
  54. package/dist-lib/native-app-identity-project.mjs +11 -232
  55. package/dist-lib/native-app-identity.cjs +1 -1
  56. package/dist-lib/native-app-identity.mjs +1 -1
  57. package/dist-lib/native-firebase-metadata.cjs +1 -1
  58. package/dist-lib/native-firebase-metadata.mjs +1 -1
  59. package/dist-lib/pdfium-raster.cjs +1 -1
  60. package/dist-lib/pdfium-raster.mjs +1 -1
  61. package/dist-lib/plist.cjs +1 -1
  62. package/dist-lib/plist.mjs +1 -1
  63. package/dist-lib/profiles.cjs +1 -1
  64. package/dist-lib/public-brand.cjs +1 -1
  65. package/dist-lib/public-origins-lib-esm.json +28 -96
  66. package/dist-lib/public-origins-lib.json +172 -1058
  67. package/dist-lib/react-native-host-modules.cjs +1 -1
  68. package/dist-lib/react-native-host-modules.mjs +1 -1
  69. package/dist-lib/reap-browser.cjs +1 -1
  70. package/dist-lib/scripts/dev-server-scanner.cjs +1 -34
  71. package/dist-lib/sdk.cjs +1 -1
  72. package/dist-lib/sdk.mjs +1 -1
  73. package/dist-lib/skills.cjs +4777 -5307
  74. package/dist-lib/swift-compile.cjs +1054 -1085
  75. package/dist-lib/swift-compile.mjs +2 -28
  76. package/dist-lib/swift-package.cjs +1 -1
  77. package/dist-lib/swift-package.mjs +1 -1
  78. package/dist-lib/swift-submit.cjs +1 -1
  79. package/dist-lib/swift-submit.mjs +1 -1
  80. package/dist-lib/swift-toolchain.cjs +1 -1
  81. package/dist-lib/swift.cjs +1 -1
  82. package/dist-lib/vite-swift.cjs +1425 -1639
  83. package/dist-lib/vite.cjs +173 -763
  84. package/dist-lib/worklet-executable.cjs +1 -1
  85. package/dist-lib/worklet-executable.mjs +1 -1
  86. package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +3 -0
  87. package/dist-types/packages/peach-engine/src/settings/duo-fold-bus.d.ts +10 -2
  88. package/kotlin/sdk.tar.gz +0 -0
  89. package/package.json +1 -1
  90. package/runtime-companion.json +1 -1
  91. package/src/kotlin-module.ts +3 -3
  92. package/src/swift-coverage/provenance.ts +4 -4
  93. package/src/swift-objc-sdk.ts +34 -21
  94. package/src/swift-objc-standin.ts +7 -7
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2247 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2248 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -7,9 +7,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
7
  var __getOwnPropNames = Object.getOwnPropertyNames;
8
8
  var __getProtoOf = Object.getPrototypeOf;
9
9
  var __hasOwnProp = Object.prototype.hasOwnProperty;
10
- var __esm = (fn, res) => function __init() {
11
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
12
- };
13
10
  var __commonJS = (cb, mod) => function __require() {
14
11
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
15
12
  };
@@ -35,18 +32,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
35
32
  ));
36
33
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
37
34
 
38
- // <define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>
39
- var define_SWIFT_COVERAGE_SOURCE_DIGESTS_default;
40
- var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
41
- "<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
42
- define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1", "swift-coverage/source.ts": "c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "bfde06f157f52d3dd76577b3c6059c95c0393180b054ced773624ea89558992b", "swift-package.ts": "338cfef9a34a930206ac2e1a8a90b85c8d61f776d9a41e6445dc18e0c5385cdb", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "8deef5a824ed49209458a4b398cd8e88df260a0c8f1894d568279f6211866547", "home-paths.ts": "d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "774c42f06f8d5c1f3f3a09f94379db2046af0016f1fcd6cbe595a9c2da5dcf95", "xcode-target-members.ts": "d49af77a690cff481b38333b5f63f6600123b1bb57f410b0adb298b010d2047b", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
43
- }
44
- });
45
-
46
35
  // ../../node_modules/json5/lib/unicode.js
47
36
  var require_unicode = __commonJS({
48
37
  "../../node_modules/json5/lib/unicode.js"(exports2, module2) {
49
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
50
38
  module2.exports.Space_Separator = /[\u1680\u2000-\u200A\u202F\u205F\u3000]/;
51
39
  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]/;
52
40
  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]/;
@@ -56,7 +44,6 @@ var require_unicode = __commonJS({
56
44
  // ../../node_modules/json5/lib/util.js
57
45
  var require_util = __commonJS({
58
46
  "../../node_modules/json5/lib/util.js"(exports2, module2) {
59
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
60
47
  var unicode = require_unicode();
61
48
  module2.exports = {
62
49
  isSpaceSeparator(c) {
@@ -81,7 +68,6 @@ var require_util = __commonJS({
81
68
  // ../../node_modules/json5/lib/parse.js
82
69
  var require_parse = __commonJS({
83
70
  "../../node_modules/json5/lib/parse.js"(exports2, module2) {
84
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
85
71
  var util = require_util();
86
72
  var source;
87
73
  var parseState;
@@ -929,7 +915,6 @@ var require_parse = __commonJS({
929
915
  // ../../node_modules/json5/lib/stringify.js
930
916
  var require_stringify = __commonJS({
931
917
  "../../node_modules/json5/lib/stringify.js"(exports2, module2) {
932
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
933
918
  var util = require_util();
934
919
  module2.exports = function stringify(value, replacer, space) {
935
920
  const stack = [];
@@ -1149,7 +1134,6 @@ var require_stringify = __commonJS({
1149
1134
  // ../../node_modules/json5/lib/index.js
1150
1135
  var require_lib = __commonJS({
1151
1136
  "../../node_modules/json5/lib/index.js"(exports2, module2) {
1152
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
1153
1137
  var parse5 = require_parse();
1154
1138
  var stringify = require_stringify();
1155
1139
  var JSON52 = {
@@ -1170,16 +1154,11 @@ __export(native_app_identity_project_exports, {
1170
1154
  readNativeAppIdentityFromXcodeTarget: () => readNativeAppIdentityFromXcodeTarget
1171
1155
  });
1172
1156
  module.exports = __toCommonJS(native_app_identity_project_exports);
1173
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
1174
- var import_node_fs7 = __toESM(require("node:fs"), 1);
1157
+ var import_node_fs4 = __toESM(require("node:fs"), 1);
1175
1158
  var import_node_module = require("node:module");
1176
- var import_node_path11 = __toESM(require("node:path"), 1);
1177
-
1178
- // src/android-app-identity.ts
1179
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
1159
+ var import_node_path7 = __toESM(require("node:path"), 1);
1180
1160
 
1181
1161
  // src/android-string-value.ts
1182
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
1183
1162
  function compileAndroidStringValue(text2, where) {
1184
1163
  if (/^\s*[@?]/.test(text2))
1185
1164
  throw new Error(`${where} is a resource reference, not resolved by Peach yet`);
@@ -1213,7 +1192,6 @@ function compileAndroidStringValue(text2, where) {
1213
1192
  }
1214
1193
 
1215
1194
  // src/android-xml.ts
1216
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
1217
1195
  var ENTITIES = {
1218
1196
  quot: '"',
1219
1197
  apos: "'",
@@ -1371,23 +1349,10 @@ function androidMergedResourceValuesDirectory(manifestFile) {
1371
1349
  }
1372
1350
 
1373
1351
  // src/is-record.ts
1374
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
1375
1352
  function isRecord(value) {
1376
1353
  return typeof value === "object" && value !== null && !Array.isArray(value);
1377
1354
  }
1378
1355
 
1379
- // src/native-app-identity.ts
1380
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
1381
-
1382
- // ../peach-globals/src/bundle-global-footer.ts
1383
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
1384
-
1385
- // src/nativeAppIconContract.ts
1386
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
1387
-
1388
- // src/assetCatalogContract.ts
1389
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
1390
-
1391
1356
  // src/nativeAppIconContract.ts
1392
1357
  function resolveNativeBundleIcons(icons, catalogNames, resolveReference) {
1393
1358
  if (!isRecord(icons) && catalogNames.length === 0) return void 0;
@@ -1489,7 +1454,6 @@ function resolveNativeAppIconArtwork(resources, readText, resourceUri, icons, pr
1489
1454
  }
1490
1455
 
1491
1456
  // src/openstep-plist.ts
1492
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
1493
1457
  var isDict = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
1494
1458
  var str = (value) => typeof value === "string" ? value : void 0;
1495
1459
  var list = (value) => Array.isArray(value) ? value.filter((item) => typeof item === "string") : [];
@@ -1585,11 +1549,10 @@ function parseOpenStepPlist(text2) {
1585
1549
  }
1586
1550
 
1587
1551
  // src/xcode-target-members.ts
1588
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
1589
1552
  var NEVER_MEMBER = /(?:^|\/)(?:Info\.plist|[^/]+\.entitlements|[^/]+\.xcconfig|\.DS_Store)$/;
1590
1553
  var FOLDER_REFERENCE = /^(?:folder|wrapper\.scnassets)$/;
1591
1554
  var BUNDLE_DIR = /\.(xcassets|bundle|lproj|xcdatamodeld|scnassets|spriteatlas|rcproject|storyboardc|icon)$/;
1592
- function xcodePathResolver(objects, projectDir, join2, sourceTreeRoot) {
1555
+ function xcodePathResolver(objects, projectDir, join, sourceTreeRoot) {
1593
1556
  const parents = /* @__PURE__ */ new Map();
1594
1557
  for (const [id, entry] of Object.entries(objects)) {
1595
1558
  if (!isDict(entry)) continue;
@@ -1605,16 +1568,16 @@ function xcodePathResolver(objects, projectDir, join2, sourceTreeRoot) {
1605
1568
  let result = null;
1606
1569
  if (isDict(entry)) {
1607
1570
  const own = str(entry.path) ?? "";
1608
- const tree2 = str(entry.sourceTree) ?? "<group>";
1609
- if (tree2 === "<absolute>") result = own;
1610
- else if (tree2 === "SOURCE_ROOT") result = join2(projectDir, own);
1611
- else if (tree2 === "<group>") {
1571
+ const tree = str(entry.sourceTree) ?? "<group>";
1572
+ if (tree === "<absolute>") result = own;
1573
+ else if (tree === "SOURCE_ROOT") result = join(projectDir, own);
1574
+ else if (tree === "<group>") {
1612
1575
  const parent = parents.get(id);
1613
1576
  const base = parent ? resolve(parent) : projectDir;
1614
- if (base !== null) result = join2(base, own);
1577
+ if (base !== null) result = join(base, own);
1615
1578
  } else {
1616
- const base = sourceTreeRoot?.(tree2);
1617
- if (base) result = join2(base, own);
1579
+ const base = sourceTreeRoot?.(tree);
1580
+ if (base) result = join(base, own);
1618
1581
  }
1619
1582
  }
1620
1583
  paths.set(id, result);
@@ -1636,7 +1599,7 @@ function xcodeTargetMemberVisitor(objects) {
1636
1599
  if (isDict(group) && group.isa === "PBXFileSystemSynchronizedRootGroup")
1637
1600
  synchronizedGroups.push({ id, group });
1638
1601
  }
1639
- return (targetId, resolvePath, filesUnder, join2, visit) => {
1602
+ return (targetId, resolvePath, filesUnder, join, visit) => {
1640
1603
  const target = objects[targetId];
1641
1604
  if (!isDict(target)) return;
1642
1605
  for (const phaseId of list(target.buildPhases)) {
@@ -1683,7 +1646,7 @@ function xcodeTargetMemberVisitor(objects) {
1683
1646
  for (const relative of list(exception.membershipExceptions))
1684
1647
  exceptions.add(relative);
1685
1648
  }
1686
- const members = owned.has(groupId) ? filesUnder(folder) : [...exceptions].flatMap((relative) => filesUnder(join2(folder, relative)));
1649
+ const members = owned.has(groupId) ? filesUnder(folder) : [...exceptions].flatMap((relative) => filesUnder(join(folder, relative)));
1687
1650
  for (const file of members) {
1688
1651
  const relative = file.slice(prefix.length);
1689
1652
  const excepted = [...exceptions].some(
@@ -1832,10 +1795,10 @@ function appTargetReleaseSettings(pbxproj, targetName, infoPlistRelativePath) {
1832
1795
  var APP_DELEGATE_PATH_RE = /(?:^|\/)(?:ios\/)?([^/]+)\/AppDelegate\.(?:swift|mm|m)$/;
1833
1796
  function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri) {
1834
1797
  const pbxprojPath = Object.keys(files).find(
1835
- (path11) => /(?:^|\/)ios\/[^/]+\.xcodeproj\/project\.pbxproj$/.test(path11)
1798
+ (path8) => /(?:^|\/)ios\/[^/]+\.xcodeproj\/project\.pbxproj$/.test(path8)
1836
1799
  ) ?? Object.keys(files).find(
1837
- (path11) => /(?:^|\/)[^/]+\.xcodeproj\/project\.pbxproj$/.test(path11)
1838
- ) ?? Object.keys(files).find((path11) => /(?:^|\/)project\.pbxproj$/.test(path11));
1800
+ (path8) => /(?:^|\/)[^/]+\.xcodeproj\/project\.pbxproj$/.test(path8)
1801
+ ) ?? Object.keys(files).find((path8) => /(?:^|\/)project\.pbxproj$/.test(path8));
1839
1802
  if (!pbxprojPath) return null;
1840
1803
  const pbxproj = files[pbxprojPath];
1841
1804
  let objects = {};
@@ -1877,7 +1840,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
1877
1840
  } else if (applicationTargetNames.size === 1) {
1878
1841
  targetName = [...applicationTargetNames][0];
1879
1842
  } else if (applicationTargetNames.size > 1) {
1880
- const delegateTargets = Object.keys(files).filter((path11) => !path11.includes("/Pods/")).map((path11) => path11.match(APP_DELEGATE_PATH_RE)?.[1]).filter(
1843
+ const delegateTargets = Object.keys(files).filter((path8) => !path8.includes("/Pods/")).map((path8) => path8.match(APP_DELEGATE_PATH_RE)?.[1]).filter(
1881
1844
  (name) => typeof name === "string" && applicationTargetNames.has(name)
1882
1845
  );
1883
1846
  if (delegateTargets.length === 1) {
@@ -2093,7 +2056,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
2093
2056
  if (resourceUri) {
2094
2057
  if (!selectedTarget)
2095
2058
  throw new Error("native app icon target membership is unresolved");
2096
- const join2 = (base, own) => {
2059
+ const join = (base, own) => {
2097
2060
  const segments = [];
2098
2061
  for (const segment of `${base}/${own}`.split("/")) {
2099
2062
  if (segment === "" || segment === ".") continue;
@@ -2106,22 +2069,22 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
2106
2069
  const project = Object.values(objects).find(
2107
2070
  (object3) => isRecord(object3) && object3.isa === "PBXProject"
2108
2071
  );
2109
- const projectDir = join2(
2072
+ const projectDir = join(
2110
2073
  pbxprojPath.replace(/(?:^|\/)[^/]+\.xcodeproj\/project\.pbxproj$/, ""),
2111
2074
  isRecord(project) && typeof project.projectDirPath === "string" ? project.projectDirPath : ""
2112
2075
  );
2113
2076
  const paths = Object.keys(files);
2114
2077
  xcodeTargetMemberVisitor(objects)(
2115
2078
  selectedTarget.id,
2116
- xcodePathResolver(objects, projectDir, join2),
2079
+ xcodePathResolver(objects, projectDir, join),
2117
2080
  (file) => {
2118
2081
  if (Object.hasOwn(files, file)) return [file];
2119
2082
  const prefix = file === "" ? "" : `${file.replace(/\/$/, "")}/`;
2120
2083
  return paths.filter(
2121
- (path11) => path11.startsWith(prefix) && !/(?:^|\/)\./.test(path11.slice(prefix.length))
2084
+ (path8) => path8.startsWith(prefix) && !/(?:^|\/)\./.test(path8.slice(prefix.length))
2122
2085
  );
2123
2086
  },
2124
- join2,
2087
+ join,
2125
2088
  (file, kind) => {
2126
2089
  if (kind === "resource") resources.add(file);
2127
2090
  }
@@ -2129,7 +2092,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
2129
2092
  }
2130
2093
  const rootModuleName = readRootModuleName(
2131
2094
  Object.entries(files).filter(
2132
- ([path11]) => !path11.includes("/Pods/") && (/(?:^|\/)(?:ios\/)?AppDelegate\.(?:swift|mm|m)$/.test(path11) || path11.match(APP_DELEGATE_PATH_RE)?.[1] === targetName)
2095
+ ([path8]) => !path8.includes("/Pods/") && (/(?:^|\/)(?:ios\/)?AppDelegate\.(?:swift|mm|m)$/.test(path8) || path8.match(APP_DELEGATE_PATH_RE)?.[1] === targetName)
2133
2096
  ).map(([, source]) => source)
2134
2097
  );
2135
2098
  return {
@@ -2221,32 +2184,15 @@ function extractNativeAppIdentityFromFiles(files, platform, parseInfoPlist, iosT
2221
2184
  }
2222
2185
 
2223
2186
  // src/plist.ts
2224
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2225
2187
  var import_plist = __toESM(require("plist"), 1);
2226
2188
  function parsePlistSource(source) {
2227
2189
  return import_plist.default.parse(source);
2228
2190
  }
2229
2191
 
2230
2192
  // src/swift-objc-standin.ts
2231
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2232
2193
  var import_node_crypto = require("node:crypto");
2233
2194
 
2234
- // src/swift-interface-bodies.ts
2235
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2236
-
2237
- // src/swift-objc-platform.ts
2238
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2239
-
2240
2195
  // src/swift-toolchain.ts
2241
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2242
- var import_node_fs = __toESM(require("node:fs"), 1);
2243
- var import_node_path = __toESM(require("node:path"), 1);
2244
- function peachsimPackageRoot() {
2245
- let dir = __sootsim_import_meta_dirname;
2246
- while (!import_node_fs.default.existsSync(import_node_path.default.join(dir, "package.json")) && dir !== import_node_path.default.dirname(dir))
2247
- dir = import_node_path.default.dirname(dir);
2248
- return dir;
2249
- }
2250
2196
  var SWIFT_HOST_COMPILER_RELEASE = "swift-6.4.0-RELEASE-custom-81b2c791c27276bf";
2251
2197
  var SWIFT_HOST_COMPILER_ID = "81b2c791c27276bf";
2252
2198
  var compilerArchives = {
@@ -2504,46 +2450,10 @@ var compilerArchives = {
2504
2450
  }
2505
2451
  };
2506
2452
 
2507
- // src/swift-objc-sdk.ts
2508
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2509
- var import_node_path3 = __toESM(require("node:path"), 1);
2510
-
2511
- // src/swift-objc-sdk-tree.ts
2512
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2513
- var import_node_fs2 = require("node:fs");
2514
- var import_node_path2 = __toESM(require("node:path"), 1);
2515
- function readIosSdkTree(root) {
2516
- return (0, import_node_fs2.readdirSync)(root, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => {
2517
- const file = import_node_path2.default.join(entry.parentPath, entry.name);
2518
- return [
2519
- import_node_path2.default.relative(root, file).split(import_node_path2.default.sep).join("/"),
2520
- (0, import_node_fs2.readFileSync)(file, "utf8")
2521
- ];
2522
- }).sort(([a], [b]) => a < b ? -1 : 1);
2523
- }
2524
-
2525
2453
  // src/swift-objc-sdk.ts
2526
2454
  var IOS_SDK_TARGET = "arm64-apple-ios16.0-simulator";
2527
- var OVERLAY_PATH = /^usr\/lib\/swift\/([^/]+)\.swiftmodule\/arm64-apple-ios-simulator\.swiftinterface$/;
2528
- var tree = typeof __PEACH_BUNDLED_IOS_SDK__ === "undefined" ? readIosSdkTree(import_node_path3.default.join(peachsimPackageRoot(), "sdk", "ios")) : Object.entries(__PEACH_BUNDLED_IOS_SDK__).sort(([a], [b]) => a < b ? -1 : 1);
2529
- var IOS_SDK_HEADERS = {};
2530
- var IOS_SDK_OVERLAYS = {};
2531
- for (const [file, text2] of tree) {
2532
- const module2 = OVERLAY_PATH.exec(file)?.[1];
2533
- if (module2 === void 0) {
2534
- IOS_SDK_HEADERS[file] = text2;
2535
- continue;
2536
- }
2537
- const header = `// swift-interface-format-version: 1.0
2538
- // swift-module-flags: -target ${IOS_SDK_TARGET} -enable-objc-interop -enable-library-evolution -module-name ${module2}
2539
- `;
2540
- if (!text2.startsWith(header))
2541
- throw new Error(`sdk overlay ${file} has the wrong interface header`);
2542
- IOS_SDK_OVERLAYS[module2] = text2.slice(header.length);
2543
- }
2544
2455
 
2545
2456
  // src/swift-package.ts
2546
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2547
2457
  var SWIFT_NATIVE_TRANSLATION_UNIT_EXTENSIONS = [
2548
2458
  ".c",
2549
2459
  ".cc",
@@ -2583,9 +2493,6 @@ function moduleMapName(text2) {
2583
2493
  return index < 0 ? void 0 : tokens[index + 1];
2584
2494
  }
2585
2495
 
2586
- // src/swift-standin-emit.ts
2587
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2588
-
2589
2496
  // src/swift-objc-standin.ts
2590
2497
  var NATIVE_GRAPH_SDK_VERSION = "27.1";
2591
2498
  var WASI_EMULATION = [
@@ -2604,11 +2511,10 @@ var NATIVE_GRAPH_INPUTS = {
2604
2511
  var NATIVE_GRAPH_ID = (0, import_node_crypto.createHash)("sha256").update(JSON.stringify(NATIVE_GRAPH_INPUTS)).digest("hex");
2605
2512
 
2606
2513
  // src/xcode-project.ts
2607
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2608
2514
  var import_node_child_process3 = require("node:child_process");
2609
- var import_node_crypto4 = require("node:crypto");
2610
- var import_node_fs6 = __toESM(require("node:fs"), 1);
2611
- var import_node_path10 = __toESM(require("node:path"), 1);
2515
+ var import_node_crypto3 = require("node:crypto");
2516
+ var import_node_fs3 = __toESM(require("node:fs"), 1);
2517
+ var import_node_path6 = __toESM(require("node:path"), 1);
2612
2518
  var import_plist2 = __toESM(require("plist"), 1);
2613
2519
 
2614
2520
  // src/ios-sdk-frameworks.json
@@ -2903,25 +2809,24 @@ var ios_sdk_frameworks_default = {
2903
2809
  };
2904
2810
 
2905
2811
  // src/prepared-xcode-phases.ts
2906
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2907
2812
  var import_node_crypto2 = require("node:crypto");
2908
- var import_node_fs3 = __toESM(require("node:fs"), 1);
2909
- var import_node_path4 = __toESM(require("node:path"), 1);
2813
+ var import_node_fs = __toESM(require("node:fs"), 1);
2814
+ var import_node_path = __toESM(require("node:path"), 1);
2910
2815
  var workspaces = /* @__PURE__ */ new Map();
2911
2816
  var recording;
2912
2817
  function relativeFile(root, file) {
2913
- const relative = import_node_path4.default.relative(root, file);
2914
- if (!relative || relative === ".." || relative.startsWith(`..${import_node_path4.default.sep}`) || import_node_path4.default.isAbsolute(relative))
2818
+ const relative = import_node_path.default.relative(root, file);
2819
+ if (!relative || relative === ".." || relative.startsWith(`..${import_node_path.default.sep}`) || import_node_path.default.isAbsolute(relative))
2915
2820
  throw new Error(`prepared Xcode output is outside its workspace: ${file}`);
2916
- return relative.split(import_node_path4.default.sep).join("/");
2821
+ return relative.split(import_node_path.default.sep).join("/");
2917
2822
  }
2918
2823
  function output(root, file) {
2919
2824
  const relative = relativeFile(root, file);
2920
- const stat = import_node_fs3.default.statSync(file, { throwIfNoEntry: false });
2825
+ const stat = import_node_fs.default.statSync(file, { throwIfNoEntry: false });
2921
2826
  if (!stat) return { path: relative, sha256: null };
2922
2827
  if (!stat.isFile()) throw new Error(`prepared Xcode output is not a file: ${file}`);
2923
- relativeFile(root, import_node_fs3.default.realpathSync(file));
2924
- const bytes = import_node_fs3.default.readFileSync(file);
2828
+ relativeFile(root, import_node_fs.default.realpathSync(file));
2829
+ const bytes = import_node_fs.default.readFileSync(file);
2925
2830
  const prefix = Buffer.from(root);
2926
2831
  const hash = (0, import_node_crypto2.createHash)("sha256");
2927
2832
  let offset = 0;
@@ -2937,8 +2842,8 @@ function output(root, file) {
2937
2842
  }
2938
2843
  function preparedXcodePhase(project, target, phase, configuration, outputs, recorded) {
2939
2844
  const root = recording?.root ?? [...workspaces.keys()].find((root2) => {
2940
- const relative = import_node_path4.default.relative(root2, project);
2941
- return relative !== ".." && !relative.startsWith(`..${import_node_path4.default.sep}`) && !import_node_path4.default.isAbsolute(relative);
2845
+ const relative = import_node_path.default.relative(root2, project);
2846
+ return relative !== ".." && !relative.startsWith(`..${import_node_path.default.sep}`) && !import_node_path.default.isAbsolute(relative);
2942
2847
  });
2943
2848
  if (!root) return false;
2944
2849
  const entry = {
@@ -2973,29 +2878,27 @@ function preparedXcodePhase(project, target, phase, configuration, outputs, reco
2973
2878
  }
2974
2879
 
2975
2880
  // src/swift-binary-modules.ts
2976
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2977
- var import_node_fs4 = __toESM(require("node:fs"), 1);
2978
- var import_node_path6 = __toESM(require("node:path"), 1);
2881
+ var import_node_fs2 = __toESM(require("node:fs"), 1);
2882
+ var import_node_path3 = __toESM(require("node:path"), 1);
2979
2883
 
2980
2884
  // src/home-paths.ts
2981
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2982
2885
  var import_node_os = require("node:os");
2983
- var import_node_path5 = __toESM(require("node:path"), 1);
2886
+ var import_node_path2 = __toESM(require("node:path"), 1);
2984
2887
  var PEACH_HOME_ENV = "PEACH_HOME";
2985
2888
  function ambientHomeDir() {
2986
- return import_node_path5.default.join((0, import_node_os.homedir)(), ".peach");
2889
+ return import_node_path2.default.join((0, import_node_os.homedir)(), ".peach");
2987
2890
  }
2988
2891
  function rnxHomeDir() {
2989
2892
  const override = process.env[PEACH_HOME_ENV];
2990
- return override && override.length > 0 ? import_node_path5.default.resolve(override) : ambientHomeDir();
2893
+ return override && override.length > 0 ? import_node_path2.default.resolve(override) : ambientHomeDir();
2991
2894
  }
2992
2895
  function cacheDir() {
2993
- return import_node_path5.default.join(rnxHomeDir(), "cache");
2896
+ return import_node_path2.default.join(rnxHomeDir(), "cache");
2994
2897
  }
2995
2898
  var DAEMON_LOCKFILE_MAX_BYTES = 16 * 1024;
2996
2899
 
2997
2900
  // src/swift-binary-modules.ts
2998
- var cacheDir2 = import_node_path6.default.join(cacheDir(), "swift-binary-modules");
2901
+ var cacheDir2 = import_node_path3.default.join(cacheDir(), "swift-binary-modules");
2999
2902
  function frameworkModules(paths) {
3000
2903
  const modules = /* @__PURE__ */ new Set();
3001
2904
  for (const file of paths) {
@@ -3005,72 +2908,31 @@ function frameworkModules(paths) {
3005
2908
  return [...modules].sort();
3006
2909
  }
3007
2910
  function localSwiftBinaryModules(dir) {
3008
- if (!import_node_fs4.default.existsSync(dir)) return [];
3009
- const slices = import_node_fs4.default.readdirSync(dir, { withFileTypes: true }).filter((slice) => slice.isDirectory());
2911
+ if (!import_node_fs2.default.existsSync(dir)) return [];
2912
+ const slices = import_node_fs2.default.readdirSync(dir, { withFileTypes: true }).filter((slice) => slice.isDirectory());
3010
2913
  const frameworks = frameworkModules(
3011
2914
  slices.flatMap(
3012
- (slice) => import_node_fs4.default.readdirSync(import_node_path6.default.join(dir, slice.name)).map((entry) => `${slice.name}/${entry}`)
2915
+ (slice) => import_node_fs2.default.readdirSync(import_node_path3.default.join(dir, slice.name)).map((entry) => `${slice.name}/${entry}`)
3013
2916
  )
3014
2917
  );
3015
2918
  if (frameworks.length > 0) return frameworks;
3016
2919
  const modules = /* @__PURE__ */ new Set();
3017
2920
  for (const slice of slices) {
3018
- const headers = import_node_path6.default.join(dir, slice.name, "Headers");
3019
- if (!import_node_fs4.default.existsSync(headers)) continue;
3020
- for (const file of import_node_fs4.default.readdirSync(headers, { recursive: true, encoding: "utf8" })) {
3021
- if (import_node_path6.default.basename(file) !== "module.modulemap") continue;
3022
- const module2 = moduleMapName(import_node_fs4.default.readFileSync(import_node_path6.default.join(headers, file), "utf8"));
2921
+ const headers = import_node_path3.default.join(dir, slice.name, "Headers");
2922
+ if (!import_node_fs2.default.existsSync(headers)) continue;
2923
+ for (const file of import_node_fs2.default.readdirSync(headers, { recursive: true, encoding: "utf8" })) {
2924
+ if (import_node_path3.default.basename(file) !== "module.modulemap") continue;
2925
+ const module2 = moduleMapName(import_node_fs2.default.readFileSync(import_node_path3.default.join(headers, file), "utf8"));
3023
2926
  if (module2) modules.add(module2);
3024
2927
  }
3025
2928
  }
3026
2929
  return [...modules].sort();
3027
2930
  }
3028
2931
 
3029
- // src/swift-coverage/xcode-assets.ts
3030
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3031
-
3032
2932
  // src/swift-coverage/provenance.ts
3033
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3034
- var import_node_crypto3 = require("node:crypto");
3035
- var import_node_fs5 = require("node:fs");
3036
- var import_node_path7 = require("node:path");
3037
- var SWIFT_COVERAGE_DIGEST_SOURCES = [
3038
- "swift-coverage/indexdump.ts",
3039
- "swift-coverage/indexing.ts",
3040
- "swift-coverage/types.ts",
3041
- "swift-coverage/source.ts",
3042
- "swift-coverage/package.ts",
3043
- "swift-coverage/xcode.ts",
3044
- "swift-coverage/xcode-assets.ts",
3045
- "swift-coverage/xcode-asset-symbols.ts",
3046
- "swift-coverage/xcode-bridging.ts",
3047
- "swift-coverage/xcode-packages.ts",
3048
- "swift-coverage/xcode-strings.ts",
3049
- "swift-coverage/reader.ts",
3050
- "swift-coverage/provenance.ts",
3051
- "swift-package-manifest.ts",
3052
- "swift-package.ts",
3053
- "swift-source-file.ts",
3054
- "swift-toolchain.ts",
3055
- "home-paths.ts",
3056
- "xcode-header-search.ts",
3057
- "xcode-project.ts",
3058
- "xcode-target-members.ts",
3059
- "xcode-json-project.ts",
3060
- "openstep-plist.ts"
3061
- ];
3062
- function swiftCoverageSourceDigests(srcDir) {
3063
- return Object.fromEntries(
3064
- SWIFT_COVERAGE_DIGEST_SOURCES.map((file) => [
3065
- file,
3066
- (0, import_node_crypto3.createHash)("sha256").update((0, import_node_fs5.readFileSync)((0, import_node_path7.join)(srcDir, file))).digest("hex")
3067
- ])
3068
- );
3069
- }
3070
- var swiftCoverageProvenance = typeof define_SWIFT_COVERAGE_SOURCE_DIGESTS_default === "object" ? define_SWIFT_COVERAGE_SOURCE_DIGESTS_default : swiftCoverageSourceDigests((0, import_node_path7.join)(__sootsim_import_meta_dirname, ".."));
2933
+ var swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"bfde06f157f52d3dd76577b3c6059c95c0393180b054ced773624ea89558992b","swift-package.ts":"338cfef9a34a930206ac2e1a8a90b85c8d61f776d9a41e6445dc18e0c5385cdb","swift-source-file.ts":"93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94","swift-toolchain.ts":"8deef5a824ed49209458a4b398cd8e88df260a0c8f1894d568279f6211866547","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1","xcode-project.ts":"774c42f06f8d5c1f3f3a09f94379db2046af0016f1fcd6cbe595a9c2da5dcf95","xcode-target-members.ts":"d49af77a690cff481b38333b5f63f6600123b1bb57f410b0adb298b010d2047b","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
3071
2934
 
3072
2935
  // src/swift-coverage/xcode-asset-symbols.ts
3073
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3074
2936
  var silentTypes = /* @__PURE__ */ new Set([
3075
2937
  "appiconset",
3076
2938
  "brandassets",
@@ -3252,84 +3114,17 @@ var assetSymbolSettingKeys = [
3252
3114
  ];
3253
3115
 
3254
3116
  // src/swift-package-manifest.ts
3255
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3256
3117
  var import_node_child_process2 = require("node:child_process");
3257
- var import_node_path8 = __toESM(require("node:path"), 1);
3118
+ var import_node_path4 = __toESM(require("node:path"), 1);
3258
3119
  var import_node_util2 = require("node:util");
3259
3120
 
3260
- // src/swift-distribution.ts
3261
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3262
-
3263
- // ../contrast-runtime-delivery/src/index.ts
3264
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3265
-
3266
- // src/process-group.ts
3267
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3268
-
3269
- // src/process-table.ts
3270
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3271
-
3272
- // ../contrast-runtime-delivery/src/product.ts
3273
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3274
-
3275
- // ../contrast-runtime-delivery/src/version.ts
3276
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3277
-
3278
- // ../contrast-runtime-delivery/src/packs.ts
3279
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3280
-
3281
- // cli/drivers/linux-browser-libs.ts
3282
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3283
-
3284
- // cli/cli-release-origin.ts
3285
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3286
-
3287
3121
  // src/swift-compile.ts
3288
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3289
3122
  var v5 = __toESM(require("valibot"), 1);
3290
3123
 
3291
- // src/admitted-mac-build.ts
3292
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3293
-
3294
- // src/retired-cache-directory.ts
3295
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3296
-
3297
- // src/process-liveness.ts
3298
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3299
-
3300
- // src/swift-compiler-digest.ts
3301
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3302
-
3303
- // src/swift-darwin-records.ts
3304
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3305
-
3306
- // src/swift-objc-runtime.ts
3307
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3308
-
3309
- // src/swift-shared-sdk.ts
3310
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3311
-
3312
- // src/swift-design-time.ts
3313
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3314
-
3315
- // src/swift-distribution-contract.ts
3316
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3317
-
3318
- // src/swift-foundation.ts
3319
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3320
-
3321
- // src/swift-guest-compile.ts
3322
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3323
-
3324
- // src/swift-guest-archive.ts
3325
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3326
-
3327
3124
  // src/swift-wasm-prune.ts
3328
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3329
3125
  var v2 = __toESM(require("valibot"), 1);
3330
3126
 
3331
3127
  // src/swiftRuntimeProductContract.ts
3332
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3333
3128
  var v = __toESM(require("valibot"), 1);
3334
3129
  var swiftFrameworkProductSchema = v.object({
3335
3130
  version: v.literal(1),
@@ -3473,42 +3268,13 @@ var SWIFTUI_WRAPPER_HOST_PROTOCOLS = new Set(
3473
3268
  ].map((name) => `$s7SwiftUI${name.length}${name}Mp`)
3474
3269
  );
3475
3270
 
3476
- // src/swift-guest-link.ts
3477
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3478
-
3479
- // src/swift-guest-image-ledger.ts
3480
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3481
-
3482
- // src/swift-guest-link-plan.ts
3483
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3484
-
3485
- // src/swift-guest-manifest.ts
3486
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3487
-
3488
- // src/swift-guest-projection-storage.ts
3489
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3490
-
3491
- // src/swift-guest-linked-spans.ts
3492
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3493
-
3494
- // src/swift-guest-projection.ts
3495
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3496
-
3497
- // src/swiftGuestImageContract.ts
3498
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3499
-
3500
3271
  // src/swift-guest-projection-storage.ts
3501
3272
  var maxProjectionRegions = 1 << 20;
3502
3273
 
3503
3274
  // src/swift-guest-runtime-plan.ts
3504
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3505
3275
  var v4 = __toESM(require("valibot"), 1);
3506
3276
 
3507
- // src/swift-guest-source-plan.ts
3508
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3509
-
3510
3277
  // src/swift-runtime-products.ts
3511
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3512
3278
  var v3 = __toESM(require("valibot"), 1);
3513
3279
  var packageSchema = v3.object({
3514
3280
  name: v3.string(),
@@ -3529,17 +3295,8 @@ var packageSchema = v3.object({
3529
3295
  )
3530
3296
  });
3531
3297
 
3532
- // src/swift-guest-source-inputs.ts
3533
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3534
-
3535
3298
  // src/wasm-optimize.ts
3536
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3537
3299
  var import_wasm_opt = require("wasm-opt");
3538
-
3539
- // src/wasm-narrow-boundary.ts
3540
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3541
-
3542
- // src/wasm-optimize.ts
3543
3300
  var FEATURES = [
3544
3301
  "memory64",
3545
3302
  "threads",
@@ -3558,17 +3315,10 @@ var LOWERING = ["--memory64-lowering", "--table64-lowering"];
3558
3315
  var WASM_LOWER_IDENTITY = `binaryen ${import_wasm_opt.BINARYEN_VERSION} narrow ${LOWERING.join(" ")} ${FEATURES.join(",")} unoptimized-names`;
3559
3316
 
3560
3317
  // src/swift-icu.ts
3561
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3562
3318
  var import_node_child_process = require("node:child_process");
3563
3319
  var import_node_util = require("node:util");
3564
3320
  var import_node_zlib = require("node:zlib");
3565
3321
 
3566
- // ../sootsim-swift/src/icuData.ts
3567
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3568
-
3569
- // ../peach-kit/src/wasm-memory.ts
3570
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3571
-
3572
3322
  // ../sootsim-swift/src/icuData.ts
3573
3323
  var PACK_BYTES = 64 * 1024;
3574
3324
  var VERSION = 1;
@@ -3580,33 +3330,6 @@ var deflate = (0, import_node_util.promisify)(import_node_zlib.gzip);
3580
3330
  var compressBrotli = (0, import_node_util.promisify)(import_node_zlib.brotliCompress);
3581
3331
  var inflateGzip = (0, import_node_util.promisify)(import_node_zlib.gunzip);
3582
3332
 
3583
- // src/swift-link-roots.ts
3584
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3585
-
3586
- // src/swift-objc-import.ts
3587
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3588
-
3589
- // src/swift-project-user.ts
3590
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3591
-
3592
- // src/swift-reproducible.ts
3593
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3594
-
3595
- // src/swift-root-lock.ts
3596
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3597
-
3598
- // src/swift-uniform-type-constants.ts
3599
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3600
-
3601
- // src/swiftContract.ts
3602
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3603
-
3604
- // src/write-build-file.ts
3605
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3606
-
3607
- // src/xcode-header-search.ts
3608
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3609
-
3610
3333
  // src/swift-compile.ts
3611
3334
  var OPTIONAL_FRAMEWORK_DEPENDENCIES = {
3612
3335
  PDFKit: [],
@@ -3682,7 +3405,7 @@ var FOUNDATION_IMPLICIT_MODULES = [
3682
3405
  var FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
3683
3406
  (module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
3684
3407
  ).join("");
3685
- var compilerSourceDigest = true ? "c08bc25b20368e967d20bd07b2812d538ac73d60f4f4790ad0a59924bba3b684" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
3408
+ var compilerSourceDigest = true ? "6b31bc2b6f1a60a8ff02569b886f5f3a6cca1ec484cdb3c17ac060942b93cb3e" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
3686
3409
  var CORE_FOUNDATION_HANDLE_IMPORTS = [
3687
3410
  "CFAllocator",
3688
3411
  "CFArray",
@@ -3720,28 +3443,12 @@ var host = globalThis;
3720
3443
  var rootLocks = host[ROOT_LOCKS] ??= /* @__PURE__ */ new Map();
3721
3444
  var SHARED_ARTIFACT_BUDGET_BYTES = 4 * 1024 ** 3;
3722
3445
 
3723
- // src/swift-native-pin.ts
3724
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3725
-
3726
- // src/answeredNativePackages.ts
3727
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3728
-
3729
- // src/runtime-assets.ts
3730
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3731
-
3732
- // src/nitroAdapterContract.ts
3733
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3734
-
3735
- // src/swiftNativePinContract.ts
3736
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3737
-
3738
3446
  // src/swift-package-manifest.ts
3739
- var cacheDir3 = import_node_path8.default.join(cacheDir(), "swift-manifests");
3447
+ var cacheDir3 = import_node_path4.default.join(cacheDir(), "swift-manifests");
3740
3448
  var execFileAsync = (0, import_node_util2.promisify)(import_node_child_process2.execFile);
3741
3449
 
3742
3450
  // src/xcode-json-project.ts
3743
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
3744
- var import_node_path9 = __toESM(require("node:path"), 1);
3451
+ var import_node_path5 = __toESM(require("node:path"), 1);
3745
3452
  var import_json5 = __toESM(require_lib(), 1);
3746
3453
  var isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
3747
3454
  var text = (value) => typeof value === "string" ? value : void 0;
@@ -3799,7 +3506,7 @@ var PHASE_ISA = {
3799
3506
  function readXcodeJsonProject(xcodeproj, source) {
3800
3507
  const json = import_json5.default.parse(source);
3801
3508
  if (!isJsonObject(json)) throw new Error(`${xcodeproj}/project.xcproj is not an object`);
3802
- const projectDir = import_node_path9.default.dirname(xcodeproj);
3509
+ const projectDir = import_node_path5.default.dirname(xcodeproj);
3803
3510
  const objects = {};
3804
3511
  let next = 0;
3805
3512
  const add = (entry, id) => {
@@ -3812,7 +3519,7 @@ function readXcodeJsonProject(xcodeproj, source) {
3812
3519
  const base = /^<([A-Z]+)>\/(.*)$/.exec(raw);
3813
3520
  if (base) {
3814
3521
  if (base[1] === "PROJECT")
3815
- return { sourceTree: "<absolute>", path: import_node_path9.default.join(projectDir, base[2]) };
3522
+ return { sourceTree: "<absolute>", path: import_node_path5.default.join(projectDir, base[2]) };
3816
3523
  if (base[1] === "PRODUCTS")
3817
3524
  return { sourceTree: "BUILT_PRODUCTS_DIR", path: base[2] };
3818
3525
  return null;
@@ -3820,7 +3527,7 @@ function readXcodeJsonProject(xcodeproj, source) {
3820
3527
  const unescaped = raw.replaceAll("\\<", "<");
3821
3528
  if (unescaped.startsWith("/")) return { sourceTree: "<absolute>", path: unescaped };
3822
3529
  if (unescaped.startsWith("~")) return null;
3823
- return groupDir === null ? null : { sourceTree: "<absolute>", path: import_node_path9.default.join(groupDir, unescaped) };
3530
+ return groupDir === null ? null : { sourceTree: "<absolute>", path: import_node_path5.default.join(groupDir, unescaped) };
3824
3531
  };
3825
3532
  const memberships = [];
3826
3533
  const folders = [];
@@ -3831,7 +3538,7 @@ function readXcodeJsonProject(xcodeproj, source) {
3831
3538
  const kind = text(entry.kind) ?? "file-reference";
3832
3539
  const raw = text(entry.path) ?? "";
3833
3540
  const located = raw === "" ? null : locate(raw, parent.dir);
3834
- const name = text(entry.name) ?? import_node_path9.default.basename(raw);
3541
+ const name = text(entry.name) ?? import_node_path5.default.basename(raw);
3835
3542
  const node = { id: "", name, dir: null, parent, children: [] };
3836
3543
  if (kind === "group" || kind === "variant-group" || kind === "version-group") {
3837
3544
  node.dir = raw === "" ? parent.dir : located?.sourceTree === "<absolute>" ? located.path : null;
@@ -3952,7 +3659,7 @@ function readXcodeJsonProject(xcodeproj, source) {
3952
3659
  if (!isObject(entry)) continue;
3953
3660
  const repository = text(entry.repository);
3954
3661
  const local = text(entry.path);
3955
- const name = local !== void 0 ? import_node_path9.default.basename(import_node_path9.default.resolve(import_node_path9.default.dirname(xcodeproj), local)) : import_node_path9.default.basename(repository ?? "").replace(/\.git$/, "");
3662
+ const name = local !== void 0 ? import_node_path5.default.basename(import_node_path5.default.resolve(import_node_path5.default.dirname(xcodeproj), local)) : import_node_path5.default.basename(repository ?? "").replace(/\.git$/, "");
3956
3663
  const id = text(entry.kind) === "local" && local !== void 0 ? add({ isa: "XCLocalSwiftPackageReference", relativePath: local }) : add({
3957
3664
  isa: "XCRemoteSwiftPackageReference",
3958
3665
  repositoryURL: repository ?? "",
@@ -4172,28 +3879,28 @@ var CONDITIONS = {
4172
3879
  variant: "normal"
4173
3880
  };
4174
3881
  function walkFiles(dir) {
4175
- if (!import_node_fs6.default.existsSync(dir)) return [];
3882
+ if (!import_node_fs3.default.existsSync(dir)) return [];
4176
3883
  const out = [];
4177
- for (const entry of import_node_fs6.default.readdirSync(dir, { withFileTypes: true }).sort((left, right) => left.name.localeCompare(right.name))) {
3884
+ for (const entry of import_node_fs3.default.readdirSync(dir, { withFileTypes: true }).sort((left, right) => left.name.localeCompare(right.name))) {
4178
3885
  if (entry.name.startsWith(".")) continue;
4179
- const full = import_node_path10.default.join(dir, entry.name);
3886
+ const full = import_node_path6.default.join(dir, entry.name);
4180
3887
  if (entry.isDirectory()) out.push(...walkFiles(full));
4181
3888
  else if (entry.isFile()) out.push(full);
4182
3889
  }
4183
3890
  return out;
4184
3891
  }
4185
- var isDirectory = (dir) => import_node_fs6.default.existsSync(dir) && import_node_fs6.default.statSync(dir).isDirectory();
3892
+ var isDirectory = (dir) => import_node_fs3.default.existsSync(dir) && import_node_fs3.default.statSync(dir).isDirectory();
4186
3893
  function readXcconfig(file, read) {
4187
- if (read.includes(file) || !import_node_fs6.default.existsSync(file)) return {};
3894
+ if (read.includes(file) || !import_node_fs3.default.existsSync(file)) return {};
4188
3895
  read.push(file);
4189
3896
  const settings = {};
4190
- for (const raw of import_node_fs6.default.readFileSync(file, "utf8").split("\n")) {
3897
+ for (const raw of import_node_fs3.default.readFileSync(file, "utf8").split("\n")) {
4191
3898
  const line = raw.replace(/\/\/.*$/, "").trim();
4192
3899
  const include = /^#include\??\s+"([^"]+)"/.exec(line);
4193
3900
  if (include) {
4194
3901
  Object.assign(
4195
3902
  settings,
4196
- readXcconfig(import_node_path10.default.resolve(import_node_path10.default.dirname(file), include[1]), read)
3903
+ readXcconfig(import_node_path6.default.resolve(import_node_path6.default.dirname(file), include[1]), read)
4197
3904
  );
4198
3905
  continue;
4199
3906
  }
@@ -4243,22 +3950,22 @@ function decodeXml(text2) {
4243
3950
  return text2.replaceAll("&quot;", '"').replaceAll("&apos;", "'").replaceAll("&lt;", "<").replaceAll("&gt;", ">").replaceAll("&amp;", "&");
4244
3951
  }
4245
3952
  function workspaceReferences(workspace) {
4246
- const data = import_node_path10.default.join(workspace, "contents.xcworkspacedata");
4247
- if (!import_node_fs6.default.existsSync(data))
3953
+ const data = import_node_path6.default.join(workspace, "contents.xcworkspacedata");
3954
+ if (!import_node_fs3.default.existsSync(data))
4248
3955
  throw new Error(`${workspace} has no contents.xcworkspacedata`);
4249
- const container = import_node_path10.default.dirname(workspace);
3956
+ const container = import_node_path6.default.dirname(workspace);
4250
3957
  const locate = (location, base) => {
4251
3958
  const colon = location.indexOf(":");
4252
3959
  const kind = location.slice(0, colon);
4253
3960
  const rest = location.slice(colon + 1);
4254
- if (kind === "group") return import_node_path10.default.resolve(base, rest);
4255
- if (kind === "container" || kind === "self") return import_node_path10.default.resolve(container, rest);
4256
- if (kind === "absolute") return import_node_path10.default.resolve(rest);
4257
- throw new Error(`${import_node_path10.default.basename(workspace)} has an unsupported location ${location}`);
3961
+ if (kind === "group") return import_node_path6.default.resolve(base, rest);
3962
+ if (kind === "container" || kind === "self") return import_node_path6.default.resolve(container, rest);
3963
+ if (kind === "absolute") return import_node_path6.default.resolve(rest);
3964
+ throw new Error(`${import_node_path6.default.basename(workspace)} has an unsupported location ${location}`);
4258
3965
  };
4259
3966
  const groups = [container];
4260
3967
  const references = [];
4261
- for (const [, closing, tag, attributes, selfClosing] of import_node_fs6.default.readFileSync(data, "utf8").matchAll(/<(\/?)(Group|FileRef)\b([^>]*?)(\/?)>/g)) {
3968
+ for (const [, closing, tag, attributes, selfClosing] of import_node_fs3.default.readFileSync(data, "utf8").matchAll(/<(\/?)(Group|FileRef)\b([^>]*?)(\/?)>/g)) {
4262
3969
  if (closing) {
4263
3970
  if (tag === "Group") groups.pop();
4264
3971
  continue;
@@ -4309,8 +4016,8 @@ function remotePackageRequirements(projects) {
4309
4016
  var loaded = /* @__PURE__ */ new Map();
4310
4017
  function xcodeProjectFile(xcodeproj) {
4311
4018
  for (const name of ["project.pbxproj", "project.xcproj"]) {
4312
- const file = import_node_path10.default.join(xcodeproj, name);
4313
- if (import_node_fs6.default.existsSync(file)) return file;
4019
+ const file = import_node_path6.default.join(xcodeproj, name);
4020
+ if (import_node_fs3.default.existsSync(file)) return file;
4314
4021
  }
4315
4022
  return null;
4316
4023
  }
@@ -4318,8 +4025,8 @@ function loadProject(xcodeproj) {
4318
4025
  const projectFile = xcodeProjectFile(xcodeproj);
4319
4026
  if (!projectFile)
4320
4027
  throw new Error(`${xcodeproj} has no project.pbxproj or project.xcproj`);
4321
- const source = import_node_fs6.default.readFileSync(projectFile, "utf8");
4322
- const digest = (0, import_node_crypto4.createHash)("sha256").update(source).digest("hex");
4028
+ const source = import_node_fs3.default.readFileSync(projectFile, "utf8");
4029
+ const digest = (0, import_node_crypto3.createHash)("sha256").update(source).digest("hex");
4323
4030
  const cached = loaded.get(projectFile);
4324
4031
  if (cached?.digest === digest) return cached.project;
4325
4032
  const root = projectFile.endsWith(".xcproj") ? readXcodeJsonProject(xcodeproj, source) : parseOpenStepPlist(source);
@@ -4335,10 +4042,10 @@ function loadProject(xcodeproj) {
4335
4042
  if (!project || project.isa !== "PBXProject") {
4336
4043
  throw new Error(`${projectFile} has no PBXProject root`);
4337
4044
  }
4338
- const projectDir = import_node_fs6.default.realpathSync.native(
4339
- import_node_path10.default.resolve(import_node_path10.default.dirname(xcodeproj), str(project.projectDirPath) ?? "")
4045
+ const projectDir = import_node_fs3.default.realpathSync.native(
4046
+ import_node_path6.default.resolve(import_node_path6.default.dirname(xcodeproj), str(project.projectDirPath) ?? "")
4340
4047
  );
4341
- const resolvePath = xcodePathResolver(objects, projectDir, import_node_path10.default.join);
4048
+ const resolvePath = xcodePathResolver(objects, projectDir, import_node_path6.default.join);
4342
4049
  const result = {
4343
4050
  xcodeproj,
4344
4051
  projectFile,
@@ -4375,8 +4082,8 @@ function targetSettings(ref, configuration, builtins, options = {}, overrides =
4375
4082
  const relative = str(config.baseConfigurationReferenceRelativePath);
4376
4083
  const own = isDict(config.buildSettings) ? config.buildSettings : {};
4377
4084
  const directory = anchor ? project.resolvePath(anchor) : null;
4378
- const baseFile = base ? project.resolvePath(base) : directory && relative ? import_node_path10.default.resolve(directory, relative) : null;
4379
- if (options.requireSources !== false && (base || anchor || relative) && (!baseFile || !import_node_fs6.default.existsSync(baseFile)))
4085
+ const baseFile = base ? project.resolvePath(base) : directory && relative ? import_node_path6.default.resolve(directory, relative) : null;
4086
+ if (options.requireSources !== false && (base || anchor || relative) && (!baseFile || !import_node_fs3.default.existsSync(baseFile)))
4380
4087
  throw new Error(
4381
4088
  `Unable to open base configuration reference file '${baseFile ?? base ?? relative ?? anchor}'`
4382
4089
  );
@@ -4474,26 +4181,26 @@ function scriptCommand(shell, script) {
4474
4181
  return [executable, ...args, "-c", script];
4475
4182
  }
4476
4183
  function expandSearchPath(directory, rules2) {
4477
- if (import_node_path10.default.basename(directory) !== "**") return [directory];
4184
+ if (import_node_path6.default.basename(directory) !== "**") return [directory];
4478
4185
  const expanded = [];
4479
4186
  const seen = /* @__PURE__ */ new Set();
4480
- const queue = [import_node_path10.default.dirname(directory)];
4187
+ const queue = [import_node_path6.default.dirname(directory)];
4481
4188
  for (let at = 0; at < queue.length; at++) {
4482
4189
  const current = queue[at];
4483
4190
  let real;
4484
4191
  try {
4485
- real = import_node_fs6.default.realpathSync.native(current);
4192
+ real = import_node_fs3.default.realpathSync.native(current);
4486
4193
  } catch {
4487
4194
  continue;
4488
4195
  }
4489
- if (!import_node_fs6.default.statSync(real).isDirectory() || seen.has(real)) continue;
4196
+ if (!import_node_fs3.default.statSync(real).isDirectory() || seen.has(real)) continue;
4490
4197
  seen.add(real);
4491
4198
  expanded.push(current);
4492
- for (const entry of import_node_fs6.default.readdirSync(real, { withFileTypes: true }).sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0)) {
4199
+ for (const entry of import_node_fs3.default.readdirSync(real, { withFileTypes: true }).sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0)) {
4493
4200
  if (entry.isSymbolicLink() ? !rules2.followLinks : !entry.isDirectory()) continue;
4494
4201
  if (rules2.excluded.some((pattern) => pattern.test(entry.name)) && !rules2.included.some((pattern) => pattern.test(entry.name)))
4495
4202
  continue;
4496
- queue.push(import_node_path10.default.join(current, entry.name));
4203
+ queue.push(import_node_path6.default.join(current, entry.name));
4497
4204
  }
4498
4205
  }
4499
4206
  return expanded;
@@ -4564,7 +4271,7 @@ function shellAssetCatalogs(script, settings, projectDir) {
4564
4271
  for (const token of tokens) {
4565
4272
  if (token.startsWith("-")) break;
4566
4273
  const file = resolve(token);
4567
- if (file?.endsWith(".xcassets")) catalogs.push(import_node_path10.default.resolve(projectDir, file));
4274
+ if (file?.endsWith(".xcassets")) catalogs.push(import_node_path6.default.resolve(projectDir, file));
4568
4275
  }
4569
4276
  }
4570
4277
  return catalogs;
@@ -4609,14 +4316,14 @@ function shellCopies(script, settings, projectDir) {
4609
4316
  if (operands.length !== 2 || operands.some((operand) => operand.startsWith("-")))
4610
4317
  return [];
4611
4318
  copies.push({
4612
- from: import_node_path10.default.resolve(projectDir, operands[0]),
4613
- to: import_node_path10.default.resolve(projectDir, operands[1])
4319
+ from: import_node_path6.default.resolve(projectDir, operands[0]),
4320
+ to: import_node_path6.default.resolve(projectDir, operands[1])
4614
4321
  });
4615
4322
  }
4616
4323
  return copies;
4617
4324
  }
4618
4325
  function fileListEntries(file, absolute) {
4619
- return import_node_fs6.default.readFileSync(file, "utf8").split(/\r?\n/).map((line) => line.trim()).filter((line) => line !== "" && !line.startsWith("#")).map(absolute);
4326
+ return import_node_fs3.default.readFileSync(file, "utf8").split(/\r?\n/).map((line) => line.trim()).filter((line) => line !== "" && !line.startsWith("#")).map(absolute);
4620
4327
  }
4621
4328
  function targetMembers(ref, settings, options, settingKeys, projectInputs) {
4622
4329
  const { project, target, id: targetId } = ref;
@@ -4630,7 +4337,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
4630
4337
  const copiedFiles = [];
4631
4338
  let generatedInfoPlist = false;
4632
4339
  const declaredInfoPlist = settings("INFOPLIST_FILE");
4633
- const infoPlistOutput = declaredInfoPlist ? import_node_path10.default.resolve(project.projectDir, declaredInfoPlist) : null;
4340
+ const infoPlistOutput = declaredInfoPlist ? import_node_path6.default.resolve(project.projectDir, declaredInfoPlist) : null;
4634
4341
  const isPreparedOutput = (file) => file === infoPlistOutput || options.requireSources !== false && file.endsWith(".swift");
4635
4342
  for (const phaseId of list(target.buildPhases)) {
4636
4343
  const phase = project.object(phaseId);
@@ -4645,7 +4352,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
4645
4352
  copiedFiles.push(
4646
4353
  ...shellCopies(str(phase.shellScript) ?? "", settings, project.projectDir)
4647
4354
  );
4648
- const absolute = (raw) => import_node_path10.default.resolve(project.projectDir, expand(raw, settings));
4355
+ const absolute = (raw) => import_node_path6.default.resolve(project.projectDir, expand(raw, settings));
4649
4356
  const inputs = list(phase.inputPaths).map(absolute);
4650
4357
  const outputs = list(phase.outputPaths).map(absolute);
4651
4358
  const fileLists = /* @__PURE__ */ new Map();
@@ -4654,7 +4361,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
4654
4361
  kind === "INPUT" ? phase.inputFileListPaths : phase.outputFileListPaths
4655
4362
  ).map((raw) => {
4656
4363
  const file = absolute(raw);
4657
- if (!import_node_fs6.default.existsSync(file)) {
4364
+ if (!import_node_fs3.default.existsSync(file)) {
4658
4365
  return { file, entries: [] };
4659
4366
  }
4660
4367
  return { file, entries: fileListEntries(file, absolute) };
@@ -4675,7 +4382,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
4675
4382
  ...fileLists.get("OUTPUT").map((item) => item.file)
4676
4383
  ];
4677
4384
  if (allOutputs.some((file) => file.endsWith(".swift") || file === infoPlistOutput)) {
4678
- for (const file of inputFiles) if (import_node_fs6.default.existsSync(file)) projectInputs.add(file);
4385
+ for (const file of inputFiles) if (import_node_fs3.default.existsSync(file)) projectInputs.add(file);
4679
4386
  }
4680
4387
  if (options.prepareGeneratedSources === true && allOutputs.some(isPreparedOutput)) {
4681
4388
  const configuration = settings("CONFIGURATION");
@@ -4688,10 +4395,10 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
4688
4395
  false
4689
4396
  ))
4690
4397
  continue;
4691
- const phaseDir = import_node_path10.default.join(settings("TARGET_TEMP_DIR"), `Script-${phaseId}`);
4398
+ const phaseDir = import_node_path6.default.join(settings("TARGET_TEMP_DIR"), `Script-${phaseId}`);
4692
4399
  for (const lists of fileLists.values())
4693
4400
  for (const { file } of lists)
4694
- if (!import_node_fs6.default.existsSync(file))
4401
+ if (!import_node_fs3.default.existsSync(file))
4695
4402
  throw new Error(
4696
4403
  `${targetName}: Run Script "${script}" missing file list ${file}`
4697
4404
  );
@@ -4710,25 +4417,25 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
4710
4417
  const lists = fileLists.get(kind);
4711
4418
  env[`SCRIPT_${kind}_FILE_LIST_COUNT`] = String(lists.length);
4712
4419
  lists.forEach((_item, index) => {
4713
- env[`SCRIPT_${kind}_FILE_LIST_${index}`] = import_node_path10.default.join(
4420
+ env[`SCRIPT_${kind}_FILE_LIST_${index}`] = import_node_path6.default.join(
4714
4421
  phaseDir,
4715
4422
  `${kind}-${index}.xcfilelist`
4716
4423
  );
4717
4424
  });
4718
4425
  }
4719
- const signature = (0, import_node_crypto4.createHash)("sha256").update(
4426
+ const signature = (0, import_node_crypto3.createHash)("sha256").update(
4720
4427
  JSON.stringify([phase, [...settingKeys].map((key2) => [key2, settings(key2)])])
4721
4428
  );
4722
4429
  for (const file of inputFiles) {
4723
4430
  signature.update(file);
4724
- if (import_node_fs6.default.existsSync(file)) {
4725
- const stat = import_node_fs6.default.statSync(file);
4431
+ if (import_node_fs3.default.existsSync(file)) {
4432
+ const stat = import_node_fs3.default.statSync(file);
4726
4433
  signature.update(`${stat.mtimeMs}:${stat.ctimeMs}:${stat.size}`);
4727
4434
  } else signature.update("missing");
4728
4435
  }
4729
4436
  const stamp = signature.digest("hex");
4730
4437
  const key = `${project.projectFile}:${targetId}:${phaseId}:${settings("CONFIGURATION")}`;
4731
- if (preparedSourcePhases.get(key) === stamp && allOutputs.every((file) => import_node_fs6.default.existsSync(file))) {
4438
+ if (preparedSourcePhases.get(key) === stamp && allOutputs.every((file) => import_node_fs3.default.existsSync(file))) {
4732
4439
  preparedXcodePhase(
4733
4440
  project.projectFile,
4734
4441
  targetId,
@@ -4739,14 +4446,14 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
4739
4446
  );
4740
4447
  continue;
4741
4448
  }
4742
- import_node_fs6.default.mkdirSync(phaseDir, { recursive: true });
4743
- import_node_fs6.default.mkdirSync(settings("BUILT_PRODUCTS_DIR"), { recursive: true });
4744
- import_node_fs6.default.mkdirSync(settings("DERIVED_FILE_DIR"), { recursive: true });
4449
+ import_node_fs3.default.mkdirSync(phaseDir, { recursive: true });
4450
+ import_node_fs3.default.mkdirSync(settings("BUILT_PRODUCTS_DIR"), { recursive: true });
4451
+ import_node_fs3.default.mkdirSync(settings("DERIVED_FILE_DIR"), { recursive: true });
4745
4452
  for (const output2 of allOutputs)
4746
- import_node_fs6.default.mkdirSync(import_node_path10.default.dirname(output2), { recursive: true });
4453
+ import_node_fs3.default.mkdirSync(import_node_path6.default.dirname(output2), { recursive: true });
4747
4454
  for (const [kind, lists] of fileLists)
4748
4455
  lists.forEach((item, index) => {
4749
- import_node_fs6.default.writeFileSync(
4456
+ import_node_fs3.default.writeFileSync(
4750
4457
  env[`SCRIPT_${kind}_FILE_LIST_${index}`],
4751
4458
  `${item.entries.join("\n")}
4752
4459
  `
@@ -4773,7 +4480,7 @@ ${output2}`
4773
4480
  );
4774
4481
  }
4775
4482
  const missing = allOutputs.filter(
4776
- (file) => file === infoPlistOutput && !import_node_fs6.default.existsSync(file)
4483
+ (file) => file === infoPlistOutput && !import_node_fs3.default.existsSync(file)
4777
4484
  );
4778
4485
  if (missing.length > 0)
4779
4486
  throw new Error(
@@ -4792,9 +4499,9 @@ ${output2}`
4792
4499
  }
4793
4500
  project.visitMembers(
4794
4501
  targetId,
4795
- xcodePathResolver(project.objects, project.projectDir, import_node_path10.default.join, settings),
4796
- (file) => isDirectory(file) ? walkFiles(file) : import_node_fs6.default.existsSync(file) ? [file] : [],
4797
- import_node_path10.default.join,
4502
+ xcodePathResolver(project.objects, project.projectDir, import_node_path6.default.join, settings),
4503
+ (file) => isDirectory(file) ? walkFiles(file) : import_node_fs3.default.existsSync(file) ? [file] : [],
4504
+ import_node_path6.default.join,
4798
4505
  (file, kind, bundleName) => {
4799
4506
  if (kind === "header") {
4800
4507
  headers.add(file);
@@ -4805,9 +4512,9 @@ ${output2}`
4805
4512
  if (bundleName) resourceNames[file] = bundleName;
4806
4513
  return;
4807
4514
  }
4808
- if (!import_node_fs6.default.existsSync(file)) {
4515
+ if (!import_node_fs3.default.existsSync(file)) {
4809
4516
  if (options.requireSources === false) return;
4810
- const script = scriptForOutput.get(import_node_path10.default.normalize(file));
4517
+ const script = scriptForOutput.get(import_node_path6.default.normalize(file));
4811
4518
  throw new Error(
4812
4519
  script ? `${targetName}: missing generated source ${file} (Run Script "${script}" declares it in outputPaths; run the script or check in its output)` : `${targetName}: missing source ${file}`
4813
4520
  );
@@ -4818,17 +4525,17 @@ ${output2}`
4818
4525
  );
4819
4526
  if (options.prepareGeneratedSources && options.requireSources !== false) {
4820
4527
  const interfaceFiles = [...resources].filter(
4821
- (file) => /\.(storyboard|xib)$/.test(file) && !file.split(import_node_path10.default.sep).some((part) => part.endsWith(".bundle"))
4528
+ (file) => /\.(storyboard|xib)$/.test(file) && !file.split(import_node_path6.default.sep).some((part) => part.endsWith(".bundle"))
4822
4529
  );
4823
4530
  if (process.platform !== "darwin") {
4824
4531
  let launchName = settings("INFOPLIST_KEY_UILaunchStoryboardName");
4825
- if (!launchName && infoPlistOutput && import_node_fs6.default.existsSync(infoPlistOutput)) {
4826
- const info = import_plist2.default.parse(import_node_fs6.default.readFileSync(infoPlistOutput, "utf8"));
4532
+ if (!launchName && infoPlistOutput && import_node_fs3.default.existsSync(infoPlistOutput)) {
4533
+ const info = import_plist2.default.parse(import_node_fs3.default.readFileSync(infoPlistOutput, "utf8"));
4827
4534
  const declared = isRecord(info) ? info.UILaunchStoryboardName : void 0;
4828
4535
  if (typeof declared === "string") launchName = expand(declared, settings);
4829
4536
  }
4830
4537
  const runtimeInterfaceFiles = interfaceFiles.filter(
4831
- (file) => import_node_path10.default.basename(file, import_node_path10.default.extname(file)) !== launchName
4538
+ (file) => import_node_path6.default.basename(file, import_node_path6.default.extname(file)) !== launchName
4832
4539
  );
4833
4540
  if (runtimeInterfaceFiles.length > 0)
4834
4541
  throw new Error(
@@ -4839,19 +4546,19 @@ ${output2}`
4839
4546
  }
4840
4547
  const interfaceOutputs = /* @__PURE__ */ new Set();
4841
4548
  for (const file of interfaceFiles) {
4842
- const localization = file.split(import_node_path10.default.sep).findLast((part) => part.endsWith(".lproj")) ?? "";
4549
+ const localization = file.split(import_node_path6.default.sep).findLast((part) => part.endsWith(".lproj")) ?? "";
4843
4550
  const extension = file.endsWith(".storyboard") ? ".storyboardc" : ".nib";
4844
- const output2 = import_node_path10.default.join(
4551
+ const output2 = import_node_path6.default.join(
4845
4552
  settings("DERIVED_FILE_DIR"),
4846
4553
  "InterfaceBuilder",
4847
4554
  localization,
4848
- import_node_path10.default.basename(file, import_node_path10.default.extname(file)) + extension
4555
+ import_node_path6.default.basename(file, import_node_path6.default.extname(file)) + extension
4849
4556
  );
4850
4557
  if (interfaceOutputs.has(output2))
4851
4558
  throw new Error(`${targetName}: duplicate Interface Builder output ${output2}`);
4852
4559
  interfaceOutputs.add(output2);
4853
- import_node_fs6.default.rmSync(output2, { recursive: true, force: true });
4854
- import_node_fs6.default.mkdirSync(import_node_path10.default.dirname(output2), { recursive: true });
4560
+ import_node_fs3.default.rmSync(output2, { recursive: true, force: true });
4561
+ import_node_fs3.default.mkdirSync(import_node_path6.default.dirname(output2), { recursive: true });
4855
4562
  const args = [
4856
4563
  "ibtool",
4857
4564
  "--compile",
@@ -4885,13 +4592,13 @@ ${output2}`
4885
4592
  for (const definition of definitions) {
4886
4593
  const configuredLanguage = settings("INTENTS_CODEGEN_LANGUAGE");
4887
4594
  const language = !configuredLanguage || configuredLanguage === "Automatic" ? sources.size > 0 ? "Swift" : "Objective-C" : configuredLanguage;
4888
- const output2 = import_node_path10.default.join(
4595
+ const output2 = import_node_path6.default.join(
4889
4596
  settings("DERIVED_FILE_DIR"),
4890
4597
  "IntentDefinitionGenerated",
4891
- import_node_path10.default.basename(definition, ".intentdefinition")
4598
+ import_node_path6.default.basename(definition, ".intentdefinition")
4892
4599
  );
4893
- import_node_fs6.default.rmSync(output2, { recursive: true, force: true });
4894
- import_node_fs6.default.mkdirSync(output2, { recursive: true });
4600
+ import_node_fs3.default.rmSync(output2, { recursive: true, force: true });
4601
+ import_node_fs3.default.mkdirSync(output2, { recursive: true });
4895
4602
  const args = [
4896
4603
  "intentbuilderc",
4897
4604
  "generate",
@@ -4936,37 +4643,37 @@ ${output2}`
4936
4643
  function commonAncestor(dirs) {
4937
4644
  let common = dirs[0];
4938
4645
  for (const dir of dirs) {
4939
- while (common !== import_node_path10.default.dirname(common) && import_node_path10.default.relative(common, dir).startsWith(".."))
4940
- common = import_node_path10.default.dirname(common);
4646
+ while (common !== import_node_path6.default.dirname(common) && import_node_path6.default.relative(common, dir).startsWith(".."))
4647
+ common = import_node_path6.default.dirname(common);
4941
4648
  }
4942
4649
  return common;
4943
4650
  }
4944
- var isPodsProject = (xcodeproj) => import_node_path10.default.basename(xcodeproj) === "Pods.xcodeproj" && import_node_path10.default.basename(import_node_path10.default.dirname(xcodeproj)) === "Pods";
4651
+ var isPodsProject = (xcodeproj) => import_node_path6.default.basename(xcodeproj) === "Pods.xcodeproj" && import_node_path6.default.basename(import_node_path6.default.dirname(xcodeproj)) === "Pods";
4945
4652
  function installedPodsSandbox(pods) {
4946
- const podfileLock = import_node_path10.default.join(import_node_path10.default.dirname(pods), "Podfile.lock");
4947
- const manifestLock = import_node_path10.default.join(pods, "Manifest.lock");
4948
- if (!import_node_fs6.default.existsSync(podfileLock))
4653
+ const podfileLock = import_node_path6.default.join(import_node_path6.default.dirname(pods), "Podfile.lock");
4654
+ const manifestLock = import_node_path6.default.join(pods, "Manifest.lock");
4655
+ if (!import_node_fs3.default.existsSync(podfileLock))
4949
4656
  throw new Error(
4950
- `${pods} has no ${podfileLock}: run \`pod install\` in ${import_node_path10.default.dirname(pods)}`
4657
+ `${pods} has no ${podfileLock}: run \`pod install\` in ${import_node_path6.default.dirname(pods)}`
4951
4658
  );
4952
- if (!import_node_fs6.default.existsSync(manifestLock) || !import_node_fs6.default.readFileSync(manifestLock).equals(import_node_fs6.default.readFileSync(podfileLock)))
4659
+ if (!import_node_fs3.default.existsSync(manifestLock) || !import_node_fs3.default.readFileSync(manifestLock).equals(import_node_fs3.default.readFileSync(podfileLock)))
4953
4660
  throw new Error(
4954
- `The sandbox is not in sync with the Podfile.lock: ${manifestLock} differs from ${podfileLock}. Run \`pod install\` in ${import_node_path10.default.dirname(pods)}`
4661
+ `The sandbox is not in sync with the Podfile.lock: ${manifestLock} differs from ${podfileLock}. Run \`pod install\` in ${import_node_path6.default.dirname(pods)}`
4955
4662
  );
4956
4663
  const specChecksums = {};
4957
- const lines = import_node_fs6.default.readFileSync(manifestLock, "utf8").split("\n");
4664
+ const lines = import_node_fs3.default.readFileSync(manifestLock, "utf8").split("\n");
4958
4665
  const start = lines.indexOf("SPEC CHECKSUMS:");
4959
4666
  for (const line of start === -1 ? [] : lines.slice(start + 1)) {
4960
4667
  const entry = /^ {2}"?([^":]+)"?: ([0-9a-f]+)$/.exec(line);
4961
4668
  if (!entry) break;
4962
4669
  specChecksums[entry[1]] = entry[2];
4963
4670
  }
4964
- const specs = import_node_path10.default.join(pods, "Local Podspecs");
4671
+ const specs = import_node_path6.default.join(pods, "Local Podspecs");
4965
4672
  return {
4966
4673
  podfileLock,
4967
4674
  manifestLock,
4968
4675
  specChecksums,
4969
- localPodspecs: isDirectory(specs) ? import_node_fs6.default.readdirSync(specs).filter((name) => name.endsWith(".podspec.json")).sort().map((name) => import_node_path10.default.join(specs, name)) : []
4676
+ localPodspecs: isDirectory(specs) ? import_node_fs3.default.readdirSync(specs).filter((name) => name.endsWith(".podspec.json")).sort().map((name) => import_node_path6.default.join(specs, name)) : []
4970
4677
  };
4971
4678
  }
4972
4679
  function workspaceProjects(xcodeprojOrWorkspace, installedPods = false) {
@@ -4978,14 +4685,14 @@ function workspaceProjects(xcodeprojOrWorkspace, installedPods = false) {
4978
4685
  if (!xcodeProjectFile(xcodeproj)) {
4979
4686
  if (installedPods && isPodsProject(xcodeproj))
4980
4687
  throw new Error(
4981
- `${import_node_path10.default.basename(xcodeprojOrWorkspace)} builds ${xcodeproj}, which is not installed: run \`pod install\` in ${import_node_path10.default.dirname(import_node_path10.default.dirname(xcodeproj))}`
4688
+ `${import_node_path6.default.basename(xcodeprojOrWorkspace)} builds ${xcodeproj}, which is not installed: run \`pod install\` in ${import_node_path6.default.dirname(import_node_path6.default.dirname(xcodeproj))}`
4982
4689
  );
4983
4690
  return;
4984
4691
  }
4985
- const key = import_node_fs6.default.realpathSync.native(xcodeproj);
4986
- if (projectAt.has(key) || !installedPods && key.split(import_node_path10.default.sep).includes("Pods"))
4692
+ const key = import_node_fs3.default.realpathSync.native(xcodeproj);
4693
+ if (projectAt.has(key) || !installedPods && key.split(import_node_path6.default.sep).includes("Pods"))
4987
4694
  return;
4988
- if (isPodsProject(key)) cocoapods = installedPodsSandbox(import_node_path10.default.dirname(key));
4695
+ if (isPodsProject(key)) cocoapods = installedPodsSandbox(import_node_path6.default.dirname(key));
4989
4696
  const project = loadProject(key);
4990
4697
  projectAt.set(key, project);
4991
4698
  projects.push(project);
@@ -5001,12 +4708,12 @@ function workspaceProjects(xcodeprojOrWorkspace, installedPods = false) {
5001
4708
  for (const reference of listed)
5002
4709
  if (reference.endsWith(".xcodeproj")) addProject(reference);
5003
4710
  if (projects.length === 0) {
5004
- throw new Error(`${import_node_path10.default.basename(xcodeprojOrWorkspace)} lists no Xcode project`);
4711
+ throw new Error(`${import_node_path6.default.basename(xcodeprojOrWorkspace)} lists no Xcode project`);
5005
4712
  }
5006
- const podfile = import_node_path10.default.join(import_node_path10.default.dirname(xcodeprojOrWorkspace), "Podfile");
5007
- if (installedPods && !cocoapods && import_node_fs6.default.existsSync(podfile))
4713
+ const podfile = import_node_path6.default.join(import_node_path6.default.dirname(xcodeprojOrWorkspace), "Podfile");
4714
+ if (installedPods && !cocoapods && import_node_fs3.default.existsSync(podfile))
5008
4715
  throw new Error(
5009
- `${podfile} is not installed into ${import_node_path10.default.basename(xcodeprojOrWorkspace)}: run \`pod install\` in ${import_node_path10.default.dirname(podfile)} and open the workspace it writes`
4716
+ `${podfile} is not installed into ${import_node_path6.default.basename(xcodeprojOrWorkspace)}: run \`pod install\` in ${import_node_path6.default.dirname(podfile)} and open the workspace it writes`
5010
4717
  );
5011
4718
  return { listed, projects, projectAt, cocoapods };
5012
4719
  }
@@ -5044,7 +4751,7 @@ function listXcodeAppTargets(xcodeprojOrWorkspace, options = {}) {
5044
4751
  return workspaceProjects(xcodeprojOrWorkspace).projects.flatMap(projectTargets).filter((ref) => isIosAppTarget(ref, options)).map((ref) => str(ref.target.name) ?? ref.id);
5045
4752
  }
5046
4753
  function defaultXcodeAppTarget(xcodeproj) {
5047
- const project = loadProject(import_node_fs6.default.realpathSync.native(xcodeproj));
4754
+ const project = loadProject(import_node_fs3.default.realpathSync.native(xcodeproj));
5048
4755
  for (const [id, target] of Object.entries(project.objects)) {
5049
4756
  if (!isDict(target) || target.isa !== "PBXNativeTarget") continue;
5050
4757
  if (isIosAppTarget({ project, id, target }, { requireSources: false }))
@@ -5052,30 +4759,30 @@ function defaultXcodeAppTarget(xcodeproj) {
5052
4759
  }
5053
4760
  }
5054
4761
  function readXcodeScheme(xcodeprojOrWorkspace, scheme) {
5055
- const container = import_node_fs6.default.realpathSync.native(xcodeprojOrWorkspace);
4762
+ const container = import_node_fs3.default.realpathSync.native(xcodeprojOrWorkspace);
5056
4763
  const { projects } = workspaceProjects(container);
5057
4764
  const containers = [
5058
4765
  .../* @__PURE__ */ new Set([container, ...projects.map((project2) => project2.xcodeproj)])
5059
4766
  ];
5060
4767
  const found = containers.flatMap(
5061
4768
  (dir) => [
5062
- import_node_path10.default.join(dir, "xcshareddata"),
5063
- ...isDirectory(import_node_path10.default.join(dir, "xcuserdata")) ? import_node_fs6.default.readdirSync(import_node_path10.default.join(dir, "xcuserdata")).sort().map((user) => import_node_path10.default.join(dir, "xcuserdata", user)) : []
4769
+ import_node_path6.default.join(dir, "xcshareddata"),
4770
+ ...isDirectory(import_node_path6.default.join(dir, "xcuserdata")) ? import_node_fs3.default.readdirSync(import_node_path6.default.join(dir, "xcuserdata")).sort().map((user) => import_node_path6.default.join(dir, "xcuserdata", user)) : []
5064
4771
  ].map((data) => ({
5065
4772
  dir,
5066
- file: import_node_path10.default.join(data, "xcschemes", `${scheme}.xcscheme`)
4773
+ file: import_node_path6.default.join(data, "xcschemes", `${scheme}.xcscheme`)
5067
4774
  }))
5068
- ).find((candidate) => import_node_fs6.default.existsSync(candidate.file));
4775
+ ).find((candidate) => import_node_fs3.default.existsSync(candidate.file));
5069
4776
  if (!found) {
5070
4777
  const known = containers.flatMap(
5071
- (dir) => import_node_fs6.default.existsSync(import_node_path10.default.join(dir, "xcshareddata", "xcschemes")) ? import_node_fs6.default.readdirSync(import_node_path10.default.join(dir, "xcshareddata", "xcschemes")).filter((name2) => name2.endsWith(".xcscheme")).map((name2) => name2.slice(0, -".xcscheme".length)).sort() : []
4778
+ (dir) => import_node_fs3.default.existsSync(import_node_path6.default.join(dir, "xcshareddata", "xcschemes")) ? import_node_fs3.default.readdirSync(import_node_path6.default.join(dir, "xcshareddata", "xcschemes")).filter((name2) => name2.endsWith(".xcscheme")).map((name2) => name2.slice(0, -".xcscheme".length)).sort() : []
5072
4779
  );
5073
4780
  throw new Error(
5074
- `${import_node_path10.default.basename(container)} has no scheme ${scheme}; it shares ${known.join(", ") || "none"}`
4781
+ `${import_node_path6.default.basename(container)} has no scheme ${scheme}; it shares ${known.join(", ") || "none"}`
5075
4782
  );
5076
4783
  }
5077
4784
  const launch = /<LaunchAction\b([^>]*)>([\s\S]*?)<\/LaunchAction>/.exec(
5078
- import_node_fs6.default.readFileSync(found.file, "utf8")
4785
+ import_node_fs3.default.readFileSync(found.file, "utf8")
5079
4786
  );
5080
4787
  const attribute = (text2, name2) => {
5081
4788
  const value = new RegExp(`\\b${name2}\\s*=\\s*"([^"]*)"`).exec(text2)?.[1];
@@ -5088,12 +4795,12 @@ function readXcodeScheme(xcodeprojOrWorkspace, scheme) {
5088
4795
  if (!configuration || !blueprint || !referenced?.startsWith("container:")) {
5089
4796
  throw new Error(`scheme ${scheme} runs no application target`);
5090
4797
  }
5091
- const projectPath = import_node_path10.default.resolve(
5092
- import_node_path10.default.dirname(found.dir),
4798
+ const projectPath = import_node_path6.default.resolve(
4799
+ import_node_path6.default.dirname(found.dir),
5093
4800
  referenced.slice("container:".length)
5094
4801
  );
5095
4802
  const project = projects.find(
5096
- (candidate) => import_node_fs6.default.existsSync(projectPath) && candidate.xcodeproj === import_node_fs6.default.realpathSync.native(projectPath)
4803
+ (candidate) => import_node_fs3.default.existsSync(projectPath) && candidate.xcodeproj === import_node_fs3.default.realpathSync.native(projectPath)
5097
4804
  );
5098
4805
  const target = project && projectTargets(project).find((ref) => ref.id === blueprint);
5099
4806
  const name = target && str(target.target.name);
@@ -5113,26 +4820,26 @@ function readXcodeScheme(xcodeprojOrWorkspace, scheme) {
5113
4820
  var NativeAppTargetSelectionError = class extends Error {
5114
4821
  };
5115
4822
  function selectIosAppTarget(projectRoot, iosTarget) {
5116
- const nested = import_node_path10.default.join(projectRoot, "ios");
5117
- const iosRoot = import_node_fs6.default.existsSync(nested) ? nested : projectRoot;
5118
- const entries = import_node_fs6.default.readdirSync(iosRoot, { withFileTypes: true });
4823
+ const nested = import_node_path6.default.join(projectRoot, "ios");
4824
+ const iosRoot = import_node_fs3.default.existsSync(nested) ? nested : projectRoot;
4825
+ const entries = import_node_fs3.default.readdirSync(iosRoot, { withFileTypes: true });
5119
4826
  const projects = (entries.some((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")) ? entries.filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")).map((entry) => ({
5120
- xcodeproj: import_node_path10.default.join(iosRoot, entry.name),
4827
+ xcodeproj: import_node_path6.default.join(iosRoot, entry.name),
5121
4828
  workspace: null
5122
4829
  })) : entries.filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcworkspace")).flatMap((entry) => {
5123
- const workspace = import_node_path10.default.join(iosRoot, entry.name);
4830
+ const workspace = import_node_path6.default.join(iosRoot, entry.name);
5124
4831
  return workspaceReferences(workspace).map((xcodeproj2) => ({
5125
4832
  xcodeproj: xcodeproj2,
5126
4833
  workspace
5127
4834
  }));
5128
4835
  }).filter(
5129
- ({ xcodeproj: xcodeproj2 }) => xcodeproj2.endsWith(".xcodeproj") && !xcodeproj2.split(import_node_path10.default.sep).includes("Pods") && import_node_fs6.default.existsSync(xcodeproj2)
4836
+ ({ xcodeproj: xcodeproj2 }) => xcodeproj2.endsWith(".xcodeproj") && !xcodeproj2.split(import_node_path6.default.sep).includes("Pods") && import_node_fs3.default.existsSync(xcodeproj2)
5130
4837
  ).filter(
5131
4838
  ({ xcodeproj: xcodeproj2 }) => listXcodeAppTargets(xcodeproj2, { requireSources: false }).length > 0
5132
4839
  )).map(({ xcodeproj: xcodeproj2, workspace }) => ({
5133
4840
  xcodeproj: xcodeproj2,
5134
4841
  workspace,
5135
- name: import_node_path10.default.basename(xcodeproj2)
4842
+ name: import_node_path6.default.basename(xcodeproj2)
5136
4843
  }));
5137
4844
  if (projects.length === 0) return null;
5138
4845
  if (projects.length > 1 && !iosTarget) {
@@ -5171,13 +4878,13 @@ function selectIosAppTarget(projectRoot, iosTarget) {
5171
4878
  if (!target) throw new Error("native app identity has no iOS application target");
5172
4879
  if (!iosTarget) {
5173
4880
  const workspace = xcodeproj.replace(/\.xcodeproj$/, ".xcworkspace");
5174
- const container = import_node_fs6.default.existsSync(workspace) ? workspace : xcodeproj;
4881
+ const container = import_node_fs3.default.existsSync(workspace) ? workspace : xcodeproj;
5175
4882
  const hasScheme = [container, xcodeproj].some((dir) => {
5176
- if (import_node_fs6.default.existsSync(import_node_path10.default.join(dir, "xcshareddata", "xcschemes", `${target}.xcscheme`)))
4883
+ if (import_node_fs3.default.existsSync(import_node_path6.default.join(dir, "xcshareddata", "xcschemes", `${target}.xcscheme`)))
5177
4884
  return true;
5178
- const users = import_node_path10.default.join(dir, "xcuserdata");
5179
- return import_node_fs6.default.existsSync(users) && import_node_fs6.default.readdirSync(users).some(
5180
- (user) => import_node_fs6.default.existsSync(import_node_path10.default.join(users, user, "xcschemes", `${target}.xcscheme`))
4885
+ const users = import_node_path6.default.join(dir, "xcuserdata");
4886
+ return import_node_fs3.default.existsSync(users) && import_node_fs3.default.readdirSync(users).some(
4887
+ (user) => import_node_fs3.default.existsSync(import_node_path6.default.join(users, user, "xcschemes", `${target}.xcscheme`))
5181
4888
  );
5182
4889
  });
5183
4890
  if (hasScheme) target = readXcodeScheme(container, target).target;
@@ -5188,8 +4895,8 @@ function selectIosAppTarget(projectRoot, iosTarget) {
5188
4895
  );
5189
4896
  return { xcodeproj, target, workspace: project.workspace };
5190
4897
  }
5191
- var workspaceResolvedFile = (xcodeprojOrWorkspace) => import_node_path10.default.join(
5192
- xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace : import_node_path10.default.join(xcodeprojOrWorkspace, "project.xcworkspace"),
4898
+ var workspaceResolvedFile = (xcodeprojOrWorkspace) => import_node_path6.default.join(
4899
+ xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace : import_node_path6.default.join(xcodeprojOrWorkspace, "project.xcworkspace"),
5193
4900
  "xcshareddata",
5194
4901
  "swiftpm",
5195
4902
  "Package.resolved"
@@ -5204,7 +4911,7 @@ var SwiftPackageResolutionRequired = class extends Error {
5204
4911
  }
5205
4912
  };
5206
4913
  function readXcodeAppTarget(input, targetName, configurationName, options = {}) {
5207
- const xcodeprojOrWorkspace = import_node_fs6.default.realpathSync.native(input);
4914
+ const xcodeprojOrWorkspace = import_node_fs3.default.realpathSync.native(input);
5208
4915
  const workspace = xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace : null;
5209
4916
  const { listed, projects, projectAt, cocoapods } = workspaceProjects(
5210
4917
  xcodeprojOrWorkspace,
@@ -5213,7 +4920,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5213
4920
  const allTargets = projects.flatMap(projectTargets);
5214
4921
  const appTargets = allTargets.filter((ref) => isIosAppTarget(ref, options));
5215
4922
  const appTargetNames = appTargets.map((ref) => str(ref.target.name) ?? ref.id);
5216
- const container = import_node_path10.default.basename(xcodeprojOrWorkspace);
4923
+ const container = import_node_path6.default.basename(xcodeprojOrWorkspace);
5217
4924
  const named = targetName ? appTargets.filter((ref) => ref.target.name === targetName) : appTargets;
5218
4925
  if (named.length !== 1) {
5219
4926
  if (appTargets.length === 0)
@@ -5234,15 +4941,15 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5234
4941
  for (const ref of allTargets) {
5235
4942
  const product = ref.project.object(str(ref.target.productReference));
5236
4943
  const file = str(product?.path);
5237
- if (file && !byProduct.has(import_node_path10.default.basename(file)))
5238
- byProduct.set(import_node_path10.default.basename(file), ref);
4944
+ if (file && !byProduct.has(import_node_path6.default.basename(file)))
4945
+ byProduct.set(import_node_path6.default.basename(file), ref);
5239
4946
  }
5240
4947
  const proxied = (project, proxyId) => {
5241
4948
  const proxy = project.object(proxyId);
5242
4949
  if (proxy?.isa !== "PBXContainerItemProxy") return void 0;
5243
4950
  const portal = str(proxy.containerPortal);
5244
4951
  const portalPath = project.resolvePath(portal ?? "");
5245
- const owner = project.object(portal)?.isa === "PBXProject" ? project : portalPath && import_node_fs6.default.existsSync(portalPath) ? projectAt.get(import_node_fs6.default.realpathSync.native(portalPath)) : void 0;
4952
+ const owner = project.object(portal)?.isa === "PBXProject" ? project : portalPath && import_node_fs3.default.existsSync(portalPath) ? projectAt.get(import_node_fs3.default.realpathSync.native(portalPath)) : void 0;
5246
4953
  const remote = str(proxy.remoteGlobalIDString);
5247
4954
  if (!owner || !remote) return void 0;
5248
4955
  return projectTargets(owner).find(
@@ -5259,7 +4966,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5259
4966
  const buildFile = project.object(buildFileId);
5260
4967
  if (!buildFile || !xcodeBuildFileBuildsForIos(buildFile)) continue;
5261
4968
  const file = project.object(str(buildFile.fileRef));
5262
- const resolved = file?.isa === "PBXReferenceProxy" ? proxied(project, str(file.remoteRef)) : file && str(file.sourceTree) === "BUILT_PRODUCTS_DIR" ? byProduct.get(import_node_path10.default.basename(str(file.path) ?? "")) : void 0;
4969
+ const resolved = file?.isa === "PBXReferenceProxy" ? proxied(project, str(file.remoteRef)) : file && str(file.sourceTree) === "BUILT_PRODUCTS_DIR" ? byProduct.get(import_node_path6.default.basename(str(file.path) ?? "")) : void 0;
5263
4970
  if (resolved)
5264
4971
  found.push({
5265
4972
  target: resolved,
@@ -5343,8 +5050,8 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5343
5050
  ref.project.visitMembers(
5344
5051
  ref.id,
5345
5052
  ref.project.resolvePath,
5346
- (file) => isDirectory(file) ? walkFiles(file) : import_node_fs6.default.existsSync(file) ? [file] : [],
5347
- import_node_path10.default.join,
5053
+ (file) => isDirectory(file) ? walkFiles(file) : import_node_fs3.default.existsSync(file) ? [file] : [],
5054
+ import_node_path6.default.join,
5348
5055
  (file, kind) => {
5349
5056
  if (kind === "header") found.push(file);
5350
5057
  }
@@ -5360,12 +5067,12 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5360
5067
  for (const ref of projectTargets(project)) {
5361
5068
  const product = productName(ref);
5362
5069
  for (const { file, visibility } of headerPhase(ref)) {
5363
- const name = import_node_path10.default.basename(file);
5070
+ const name = import_node_path6.default.basename(file);
5364
5071
  if (!entries.has(name))
5365
5072
  entries.set(name, visibility !== "Project" ? `${product}/${name}` : file);
5366
5073
  }
5367
5074
  for (const file of synchronizedHeaders(ref)) {
5368
- const name = import_node_path10.default.basename(file);
5075
+ const name = import_node_path6.default.basename(file);
5369
5076
  if (!entries.has(name)) entries.set(name, file);
5370
5077
  }
5371
5078
  }
@@ -5375,7 +5082,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5375
5082
  if (folder === null) continue;
5376
5083
  for (const file of walkFiles(folder)) {
5377
5084
  if (!HEADER_FILE.test(file)) continue;
5378
- const name = import_node_path10.default.basename(file);
5085
+ const name = import_node_path6.default.basename(file);
5379
5086
  if (!entries.has(name)) entries.set(name, file);
5380
5087
  }
5381
5088
  }
@@ -5383,18 +5090,18 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5383
5090
  for (const id of Object.keys(project.objects)) {
5384
5091
  if (project.object(id)?.isa !== "PBXFileReference") continue;
5385
5092
  const file = project.resolvePath(id);
5386
- if (file && HEADER_FILE.test(file) && !entries.has(import_node_path10.default.basename(file)))
5387
- entries.set(import_node_path10.default.basename(file), file);
5093
+ if (file && HEADER_FILE.test(file) && !entries.has(import_node_path6.default.basename(file)))
5094
+ entries.set(import_node_path6.default.basename(file), file);
5388
5095
  }
5389
5096
  const map = [...entries];
5390
5097
  projectHeaderMaps.set(project, map);
5391
5098
  return map;
5392
5099
  };
5393
5100
  const xcconfigs = /* @__PURE__ */ new Set();
5394
- const buildDir = (project) => import_node_path10.default.join(project.projectDir, ".build/peach-xcode/Build");
5101
+ const buildDir = (project) => import_node_path6.default.join(project.projectDir, ".build/peach-xcode/Build");
5395
5102
  const workspaceBuild = {
5396
- SYMROOT: import_node_path10.default.join(buildDir(app.project), "Products"),
5397
- OBJROOT: import_node_path10.default.join(buildDir(app.project), "Intermediates.noindex")
5103
+ SYMROOT: import_node_path6.default.join(buildDir(app.project), "Products"),
5104
+ OBJROOT: import_node_path6.default.join(buildDir(app.project), "Intermediates.noindex")
5398
5105
  };
5399
5106
  const moduleTarget = (ref) => {
5400
5107
  const name = str(ref.target.name) ?? ref.id;
@@ -5409,16 +5116,16 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5409
5116
  TARGET_NAME: name,
5410
5117
  TARGETNAME: "$(TARGET_NAME)",
5411
5118
  PROJECT: "$(PROJECT_NAME)",
5412
- PROJECT_NAME: import_node_path10.default.basename(ref.project.xcodeproj, ".xcodeproj"),
5119
+ PROJECT_NAME: import_node_path6.default.basename(ref.project.xcodeproj, ".xcodeproj"),
5413
5120
  PROJECT_CLASS_PREFIX: isDict(ref.project.project.attributes) ? str(ref.project.project.attributes.CLASSPREFIX) ?? "" : "",
5414
5121
  PROJECT_FILE_PATH: ref.project.xcodeproj,
5415
5122
  SRCROOT: ref.project.projectDir,
5416
5123
  SOURCE_ROOT: ref.project.projectDir,
5417
5124
  PROJECT_DIR: ref.project.projectDir,
5418
- SYMROOT: import_node_path10.default.join(buildDir(ref.project), "Products"),
5125
+ SYMROOT: import_node_path6.default.join(buildDir(ref.project), "Products"),
5419
5126
  BUILD_DIR: "$(SYMROOT)",
5420
5127
  BUILD_ROOT: "$(SYMROOT)",
5421
- OBJROOT: import_node_path10.default.join(buildDir(ref.project), "Intermediates.noindex"),
5128
+ OBJROOT: import_node_path6.default.join(buildDir(ref.project), "Intermediates.noindex"),
5422
5129
  CONFIGURATION_BUILD_DIR: "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)",
5423
5130
  BUILT_PRODUCTS_DIR: "$(CONFIGURATION_BUILD_DIR)",
5424
5131
  TARGET_BUILD_DIR: "$(CONFIGURATION_BUILD_DIR)",
@@ -5460,7 +5167,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5460
5167
  xcconfigs
5461
5168
  );
5462
5169
  const searchRules = recursiveSearchRules(settings2);
5463
- const absolute = (file) => import_node_path10.default.resolve(ref.project.projectDir, file);
5170
+ const absolute = (file) => import_node_path6.default.resolve(ref.project.projectDir, file);
5464
5171
  const framework = FRAMEWORK_PRODUCTS.has(str(ref.target.productType) ?? "");
5465
5172
  const product = settings2("PRODUCT_NAME");
5466
5173
  const moduleName = applyOperator(settings2("PRODUCT_MODULE_NAME"), "c99extidentifier");
@@ -5491,7 +5198,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5491
5198
  `${name}: Swift compatibility header phase has no Swift producer sources`
5492
5199
  );
5493
5200
  const building = options.prepareGeneratedSources && options.requireSources !== false;
5494
- const versioning = building && allSources.length > 0 && settings2("VERSIONING_SYSTEM") === "apple-generic" ? import_node_path10.default.join(settings2("DERIVED_FILE_DIR"), `${product}_vers.c`) : null;
5201
+ const versioning = building && allSources.length > 0 && settings2("VERSIONING_SYSTEM") === "apple-generic" ? import_node_path6.default.join(settings2("DERIVED_FILE_DIR"), `${product}_vers.c`) : null;
5495
5202
  if (versioning) {
5496
5203
  const version = settings2("CURRENT_PROJECT_VERSION");
5497
5204
  const custom = [
@@ -5504,7 +5211,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5504
5211
  ].filter((key) => settings2(key));
5505
5212
  if (custom.length)
5506
5213
  throw new Error(
5507
- `${name}: Xcode generates ${import_node_path10.default.basename(versioning)} with ${custom.join(", ")}; peach does not model VERSION_INFO_* overrides`
5214
+ `${name}: Xcode generates ${import_node_path6.default.basename(versioning)} with ${custom.join(", ")}; peach does not model VERSION_INFO_* overrides`
5508
5215
  );
5509
5216
  const symbol = product.replace(/^[^A-Za-z_]/, "_").replace(/[^A-Za-z0-9_]/g, "_");
5510
5217
  const [major, minor] = version.split(".");
@@ -5517,9 +5224,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5517
5224
  ` const double ${symbol}VersionNumber __attribute__ ((used)) = (double)${number2};`,
5518
5225
  ""
5519
5226
  ].join("\n");
5520
- if (!import_node_fs6.default.existsSync(versioning) || import_node_fs6.default.readFileSync(versioning, "utf8") !== unit) {
5521
- import_node_fs6.default.mkdirSync(import_node_path10.default.dirname(versioning), { recursive: true });
5522
- import_node_fs6.default.writeFileSync(versioning, unit);
5227
+ if (!import_node_fs3.default.existsSync(versioning) || import_node_fs3.default.readFileSync(versioning, "utf8") !== unit) {
5228
+ import_node_fs3.default.mkdirSync(import_node_path6.default.dirname(versioning), { recursive: true });
5229
+ import_node_fs3.default.writeFileSync(versioning, unit);
5523
5230
  }
5524
5231
  allSources.push(versioning);
5525
5232
  }
@@ -5538,7 +5245,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5538
5245
  const headerFiles = headerPhase(ref);
5539
5246
  const ownHeaders = /* @__PURE__ */ new Map();
5540
5247
  for (const { file, visibility } of headerFiles) {
5541
- const name2 = import_node_path10.default.basename(file);
5248
+ const name2 = import_node_path6.default.basename(file);
5542
5249
  const published = visibility !== "Project";
5543
5250
  if (!ownHeaders.has(name2))
5544
5251
  ownHeaders.set(name2, published ? `${product}/${name2}` : file);
@@ -5546,7 +5253,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5546
5253
  ownHeaders.set(`${product}/${name2}`, file);
5547
5254
  }
5548
5255
  for (const file of synchronizedHeaders(ref)) {
5549
- const name2 = import_node_path10.default.basename(file);
5256
+ const name2 = import_node_path6.default.basename(file);
5550
5257
  if (ownHeaders.has(name2)) continue;
5551
5258
  ownHeaders.set(name2, file);
5552
5259
  const qualified = `${product}/${name2}`;
@@ -5558,24 +5265,24 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5558
5265
  const otherProduct = productName(other);
5559
5266
  for (const { file, visibility } of headerPhase(other)) {
5560
5267
  if (visibility === "Project") continue;
5561
- const key = `${otherProduct}/${import_node_path10.default.basename(file)}`;
5268
+ const key = `${otherProduct}/${import_node_path6.default.basename(file)}`;
5562
5269
  if (!nonFrameworkHeaders.has(key)) nonFrameworkHeaders.set(key, file);
5563
5270
  }
5564
5271
  }
5565
- const wrapper = import_node_path10.default.join(settings2("BUILT_PRODUCTS_DIR"), `${product}.framework`);
5272
+ const wrapper = import_node_path6.default.join(settings2("BUILT_PRODUCTS_DIR"), `${product}.framework`);
5566
5273
  const moduleMap = (settings2("DEFINES_MODULE") === "YES" || !framework) && settings2("MODULEMAP_FILE") ? absolute(settings2("MODULEMAP_FILE")) : null;
5567
- const frameworkUmbrella = !compatibility && framework && members.sources.length > 0 && moduleMap ? import_node_path10.default.join(import_node_path10.default.dirname(moduleMap), `${moduleName}-umbrella.h`) : null;
5568
- const frameworkCompatibility = frameworkUmbrella && moduleMap && import_node_fs6.default.existsSync(moduleMap) && import_node_fs6.default.existsSync(frameworkUmbrella) ? {
5274
+ const frameworkUmbrella = !compatibility && framework && members.sources.length > 0 && moduleMap ? import_node_path6.default.join(import_node_path6.default.dirname(moduleMap), `${moduleName}-umbrella.h`) : null;
5275
+ const frameworkCompatibility = frameworkUmbrella && moduleMap && import_node_fs3.default.existsSync(moduleMap) && import_node_fs3.default.existsSync(frameworkUmbrella) ? {
5569
5276
  framework: true,
5570
5277
  moduleMap,
5571
5278
  umbrella: frameworkUmbrella,
5572
- outputModuleMap: import_node_path10.default.join(wrapper, "Modules", "module.modulemap"),
5573
- outputUmbrella: import_node_path10.default.join(
5279
+ outputModuleMap: import_node_path6.default.join(wrapper, "Modules", "module.modulemap"),
5280
+ outputUmbrella: import_node_path6.default.join(
5574
5281
  wrapper,
5575
5282
  "Headers",
5576
- import_node_path10.default.basename(frameworkUmbrella)
5283
+ import_node_path6.default.basename(frameworkUmbrella)
5577
5284
  ),
5578
- outputHeader: import_node_path10.default.join(
5285
+ outputHeader: import_node_path6.default.join(
5579
5286
  wrapper,
5580
5287
  "Headers",
5581
5288
  settings2("SWIFT_OBJC_INTERFACE_HEADER_NAME") || `${moduleName}-Swift.h`
@@ -5589,10 +5296,10 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5589
5296
  outputUmbrella: compatibility.outputUmbrella,
5590
5297
  outputHeader: compatibility.outputHeader
5591
5298
  } : frameworkCompatibility;
5592
- const podHeaders = !framework && isPodsProject(ref.project.xcodeproj) && moduleMap && import_node_path10.default.relative(import_node_path10.default.join(ref.project.projectDir, "Headers", "Public"), moduleMap).split(import_node_path10.default.sep)[0] !== ".." && import_node_fs6.default.existsSync(moduleMap) ? import_node_fs6.default.readdirSync(import_node_path10.default.dirname(moduleMap)).flatMap((entry) => {
5299
+ const podHeaders = !framework && isPodsProject(ref.project.xcodeproj) && moduleMap && import_node_path6.default.relative(import_node_path6.default.join(ref.project.projectDir, "Headers", "Public"), moduleMap).split(import_node_path6.default.sep)[0] !== ".." && import_node_fs3.default.existsSync(moduleMap) ? import_node_fs3.default.readdirSync(import_node_path6.default.dirname(moduleMap)).flatMap((entry) => {
5593
5300
  if (!/\.(h|hh|hpp|hxx|modulemap)$/.test(entry)) return [];
5594
- const file = import_node_path10.default.join(import_node_path10.default.dirname(moduleMap), entry);
5595
- return import_node_fs6.default.existsSync(file) ? [file] : [];
5301
+ const file = import_node_path6.default.join(import_node_path6.default.dirname(moduleMap), entry);
5302
+ return import_node_fs3.default.existsSync(file) ? [file] : [];
5596
5303
  }) : [];
5597
5304
  const fileFlags = {};
5598
5305
  for (const phaseId of list(ref.target.buildPhases)) {
@@ -5667,15 +5374,15 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5667
5374
  // xcode searches its products' include directory before
5668
5375
  // HEADER_SEARCH_PATHS and the target's derived sources after.
5669
5376
  headerSearchPaths: [
5670
- import_node_path10.default.join(settings2("BUILT_PRODUCTS_DIR"), "include"),
5377
+ import_node_path6.default.join(settings2("BUILT_PRODUCTS_DIR"), "include"),
5671
5378
  ...settingList(settings2("HEADER_SEARCH_PATHS")).flatMap(
5672
5379
  (raw) => expandSearchPath(absolute(raw), searchRules)
5673
5380
  ),
5674
- import_node_path10.default.join(
5381
+ import_node_path6.default.join(
5675
5382
  `${settings2("DERIVED_FILE_DIR")}-normal`,
5676
5383
  settings2("CURRENT_ARCH")
5677
5384
  ),
5678
- import_node_path10.default.join(settings2("DERIVED_FILE_DIR"), settings2("CURRENT_ARCH")),
5385
+ import_node_path6.default.join(settings2("DERIVED_FILE_DIR"), settings2("CURRENT_ARCH")),
5679
5386
  settings2("DERIVED_FILE_DIR")
5680
5387
  ],
5681
5388
  userHeaderSearchPaths: settingList(
@@ -5725,10 +5432,10 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5725
5432
  ...headerFiles.flatMap(
5726
5433
  ({ file, visibility }) => visibility === "Project" ? [] : [
5727
5434
  [
5728
- import_node_path10.default.join(
5435
+ import_node_path6.default.join(
5729
5436
  wrapper,
5730
5437
  visibility === "Public" ? "Headers" : "PrivateHeaders",
5731
- import_node_path10.default.basename(file)
5438
+ import_node_path6.default.basename(file)
5732
5439
  ),
5733
5440
  file
5734
5441
  ]
@@ -5742,7 +5449,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5742
5449
  return [];
5743
5450
  const destination = expand(
5744
5451
  str(phase.dstPath) ?? "",
5745
- (name2) => name2 === "PUBLIC_HEADERS_FOLDER_PATH" ? import_node_path10.default.join(wrapper, "Headers") : name2 === "PRIVATE_HEADERS_FOLDER_PATH" ? import_node_path10.default.join(wrapper, "PrivateHeaders") : settings2(name2)
5452
+ (name2) => name2 === "PUBLIC_HEADERS_FOLDER_PATH" ? import_node_path6.default.join(wrapper, "Headers") : name2 === "PRIVATE_HEADERS_FOLDER_PATH" ? import_node_path6.default.join(wrapper, "PrivateHeaders") : settings2(name2)
5746
5453
  );
5747
5454
  return list(phase.files).flatMap((id) => {
5748
5455
  const file = ref.project.resolvePath(
@@ -5750,17 +5457,17 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5750
5457
  );
5751
5458
  return file && HEADER_FILE.test(file) ? [
5752
5459
  [
5753
- import_node_path10.default.resolve(
5460
+ import_node_path6.default.resolve(
5754
5461
  settings2("BUILT_PRODUCTS_DIR"),
5755
5462
  destination,
5756
- import_node_path10.default.basename(file)
5463
+ import_node_path6.default.basename(file)
5757
5464
  ),
5758
5465
  file
5759
5466
  ]
5760
5467
  ] : [];
5761
5468
  });
5762
5469
  }),
5763
- ...moduleMap ? [[import_node_path10.default.join(wrapper, "Modules", "module.modulemap"), moduleMap]] : []
5470
+ ...moduleMap ? [[import_node_path6.default.join(wrapper, "Modules", "module.modulemap"), moduleMap]] : []
5764
5471
  ]) : Object.fromEntries([
5765
5472
  ...podHeaders.map((file) => [file, file]),
5766
5473
  ...moduleMap ? [[moduleMap, moduleMap]] : []
@@ -5792,7 +5499,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5792
5499
  const frameworkTargets = selectedTargets.filter((target) => target !== builtTargets.at(-1)).filter(({ ref }) => MODULE_PRODUCTS.has(str(ref.target.productType) ?? "")).map(({ ref, module: module3 }) => ({ ref, framework: module3 }));
5793
5500
  const frameworks = frameworkTargets.map(({ framework }) => framework);
5794
5501
  const podSourceDirs = builtTargets.slice(0, -1).flatMap(
5795
- ({ ref, module: module3 }) => isPodsProject(ref.project.xcodeproj) ? [...module3.allSources, ...module3.objc?.headers ?? []].map((file) => import_node_path10.default.dirname(file)).filter((dir) => import_node_fs6.default.existsSync(dir)) : []
5502
+ ({ ref, module: module3 }) => isPodsProject(ref.project.xcodeproj) ? [...module3.allSources, ...module3.objc?.headers ?? []].map((file) => import_node_path6.default.dirname(file)).filter((dir) => import_node_fs3.default.existsSync(dir)) : []
5796
5503
  );
5797
5504
  const expandValue = (value, settings2) => {
5798
5505
  if (typeof value === "string") return expand(value, settings2);
@@ -5813,7 +5520,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5813
5520
  const phase = owner.ref.project.object(phaseId);
5814
5521
  if (phase?.isa !== "PBXShellScriptBuildPhase" || str(phase.name) !== "[CP] Copy Pods Resources")
5815
5522
  continue;
5816
- const absolute = (raw) => import_node_path10.default.resolve(owner.ref.project.projectDir, expand(raw, owner.settings));
5523
+ const absolute = (raw) => import_node_path6.default.resolve(owner.ref.project.projectDir, expand(raw, owner.settings));
5817
5524
  const entries = (paths) => paths.flatMap((raw) => {
5818
5525
  const file = absolute(raw);
5819
5526
  xcconfigs.add(file);
@@ -5829,7 +5536,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5829
5536
  ].filter((file) => file.endsWith(".bundle"));
5830
5537
  if (inputs.length !== outputs.length)
5831
5538
  throw new Error(`${owner.module.name}: resource bundle copy lists differ`);
5832
- const destinationRoot = import_node_path10.default.join(
5539
+ const destinationRoot = import_node_path6.default.join(
5833
5540
  owner.settings("TARGET_BUILD_DIR"),
5834
5541
  owner.settings("UNLOCALIZED_RESOURCES_FOLDER_PATH")
5835
5542
  );
@@ -5838,24 +5545,24 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5838
5545
  const file = str(
5839
5546
  target.ref.project.object(str(target.ref.target.productReference))?.path
5840
5547
  );
5841
- return file && import_node_path10.default.join(target.settings("TARGET_BUILD_DIR"), file) === input2;
5548
+ return file && import_node_path6.default.join(target.settings("TARGET_BUILD_DIR"), file) === input2;
5842
5549
  });
5843
5550
  if (!product && !isDirectory(input2))
5844
5551
  throw new Error(
5845
5552
  `${owner.module.name}: resource bundle input has no selected producer: ${input2}`
5846
5553
  );
5847
- const destination = import_node_path10.default.relative(destinationRoot, outputs[index]);
5848
- if (destination === ".." || destination.startsWith(`..${import_node_path10.default.sep}`) || import_node_path10.default.isAbsolute(destination) || import_node_path10.default.basename(input2) !== import_node_path10.default.basename(destination))
5554
+ const destination = import_node_path6.default.relative(destinationRoot, outputs[index]);
5555
+ if (destination === ".." || destination.startsWith(`..${import_node_path6.default.sep}`) || import_node_path6.default.isAbsolute(destination) || import_node_path6.default.basename(input2) !== import_node_path6.default.basename(destination))
5849
5556
  throw new Error(
5850
5557
  `${owner.module.name}: invalid resource bundle copy destination`
5851
5558
  );
5852
- const infoFile = product ? import_node_path10.default.resolve(
5559
+ const infoFile = product ? import_node_path6.default.resolve(
5853
5560
  product.ref.project.projectDir,
5854
5561
  product.settings("INFOPLIST_FILE")
5855
5562
  ) : null;
5856
5563
  if (infoFile) xcconfigs.add(infoFile);
5857
5564
  const prefix = owner.ref === app ? "" : `Frameworks/${owner.module.moduleName}.framework/`;
5858
- const bundlePath = prefix + destination.split(import_node_path10.default.sep).join("/");
5565
+ const bundlePath = prefix + destination.split(import_node_path6.default.sep).join("/");
5859
5566
  if (resourceProducts.some((resource) => resource.path === bundlePath))
5860
5567
  throw new Error(
5861
5568
  `${owner.module.name}: duplicate resource bundle destination ${bundlePath}`
@@ -5866,22 +5573,22 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5866
5573
  resources: product.module.resources,
5867
5574
  infoPlist: import_plist2.default.build(
5868
5575
  expandValue(
5869
- import_plist2.default.parse(import_node_fs6.default.readFileSync(infoFile, "utf8")),
5576
+ import_plist2.default.parse(import_node_fs3.default.readFileSync(infoFile, "utf8")),
5870
5577
  product.settings
5871
5578
  )
5872
5579
  )
5873
5580
  } : {
5874
- resources: import_node_fs6.default.readdirSync(input2, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => import_node_path10.default.join(entry.parentPath, entry.name)).sort(),
5581
+ resources: import_node_fs3.default.readdirSync(input2, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => import_node_path6.default.join(entry.parentPath, entry.name)).sort(),
5875
5582
  sourceRoot: input2
5876
5583
  }
5877
5584
  });
5878
5585
  }
5879
5586
  }
5880
5587
  }
5881
- const infoPlistFile = settings("INFOPLIST_FILE") ? import_node_path10.default.resolve(app.project.projectDir, settings("INFOPLIST_FILE")) : null;
5882
- const entitlementsFile = settings("CODE_SIGN_ENTITLEMENTS") ? import_node_path10.default.resolve(app.project.projectDir, settings("CODE_SIGN_ENTITLEMENTS")) : null;
5588
+ const infoPlistFile = settings("INFOPLIST_FILE") ? import_node_path6.default.resolve(app.project.projectDir, settings("INFOPLIST_FILE")) : null;
5589
+ const entitlementsFile = settings("CODE_SIGN_ENTITLEMENTS") ? import_node_path6.default.resolve(app.project.projectDir, settings("CODE_SIGN_ENTITLEMENTS")) : null;
5883
5590
  const infoPlistPending = module2.generatedInfoPlist && !options.prepareGeneratedSources;
5884
- const sourceInfo = infoPlistFile && !infoPlistPending ? import_plist2.default.parse(import_node_fs6.default.readFileSync(infoPlistFile, "utf8")) : {};
5591
+ const sourceInfo = infoPlistFile && !infoPlistPending ? import_plist2.default.parse(import_node_fs3.default.readFileSync(infoPlistFile, "utf8")) : {};
5885
5592
  if (!sourceInfo || typeof sourceInfo !== "object" || Array.isArray(sourceInfo) || sourceInfo instanceof Date || Buffer.isBuffer(sourceInfo)) {
5886
5593
  throw new Error(`${module2.name} Info.plist must contain a dictionary`);
5887
5594
  }
@@ -5906,7 +5613,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5906
5613
  }
5907
5614
  const bundleIdentifier = settings("PRODUCT_BUNDLE_IDENTIFIER") || (typeof info.CFBundleIdentifier === "string" ? info.CFBundleIdentifier : "");
5908
5615
  const keychainAccessGroups = entitlementsFile ? readKeychainAccessGroups(
5909
- import_plist2.default.parse(import_node_fs6.default.readFileSync(entitlementsFile, "utf8")),
5616
+ import_plist2.default.parse(import_node_fs3.default.readFileSync(entitlementsFile, "utf8")),
5910
5617
  (value) => expand(value, (key) => {
5911
5618
  if (key === "AppIdentifierPrefix") return "FAKETEAMID.";
5912
5619
  if (key === "TeamIdentifierPrefix") return "";
@@ -5944,7 +5651,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5944
5651
  };
5945
5652
  }
5946
5653
  const localPackageDirs = [
5947
- ...listed.filter((reference) => import_node_fs6.default.existsSync(import_node_path10.default.join(reference, "Package.swift"))),
5654
+ ...listed.filter((reference) => import_node_fs3.default.existsSync(import_node_path6.default.join(reference, "Package.swift"))),
5948
5655
  ...projects.flatMap(
5949
5656
  (project) => Object.entries(project.objects).flatMap(([id, entry]) => {
5950
5657
  if (!isDict(entry)) return [];
@@ -5954,19 +5661,19 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5954
5661
  const packages = [];
5955
5662
  while (pending.length > 0) {
5956
5663
  const dir = pending.pop();
5957
- if (import_node_fs6.default.existsSync(import_node_path10.default.join(dir, "Package.swift"))) {
5664
+ if (import_node_fs3.default.existsSync(import_node_path6.default.join(dir, "Package.swift"))) {
5958
5665
  packages.push(dir);
5959
5666
  continue;
5960
5667
  }
5961
5668
  if (!isDirectory(dir)) continue;
5962
- for (const child of import_node_fs6.default.readdirSync(dir, { withFileTypes: true }))
5669
+ for (const child of import_node_fs3.default.readdirSync(dir, { withFileTypes: true }))
5963
5670
  if (child.isDirectory() && !child.name.startsWith("."))
5964
- pending.push(import_node_path10.default.join(dir, child.name));
5671
+ pending.push(import_node_path6.default.join(dir, child.name));
5965
5672
  }
5966
5673
  return packages;
5967
5674
  }
5968
- const candidate = entry.isa === "XCLocalSwiftPackageReference" ? import_node_path10.default.resolve(project.projectDir, str(entry.relativePath) ?? "") : entry.isa === "PBXFileReference" ? project.resolvePath(id) : null;
5969
- return candidate && import_node_fs6.default.existsSync(import_node_path10.default.join(candidate, "Package.swift")) ? [candidate] : [];
5675
+ const candidate = entry.isa === "XCLocalSwiftPackageReference" ? import_node_path6.default.resolve(project.projectDir, str(entry.relativePath) ?? "") : entry.isa === "PBXFileReference" ? project.resolvePath(id) : null;
5676
+ return candidate && import_node_fs3.default.existsSync(import_node_path6.default.join(candidate, "Package.swift")) ? [candidate] : [];
5970
5677
  })
5971
5678
  )
5972
5679
  ];
@@ -5996,7 +5703,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
5996
5703
  if ((flag === "-framework" || flag === "-weak_framework") && name)
5997
5704
  sdkFrameworks.add(name);
5998
5705
  });
5999
- const absolute = (raw) => import_node_path10.default.resolve(ref.project.projectDir, expand(raw, settings2));
5706
+ const absolute = (raw) => import_node_path6.default.resolve(ref.project.projectDir, expand(raw, settings2));
6000
5707
  const requested = options.nativeModules;
6001
5708
  const includeBinary = (name, dir) => {
6002
5709
  if (!requested || nativeTargets.has(ref) || requested.includes(name) || dir.endsWith(".xcframework") && localSwiftBinaryModules(dir).some((module3) => requested.includes(module3)))
@@ -6008,14 +5715,14 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6008
5715
  for (const directory of expandSearchPath(absolute(raw), searchRules)) {
6009
5716
  if (frameworkSearchDirectories.has(directory)) continue;
6010
5717
  frameworkSearchDirectories.add(directory);
6011
- if (!import_node_fs6.default.statSync(directory, { throwIfNoEntry: false })?.isDirectory() || /\.sdk\/(?:System|Developer)\/Library\/Frameworks\/?$/.test(directory))
5718
+ if (!import_node_fs3.default.statSync(directory, { throwIfNoEntry: false })?.isDirectory() || /\.sdk\/(?:System|Developer)\/Library\/Frameworks\/?$/.test(directory))
6012
5719
  continue;
6013
- for (const entry of import_node_fs6.default.readdirSync(directory, { withFileTypes: true })) {
5720
+ for (const entry of import_node_fs3.default.readdirSync(directory, { withFileTypes: true })) {
6014
5721
  const name = /^(.+)\.framework$/.exec(entry.name)?.[1];
6015
5722
  if (!name || byProduct.has(entry.name) || searchedFrameworks.has(name))
6016
5723
  continue;
6017
- const file = import_node_path10.default.join(directory, entry.name);
6018
- if (import_node_fs6.default.statSync(file, { throwIfNoEntry: false })?.isDirectory())
5724
+ const file = import_node_path6.default.join(directory, entry.name);
5725
+ if (import_node_fs3.default.statSync(file, { throwIfNoEntry: false })?.isDirectory())
6019
5726
  searchedFrameworks.set(name, file);
6020
5727
  }
6021
5728
  }
@@ -6023,9 +5730,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6023
5730
  }
6024
5731
  for (const raw of settingList(settings2("SWIFT_INCLUDE_PATHS"))) {
6025
5732
  const dir = absolute(raw);
6026
- const modulemap = import_node_path10.default.join(dir, "module.modulemap");
6027
- if (!import_node_fs6.default.existsSync(modulemap)) continue;
6028
- const name = moduleMapName(import_node_fs6.default.readFileSync(modulemap, "utf8"));
5733
+ const modulemap = import_node_path6.default.join(dir, "module.modulemap");
5734
+ if (!import_node_fs3.default.existsSync(modulemap)) continue;
5735
+ const name = moduleMapName(import_node_fs3.default.readFileSync(modulemap, "utf8"));
6029
5736
  if (name && !binaryFrameworks.has(name)) includeBinary(name, dir);
6030
5737
  }
6031
5738
  for (const phaseId of list(ref.target.buildPhases)) {
@@ -6034,7 +5741,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6034
5741
  const inputs = list(phase.inputPaths).map(absolute);
6035
5742
  for (const raw of list(phase.inputFileListPaths)) {
6036
5743
  const file = absolute(raw);
6037
- if (!import_node_fs6.default.existsSync(file)) continue;
5744
+ if (!import_node_fs3.default.existsSync(file)) continue;
6038
5745
  xcconfigs.add(file);
6039
5746
  inputs.push(...fileListEntries(file, absolute));
6040
5747
  }
@@ -6099,7 +5806,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6099
5806
  ...productAttributes.get(dependencyId)?.length ? { attributes: productAttributes.get(dependencyId) } : {},
6100
5807
  source: reference?.isa === "XCRemoteSwiftPackageReference" ? { kind: "remote", url: str(reference.repositoryURL) ?? "" } : reference?.isa === "XCLocalSwiftPackageReference" ? {
6101
5808
  kind: "local",
6102
- dir: import_node_path10.default.resolve(
5809
+ dir: import_node_path6.default.resolve(
6103
5810
  project.projectDir,
6104
5811
  str(reference.relativePath) ?? ""
6105
5812
  )
@@ -6124,19 +5831,19 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6124
5831
  if (!buildFile || !xcodeBuildFileBuildsForIos(buildFile)) continue;
6125
5832
  const fileId = str(buildFile.fileRef);
6126
5833
  const file = project.object(fileId);
6127
- const tree2 = str(file?.sourceTree);
5834
+ const tree = str(file?.sourceTree);
6128
5835
  const rawPath = str(file?.path) ?? "";
6129
5836
  const name = /([^/]+)\.(xc)?framework$/.exec(rawPath)?.[1];
6130
5837
  if (file?.isa !== "PBXFileReference" || !name) continue;
6131
- if (tree2 === "SDKROOT" || /\/System\/Library\/Frameworks\/[^/]+$/.test(`/${rawPath}`)) {
5838
+ if (tree === "SDKROOT" || /\/System\/Library\/Frameworks\/[^/]+$/.test(`/${rawPath}`)) {
6132
5839
  sdkFrameworks.add(name);
6133
5840
  continue;
6134
5841
  }
6135
- if (tree2 === "BUILT_PRODUCTS_DIR" || tree2 === "DEVELOPER_DIR" || // a target in the workspace builds it, so it exists only after that build
6136
- byProduct.has(import_node_path10.default.basename(rawPath)))
5842
+ if (tree === "BUILT_PRODUCTS_DIR" || tree === "DEVELOPER_DIR" || // a target in the workspace builds it, so it exists only after that build
5843
+ byProduct.has(import_node_path6.default.basename(rawPath)))
6137
5844
  continue;
6138
5845
  const resolved = fileId ? project.resolvePath(fileId) : null;
6139
- if (fileId && resolved !== null && !import_node_fs6.default.existsSync(resolved)) {
5846
+ if (fileId && resolved !== null && !import_node_fs3.default.existsSync(resolved)) {
6140
5847
  if (!ios_sdk_frameworks_default.frameworks.includes(name))
6141
5848
  throw new Error(
6142
5849
  `${str(target.name) ?? "target"}: linked framework ${name} (${fileId}) points at missing ${resolved} in ${project.projectFile}`
@@ -6163,7 +5870,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6163
5870
  ({ product }) => !options.nativeModules || nativeTargets.has(built.ref) || options.nativeModules.includes(product)
6164
5871
  );
6165
5872
  const resolvedFile = workspaceResolvedFile(xcodeprojOrWorkspace);
6166
- let packageResolved = import_node_fs6.default.existsSync(resolvedFile) ? [import_node_fs6.default.realpathSync.native(resolvedFile)] : [...new Set(localPackageDirs.map((dir) => import_node_path10.default.join(dir, "Package.resolved")))].filter((file) => import_node_fs6.default.existsSync(file)).map((file) => import_node_fs6.default.realpathSync.native(file)).sort();
5873
+ let packageResolved = import_node_fs3.default.existsSync(resolvedFile) ? [import_node_fs3.default.realpathSync.native(resolvedFile)] : [...new Set(localPackageDirs.map((dir) => import_node_path6.default.join(dir, "Package.resolved")))].filter((file) => import_node_fs3.default.existsSync(file)).map((file) => import_node_fs3.default.realpathSync.native(file)).sort();
6167
5874
  if (packageResolved.length === 0) {
6168
5875
  const requirements = remotePackageRequirements(projects);
6169
5876
  if (requirements.length > 0) {
@@ -6214,19 +5921,19 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6214
5921
  } : {},
6215
5922
  rootDir: commonAncestor(
6216
5923
  [
6217
- workspace ? import_node_path10.default.dirname(workspace) : app.project.projectDir,
5924
+ workspace ? import_node_path6.default.dirname(workspace) : app.project.projectDir,
6218
5925
  ...used.map((project) => project.projectDir),
6219
5926
  ...localPackageDirs,
6220
5927
  ...linkedProducts.flatMap(
6221
- ({ source }) => source.kind === "local" && import_node_fs6.default.existsSync(source.dir) ? [source.dir] : []
5928
+ ({ source }) => source.kind === "local" && import_node_fs3.default.existsSync(source.dir) ? [source.dir] : []
6222
5929
  ),
6223
5930
  ...new Set(podSourceDirs),
6224
5931
  // a target's own files may sit beside the project, such as an asset
6225
5932
  // catalog one folder up, and xcode builds them from there
6226
5933
  ...new Set(
6227
- [...module2.allSources, ...module2.resources].filter((file) => import_node_fs6.default.existsSync(file)).map((file) => import_node_path10.default.dirname(file))
5934
+ [...module2.allSources, ...module2.resources].filter((file) => import_node_fs3.default.existsSync(file)).map((file) => import_node_path6.default.dirname(file))
6228
5935
  )
6229
- ].map((dir) => import_node_fs6.default.realpathSync.native(dir))
5936
+ ].map((dir) => import_node_fs3.default.realpathSync.native(dir))
6230
5937
  ),
6231
5938
  projectFiles: [
6232
5939
  .../* @__PURE__ */ new Set([
@@ -6247,7 +5954,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
6247
5954
  resourceProducts,
6248
5955
  linkedProducts,
6249
5956
  localPackageDirs: [
6250
- ...new Set(localPackageDirs.map((dir) => import_node_fs6.default.realpathSync.native(dir)))
5957
+ ...new Set(localPackageDirs.map((dir) => import_node_fs3.default.realpathSync.native(dir)))
6251
5958
  ].sort(),
6252
5959
  binaryFrameworks: [...binaryFrameworks].map(([name, file]) => ({ name, path: file })).sort((left, right) => left.name.localeCompare(right.name)),
6253
5960
  sdkFrameworks: [...sdkFrameworks].filter(
@@ -6348,7 +6055,7 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
6348
6055
  const rtcAppGroupIdentifier = nonEmptyString2(dictionary.RTCAppGroupIdentifier);
6349
6056
  const screenShareExtensionBundleId = typeof dictionary.ScreenShareExtensionBundleId === "string" ? dictionary.ScreenShareExtensionBundleId : void 0;
6350
6057
  const rootModuleName = readRootModuleName(
6351
- app.allSources.filter((file) => /Delegate\.(?:swift|mm|m)$/.test(file) && import_node_fs7.default.existsSync(file)).map((file) => import_node_fs7.default.readFileSync(file, "utf8"))
6058
+ app.allSources.filter((file) => /Delegate\.(?:swift|mm|m)$/.test(file) && import_node_fs4.default.existsSync(file)).map((file) => import_node_fs4.default.readFileSync(file, "utf8"))
6352
6059
  );
6353
6060
  return stampNativeBuildSdk({
6354
6061
  ...app.keychainAccessGroups === void 0 ? {} : { keychainAccessGroups: app.keychainAccessGroups },
@@ -6370,7 +6077,7 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
6370
6077
  googleSignIn: readGoogleSignInConfiguration(
6371
6078
  dictionary,
6372
6079
  Object.fromEntries(
6373
- app.resources.filter((file) => file.endsWith(".plist")).map((file) => [file, parseInfoPlist(import_node_fs7.default.readFileSync(file, "utf8"))])
6080
+ app.resources.filter((file) => file.endsWith(".plist")).map((file) => [file, parseInfoPlist(import_node_fs4.default.readFileSync(file, "utf8"))])
6374
6081
  )
6375
6082
  ),
6376
6083
  supportedInterfaceOrientations,
@@ -6380,11 +6087,11 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
6380
6087
  bundleIcons: resolveNativeBundleIcons(icons, catalogAlternateNames, (value) => value),
6381
6088
  appIconArtwork: resolveNativeAppIconArtwork(
6382
6089
  app.resources,
6383
- (file) => import_node_fs7.default.readFileSync(file, "utf8"),
6090
+ (file) => import_node_fs4.default.readFileSync(file, "utf8"),
6384
6091
  (file) => {
6385
- const extension = import_node_path11.default.extname(file).toLowerCase();
6092
+ const extension = import_node_path7.default.extname(file).toLowerCase();
6386
6093
  const contentType = extension === ".jpg" || extension === ".jpeg" ? "image/jpeg" : extension === ".webp" ? "image/webp" : "image/png";
6387
- return `data:${contentType};base64,${import_node_fs7.default.readFileSync(file).toString("base64")}`;
6094
+ return `data:${contentType};base64,${import_node_fs4.default.readFileSync(file).toString("base64")}`;
6388
6095
  },
6389
6096
  icons,
6390
6097
  app.appIconName,
@@ -6414,11 +6121,11 @@ function readNativeAppIdentityFromSources(projectRoot, platform, parseInfoPlist,
6414
6121
  const read = selectNativeAppIdentityReader(platform, {
6415
6122
  android: () => null,
6416
6123
  ios: () => {
6417
- const nested = import_node_path11.default.join(projectRoot, "ios");
6418
- const iosRoot = import_node_fs7.default.existsSync(nested) ? nested : projectRoot;
6124
+ const nested = import_node_path7.default.join(projectRoot, "ios");
6125
+ const iosRoot = import_node_fs4.default.existsSync(nested) ? nested : projectRoot;
6419
6126
  const prefix = iosRoot === nested ? "ios/" : "";
6420
6127
  const files = {};
6421
- for (const entry of import_node_fs7.default.readdirSync(iosRoot, { withFileTypes: true })) {
6128
+ for (const entry of import_node_fs4.default.readdirSync(iosRoot, { withFileTypes: true })) {
6422
6129
  if (entry.name === "Pods") continue;
6423
6130
  if (entry.isDirectory()) {
6424
6131
  const names = entry.name.endsWith(".xcodeproj") ? ["project.pbxproj"] : [
@@ -6426,17 +6133,17 @@ function readNativeAppIdentityFromSources(projectRoot, platform, parseInfoPlist,
6426
6133
  "AppDelegate.swift",
6427
6134
  "AppDelegate.mm",
6428
6135
  "AppDelegate.m",
6429
- ...import_node_fs7.default.readdirSync(import_node_path11.default.join(iosRoot, entry.name)).filter((name) => name.endsWith(".entitlements"))
6136
+ ...import_node_fs4.default.readdirSync(import_node_path7.default.join(iosRoot, entry.name)).filter((name) => name.endsWith(".entitlements"))
6430
6137
  ];
6431
6138
  for (const name of names) {
6432
6139
  const relative = `${prefix}${entry.name}/${name}`;
6433
- const file = import_node_path11.default.join(projectRoot, relative);
6434
- if (import_node_fs7.default.existsSync(file)) files[relative] = import_node_fs7.default.readFileSync(file, "utf8");
6140
+ const file = import_node_path7.default.join(projectRoot, relative);
6141
+ if (import_node_fs4.default.existsSync(file)) files[relative] = import_node_fs4.default.readFileSync(file, "utf8");
6435
6142
  }
6436
6143
  } else if (/AppDelegate\.(?:swift|mm|m)$|\.entitlements$/.test(entry.name)) {
6437
6144
  const relative = `${prefix}${entry.name}`;
6438
- const file = import_node_path11.default.join(projectRoot, relative);
6439
- if (import_node_fs7.default.existsSync(file)) files[relative] = import_node_fs7.default.readFileSync(file, "utf8");
6145
+ const file = import_node_path7.default.join(projectRoot, relative);
6146
+ if (import_node_fs4.default.existsSync(file)) files[relative] = import_node_fs4.default.readFileSync(file, "utf8");
6440
6147
  }
6441
6148
  }
6442
6149
  const identity = extractNativeAppIdentityFromFiles(
@@ -6453,41 +6160,41 @@ function readNativeAppIdentityFromSources(projectRoot, platform, parseInfoPlist,
6453
6160
  function readAndroidNativeAppIdentity(projectRoot, androidMergedManifest) {
6454
6161
  const files = {};
6455
6162
  if (androidMergedManifest) {
6456
- const file = import_node_path11.default.resolve(projectRoot, androidMergedManifest);
6457
- if (!import_node_fs7.default.existsSync(file)) return null;
6458
- files[androidMergedManifest] = import_node_fs7.default.readFileSync(file, "utf8");
6163
+ const file = import_node_path7.default.resolve(projectRoot, androidMergedManifest);
6164
+ if (!import_node_fs4.default.existsSync(file)) return null;
6165
+ files[androidMergedManifest] = import_node_fs4.default.readFileSync(file, "utf8");
6459
6166
  } else {
6460
- const androidRoot = import_node_path11.default.join(projectRoot, "android");
6461
- if (!import_node_fs7.default.existsSync(androidRoot)) return null;
6167
+ const androidRoot = import_node_path7.default.join(projectRoot, "android");
6168
+ if (!import_node_fs4.default.existsSync(androidRoot)) return null;
6462
6169
  const collect = (directory) => {
6463
- for (const entry of import_node_fs7.default.readdirSync(directory, { withFileTypes: true })) {
6464
- const file = import_node_path11.default.join(directory, entry.name);
6170
+ for (const entry of import_node_fs4.default.readdirSync(directory, { withFileTypes: true })) {
6171
+ const file = import_node_path7.default.join(directory, entry.name);
6465
6172
  if (entry.isDirectory()) collect(file);
6466
6173
  else if (entry.isFile() && entry.name === "AndroidManifest.xml")
6467
- files[import_node_path11.default.relative(projectRoot, file).split(import_node_path11.default.sep).join("/")] = import_node_fs7.default.readFileSync(file, "utf8");
6174
+ files[import_node_path7.default.relative(projectRoot, file).split(import_node_path7.default.sep).join("/")] = import_node_fs4.default.readFileSync(file, "utf8");
6468
6175
  }
6469
6176
  };
6470
- for (const module2 of import_node_fs7.default.readdirSync(androidRoot, { withFileTypes: true })) {
6177
+ for (const module2 of import_node_fs4.default.readdirSync(androidRoot, { withFileTypes: true })) {
6471
6178
  if (!module2.isDirectory()) continue;
6472
- const outputs = import_node_path11.default.join(
6179
+ const outputs = import_node_path7.default.join(
6473
6180
  androidRoot,
6474
6181
  module2.name,
6475
6182
  "build/intermediates/merged_manifests"
6476
6183
  );
6477
- if (import_node_fs7.default.existsSync(outputs)) collect(outputs);
6184
+ if (import_node_fs4.default.existsSync(outputs)) collect(outputs);
6478
6185
  }
6479
6186
  }
6480
6187
  for (const manifest of Object.keys(files)) {
6481
6188
  const resourceDirectory = androidMergedResourceValuesDirectory(manifest);
6482
6189
  if (!resourceDirectory) continue;
6483
- const absolute = import_node_path11.default.resolve(projectRoot, resourceDirectory);
6484
- if (!import_node_fs7.default.existsSync(absolute)) continue;
6485
- for (const entry of import_node_fs7.default.readdirSync(absolute, { withFileTypes: true })) {
6190
+ const absolute = import_node_path7.default.resolve(projectRoot, resourceDirectory);
6191
+ if (!import_node_fs4.default.existsSync(absolute)) continue;
6192
+ for (const entry of import_node_fs4.default.readdirSync(absolute, { withFileTypes: true })) {
6486
6193
  if (!entry.isDirectory() || !/^values(?:-|$)/.test(entry.name)) continue;
6487
- for (const resource of import_node_fs7.default.readdirSync(import_node_path11.default.join(absolute, entry.name))) {
6194
+ for (const resource of import_node_fs4.default.readdirSync(import_node_path7.default.join(absolute, entry.name))) {
6488
6195
  if (!resource.endsWith(".xml")) continue;
6489
6196
  const file = `${resourceDirectory}/${entry.name}/${resource}`;
6490
- files[file] = import_node_fs7.default.readFileSync(import_node_path11.default.resolve(projectRoot, file), "utf8");
6197
+ files[file] = import_node_fs4.default.readFileSync(import_node_path7.default.resolve(projectRoot, file), "utf8");
6491
6198
  }
6492
6199
  }
6493
6200
  }
@@ -6504,7 +6211,7 @@ function readIosNativeAppIdentity(projectRoot, parseInfoPlist, iosTarget, enviro
6504
6211
  const app = readIosAppTarget(projectRoot, iosTarget, environment);
6505
6212
  if (!app) return null;
6506
6213
  const identity = readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist);
6507
- const projectManifestPath = import_node_path11.default.join(projectRoot, "package.json");
6214
+ const projectManifestPath = import_node_path7.default.join(projectRoot, "package.json");
6508
6215
  const projectRequire = (0, import_node_module.createRequire)(projectManifestPath);
6509
6216
  let reanimatedManifestPath;
6510
6217
  try {
@@ -6518,22 +6225,22 @@ function readIosNativeAppIdentity(projectRoot, parseInfoPlist, iosTarget, enviro
6518
6225
  throw error;
6519
6226
  }
6520
6227
  const installedManifest = JSON.parse(
6521
- import_node_fs7.default.readFileSync(reanimatedManifestPath, "utf8")
6228
+ import_node_fs4.default.readFileSync(reanimatedManifestPath, "utf8")
6522
6229
  );
6523
6230
  const installedVersion = isRecord(installedManifest) ? nonEmptyString2(installedManifest.version) : void 0;
6524
6231
  if (!installedVersion) throw new Error("Reanimated package version is malformed");
6525
6232
  if (Number.parseInt(installedVersion, 10) < 4) return identity;
6526
6233
  const defaults = JSON.parse(
6527
- import_node_fs7.default.readFileSync(
6528
- import_node_path11.default.join(
6529
- import_node_path11.default.dirname(reanimatedManifestPath),
6234
+ import_node_fs4.default.readFileSync(
6235
+ import_node_path7.default.join(
6236
+ import_node_path7.default.dirname(reanimatedManifestPath),
6530
6237
  "src/featureFlags/staticFlags.json"
6531
6238
  ),
6532
6239
  "utf8"
6533
6240
  )
6534
6241
  );
6535
6242
  if (!isRecord(defaults)) throw new Error("Reanimated static flags are malformed");
6536
- const manifest = JSON.parse(import_node_fs7.default.readFileSync(projectManifestPath, "utf8"));
6243
+ const manifest = JSON.parse(import_node_fs4.default.readFileSync(projectManifestPath, "utf8"));
6537
6244
  const reanimated = isRecord(manifest) ? manifest.reanimated : void 0;
6538
6245
  const overrides = isRecord(reanimated) ? reanimated.staticFeatureFlags : void 0;
6539
6246
  if (overrides !== void 0 && !isRecord(overrides)) {