peachsim 0.1.2776 → 0.1.2778

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 (150) hide show
  1. package/dist-lib/agent-daemon-client.cjs +1 -1
  2. package/dist-lib/agent-events.cjs +1 -1
  3. package/dist-lib/attached-projects.cjs +1 -1
  4. package/dist-lib/auth/shared-session.cjs +1 -1
  5. package/dist-lib/backend-origin.cjs +1 -1
  6. package/dist-lib/beta.cjs +1 -1
  7. package/dist-lib/beta.mjs +2 -2
  8. package/dist-lib/bridge-constants.cjs +1 -1
  9. package/dist-lib/bridge-contract-input.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.mjs +5 -5
  11. package/dist-lib/bridge-contract.cjs +1 -1
  12. package/dist-lib/bridge-contract.mjs +3 -3
  13. package/dist-lib/bundle-channel.cjs +382 -367
  14. package/dist-lib/capture-contract.cjs +1 -1
  15. package/dist-lib/capture-contract.mjs +3 -3
  16. package/dist-lib/cloud-contract.cjs +1 -1
  17. package/dist-lib/cloud-contract.mjs +3 -3
  18. package/dist-lib/cloud-test-args.cjs +1 -1
  19. package/dist-lib/cloud-test-args.mjs +2 -2
  20. package/dist-lib/cloud.cjs +1 -1
  21. package/dist-lib/cloud.mjs +7 -7
  22. package/dist-lib/config.cjs +1 -1
  23. package/dist-lib/config.mjs +5 -5
  24. package/dist-lib/detox/index.cjs +2 -2
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/esm-chunks/{acorn-IHHNENTV.mjs → acorn-RWBIRNWO.mjs} +3 -3
  27. package/dist-lib/esm-chunks/{chunk-2TRDAQRU.mjs → chunk-3RPELUA2.mjs} +36 -14
  28. package/dist-lib/esm-chunks/{chunk-36HOGKZO.mjs → chunk-3WQANOYY.mjs} +1 -1
  29. package/dist-lib/esm-chunks/{chunk-JDQEHVXK.mjs → chunk-5TIUTQ55.mjs} +1 -1
  30. package/dist-lib/esm-chunks/{chunk-NJM5HDIY.mjs → chunk-5WASPTSS.mjs} +1 -1
  31. package/dist-lib/esm-chunks/{chunk-O3DUF5LK.mjs → chunk-6YHF4VYF.mjs} +1 -1
  32. package/dist-lib/esm-chunks/{chunk-EYYLB42E.mjs → chunk-DLBUPWTI.mjs} +1 -1
  33. package/dist-lib/esm-chunks/{chunk-XQUTZ3B5.mjs → chunk-EXU474NE.mjs} +1 -1
  34. package/dist-lib/esm-chunks/{chunk-JUQ54SX6.mjs → chunk-F3OPIKJC.mjs} +2 -2
  35. package/dist-lib/esm-chunks/{chunk-M7TINJ53.mjs → chunk-G7UJ4BAC.mjs} +1 -1
  36. package/dist-lib/esm-chunks/{chunk-RPKBYOUS.mjs → chunk-GSTHJQMW.mjs} +16 -6
  37. package/dist-lib/esm-chunks/{chunk-OM6U2RS3.mjs → chunk-IQSFMB4R.mjs} +4 -4
  38. package/dist-lib/esm-chunks/{chunk-QOWIQPRI.mjs → chunk-K3ULPN2R.mjs} +1 -1
  39. package/dist-lib/esm-chunks/{chunk-JHFUDZ3W.mjs → chunk-KBYVKTVK.mjs} +3 -3
  40. package/dist-lib/esm-chunks/{chunk-H3YX4XO2.mjs → chunk-KLA74B7J.mjs} +1 -1
  41. package/dist-lib/esm-chunks/{chunk-UQFQZLHK.mjs → chunk-KX7LV722.mjs} +1 -1
  42. package/dist-lib/esm-chunks/{chunk-2IFXQO2K.mjs → chunk-LQVLXDRN.mjs} +1 -1
  43. package/dist-lib/esm-chunks/{chunk-PLCLVIAA.mjs → chunk-MRIDS3GE.mjs} +5 -5
  44. package/dist-lib/esm-chunks/{chunk-HA4BLBFF.mjs → chunk-N2PEXZGL.mjs} +1 -1
  45. package/dist-lib/esm-chunks/{chunk-BB6SVIH3.mjs → chunk-QKTKE4OX.mjs} +1 -1
  46. package/dist-lib/esm-chunks/{chunk-YNMAR7R2.mjs → chunk-QUVLFF6I.mjs} +1 -1
  47. package/dist-lib/esm-chunks/{chunk-D5UZSYPE.mjs → chunk-VZ3NXXUC.mjs} +1 -1
  48. package/dist-lib/esm-chunks/{chunk-RCESKORX.mjs → chunk-X25PQNNH.mjs} +1 -1
  49. package/dist-lib/esm-chunks/{chunk-Z6UVYLRY.mjs → chunk-ZDWMPXYI.mjs} +1 -1
  50. package/dist-lib/esm-chunks/{chunk-3XQGFH5D.mjs → chunk-ZWOS2EDN.mjs} +65 -75
  51. package/dist-lib/esm-chunks/{metro-layout-parser-IA2YCSEY.mjs → metro-layout-parser-RRIZOLBE.mjs} +3 -3
  52. package/dist-lib/esm-chunks/{swift-package-prebuilt-TL66ITNV.mjs → swift-package-prebuilt-EIZ7MCKR.mjs} +12 -12
  53. package/dist-lib/esm-chunks/{swift-sdk-app-module-K7Y4YRW3.mjs → swift-sdk-app-module-S2LQ4OXD.mjs} +16 -16
  54. package/dist-lib/esm-chunks/{swift-sdk-image-ZKK3YV3Y.mjs → swift-sdk-image-77FFUGXI.mjs} +16 -16
  55. package/dist-lib/esm-chunks/{swift-sdk-image-producer-Q4ENQ4FM.mjs → swift-sdk-image-producer-XFSFUXQJ.mjs} +5 -5
  56. package/dist-lib/expo-swift-bundle.cjs +304 -289
  57. package/dist-lib/expo-swift-metadata.cjs +1 -1
  58. package/dist-lib/expo-swift-metadata.mjs +7 -7
  59. package/dist-lib/home-paths.cjs +1 -1
  60. package/dist-lib/host/bridge-host.cjs +442 -422
  61. package/dist-lib/host/fetch-proxy-handler.cjs +100 -87
  62. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  63. package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
  64. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  65. package/dist-lib/host/websocket-proxy.cjs +1 -1
  66. package/dist-lib/index.cjs +1 -1
  67. package/dist-lib/kotlin-host.cjs +1 -1
  68. package/dist-lib/menu.cjs +1 -1
  69. package/dist-lib/menu.mjs +3 -3
  70. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  71. package/dist-lib/metro-fingerprint-registry.mjs +3 -3
  72. package/dist-lib/metro-production-bundle.cjs +1 -1
  73. package/dist-lib/metro-production-bundle.mjs +4 -4
  74. package/dist-lib/native-app-identity-project.cjs +20 -15
  75. package/dist-lib/native-app-identity-project.mjs +27 -32
  76. package/dist-lib/native-app-identity.cjs +1 -1
  77. package/dist-lib/native-app-identity.mjs +6 -6
  78. package/dist-lib/native-firebase-metadata.cjs +1 -1
  79. package/dist-lib/native-firebase-metadata.mjs +3 -3
  80. package/dist-lib/pdfium-raster.cjs +1 -1
  81. package/dist-lib/pdfium-raster.mjs +2 -2
  82. package/dist-lib/plist.cjs +1 -1
  83. package/dist-lib/plist.mjs +3 -3
  84. package/dist-lib/profiles.cjs +1 -1
  85. package/dist-lib/public-brand.cjs +1 -1
  86. package/dist-lib/public-origins-lib-esm.json +86 -85
  87. package/dist-lib/public-origins-lib.json +71 -64
  88. package/dist-lib/react-native-host-modules.cjs +1 -1
  89. package/dist-lib/react-native-host-modules.mjs +2 -2
  90. package/dist-lib/reap-browser.cjs +1 -1
  91. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  92. package/dist-lib/sdk.cjs +1 -1
  93. package/dist-lib/sdk.mjs +8 -8
  94. package/dist-lib/skills.cjs +481 -461
  95. package/dist-lib/swift-compile.cjs +91 -62
  96. package/dist-lib/swift-compile.mjs +12 -12
  97. package/dist-lib/swift-package.cjs +1 -1
  98. package/dist-lib/swift-package.mjs +3 -3
  99. package/dist-lib/swift-submit.cjs +1 -1
  100. package/dist-lib/swift-submit.mjs +6 -6
  101. package/dist-lib/swift-svg-raster.cjs +1 -1
  102. package/dist-lib/swift-svg-raster.mjs +2 -2
  103. package/dist-lib/swift-toolchain.cjs +1 -1
  104. package/dist-lib/swift.cjs +1 -1
  105. package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
  106. package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
  107. package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
  108. package/dist-lib/vendor/acorn.cjs +1 -1
  109. package/dist-lib/vendor/magic-string.cjs +1 -1
  110. package/dist-lib/vendor/stream-json.cjs +1 -1
  111. package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
  112. package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
  113. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
  114. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
  115. package/dist-lib/vendor/sucrase.cjs +1 -1
  116. package/dist-lib/vendor/terser.cjs +1 -1
  117. package/dist-lib/vendor/valibot.cjs +1 -1
  118. package/dist-lib/vendor/ws.cjs +1 -1
  119. package/dist-lib/vendor/zod.cjs +1 -1
  120. package/dist-lib/worklet-executable.cjs +1 -1
  121. package/dist-lib/worklet-executable.mjs +3 -3
  122. package/dist-types/packages/peach-engine/core-abi/web/sceneClientContract.d.ts +0 -6
  123. package/dist-types/packages/peach-engine/src/components/native-ui/webview-frame-bridge.d.ts +0 -3
  124. package/dist-types/packages/peach-engine/src/engine/native-app-catalog.d.ts +1 -0
  125. package/dist-types/packages/peach-engine/src/engine/native-app-font-config.d.ts +3 -1
  126. package/dist-types/packages/peach-engine/src/render-worker/native-anim-driven-slots.d.ts +0 -1
  127. package/dist-types/packages/peach-engine/src/render-worker/native-text-input-runtime.d.ts +0 -42
  128. package/dist-types/packages/peach-engine/src/render-worker/nativeAnimMirrorContract.d.ts +1 -8
  129. package/dist-types/packages/peach-engine/src/render-worker/nativeTransitionContract.d.ts +1 -15
  130. package/dist-types/packages/peach-engine/src/render-worker/shellScrollContract.d.ts +0 -6
  131. package/dist-types/packages/peach-engine/src/webview-automation-host.d.ts +0 -4
  132. package/package.json +1 -1
  133. package/runtime-companion.json +1 -1
  134. package/src/bazel-project.ts +2 -6
  135. package/src/build-cache.ts +3 -2
  136. package/src/sha256.ts +8 -0
  137. package/src/swift-coverage/indexing.ts +3 -4
  138. package/src/swift-coverage/package.ts +1 -4
  139. package/src/swift-coverage/reader.ts +1 -4
  140. package/src/swift-coverage/source.ts +1 -4
  141. package/src/swift-coverage/xcode-assets.ts +1 -4
  142. package/src/swift-coverage/xcode-bridging.ts +1 -4
  143. package/src/swift-coverage/xcode-packages.ts +1 -4
  144. package/src/swift-coverage/xcode-strings.ts +1 -4
  145. package/src/swift-coverage/xcode.ts +1 -4
  146. package/src/swift-guest-dyld-table.ts +1 -6
  147. package/src/swift-guest-source-inputs.ts +3 -15
  148. package/src/swift-objc-compile.ts +2 -7
  149. package/src/swift-sdk-image.ts +50 -12
  150. package/src/swift-wasm-prune.ts +3 -9
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2776 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2778 | (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;
@@ -1299,7 +1299,7 @@ var init_src = __esm({
1299
1299
  var runtime_companion_default;
1300
1300
  var init_runtime_companion = __esm({
1301
1301
  "runtime-companion.json"() {
1302
- runtime_companion_default = { abi: 1, sha256: "1adf211ccb38e54cbe6130ceecdc595e0b2fa8450f3d7617bff0bc15b4ec450a", file: "node/cli-1adf211ccb38e54cbe6130ceecdc595e0b2fa8450f3d7617bff0bc15b4ec450a.cjs" };
1302
+ runtime_companion_default = { abi: 1, sha256: "0d25aaf7ceafac8035a9e90a00f3bd8fb39c97b14a068a3c592b4e2e487af446", file: "node/cli-0d25aaf7ceafac8035a9e90a00f3bd8fb39c97b14a068a3c592b4e2e487af446.cjs" };
1303
1303
  }
1304
1304
  });
1305
1305
 
@@ -10502,7 +10502,7 @@ var init_swift_objc_sdk_tree = __esm({
10502
10502
 
10503
10503
  // src/swift-compiler-digest.ts
10504
10504
  function swiftArchiveCompilerDigestValue() {
10505
- return true ? "dafa6520c0bcd0e852437835ad9626e824b1e758db5c163a7de2f7fc70ac67ee" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname, "archive");
10505
+ return true ? "faa13b0ae0340e03d058b765e659f5e07b69f8e94793bf99981b3da7ca3bf2bd" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname, "archive");
10506
10506
  }
10507
10507
  var import_node_crypto10, import_node_fs20, import_node_path17, SWIFT_DIGEST_SOURCES, LINKED_IMAGE_SOURCES, SWIFT_ARCHIVE_DIGEST_SOURCES;
10508
10508
  var init_swift_compiler_digest = __esm({
@@ -15929,6 +15929,21 @@ var init_swift_foundation = __esm({
15929
15929
  }
15930
15930
  });
15931
15931
 
15932
+ // src/sha256.ts
15933
+ function sha256Hex(input) {
15934
+ if (typeof Bun !== "undefined") {
15935
+ return new Bun.CryptoHasher("sha256").update(input).digest("hex");
15936
+ }
15937
+ return (0, import_node_crypto15.createHash)("sha256").update(input).digest("hex");
15938
+ }
15939
+ var import_node_crypto15;
15940
+ var init_sha256 = __esm({
15941
+ "src/sha256.ts"() {
15942
+ "use strict";
15943
+ import_node_crypto15 = require("node:crypto");
15944
+ }
15945
+ });
15946
+
15932
15947
  // src/swift-guest-source-plan.ts
15933
15948
  function swiftPackageLinkage(target) {
15934
15949
  const linkage = target.machOType === "staticlib" ? "static" : target.machOType === "mh_dylib" ? "dynamic" : null;
@@ -18580,11 +18595,6 @@ var init_swift_wasm_archive = __esm({
18580
18595
  });
18581
18596
 
18582
18597
  // src/swift-wasm-prune.ts
18583
- function sha256Hex(bytes) {
18584
- if (typeof Bun !== "undefined")
18585
- return new Bun.CryptoHasher("sha256").update(bytes).digest("hex");
18586
- return (0, import_node_crypto15.createHash)("sha256").update(bytes).digest("hex");
18587
- }
18588
18598
  function readULEB2(b, o) {
18589
18599
  let res = 0;
18590
18600
  let shift = 0;
@@ -19621,7 +19631,7 @@ function swiftPrunedSdkObjectOrigins(sdk2, args, rewritten) {
19621
19631
  }
19622
19632
  function ensureUnpackedSdkObjects(sdkWasiDir) {
19623
19633
  const archives = import_node_fs29.default.readdirSync(sdkWasiDir).filter((file) => file.endsWith(".a")).sort();
19624
- const hash = (0, import_node_crypto15.createHash)("sha256");
19634
+ const hash = (0, import_node_crypto16.createHash)("sha256");
19625
19635
  for (const archive of archives) {
19626
19636
  hash.update(archive + "\0");
19627
19637
  hash.update(swiftFileChecksum(import_node_path29.default.join(sdkWasiDir, archive)));
@@ -20910,15 +20920,16 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
20910
20920
  );
20911
20921
  import_node_fs29.default.rmSync(rspPath, { force: true });
20912
20922
  }
20913
- var import_node_child_process16, import_node_crypto15, import_node_fs29, import_node_path29, v3, WIDE_DATA_RELOCS, ROOT_SEG_PREFIXES, RECORD_SEGS, PARTITIONED_SEGS, PRUNED_SDK_ARCHIVES, OMIT_SDK_LIB_FLAGS, NEUTRALIZED_SWIFTRT_SECTIONS, ADDEND_RELOC_MASK2, relocationBytes, parsedObjectCache, PARSED_ROOTS, SWIFTUI_WRAPPER_HOST_PROTOCOLS, SWIFT_PRUNED_LINK_MAP, SWIFT_PRUNED_LINK_RESPONSE;
20923
+ var import_node_child_process16, import_node_crypto16, import_node_fs29, import_node_path29, v3, WIDE_DATA_RELOCS, ROOT_SEG_PREFIXES, RECORD_SEGS, PARTITIONED_SEGS, PRUNED_SDK_ARCHIVES, OMIT_SDK_LIB_FLAGS, NEUTRALIZED_SWIFTRT_SECTIONS, ADDEND_RELOC_MASK2, relocationBytes, parsedObjectCache, PARSED_ROOTS, SWIFTUI_WRAPPER_HOST_PROTOCOLS, SWIFT_PRUNED_LINK_MAP, SWIFT_PRUNED_LINK_RESPONSE;
20914
20924
  var init_swift_wasm_prune = __esm({
20915
20925
  "src/swift-wasm-prune.ts"() {
20916
20926
  "use strict";
20917
20927
  import_node_child_process16 = require("node:child_process");
20918
- import_node_crypto15 = require("node:crypto");
20928
+ import_node_crypto16 = require("node:crypto");
20919
20929
  import_node_fs29 = __toESM(require("node:fs"), 1);
20920
20930
  import_node_path29 = __toESM(require("node:path"), 1);
20921
20931
  v3 = __toESM(require("peachsim/vendor/valibot"), 1);
20932
+ init_sha256();
20922
20933
  init_swift_guest_source_plan();
20923
20934
  init_swift_link_roots();
20924
20935
  init_swift_resource_class_names();
@@ -21032,7 +21043,7 @@ function aliasGuestArchive(options2) {
21032
21043
  alias,
21033
21044
  name: member.name,
21034
21045
  ordinal,
21035
- sha256: (0, import_node_crypto16.createHash)("sha256").update(member.bytes).digest("hex")
21046
+ sha256: (0, import_node_crypto17.createHash)("sha256").update(member.bytes).digest("hex")
21036
21047
  };
21037
21048
  });
21038
21049
  const response = import_node_path30.default.join(options2.directory, "members.rsp");
@@ -21045,7 +21056,7 @@ function aliasGuestArchive(options2) {
21045
21056
  (0, import_node_child_process17.execFileSync)(options2.llvmAr, ["rcsD", archive, `@${response}`], { stdio: "pipe" });
21046
21057
  const rewritten = readArMembers((0, import_node_fs30.readFileSync)(archive));
21047
21058
  if (rewritten.length !== members2.length || rewritten.some(
21048
- (member, index) => member.name !== members2[index].alias || (0, import_node_crypto16.createHash)("sha256").update(member.bytes).digest("hex") !== members2[index].sha256
21059
+ (member, index) => member.name !== members2[index].alias || (0, import_node_crypto17.createHash)("sha256").update(member.bytes).digest("hex") !== members2[index].sha256
21049
21060
  ))
21050
21061
  throw new Error(`guest archive changed members ${options2.archive}`);
21051
21062
  return { source: options2.archive, archive, members: members2 };
@@ -21105,12 +21116,12 @@ function aliasGuestLinkIdentities(identities, archives) {
21105
21116
  }
21106
21117
  return result;
21107
21118
  }
21108
- var import_node_child_process17, import_node_crypto16, import_node_fs30, import_node_path30;
21119
+ var import_node_child_process17, import_node_crypto17, import_node_fs30, import_node_path30;
21109
21120
  var init_swift_guest_archive = __esm({
21110
21121
  "src/swift-guest-archive.ts"() {
21111
21122
  "use strict";
21112
21123
  import_node_child_process17 = require("node:child_process");
21113
- import_node_crypto16 = require("node:crypto");
21124
+ import_node_crypto17 = require("node:crypto");
21114
21125
  import_node_fs30 = require("node:fs");
21115
21126
  import_node_path30 = __toESM(require("node:path"), 1);
21116
21127
  init_swift_wasm_prune();
@@ -21124,15 +21135,15 @@ function nativeDyldName(bytes) {
21124
21135
  name3 += String.fromCharCode(...bytes.subarray(start, start + 4096));
21125
21136
  return name3;
21126
21137
  }
21127
- function nativeDyldTablePath(primary, sha2565) {
21138
+ function nativeDyldTablePath(primary, sha2564) {
21128
21139
  const prefix = primary.slice(0, primary.lastIndexOf("/") + 1);
21129
- return prefix + sha2565 + (primary.endsWith(".wasm") ? ".dyld" : "");
21140
+ return prefix + sha2564 + (primary.endsWith(".wasm") ? ".dyld" : "");
21130
21141
  }
21131
21142
  function readNativeDyldTableIndex(section2) {
21132
21143
  const bytes = new Uint8Array(section2);
21133
21144
  const view = new DataView(section2);
21134
21145
  if (bytes.length < 40) throw new Error("native dyld table index is truncated");
21135
- const sha2565 = Array.from(
21146
+ const sha2564 = Array.from(
21136
21147
  bytes.subarray(0, 32),
21137
21148
  (byte) => byte.toString(16).padStart(2, "0")
21138
21149
  ).join("");
@@ -21156,7 +21167,7 @@ function readNativeDyldTableIndex(section2) {
21156
21167
  at = end + 1;
21157
21168
  }
21158
21169
  if (at !== bytes.length) throw new Error("native dyld table index has trailing bytes");
21159
- return { sha256: sha2565, byteLength, packs, firsts };
21170
+ return { sha256: sha2564, byteLength, packs, firsts };
21160
21171
  }
21161
21172
  var NATIVE_DYLD_TABLE_SECTION, NATIVE_DYLD_PACKS_SECTION;
21162
21173
  var init_nativeDyldTableContract = __esm({
@@ -22118,7 +22129,7 @@ function createGuestImageLedger(input) {
22118
22129
  const digest3 = ({ object: object8 }) => {
22119
22130
  let value = digests2.get(object8);
22120
22131
  if (value === void 0) {
22121
- value = (0, import_node_crypto17.createHash)("sha256").update(objects2.get(object8).bytes).digest("hex");
22132
+ value = (0, import_node_crypto18.createHash)("sha256").update(objects2.get(object8).bytes).digest("hex");
22122
22133
  digests2.set(object8, value);
22123
22134
  }
22124
22135
  return value;
@@ -22333,7 +22344,7 @@ done:
22333
22344
  attributes #0 = { "wasm-import-module"="${NATIVE_TABLE_IMPORT_MODULE}" "wasm-import-name"="${NATIVE_DYLD_FUNCTION_IMPORT}" }`;
22334
22345
  }
22335
22346
  function sdkGuestCallerId(product) {
22336
- const hash = (0, import_node_crypto17.createHash)("sha256").update(product).digest().readUInt32LE(0);
22347
+ const hash = (0, import_node_crypto18.createHash)("sha256").update(product).digest().readUInt32LE(0);
22337
22348
  return (hash | 2147483648) >>> 0;
22338
22349
  }
22339
22350
  function sdkGuestSymbolName(product, name3) {
@@ -22411,11 +22422,11 @@ function nameGuestImageAliases(wasm, symbols) {
22411
22422
  }
22412
22423
  return Buffer.concat(parts);
22413
22424
  }
22414
- var import_node_crypto17, ByteWriter, OBJC_INIT_RECORD, TABLE_INDEX_RELOCATIONS, sha256PairHex, GUEST_DYLD_VALUES_SECTION, GUEST_LAZY_FUNCTION_BASE, SDK_DYLD_RESOLVER;
22425
+ var import_node_crypto18, ByteWriter, OBJC_INIT_RECORD, TABLE_INDEX_RELOCATIONS, sha256PairHex, GUEST_DYLD_VALUES_SECTION, GUEST_LAZY_FUNCTION_BASE, SDK_DYLD_RESOLVER;
22415
22426
  var init_swift_guest_image_ledger = __esm({
22416
22427
  "src/swift-guest-image-ledger.ts"() {
22417
22428
  "use strict";
22418
- import_node_crypto17 = require("node:crypto");
22429
+ import_node_crypto18 = require("node:crypto");
22419
22430
  init_nativeWasmContract();
22420
22431
  init_swift_sdk_image_wasm();
22421
22432
  init_swiftSdkLinkContract();
@@ -22472,7 +22483,7 @@ var init_swift_guest_image_ledger = __esm({
22472
22483
  };
22473
22484
  OBJC_INIT_RECORD = ".objc_init";
22474
22485
  TABLE_INDEX_RELOCATIONS = /* @__PURE__ */ new Set([1, 2, 12, 18, 19, 24]);
22475
- sha256PairHex = typeof Bun !== "undefined" ? (first, second) => new Bun.CryptoHasher("sha256").update(first).update("\0").update(second).digest("hex") : (first, second) => (0, import_node_crypto17.createHash)("sha256").update(first).update("\0").update(second).digest("hex");
22486
+ sha256PairHex = typeof Bun !== "undefined" ? (first, second) => new Bun.CryptoHasher("sha256").update(first).update("\0").update(second).digest("hex") : (first, second) => (0, import_node_crypto18.createHash)("sha256").update(first).update("\0").update(second).digest("hex");
22476
22487
  GUEST_DYLD_VALUES_SECTION = "peach_dyld_values";
22477
22488
  GUEST_LAZY_FUNCTION_BASE = 2 ** 32;
22478
22489
  SDK_DYLD_RESOLVER = "__peach_sdk_dyld_resolve";
@@ -22798,12 +22809,7 @@ var init_wasm_narrow_boundary = __esm({
22798
22809
  function sha256Buffer(bytes) {
22799
22810
  if (typeof Bun !== "undefined")
22800
22811
  return Buffer.from(new Bun.CryptoHasher("sha256").update(bytes).digest());
22801
- return (0, import_node_crypto18.createHash)("sha256").update(bytes).digest();
22802
- }
22803
- function sha256Hex2(bytes) {
22804
- if (typeof Bun !== "undefined")
22805
- return new Bun.CryptoHasher("sha256").update(bytes).digest("hex");
22806
- return (0, import_node_crypto18.createHash)("sha256").update(bytes).digest("hex");
22812
+ return (0, import_node_crypto19.createHash)("sha256").update(bytes).digest();
22807
22813
  }
22808
22814
  function uleb2(value) {
22809
22815
  const bytes = [];
@@ -22894,8 +22900,8 @@ function guestDyldValueRange(map2) {
22894
22900
  function swiftDyldTableReference(modulePath, module2) {
22895
22901
  const section2 = readWasmCustomSection(module2, NATIVE_DYLD_TABLE_SECTION);
22896
22902
  if (!section2 || readWasmCustomSection(module2, NATIVE_DYLD_PACKS_SECTION)) return;
22897
- const { sha256: sha2565, byteLength } = readNativeDyldTableIndex(Uint8Array.from(section2).buffer);
22898
- return { path: nativeDyldTablePath(modulePath, sha2565), sha256: sha2565, byteLength };
22903
+ const { sha256: sha2564, byteLength } = readNativeDyldTableIndex(Uint8Array.from(section2).buffer);
22904
+ return { path: nativeDyldTablePath(modulePath, sha2564), sha256: sha2564, byteLength };
22899
22905
  }
22900
22906
  function splitSwiftDyldTable(wasm) {
22901
22907
  const packs = readWasmCustomSection(wasm, NATIVE_DYLD_PACKS_SECTION);
@@ -22903,16 +22909,17 @@ function splitSwiftDyldTable(wasm) {
22903
22909
  const bytes = Buffer.from(packs);
22904
22910
  return {
22905
22911
  module: dropWasmCustomSection(wasm, NATIVE_DYLD_PACKS_SECTION),
22906
- table: { sha256: sha256Hex2(bytes), bytes }
22912
+ table: { sha256: sha256Hex(bytes), bytes }
22907
22913
  };
22908
22914
  }
22909
- var import_node_crypto18, import_node_zlib4, PACK_BYTES;
22915
+ var import_node_crypto19, import_node_zlib4, PACK_BYTES;
22910
22916
  var init_swift_guest_dyld_table = __esm({
22911
22917
  "src/swift-guest-dyld-table.ts"() {
22912
22918
  "use strict";
22913
- import_node_crypto18 = require("node:crypto");
22919
+ import_node_crypto19 = require("node:crypto");
22914
22920
  import_node_zlib4 = require("node:zlib");
22915
22921
  init_nativeDyldTableContract();
22922
+ init_sha256();
22916
22923
  init_swift_guest_image_ledger();
22917
22924
  init_swift_guest_linked_spans();
22918
22925
  init_wasm_narrow_boundary();
@@ -23255,7 +23262,7 @@ function selectedGuestManifestInputs(plan, selection, identities, readSelected)
23255
23262
  throw new Error(
23256
23263
  `selected member has no original identity: ${item.artifact}(${item.member})`
23257
23264
  );
23258
- if (origin && (0, import_node_crypto19.createHash)("sha256").update(bytes).digest("hex") !== origin.sha256)
23265
+ if (origin && (0, import_node_crypto20.createHash)("sha256").update(bytes).digest("hex") !== origin.sha256)
23259
23266
  throw new Error(
23260
23267
  `selected member differs from original: ${item.artifact}(${item.member})`
23261
23268
  );
@@ -23302,7 +23309,7 @@ function createGuestImageManifest(image) {
23302
23309
  cpuType: -1,
23303
23310
  cpuSubtype: 0
23304
23311
  };
23305
- const digest3 = (0, import_node_crypto19.createHash)("sha256");
23312
+ const digest3 = (0, import_node_crypto20.createHash)("sha256");
23306
23313
  const sizeBuf = Buffer.allocUnsafe(8);
23307
23314
  const add = (bytes) => {
23308
23315
  sizeBuf.writeBigUInt64BE(BigInt(bytes.byteLength));
@@ -23344,11 +23351,11 @@ function createGuestImageManifest(image) {
23344
23351
  regions: image.regions
23345
23352
  };
23346
23353
  }
23347
- var import_node_crypto19, import_node_fs31, framedLinkOptionsCache;
23354
+ var import_node_crypto20, import_node_fs31, framedLinkOptionsCache;
23348
23355
  var init_swift_guest_manifest = __esm({
23349
23356
  "src/swift-guest-manifest.ts"() {
23350
23357
  "use strict";
23351
- import_node_crypto19 = require("node:crypto");
23358
+ import_node_crypto20 = require("node:crypto");
23352
23359
  import_node_fs31 = require("node:fs");
23353
23360
  init_swift_guest_link_plan();
23354
23361
  init_swift_wasm_prune();
@@ -23814,11 +23821,11 @@ var init_swift_guest_projection_storage = __esm({
23814
23821
  function frameworkRuntimeProductId(product) {
23815
23822
  return `swift-package/${product.packageName}/${product.product.name}`;
23816
23823
  }
23817
- var import_node_crypto20, v4, packageSchema;
23824
+ var import_node_crypto21, v4, packageSchema;
23818
23825
  var init_swift_runtime_products = __esm({
23819
23826
  "src/swift-runtime-products.ts"() {
23820
23827
  "use strict";
23821
- import_node_crypto20 = require("node:crypto");
23828
+ import_node_crypto21 = require("node:crypto");
23822
23829
  v4 = __toESM(require("peachsim/vendor/valibot"), 1);
23823
23830
  init_is_record();
23824
23831
  packageSchema = v4.object({
@@ -23849,7 +23856,7 @@ function canonicalArchivePath(file) {
23849
23856
  function sdkArtifactBytes(root, artifact) {
23850
23857
  const file = import_node_path31.default.resolve(root, artifact.path);
23851
23858
  const linked = (0, import_node_fs32.readFileSync)(file);
23852
- const hash = (bytes) => (0, import_node_crypto21.createHash)("sha256").update(bytes).digest("hex");
23859
+ const hash = (bytes) => (0, import_node_crypto22.createHash)("sha256").update(bytes).digest("hex");
23853
23860
  if (hash(linked) === artifact.sha256) return { source: linked, linked };
23854
23861
  if (artifact.kind !== "archive" || artifact.path !== `${SWIFT_SDK_PRODUCT_DIRECTORY}/libFoundation.a`)
23855
23862
  throw new Error(`SDK product artifact changed ${file}`);
@@ -23875,9 +23882,9 @@ function indexSdkMembers(bytes) {
23875
23882
  );
23876
23883
  }
23877
23884
  function verifySdkObjectTransform(source, linked, sourceSha256, transformation) {
23878
- if ((0, import_node_crypto21.createHash)("sha256").update(source).digest("hex") !== sourceSha256 || transformation.inputSha256 !== sourceSha256)
23885
+ if ((0, import_node_crypto22.createHash)("sha256").update(source).digest("hex") !== sourceSha256 || transformation.inputSha256 !== sourceSha256)
23879
23886
  throw new Error("SDK object transform input changed");
23880
- if ((0, import_node_crypto21.createHash)("sha256").update(linked).digest("hex") !== transformation.outputSha256 || transformation.kind === "swiftrt" && !Buffer.from(patchSwiftrtObject(source)).equals(linked))
23887
+ if ((0, import_node_crypto22.createHash)("sha256").update(linked).digest("hex") !== transformation.outputSha256 || transformation.kind === "swiftrt" && !Buffer.from(patchSwiftrtObject(source)).equals(linked))
23881
23888
  throw new Error("SDK object transform output changed");
23882
23889
  }
23883
23890
  function readGuestRuntimeCatalogs(sdkRoot, distributionRoot) {
@@ -24157,7 +24164,7 @@ function guestSdkProductLinkArtifacts(products, sdk2, inputs2, linkedArchives, r
24157
24164
  const digest3 = (file) => {
24158
24165
  let value = hashes.get(file);
24159
24166
  if (!value) {
24160
- value = (0, import_node_crypto21.createHash)("sha256").update((0, import_node_fs32.readFileSync)(file)).digest("hex");
24167
+ value = (0, import_node_crypto22.createHash)("sha256").update((0, import_node_fs32.readFileSync)(file)).digest("hex");
24161
24168
  hashes.set(file, value);
24162
24169
  }
24163
24170
  return value;
@@ -24225,9 +24232,9 @@ function guestSdkProductLinkArtifacts(products, sdk2, inputs2, linkedArchives, r
24225
24232
  if (input.member) {
24226
24233
  if (original.kind !== "archive")
24227
24234
  throw new Error(`SDK input member has no archive ${originalFile}`);
24228
- const { name: name3, ordinal, sha256: sha2565 } = input.member;
24235
+ const { name: name3, ordinal, sha256: sha2564 } = input.member;
24229
24236
  const member = original.members.find(
24230
- (entry) => entry.name === name3 && entry.ordinal === ordinal && entry.sha256 === sha2565
24237
+ (entry) => entry.name === name3 && entry.ordinal === ordinal && entry.sha256 === sha2564
24231
24238
  );
24232
24239
  let records = archiveMembers.get(originalFile);
24233
24240
  if (!records) {
@@ -24235,7 +24242,7 @@ function guestSdkProductLinkArtifacts(products, sdk2, inputs2, linkedArchives, r
24235
24242
  archiveMembers.set(originalFile, records);
24236
24243
  }
24237
24244
  const bytes = records.filter((entry) => entry.name === name3)[ordinal - 1]?.bytes;
24238
- if (!member || !bytes || (0, import_node_crypto21.createHash)("sha256").update(bytes).digest("hex") !== sha2565)
24245
+ if (!member || !bytes || (0, import_node_crypto22.createHash)("sha256").update(bytes).digest("hex") !== sha2564)
24239
24246
  throw new Error(`SDK input member changed ${originalFile}(${name3})`);
24240
24247
  } else if (original.kind !== "object")
24241
24248
  throw new Error(`SDK object input has no member ${originalFile}`);
@@ -24264,7 +24271,7 @@ function guestSdkProductLinkArtifacts(products, sdk2, inputs2, linkedArchives, r
24264
24271
  const member = members2.get(key2);
24265
24272
  const source = indexed.source.get(key2);
24266
24273
  const linked2 = indexed.linked.get(key2);
24267
- if (!member || !source || !linked2 || (0, import_node_crypto21.createHash)("sha256").update(source).digest("hex") !== member.sha256 || (0, import_node_crypto21.createHash)("sha256").update(linked2).digest("hex") !== digest3(origin.original))
24274
+ if (!member || !source || !linked2 || (0, import_node_crypto22.createHash)("sha256").update(source).digest("hex") !== member.sha256 || (0, import_node_crypto22.createHash)("sha256").update(linked2).digest("hex") !== digest3(origin.original))
24268
24275
  throw new Error(`SDK member differs from source product ${origin.original}`);
24269
24276
  add({
24270
24277
  path: origin.original,
@@ -24329,7 +24336,7 @@ function guestAliasedSdkArchiveArtifacts(options2) {
24329
24336
  const key2 = JSON.stringify([member.name, member.ordinal]);
24330
24337
  const bytes = sourceMembers[index].get(key2);
24331
24338
  const linked = viewMembers[index].get(key2);
24332
- return bytes !== void 0 && linked !== void 0 && (0, import_node_crypto21.createHash)("sha256").update(bytes).digest("hex") === entry.sha256 && (0, import_node_crypto21.createHash)("sha256").update(linked).digest("hex") === member.sha256;
24339
+ return bytes !== void 0 && linked !== void 0 && (0, import_node_crypto22.createHash)("sha256").update(bytes).digest("hex") === entry.sha256 && (0, import_node_crypto22.createHash)("sha256").update(linked).digest("hex") === member.sha256;
24333
24340
  }) ? [product2.id] : []
24334
24341
  )
24335
24342
  );
@@ -24362,11 +24369,11 @@ function guestAliasedSdkArchiveArtifacts(options2) {
24362
24369
  }
24363
24370
  return result;
24364
24371
  }
24365
- var import_node_crypto21, import_node_fs32, import_node_path31, v5, SDK_CONTAINING_IMAGE;
24372
+ var import_node_crypto22, import_node_fs32, import_node_path31, v5, SDK_CONTAINING_IMAGE;
24366
24373
  var init_swift_guest_runtime_plan = __esm({
24367
24374
  "src/swift-guest-runtime-plan.ts"() {
24368
24375
  "use strict";
24369
- import_node_crypto21 = require("node:crypto");
24376
+ import_node_crypto22 = require("node:crypto");
24370
24377
  import_node_fs32 = require("node:fs");
24371
24378
  import_node_path31 = __toESM(require("node:path"), 1);
24372
24379
  v5 = __toESM(require("peachsim/vendor/valibot"), 1);
@@ -26211,13 +26218,8 @@ function clangBinaryStamp(file) {
26211
26218
  const stat = (0, import_node_fs35.statSync)(file, { bigint: true });
26212
26219
  return [file, stat.size, stat.mtimeNs].join(":");
26213
26220
  }
26214
- function sha256Hex3(bytes) {
26215
- if (typeof Bun !== "undefined")
26216
- return new Bun.CryptoHasher("sha256").update(bytes).digest("hex");
26217
- return (0, import_node_crypto22.createHash)("sha256").update(bytes).digest("hex");
26218
- }
26219
26221
  function clangWrapperStamp(file) {
26220
- return sha256Hex3((0, import_node_fs35.readFileSync)(file));
26222
+ return sha256Hex((0, import_node_fs35.readFileSync)(file));
26221
26223
  }
26222
26224
  function clangArgsNeedCwd(args) {
26223
26225
  const pathFlags = /* @__PURE__ */ new Set([
@@ -26395,7 +26397,7 @@ function sourceGuestClangLinkOptions(options2) {
26395
26397
  import_node_path34.default.join(options2.buildDirectory, CLANG_TARGET_MODULE_WRAPPER)
26396
26398
  )))
26397
26399
  throw new Error(`unsupported source object producer ${file}`);
26398
- const key2 = sha256Hex3(
26400
+ const key2 = sha256Hex(
26399
26401
  JSON.stringify([
26400
26402
  "clang-link-options/v2",
26401
26403
  clangArgsNeedCwd(command.args) ? process.cwd() : null,
@@ -26406,7 +26408,7 @@ function sourceGuestClangLinkOptions(options2) {
26406
26408
  clangProducerStamp(file)
26407
26409
  ])
26408
26410
  );
26409
- const cacheFile = import_node_path34.default.join(cacheDirectory, sha256Hex3(file) + ".json");
26411
+ const cacheFile = import_node_path34.default.join(cacheDirectory, sha256Hex(file) + ".json");
26410
26412
  const cached2 = readClangLinkOptions(cacheFile, key2);
26411
26413
  if (cached2) {
26412
26414
  validateClangLinkOptions(cached2);
@@ -26619,7 +26621,7 @@ function sourceGuestRuntimeLinks(options2) {
26619
26621
  const file = import_node_path34.default.resolve(directory2, alias.moduleMap);
26620
26622
  if (!file.startsWith(directory2 + import_node_path34.default.sep))
26621
26623
  throw new Error(`invalid framework module map ${alias.moduleMap}`);
26622
- if ((0, import_node_crypto22.createHash)("sha256").update((0, import_node_fs35.readFileSync)(file)).digest("hex") !== alias.moduleMapSha256)
26624
+ if (sha256Hex((0, import_node_fs35.readFileSync)(file)) !== alias.moduleMapSha256)
26623
26625
  throw new Error(`framework module map changed ${alias.moduleMap}`);
26624
26626
  sdkAliases.set(alias.name, {
26625
26627
  product: product.id,
@@ -26675,7 +26677,7 @@ function sourceGuestRuntimeLinks(options2) {
26675
26677
  const map2 = import_node_path34.default.resolve(root, alias.moduleMap);
26676
26678
  if (!map2.startsWith(root + import_node_path34.default.sep))
26677
26679
  throw new Error(`invalid framework module map ${alias.moduleMap}`);
26678
- if ((0, import_node_crypto22.createHash)("sha256").update((0, import_node_fs35.readFileSync)(map2)).digest("hex") !== alias.moduleMapSha256)
26680
+ if (sha256Hex((0, import_node_fs35.readFileSync)(map2)) !== alias.moduleMapSha256)
26679
26681
  throw new Error(`framework module map changed ${alias.moduleMap}`);
26680
26682
  frameworkAliases.set(alias.name, { kind: "package", targets: closure(alias.targets) });
26681
26683
  }
@@ -26776,15 +26778,15 @@ function logicalGuestLinkOptions(args, identities, roots) {
26776
26778
  }
26777
26779
  return output;
26778
26780
  }
26779
- var import_node_child_process20, import_node_crypto22, import_node_fs35, import_node_path34, CLANG_TARGET_MODULE_WRAPPER, PARALLEL_REPLAY;
26781
+ var import_node_child_process20, import_node_fs35, import_node_path34, CLANG_TARGET_MODULE_WRAPPER, PARALLEL_REPLAY;
26780
26782
  var init_swift_guest_source_inputs = __esm({
26781
26783
  "src/swift-guest-source-inputs.ts"() {
26782
26784
  "use strict";
26783
26785
  import_node_child_process20 = require("node:child_process");
26784
- import_node_crypto22 = require("node:crypto");
26785
26786
  import_node_fs35 = require("node:fs");
26786
26787
  import_node_path34 = __toESM(require("node:path"), 1);
26787
26788
  init_forked_script_contract();
26789
+ init_sha256();
26788
26790
  init_swift_guest_source_plan();
26789
26791
  init_swift_runtime_products();
26790
26792
  init_swift_wasm_prune();
@@ -28629,7 +28631,7 @@ function headerClosure(roots) {
28629
28631
  ).filter((file) => !file.endsWith(`/${j.exclude}`));
28630
28632
  const nitroFiles = roots.nitroModules ? headerFiles2(roots.nitroModules, n.from, n.skip, new RegExp(n.keep)) : [];
28631
28633
  const hashes = (base2, files2) => Object.fromEntries(
28632
- files2.map((file) => [file, sha256Hex4((0, import_node_fs39.readFileSync)(import_node_path38.default.join(base2, file)))])
28634
+ files2.map((file) => [file, sha256Hex2((0, import_node_fs39.readFileSync)(import_node_path38.default.join(base2, file)))])
28633
28635
  );
28634
28636
  return {
28635
28637
  jsi: hashes(roots.reactNative, jsiFiles),
@@ -28793,11 +28795,11 @@ function verifyInstalledAdapter(family, directory2, pin2) {
28793
28795
  if (JSON.stringify(recorded) !== JSON.stringify(pinned))
28794
28796
  throw new Error(`${label} manifest does not match the lock this build carries`);
28795
28797
  const bytes = (0, import_node_fs39.readFileSync)(import_node_path38.default.join(directory2, archive.path));
28796
- if (bytes.length !== archive.size || sha256Hex4(bytes) !== archive.sha256)
28798
+ if (bytes.length !== archive.size || sha256Hex2(bytes) !== archive.sha256)
28797
28799
  throw new Error(`${label} library does not match its manifest`);
28798
28800
  return manifest;
28799
28801
  }
28800
- var import_node_crypto24, import_node_fs39, import_node_path38, ADAPTER_MANIFEST, ADAPTER_FAMILIES, TURBO_RUNTIME_HEADER, HEADER_STAGE, sha256Hex4, hex64, sameHeaders;
28802
+ var import_node_crypto24, import_node_fs39, import_node_path38, ADAPTER_MANIFEST, ADAPTER_FAMILIES, TURBO_RUNTIME_HEADER, HEADER_STAGE, sha256Hex2, hex64, sameHeaders;
28801
28803
  var init_nitroAdapterContract = __esm({
28802
28804
  "src/nitroAdapterContract.ts"() {
28803
28805
  "use strict";
@@ -28847,7 +28849,7 @@ void scheduleDrain();
28847
28849
  to: ["core", "core/NitroModules"]
28848
28850
  }
28849
28851
  };
28850
- sha256Hex4 = (data) => (0, import_node_crypto24.createHash)("sha256").update(data).digest("hex");
28852
+ sha256Hex2 = (data) => (0, import_node_crypto24.createHash)("sha256").update(data).digest("hex");
28851
28853
  hex64 = (value) => typeof value === "string" && /^[a-f0-9]{64}$/.test(value);
28852
28854
  sameHeaders = (a, b) => JSON.stringify(a) === JSON.stringify(b);
28853
28855
  }
@@ -28921,10 +28923,10 @@ function swiftNativePin() {
28921
28923
  }
28922
28924
  return pin;
28923
28925
  }
28924
- function publishedSwiftSdk(sha2565) {
28926
+ function publishedSwiftSdk(sha2564) {
28925
28927
  const { sdkRuntime, sdkGuestRuntime } = swiftNativePin().distribution;
28926
28928
  return [sdkRuntime, sdkGuestRuntime].find(
28927
- (publication) => publication?.source === sha2565
28929
+ (publication) => publication?.source === sha2564
28928
28930
  );
28929
28931
  }
28930
28932
  var pin;
@@ -31964,6 +31966,10 @@ ${SWIFT_SDK_IMAGE_VERSION}
31964
31966
  `).update(inputs2).update(products.length === 0 ? "" : `
31965
31967
  products ${products.join(" ")}`).digest("hex").slice(0, 32);
31966
31968
  }
31969
+ function swiftSdkImageVariantKey(baseKey, required) {
31970
+ if (!required.length) return baseKey;
31971
+ return (0, import_node_crypto30.createHash)("sha256").update(baseKey).update(JSON.stringify(required)).digest("hex").slice(0, 32);
31972
+ }
31967
31973
  function swiftSdkImageEntry(key2, scopedLookups) {
31968
31974
  const inputs2 = { image: key2 };
31969
31975
  return {
@@ -31993,15 +31999,15 @@ function cached(directory2, key2) {
31993
31999
  return void 0;
31994
32000
  }
31995
32001
  }
31996
- function sdkImageAt(directory2, key2, sha2565) {
32002
+ function sdkImageAt(directory2, key2, sha2564) {
31997
32003
  refreshSwiftCacheHold(directory2);
31998
- const cacheKey = `${directory2}\0${sha2565}`;
32004
+ const cacheKey = `${directory2}\0${sha2564}`;
31999
32005
  let loadedInterface;
32000
32006
  return {
32001
32007
  key: key2,
32002
32008
  directory: directory2,
32003
32009
  image: import_node_path44.default.join(directory2, IMAGE_FILE),
32004
- sha256: sha2565,
32010
+ sha256: sha2564,
32005
32011
  get sdkInterface() {
32006
32012
  if (loadedInterface) return loadedInterface;
32007
32013
  const memo2 = cachedSdkInterfaces.get(cacheKey);
@@ -32015,11 +32021,24 @@ function sdkImageAt(directory2, key2, sha2565) {
32015
32021
  }
32016
32022
  async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkImports2 = [], options2) {
32017
32023
  const { imports: imports2, products } = swiftSdkImageProducts(moduleRoot, frameworkImports2);
32018
- const key2 = swiftSdkImageKey(moduleRoot, scopedLookups, products);
32019
- const directory2 = import_node_path44.default.join(swiftCacheDir(), "swift-sdk-images", key2);
32024
+ const images = import_node_path44.default.join(swiftCacheDir(), "swift-sdk-images");
32025
+ const baseKey = swiftSdkImageKey(moduleRoot, scopedLookups, products);
32026
+ const required = [...new Set(options2?.requiredGuestSymbols)].sort();
32027
+ const base2 = cached(import_node_path44.default.join(images, baseKey), baseKey);
32028
+ if (base2) {
32029
+ if (!required.length) return base2;
32030
+ const { functions, data, tls } = base2.sdkInterface;
32031
+ if (required.every(
32032
+ (name3) => functions[name3] !== void 0 || data[name3] !== void 0 || tls[name3] !== void 0
32033
+ ))
32034
+ return base2;
32035
+ }
32036
+ const key2 = swiftSdkImageVariantKey(baseKey, required);
32037
+ const directory2 = import_node_path44.default.join(images, key2);
32020
32038
  const existing = cached(directory2, key2);
32021
32039
  if (existing) return existing;
32022
- if (!options2?.producer && !swiftDistributionAt(moduleRoot) && import_node_path44.default.resolve(moduleRoot) === sourceSwiftCheckout() && process.platform === "linux" && process.env.TM_SESSION) {
32040
+ const distribution = swiftDistributionAt(moduleRoot);
32041
+ if (!options2?.producer && !required.length && !distribution && import_node_path44.default.resolve(moduleRoot) === sourceSwiftCheckout() && process.platform === "linux" && process.env.TM_SESSION) {
32023
32042
  const { produceSwiftSdkImage: produceSwiftSdkImage2 } = await Promise.resolve().then(() => (init_swift_sdk_image_producer(), swift_sdk_image_producer_exports));
32024
32043
  await produceSwiftSdkImage2({
32025
32044
  moduleRoot,
@@ -32040,7 +32059,7 @@ async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkIm
32040
32059
  return cached(directory2, key2) ?? withSwiftRootLock(directory2, async () => {
32041
32060
  const previous = cached(directory2, key2);
32042
32061
  if (previous) return previous;
32043
- if (swiftDistributionAt(moduleRoot)) {
32062
+ if (distribution && !required.length) {
32044
32063
  const entry = swiftSdkImageEntry(key2, scopedLookups);
32045
32064
  const fetched = fetchNativeEntry("sdk-image", entry.name, entry.key);
32046
32065
  if (fetched) {
@@ -32077,6 +32096,7 @@ async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkIm
32077
32096
  work,
32078
32097
  scopedLookups,
32079
32098
  imports2,
32099
+ required,
32080
32100
  releaseFrameworks
32081
32101
  )
32082
32102
  );
@@ -32085,7 +32105,7 @@ async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkIm
32085
32105
  }
32086
32106
  });
32087
32107
  }
32088
- async function linkSwiftSdkImage(moduleRoot, key2, directory2, work, scopedLookups, imports2, releaseFrameworks) {
32108
+ async function linkSwiftSdkImage(moduleRoot, key2, directory2, work, scopedLookups, imports2, required, releaseFrameworks) {
32089
32109
  (0, import_node_fs45.rmSync)(work, { recursive: true, force: true });
32090
32110
  (0, import_node_fs45.mkdirSync)(work, { recursive: true });
32091
32111
  const toolchain = swiftModuleToolchain(moduleRoot);
@@ -32246,7 +32266,10 @@ async function linkSwiftSdkImage(moduleRoot, key2, directory2, work, scopedLooku
32246
32266
  const quote3 = (value) => JSON.stringify(value);
32247
32267
  (0, import_node_fs45.writeFileSync)(
32248
32268
  import_node_path44.default.join(work, "exports.rsp"),
32249
- [...defined].map((name3) => quote3(`--export-if-defined=${name3}`)).join("\n")
32269
+ [
32270
+ ...[...defined].map((name3) => quote3(`--export-if-defined=${name3}`)),
32271
+ ...required.filter((name3) => !defined.has(name3)).map((name3) => quote3(`--export=${name3}`))
32272
+ ].join("\n")
32250
32273
  );
32251
32274
  const guestServices = import_node_path44.default.join(work, "peach-guest-services.allow");
32252
32275
  (0, import_node_fs45.writeFileSync)(guestServices, peachGuestServiceAllowlist);
@@ -32337,11 +32360,12 @@ async function linkSwiftSdkImage(moduleRoot, key2, directory2, work, scopedLooku
32337
32360
  import_node_path44.default.join(work, IMAGE_DIGEST),
32338
32361
  typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(image).digest("hex") : (0, import_node_crypto30.createHash)("sha256").update(image).digest("hex")
32339
32362
  );
32340
- if (swiftSdkImageKey(
32363
+ const baseKey = swiftSdkImageKey(
32341
32364
  moduleRoot,
32342
32365
  scopedLookups,
32343
32366
  swiftSdkImageProducts(moduleRoot, imports2).products
32344
- ) !== key2)
32367
+ );
32368
+ if (swiftSdkImageVariantKey(baseKey, required) !== key2)
32345
32369
  throw new Error("Swift SDK image inputs changed during compilation");
32346
32370
  for (const name3 of (0, import_node_fs45.readdirSync)(work))
32347
32371
  if (!SWIFT_SDK_IMAGE_FILES.includes(name3))
@@ -32752,12 +32776,12 @@ function encodeNativeSdkLater(later) {
32752
32776
  const view = new DataView(bytes.buffer);
32753
32777
  view.setUint32(0, files2.length, true);
32754
32778
  let at = 4;
32755
- for (const { sha256: sha2565, byteLength } of files2) {
32756
- if (!/^[a-f0-9]{64}$/.test(sha2565))
32779
+ for (const { sha256: sha2564, byteLength } of files2) {
32780
+ if (!/^[a-f0-9]{64}$/.test(sha2564))
32757
32781
  throw new Error("Swift SDK later data needs a sha256 digest");
32758
32782
  if (!byteLength) throw new Error("Swift SDK later data file is empty");
32759
32783
  for (let i = 0; i < LATER_DIGEST_BYTES; i++)
32760
- bytes[at + i] = Number.parseInt(sha2565.slice(i * 2, i * 2 + 2), 16);
32784
+ bytes[at + i] = Number.parseInt(sha2564.slice(i * 2, i * 2 + 2), 16);
32761
32785
  view.setUint32(at + LATER_DIGEST_BYTES, byteLength, true);
32762
32786
  at += LATER_DIGEST_BYTES + 4;
32763
32787
  }
@@ -32782,13 +32806,13 @@ function decodeNativeSdkLater(trailer) {
32782
32806
  const files2 = [];
32783
32807
  for (let file = 0; file < count; file++) {
32784
32808
  if (at + LATER_DIGEST_BYTES + 4 > trailer.byteLength) throw truncated();
32785
- const sha2565 = Array.from(
32809
+ const sha2564 = Array.from(
32786
32810
  trailer.subarray(at, at + LATER_DIGEST_BYTES),
32787
32811
  (byte) => byte.toString(16).padStart(2, "0")
32788
32812
  ).join("");
32789
32813
  const byteLength = view.getUint32(at + LATER_DIGEST_BYTES, true);
32790
32814
  if (!byteLength) throw new Error("Swift SDK binding names empty later data");
32791
- files2.push({ sha256: sha2565, byteLength });
32815
+ files2.push({ sha256: sha2564, byteLength });
32792
32816
  at += LATER_DIGEST_BYTES + 4;
32793
32817
  }
32794
32818
  if (!files2.length || at + 4 > trailer.byteLength) throw truncated();
@@ -33975,8 +33999,8 @@ function createSwiftSdkBinding(linkage, sdk2, usage, projection) {
33975
33999
  const binding = bindSwiftAppModule(linkage, sdk2);
33976
34000
  const { data, liveSlots } = selectSwiftSdkData(sdk2, usage, linkage, projection);
33977
34001
  const bytes = Buffer.concat([binding, data]);
33978
- const sha2565 = typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(bytes).digest("hex") : (0, import_node_crypto31.createHash)("sha256").update(bytes).digest("hex");
33979
- return { bytes, sha256: sha2565, liveSlots };
34002
+ const sha2564 = typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(bytes).digest("hex") : (0, import_node_crypto31.createHash)("sha256").update(bytes).digest("hex");
34003
+ return { bytes, sha256: sha2564, liveSlots };
33980
34004
  }
33981
34005
  function readSwiftSdkUsage(mapFile, linkedFile, sdkObjects) {
33982
34006
  const map2 = readWasmLinkMap(mapFile, false);
@@ -42520,7 +42544,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
42520
42544
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
42521
42545
  MULTI_MANIFEST_VERSION = 76;
42522
42546
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
42523
- compilerSourceDigest = true ? "1803ba36803a88ceeca92ee7b13baa39dde72fbb72df14659f0414084afaf5d7" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
42547
+ compilerSourceDigest = true ? "3bdbb1d31ba7d202e612a91b60a3b588f9bc94a11990fb114585b3e2521857f5" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
42524
42548
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
42525
42549
  MODULE_MAP_RESPONSE_FILE_RUN = 16;
42526
42550
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
@@ -68497,11 +68521,6 @@ var init_podspec_sources = __esm({
68497
68521
  });
68498
68522
 
68499
68523
  // src/bazel-project.ts
68500
- function sha256Hex5(bytes) {
68501
- if (typeof Bun !== "undefined")
68502
- return new Bun.CryptoHasher("sha256").update(bytes).digest("hex");
68503
- return (0, import_node_crypto44.createHash)("sha256").update(bytes).digest("hex");
68504
- }
68505
68524
  function isBazelPackage(input) {
68506
68525
  return /^BUILD(?:\.bazel)?$/.test(import_node_path74.default.basename(input)) && import_node_fs73.default.statSync(input).isFile();
68507
68526
  }
@@ -68531,7 +68550,7 @@ function bazelBinary(root) {
68531
68550
  const expected = (0, import_node_child_process41.execFileSync)("curl", ["-fsSL", `${url}.sha256`], {
68532
68551
  encoding: "utf8"
68533
68552
  }).split(/\s/)[0];
68534
- const actual = (0, import_node_crypto44.createHash)("sha256").update(import_node_fs73.default.readFileSync(partial)).digest("hex");
68553
+ const actual = sha256Hex(import_node_fs73.default.readFileSync(partial));
68535
68554
  if (actual !== expected) {
68536
68555
  import_node_fs73.default.rmSync(partial, { force: true });
68537
68556
  throw new Error(`${url} digest ${actual} differs from its release ${expected}`);
@@ -69256,8 +69275,8 @@ ${published3.map(
69256
69275
  ]
69257
69276
  )
69258
69277
  ]);
69259
- const digest3 = sha256Hex5(
69260
- JSON.stringify([...contents2].map(([file, bytes]) => [file, sha256Hex5(bytes)]))
69278
+ const digest3 = sha256Hex(
69279
+ JSON.stringify([...contents2].map(([file, bytes]) => [file, sha256Hex(bytes)]))
69261
69280
  );
69262
69281
  const stamp = import_node_path74.default.join(bundle, ".peach-digest");
69263
69282
  if (!import_node_fs73.default.existsSync(stamp) || import_node_fs73.default.readFileSync(stamp, "utf8") !== digest3) {
@@ -69429,6 +69448,7 @@ var init_bazel_project = __esm({
69429
69448
  import_node_path74 = __toESM(require("node:path"), 1);
69430
69449
  init_is_record();
69431
69450
  init_plist();
69451
+ init_sha256();
69432
69452
  LIBRARY_RULES = /* @__PURE__ */ new Set(["swift_library", "objc_library", "cc_library"]);
69433
69453
  QUERIED_RULES = [
69434
69454
  "swift_library",
@@ -69917,7 +69937,7 @@ var init_provenance = __esm({
69917
69937
  import_node_crypto46 = require("node:crypto");
69918
69938
  import_node_fs75 = require("node:fs");
69919
69939
  import_node_path76 = require("node:path");
69920
- 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":"d6a3228567a46c6d5280895383093889d9b868958a117881061bdd74729a225f","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"facdbeb9de6bb12da4ab4954553edfaadd0e486f1181443138be70c3d8396236","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"523fdfffc0cff95c8df7beeca437622a07d4fd666f0bb22b0ff67d14c42a7b10","swift-package.ts":"05c6cf101fbc944f6684a70db0a9c5aede846b2f0482a6b4a5a0abed737d4658","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"cc32d16a0a3539e97447f853dd876b6b9240d544f5e0f21852c5a8333968e8a5","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"c72b724fc497e4cf603c355f86eb3c07c929ad299758cffbc6ff88ed241654c6","xcode-project.ts":"d140088a94d032e28788e18bf11499965e0c626255fd904538764ededcf1d751","xcode-target-members.ts":"2379e6d411c5d63fa65ddc24c4e4fc8bfcd001b5be109b694c848fe62908db86","xcode-json-project.ts":"df6d6db28e0c8cfdf1f480e1e32d35f12c9cf1936642d5dda923889fb18a8fd6","openstep-plist.ts":"da11f86885ef1e25979ad989f332195c113c4b7a43f108e8d36646973430b81b"}') : swiftCoverageSourceDigests((0, import_node_path76.join)(__sootsim_import_meta_dirname, ".."));
69940
+ swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"839661007eb801f3e3ec055a1f00c0e8b7a3d3be7f4bf1fc389ee6b5c2a290a6","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"2c235d7947d94c8a9f84b305f5453da8647c5c9f8180a38c59631868685b8723","swift-coverage/package.ts":"0f595bd55bcbd22bb337395f175d2aba23624d60f44d3309a61929629cc9b200","swift-coverage/xcode.ts":"059dd3b47d1ce4fe43acef97277c64b57507399866725a2144289eaa6ef8c1d4","swift-coverage/xcode-assets.ts":"a9314d1de1df0ce639a4402b66f89f8b20537f3fdadf0b7cf7355e6ac5b09f54","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"b7f31dd9c3c554bd69bff75cc9985a11032a394b405acc4b82be8f140a2a8676","swift-coverage/xcode-packages.ts":"d6b3d7fb1f5e32b4b08727927b794030d2f1285c7e3c41d7e8ab2e244a3d8c36","swift-coverage/xcode-strings.ts":"ef711d2a9039a08eb7d407546018ab22aafb0e883a65fc838bf864f5c5c9f85b","swift-coverage/reader.ts":"2562d668fd959c4ae3d24b765d3281b8d03251e8de65ec62bda305ba79f7d8c3","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"523fdfffc0cff95c8df7beeca437622a07d4fd666f0bb22b0ff67d14c42a7b10","swift-package.ts":"05c6cf101fbc944f6684a70db0a9c5aede846b2f0482a6b4a5a0abed737d4658","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"cc32d16a0a3539e97447f853dd876b6b9240d544f5e0f21852c5a8333968e8a5","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"c72b724fc497e4cf603c355f86eb3c07c929ad299758cffbc6ff88ed241654c6","xcode-project.ts":"d140088a94d032e28788e18bf11499965e0c626255fd904538764ededcf1d751","xcode-target-members.ts":"2379e6d411c5d63fa65ddc24c4e4fc8bfcd001b5be109b694c848fe62908db86","xcode-json-project.ts":"df6d6db28e0c8cfdf1f480e1e32d35f12c9cf1936642d5dda923889fb18a8fd6","openstep-plist.ts":"da11f86885ef1e25979ad989f332195c113c4b7a43f108e8d36646973430b81b"}') : swiftCoverageSourceDigests((0, import_node_path76.join)(__sootsim_import_meta_dirname, ".."));
69921
69941
  }
69922
69942
  });
69923
69943
 
@@ -70909,12 +70929,12 @@ function catalogDigest(directory2) {
70909
70929
  const path145 = (0, import_node_path78.join)(dir, entry.name);
70910
70930
  if (entry.isDirectory()) walk4(path145);
70911
70931
  else if (entry.isFile() && (0, import_node_fs77.statSync)(path145).size <= 64 * 1024 * 1024)
70912
- hashes.push([(0, import_node_path78.relative)(directory2, path145), sha2562((0, import_node_fs77.readFileSync)(path145))]);
70932
+ hashes.push([(0, import_node_path78.relative)(directory2, path145), sha256Hex((0, import_node_fs77.readFileSync)(path145))]);
70913
70933
  else throw new Error(`Unsupported asset catalog entry: ${path145}`);
70914
70934
  }
70915
70935
  };
70916
70936
  walk4(directory2);
70917
- return sha2562(JSON.stringify(hashes));
70937
+ return sha256Hex(JSON.stringify(hashes));
70918
70938
  }
70919
70939
  function symbolSource(plan, root) {
70920
70940
  const key2 = JSON.stringify([root, plan]);
@@ -71011,16 +71031,15 @@ function assetSymbolText(plan, root) {
71011
71031
  if (source.status === "unknown") throw new Error(source.reason);
71012
71032
  return source.text;
71013
71033
  }
71014
- var import_node_crypto47, import_node_fs77, import_node_path78, sha2562, unprovenAssetSettings, assetSymbolSettingKeys, provenOtherAssetFlags, symbolTexts;
71034
+ var import_node_fs77, import_node_path78, unprovenAssetSettings, assetSymbolSettingKeys, provenOtherAssetFlags, symbolTexts;
71015
71035
  var init_xcode_assets = __esm({
71016
71036
  "src/swift-coverage/xcode-assets.ts"() {
71017
71037
  "use strict";
71018
- import_node_crypto47 = require("node:crypto");
71019
71038
  import_node_fs77 = require("node:fs");
71020
71039
  import_node_path78 = require("node:path");
71040
+ init_sha256();
71021
71041
  init_provenance();
71022
71042
  init_xcode_asset_symbols();
71023
- sha2562 = (bytes) => (0, import_node_crypto47.createHash)("sha256").update(bytes).digest("hex");
71024
71043
  unprovenAssetSettings = [
71025
71044
  "ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_FRAMEWORKS",
71026
71045
  "ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_WARNINGS",
@@ -71761,7 +71780,7 @@ function normalizedEnums(input) {
71761
71780
  }
71762
71781
  function localizationIdentifier(field, key2) {
71763
71782
  const alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
71764
- const digest3 = (0, import_node_crypto48.createHash)("sha256").update(JSON.stringify([...field, key2])).digest();
71783
+ const digest3 = (0, import_node_crypto47.createHash)("sha256").update(JSON.stringify([...field, key2])).digest();
71765
71784
  return Array.from(
71766
71785
  digest3.subarray(0, 6),
71767
71786
  (byte) => alphabet[byte % alphabet.length]
@@ -72086,12 +72105,12 @@ function writeIntentDefinition(input, prefix) {
72086
72105
  lines.push("</plist>", "");
72087
72106
  return lines.join("\n");
72088
72107
  }
72089
- var import_strict4, import_node_crypto48, typeMetadata, initializeMetadata, widgetArraySizes, defaultReasonMessages;
72108
+ var import_strict4, import_node_crypto47, typeMetadata, initializeMetadata, widgetArraySizes, defaultReasonMessages;
72090
72109
  var init_metadata = __esm({
72091
72110
  "src/intent-definition/metadata.ts"() {
72092
72111
  "use strict";
72093
72112
  import_strict4 = __toESM(require("node:assert/strict"), 1);
72094
- import_node_crypto48 = require("node:crypto");
72113
+ import_node_crypto47 = require("node:crypto");
72095
72114
  init_fields();
72096
72115
  init_hash_input();
72097
72116
  init_siphash();
@@ -72800,7 +72819,7 @@ function preparePortableIntent(definition2, derivedDirectory, prefix, language,
72800
72819
  if (prefix) identifier(prefix);
72801
72820
  if (module2) identifier(module2);
72802
72821
  const source = import_node_fs80.default.readFileSync(definition2);
72803
- const key2 = (0, import_node_crypto49.createHash)("sha256").update(
72822
+ const key2 = (0, import_node_crypto48.createHash)("sha256").update(
72804
72823
  JSON.stringify([intentCompilerRevision, definition2, prefix, language, module2])
72805
72824
  ).update("\0").update(source).digest("hex");
72806
72825
  const cache = import_node_path81.default.join(derivedDirectory, "IntentDefinitions");
@@ -72840,11 +72859,11 @@ function preparePortableIntent(definition2, derivedDirectory, prefix, language,
72840
72859
  import_node_fs80.default.rmSync(stage, { recursive: true, force: true });
72841
72860
  }
72842
72861
  }
72843
- var import_node_crypto49, import_node_fs80, import_node_path81, intentCompilerRevision;
72862
+ var import_node_crypto48, import_node_fs80, import_node_path81, intentCompilerRevision;
72844
72863
  var init_xcode_intents = __esm({
72845
72864
  "src/xcode-intents.ts"() {
72846
72865
  "use strict";
72847
- import_node_crypto49 = require("node:crypto");
72866
+ import_node_crypto48 = require("node:crypto");
72848
72867
  import_node_fs80 = __toESM(require("node:fs"), 1);
72849
72868
  import_node_path81 = __toESM(require("node:path"), 1);
72850
72869
  init_fields();
@@ -73546,7 +73565,7 @@ function loadProject(xcodeproj) {
73546
73565
  if (!projectFile)
73547
73566
  throw new Error(`${xcodeproj} has no project.pbxproj or project.xcproj`);
73548
73567
  const source = import_node_fs81.default.readFileSync(projectFile, "utf8");
73549
- const digest3 = (0, import_node_crypto50.createHash)("sha256").update(source).digest("hex");
73568
+ const digest3 = (0, import_node_crypto49.createHash)("sha256").update(source).digest("hex");
73550
73569
  const cached2 = loaded3.get(projectFile);
73551
73570
  if (cached2?.digest === digest3) return cached2.project;
73552
73571
  const root = projectFile.endsWith(".xcproj") ? readXcodeJsonProject(xcodeproj, source) : parseOpenStepPlist(source);
@@ -73598,7 +73617,7 @@ function xcodeInstallationIdentity() {
73598
73617
  if (!selected) return null;
73599
73618
  const directory2 = import_node_path83.default.extname(selected) === ".app" ? import_node_path83.default.join(selected, "Contents", "Developer") : selected;
73600
73619
  const versionFile = `${directory2}/../version.plist`;
73601
- const version2 = import_node_fs81.default.existsSync(versionFile) ? (0, import_node_crypto50.createHash)("sha256").update(import_node_fs81.default.readFileSync(versionFile)).digest("hex") : null;
73620
+ const version2 = import_node_fs81.default.existsSync(versionFile) ? (0, import_node_crypto49.createHash)("sha256").update(import_node_fs81.default.readFileSync(versionFile)).digest("hex") : null;
73602
73621
  return { directory: directory2, version: version2 };
73603
73622
  }
73604
73623
  function defaultConfiguration(project2) {
@@ -74082,7 +74101,7 @@ function targetMembers(ref, settings, options2, settingKeys, projectInputs) {
74082
74101
  );
74083
74102
  });
74084
74103
  }
74085
- const signature2 = (0, import_node_crypto50.createHash)("sha256").update(
74104
+ const signature2 = (0, import_node_crypto49.createHash)("sha256").update(
74086
74105
  JSON.stringify([phase, [...settingKeys].map((key3) => [key3, settings(key3)])])
74087
74106
  );
74088
74107
  for (const file of inputFiles) {
@@ -74237,7 +74256,7 @@ ${output}`
74237
74256
  const inputs2 = JSON.stringify([
74238
74257
  1,
74239
74258
  args,
74240
- (0, import_node_crypto50.createHash)("sha256").update(import_node_fs81.default.readFileSync(file)).digest("hex")
74259
+ (0, import_node_crypto49.createHash)("sha256").update(import_node_fs81.default.readFileSync(file)).digest("hex")
74241
74260
  ]);
74242
74261
  const developer = settings("DEVELOPER_DIR");
74243
74262
  const cached2 = import_node_fs81.default.existsSync(output) && import_node_fs81.default.existsSync(stamp) ? import_node_fs81.default.readFileSync(stamp, "utf8").split("\n") : [];
@@ -75747,12 +75766,12 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
75747
75766
  cocoapods
75748
75767
  };
75749
75768
  }
75750
- var import_node_child_process42, import_node_crypto50, import_node_fs81, import_node_module5, import_node_path83, XCODE_DEFAULT_IOS_DEPLOYMENT_TARGET, runScriptTimeoutMs, CXX_STANDARD_ALIASES, PRE_CXX20_STANDARDS, APPLICATION, APP_EXTENSION, RESOURCE_BUNDLE, PRODUCT_MACH_O_TYPES, FRAMEWORK_PRODUCTS, HEADER_FILE, MODULE_PRODUCTS, CONDITIONS, isDirectory3, loaded3, developerDir, preparedSourcePhases, isPodsProject, targetRefs, NativeAppTargetSelectionError, workspaceResolvedFile, SwiftPackageResolutionRequired;
75769
+ var import_node_child_process42, import_node_crypto49, import_node_fs81, import_node_module5, import_node_path83, XCODE_DEFAULT_IOS_DEPLOYMENT_TARGET, runScriptTimeoutMs, CXX_STANDARD_ALIASES, PRE_CXX20_STANDARDS, APPLICATION, APP_EXTENSION, RESOURCE_BUNDLE, PRODUCT_MACH_O_TYPES, FRAMEWORK_PRODUCTS, HEADER_FILE, MODULE_PRODUCTS, CONDITIONS, isDirectory3, loaded3, developerDir, preparedSourcePhases, isPodsProject, targetRefs, NativeAppTargetSelectionError, workspaceResolvedFile, SwiftPackageResolutionRequired;
75751
75770
  var init_xcode_project = __esm({
75752
75771
  "src/xcode-project.ts"() {
75753
75772
  "use strict";
75754
75773
  import_node_child_process42 = require("node:child_process");
75755
- import_node_crypto50 = require("node:crypto");
75774
+ import_node_crypto49 = require("node:crypto");
75756
75775
  import_node_fs81 = __toESM(require("node:fs"), 1);
75757
75776
  import_node_module5 = require("node:module");
75758
75777
  import_node_path83 = __toESM(require("node:path"), 1);
@@ -75961,8 +75980,8 @@ async function walkWorkspaceInputs(app, everyByte, sourceOnly, podsEnvironment)
75961
75980
  );
75962
75981
  const appRelative = import_node_path84.default.relative(root, app);
75963
75982
  const manifest = JSON.parse(import_node_fs82.default.readFileSync(import_node_path84.default.join(root, "package.json"), "utf8"));
75964
- const hash = (0, import_node_crypto51.createHash)("sha256");
75965
- const native = (0, import_node_crypto51.createHash)("sha256");
75983
+ const hash = (0, import_node_crypto50.createHash)("sha256");
75984
+ const native = (0, import_node_crypto50.createHash)("sha256");
75966
75985
  const nativeDirectories = localPackageDirectories(root, app);
75967
75986
  const versionFree = new Set(
75968
75987
  nativeDirectories.filter((directory2) => directory2 !== appRelative && directory2 !== "").filter(
@@ -76046,7 +76065,7 @@ async function walkWorkspaceInputs(app, everyByte, sourceOnly, podsEnvironment)
76046
76065
  unread.slice(start, start + 32).map(async ({ file, content }) => {
76047
76066
  const bytes = await import_node_fs82.default.promises.readFile(file);
76048
76067
  content.size = bytes.length;
76049
- content.digest = (0, import_node_crypto51.createHash)("sha256").update(bytes).digest("hex");
76068
+ content.digest = (0, import_node_crypto50.createHash)("sha256").update(bytes).digest("hex");
76050
76069
  fileDigests.set(file, content);
76051
76070
  })
76052
76071
  );
@@ -76599,10 +76618,10 @@ function stageCachedQuickCryptoOpenSsl(app) {
76599
76618
  const opensslDir = import_node_path84.default.join(packageDir, "ios", "openssl");
76600
76619
  if (import_node_fs82.default.existsSync(import_node_path84.default.join(opensslDir, "quickcrypto_openssl_prefix.h"))) return;
76601
76620
  const podspec = import_node_fs82.default.readFileSync(import_node_path84.default.join(packageDir, "QuickCrypto.podspec"), "utf8");
76602
- const sha2565 = /openssl_sha256\s*=\s*"([0-9a-f]{64})"/.exec(podspec)?.[1];
76603
- if (!sha2565) return;
76604
- const archive = import_node_path84.default.join(cacheDir(), "pod-archives", `${sha2565}.zip`);
76605
- if (!import_node_fs82.default.existsSync(archive) || (0, import_node_crypto51.createHash)("sha256").update(import_node_fs82.default.readFileSync(archive)).digest("hex") !== sha2565)
76621
+ const sha2564 = /openssl_sha256\s*=\s*"([0-9a-f]{64})"/.exec(podspec)?.[1];
76622
+ if (!sha2564) return;
76623
+ const archive = import_node_path84.default.join(cacheDir(), "pod-archives", `${sha2564}.zip`);
76624
+ if (!import_node_fs82.default.existsSync(archive) || (0, import_node_crypto50.createHash)("sha256").update(import_node_fs82.default.readFileSync(archive)).digest("hex") !== sha2564)
76606
76625
  return;
76607
76626
  import_node_fs82.default.rmSync(opensslDir, { recursive: true, force: true });
76608
76627
  import_node_fs82.default.mkdirSync(opensslDir, { recursive: true });
@@ -76640,12 +76659,12 @@ ${failedOutputLine(command, cwd, bytes)}`
76640
76659
  });
76641
76660
  });
76642
76661
  }
76643
- var import_node_child_process43, import_node_crypto51, import_node_fs82, import_node_module6, import_node_os20, import_node_path84, import_node_util11, isolatedGitEnv, EXACT_VERSION, NATIVE_CONFIG_FILE, NATIVE_SOURCE_FILE, fileDigests, NATIVE_PACKAGE_ENTRY, hashing, KEPT_WORKSPACES, WORKSPACE_GRACE_MS, ABANDONED_WORKSPACE_MS, RETIRED_PREFIX2, preparing, watches, current, CLONE_ENTRIES;
76662
+ var import_node_child_process43, import_node_crypto50, import_node_fs82, import_node_module6, import_node_os20, import_node_path84, import_node_util11, isolatedGitEnv, EXACT_VERSION, NATIVE_CONFIG_FILE, NATIVE_SOURCE_FILE, fileDigests, NATIVE_PACKAGE_ENTRY, hashing, KEPT_WORKSPACES, WORKSPACE_GRACE_MS, ABANDONED_WORKSPACE_MS, RETIRED_PREFIX2, preparing, watches, current, CLONE_ENTRIES;
76644
76663
  var init_expo_native_workspace = __esm({
76645
76664
  "src/expo-native-workspace.ts"() {
76646
76665
  "use strict";
76647
76666
  import_node_child_process43 = require("node:child_process");
76648
- import_node_crypto51 = require("node:crypto");
76667
+ import_node_crypto50 = require("node:crypto");
76649
76668
  import_node_fs82 = __toESM(require("node:fs"), 1);
76650
76669
  import_node_module6 = require("node:module");
76651
76670
  import_node_os20 = __toESM(require("node:os"), 1);
@@ -78522,7 +78541,7 @@ async function loadStoreKitTestStore(configuration, appDir) {
78522
78541
  const identityPath = import_node_path86.default.join(
78523
78542
  cacheDir(),
78524
78543
  "storekit-identities",
78525
- `${(0, import_node_crypto52.createHash)("sha256").update(import_node_path86.default.resolve(appDir)).digest("hex")}.json`
78544
+ `${(0, import_node_crypto51.createHash)("sha256").update(import_node_path86.default.resolve(appDir)).digest("hex")}.json`
78526
78545
  );
78527
78546
  let signing;
78528
78547
  try {
@@ -78538,7 +78557,7 @@ async function loadStoreKitTestStore(configuration, appDir) {
78538
78557
  const certificate = await import_x509.X509CertificateGenerator.createSelfSigned(
78539
78558
  {
78540
78559
  name: "CN=StoreKit Testing in Xcode, O=StoreKit Testing in Xcode",
78541
- serialNumber: (0, import_node_crypto52.randomBytes)(16).toString("hex"),
78560
+ serialNumber: (0, import_node_crypto51.randomBytes)(16).toString("hex"),
78542
78561
  notBefore: new Date(Date.now() - 6e4),
78543
78562
  notAfter: new Date(Date.now() + 365 * 864e5),
78544
78563
  signingAlgorithm: algorithm,
@@ -78555,11 +78574,11 @@ async function loadStoreKitTestStore(configuration, appDir) {
78555
78574
  }
78556
78575
  return { ...catalog, signing };
78557
78576
  }
78558
- var import_node_crypto52, import_promises8, import_node_path86, import_x509;
78577
+ var import_node_crypto51, import_promises8, import_node_path86, import_x509;
78559
78578
  var init_storekit_test_store = __esm({
78560
78579
  "src/storekit-test-store.ts"() {
78561
78580
  "use strict";
78562
- import_node_crypto52 = require("node:crypto");
78581
+ import_node_crypto51 = require("node:crypto");
78563
78582
  import_promises8 = require("node:fs/promises");
78564
78583
  import_node_path86 = __toESM(require("node:path"), 1);
78565
78584
  init_storeKitContract();
@@ -78659,7 +78678,7 @@ function kotlinHome() {
78659
78678
  }
78660
78679
  async function fetchVerified(download2, target) {
78661
78680
  if (import_node_fs84.default.existsSync(target)) {
78662
- if ((0, import_node_crypto53.createHash)("sha256").update(import_node_fs84.default.readFileSync(target)).digest("hex") !== download2.sha256)
78681
+ if ((0, import_node_crypto52.createHash)("sha256").update(import_node_fs84.default.readFileSync(target)).digest("hex") !== download2.sha256)
78663
78682
  throw new Error(
78664
78683
  `cached Kotlin download differs from its pin: ${import_node_path87.default.basename(target)}`
78665
78684
  );
@@ -78668,7 +78687,7 @@ async function fetchVerified(download2, target) {
78668
78687
  const response = await fetch(download2.url);
78669
78688
  if (!response.ok) throw new Error(`${download2.url} answered ${response.status}`);
78670
78689
  const bytes = Buffer.from(await response.arrayBuffer());
78671
- const digest3 = (0, import_node_crypto53.createHash)("sha256").update(bytes).digest("hex");
78690
+ const digest3 = (0, import_node_crypto52.createHash)("sha256").update(bytes).digest("hex");
78672
78691
  if (digest3 !== download2.sha256)
78673
78692
  throw new Error(`${download2.url} has sha256 ${digest3}, expected ${download2.sha256}`);
78674
78693
  import_node_fs84.default.mkdirSync(import_node_path87.default.dirname(target), { recursive: true });
@@ -78680,9 +78699,9 @@ async function ensureCompose(toolchain) {
78680
78699
  const downloads = [...toolchain.composeLibraries, toolchain.composeLoader];
78681
78700
  const root = import_node_path87.default.join(kotlinHome(), "compose", toolchain.composeArchive.sha256);
78682
78701
  const verify = (dir) => {
78683
- for (const { name: name3, sha256: sha2565 } of downloads) {
78684
- const actual = (0, import_node_crypto53.createHash)("sha256").update(import_node_fs84.default.readFileSync(import_node_path87.default.join(dir, name3))).digest("hex");
78685
- if (actual !== sha2565)
78702
+ for (const { name: name3, sha256: sha2564 } of downloads) {
78703
+ const actual = (0, import_node_crypto52.createHash)("sha256").update(import_node_fs84.default.readFileSync(import_node_path87.default.join(dir, name3))).digest("hex");
78704
+ if (actual !== sha2564)
78686
78705
  throw new Error(`Compose input differs from its pin: ${name3}`);
78687
78706
  }
78688
78707
  };
@@ -78752,12 +78771,12 @@ function ensureToolchain(toolchain) {
78752
78771
  toolchains.set(key2, ready);
78753
78772
  return ready;
78754
78773
  }
78755
- var import_node_child_process44, import_node_crypto53, import_node_fs84, import_node_path87, import_node_util12, run6, toolchains;
78774
+ var import_node_child_process44, import_node_crypto52, import_node_fs84, import_node_path87, import_node_util12, run6, toolchains;
78756
78775
  var init_kotlin_toolchain = __esm({
78757
78776
  "src/kotlin-toolchain.ts"() {
78758
78777
  "use strict";
78759
78778
  import_node_child_process44 = require("node:child_process");
78760
- import_node_crypto53 = require("node:crypto");
78779
+ import_node_crypto52 = require("node:crypto");
78761
78780
  import_node_fs84 = __toESM(require("node:fs"), 1);
78762
78781
  import_node_path87 = __toESM(require("node:path"), 1);
78763
78782
  import_node_util12 = require("node:util");
@@ -79032,7 +79051,7 @@ async function prepareNitroDependencies(reactNativeVersion, reactNativeRoot) {
79032
79051
  throw new Error(`${dependency.name} archive holds a symlink: ${name3}`);
79033
79052
  if (entry.isDirectory()) walk4(name3);
79034
79053
  else if (entry.isFile() && (dependency.files ?? HEADER4).test(entry.name))
79035
- files2[name3] = (0, import_node_crypto54.createHash)("sha256").update(import_node_fs85.default.readFileSync(import_node_path88.default.join(tree2, name3))).digest("hex");
79054
+ files2[name3] = (0, import_node_crypto53.createHash)("sha256").update(import_node_fs85.default.readFileSync(import_node_path88.default.join(tree2, name3))).digest("hex");
79036
79055
  }
79037
79056
  };
79038
79057
  for (const sourceRoot of dependency.sourceDirectories ?? [dependency.headers.from])
@@ -79082,7 +79101,7 @@ function nitroDependencyReader(reactNativeVersion, reactNativeRoot) {
79082
79101
  const tree2 = import_node_path88.default.join(directory(dependency), "tree");
79083
79102
  const source = import_node_path88.default.join(tree2, relative4);
79084
79103
  const bytes = readPackageFile(tree2, source, MAX_SWIFT_COMPILE_SOURCE_BYTES);
79085
- const original = (0, import_node_crypto54.createHash)("sha256").update(bytes).digest("hex");
79104
+ const original = (0, import_node_crypto53.createHash)("sha256").update(bytes).digest("hex");
79086
79105
  if (original !== digest3)
79087
79106
  throw new Error(
79088
79107
  `${dependency.name} header differs from its verified archive: ${relative4}`
@@ -79091,15 +79110,15 @@ function nitroDependencyReader(reactNativeVersion, reactNativeRoot) {
79091
79110
  if (!Buffer.from(text7).equals(bytes))
79092
79111
  throw new Error(`Nitro dependency header is not UTF-8: ${source}`);
79093
79112
  const backport = dependency.backport?.file === relative4 ? dependency.backport : void 0;
79094
- let sha2565 = original;
79113
+ let sha2564 = original;
79095
79114
  if (backport) {
79096
79115
  if (original !== backport.originalSha256)
79097
79116
  throw new Error(`${dependency.name} backport original differs: ${relative4}`);
79098
79117
  if (!text7.includes(backport.before))
79099
79118
  throw new Error(`${dependency.name} backport anchor missing: ${relative4}`);
79100
79119
  text7 = text7.replace(backport.before, backport.after);
79101
- sha2565 = (0, import_node_crypto54.createHash)("sha256").update(text7).digest("hex");
79102
- if (sha2565 !== backport.derivedSha256)
79120
+ sha2564 = (0, import_node_crypto53.createHash)("sha256").update(text7).digest("hex");
79121
+ if (sha2564 !== backport.derivedSha256)
79103
79122
  throw new Error(`${dependency.name} backport derived source differs: ${relative4}`);
79104
79123
  }
79105
79124
  return {
@@ -79107,7 +79126,7 @@ function nitroDependencyReader(reactNativeVersion, reactNativeRoot) {
79107
79126
  name: dependency.name,
79108
79127
  source,
79109
79128
  text: text7,
79110
- sha256: sha2565,
79129
+ sha256: sha2564,
79111
79130
  ...backport && {
79112
79131
  derivation: {
79113
79132
  upstreamCommit: backport.upstreamCommit,
@@ -79139,7 +79158,7 @@ function nitroDependencySources(reactNativeVersion, reactNativeRoot, select) {
79139
79158
  if (!select(dependency.name, prepared)) continue;
79140
79159
  const source = import_node_path88.default.join(tree2, relative4);
79141
79160
  const bytes = readPackageFile(tree2, source, MAX_SWIFT_COMPILE_SOURCE_BYTES);
79142
- if ((0, import_node_crypto54.createHash)("sha256").update(bytes).digest("hex") !== digest3)
79161
+ if ((0, import_node_crypto53.createHash)("sha256").update(bytes).digest("hex") !== digest3)
79143
79162
  throw new Error(
79144
79163
  `${dependency.name} source differs from its verified archive: ${relative4}`
79145
79164
  );
@@ -79168,7 +79187,7 @@ function glogSources() {
79168
79187
  if (!digest3) throw new Error(`glog ${GLOG.prefix} has no ${relative4}`);
79169
79188
  const source = import_node_path88.default.join(tree2, relative4);
79170
79189
  const bytes = readPackageFile(tree2, source, MAX_SWIFT_COMPILE_SOURCE_BYTES);
79171
- if ((0, import_node_crypto54.createHash)("sha256").update(bytes).digest("hex") !== digest3)
79190
+ if ((0, import_node_crypto53.createHash)("sha256").update(bytes).digest("hex") !== digest3)
79172
79191
  throw new Error(`glog source differs from its verified archive: ${relative4}`);
79173
79192
  return { relative: relative4, source, text: bytes.toString("utf8"), sha256: digest3 };
79174
79193
  };
@@ -79178,7 +79197,7 @@ function glogSources() {
79178
79197
  relative: output,
79179
79198
  source: original.source,
79180
79199
  text: text7,
79181
- sha256: (0, import_node_crypto54.createHash)("sha256").update(text7).digest("hex"),
79200
+ sha256: (0, import_node_crypto53.createHash)("sha256").update(text7).digest("hex"),
79182
79201
  configured: { template, originalSha256: original.sha256 }
79183
79202
  };
79184
79203
  };
@@ -79206,12 +79225,12 @@ function glogSources() {
79206
79225
  for (const unit2 of GLOG_UNITS) sources.push(read(unit2));
79207
79226
  return sources;
79208
79227
  }
79209
- var import_node_child_process45, import_node_crypto54, import_node_fs85, import_node_path88, import_node_util13, run7, DOUBLE_CONVERSION_WASM64_BACKPORT2, RN_SHARED_DEPENDENCIES, RN_FMT_11_DEPENDENCIES, RN_FAST_FLOAT_6_DEPENDENCIES, RN_FMT_12_DEPENDENCIES, HEADER4, GLOG, GLOG_SUBSTITUTIONS, GLOG_CONFIGURE, GLOG_CONFIG_APPENDIX, GLOG_UNITS;
79228
+ var import_node_child_process45, import_node_crypto53, import_node_fs85, import_node_path88, import_node_util13, run7, DOUBLE_CONVERSION_WASM64_BACKPORT2, RN_SHARED_DEPENDENCIES, RN_FMT_11_DEPENDENCIES, RN_FAST_FLOAT_6_DEPENDENCIES, RN_FMT_12_DEPENDENCIES, HEADER4, GLOG, GLOG_SUBSTITUTIONS, GLOG_CONFIGURE, GLOG_CONFIG_APPENDIX, GLOG_UNITS;
79210
79229
  var init_nitro_dependencies = __esm({
79211
79230
  "src/nitro-dependencies.ts"() {
79212
79231
  "use strict";
79213
79232
  import_node_child_process45 = require("node:child_process");
79214
- import_node_crypto54 = require("node:crypto");
79233
+ import_node_crypto53 = require("node:crypto");
79215
79234
  import_node_fs85 = __toESM(require("node:fs"), 1);
79216
79235
  import_node_path88 = __toESM(require("node:path"), 1);
79217
79236
  import_node_util13 = require("node:util");
@@ -80164,7 +80183,7 @@ function collectNitroSources(options2, nativeSourceKeys, sourceRoot) {
80164
80183
  result.sources.push({
80165
80184
  file: original,
80166
80185
  source,
80167
- sha256: (0, import_node_crypto55.createHash)("sha256").update(bytes).digest("hex")
80186
+ sha256: (0, import_node_crypto54.createHash)("sha256").update(bytes).digest("hex")
80168
80187
  });
80169
80188
  }
80170
80189
  const requested = `${targetPath(name3)}/upstream/${sourceRelative}`;
@@ -80354,7 +80373,7 @@ function collectNitroSources(options2, nativeSourceKeys, sourceRoot) {
80354
80373
  result.sources.push({
80355
80374
  file: mapKey,
80356
80375
  source: import_node_fs87.default.realpathSync(modulemapPath),
80357
- sha256: (0, import_node_crypto55.createHash)("sha256").update(modulemapBytes).digest("hex")
80376
+ sha256: (0, import_node_crypto54.createHash)("sha256").update(modulemapBytes).digest("hex")
80358
80377
  });
80359
80378
  registered.push(clangModule);
80360
80379
  }
@@ -80416,7 +80435,7 @@ function collectNitroSources(options2, nativeSourceKeys, sourceRoot) {
80416
80435
  result.sources.push({
80417
80436
  file: key2,
80418
80437
  source: real,
80419
- sha256: (0, import_node_crypto55.createHash)("sha256").update(bytes).digest("hex")
80438
+ sha256: (0, import_node_crypto54.createHash)("sha256").update(bytes).digest("hex")
80420
80439
  });
80421
80440
  if (/\.(?:c|cc|cpp|cxx|m|mm|swift)$/.test(canonicalRel)) {
80422
80441
  excludes.add(`upstream/${canonicalRel}`);
@@ -80769,11 +80788,11 @@ extern "C" void ${registration.symbol}();
80769
80788
  }
80770
80789
  return result;
80771
80790
  }
80772
- var import_node_crypto55, import_node_fs87, import_node_module8, import_node_path90, import_zod2, nitroProviderTarget, NITRO_VIEWS_TARGET, PEER_PODSPEC_SKIP;
80791
+ var import_node_crypto54, import_node_fs87, import_node_module8, import_node_path90, import_zod2, nitroProviderTarget, NITRO_VIEWS_TARGET, PEER_PODSPEC_SKIP;
80773
80792
  var init_nitro_source = __esm({
80774
80793
  "src/nitro-source.ts"() {
80775
80794
  "use strict";
80776
- import_node_crypto55 = require("node:crypto");
80795
+ import_node_crypto54 = require("node:crypto");
80777
80796
  import_node_fs87 = __toESM(require("node:fs"), 1);
80778
80797
  import_node_module8 = require("node:module");
80779
80798
  import_node_path90 = __toESM(require("node:path"), 1);
@@ -80783,7 +80802,7 @@ var init_nitro_source = __esm({
80783
80802
  init_react_native_autolinking();
80784
80803
  init_swift_source_file();
80785
80804
  init_swift_submit();
80786
- nitroProviderTarget = (provider) => `NitroPackage_${(0, import_node_crypto55.createHash)("sha256").update(provider.name).digest("hex").slice(0, 16)}`;
80805
+ nitroProviderTarget = (provider) => `NitroPackage_${(0, import_node_crypto54.createHash)("sha256").update(provider.name).digest("hex").slice(0, 16)}`;
80787
80806
  NITRO_VIEWS_TARGET = "PeachNitroViews";
80788
80807
  PEER_PODSPEC_SKIP = /* @__PURE__ */ new Set([
80789
80808
  "React-jsi",
@@ -81763,7 +81782,7 @@ function watchNativeInputs(root) {
81763
81782
  (0, import_node_timers.clearTimeout)(expiry);
81764
81783
  for (const watcher of watchers) watcher.close();
81765
81784
  }
81766
- const inputs2 = { expiry, revision: (0, import_node_crypto56.randomUUID)() };
81785
+ const inputs2 = { expiry, revision: (0, import_node_crypto55.randomUUID)() };
81767
81786
  const watch = (directory2, recursive, name3) => {
81768
81787
  const watcher = import_node_fs91.default.watch(
81769
81788
  directory2,
@@ -81804,11 +81823,11 @@ function watchNativeInputs(root) {
81804
81823
  watchedInputs.set(workspace, inputs2);
81805
81824
  return inputs2;
81806
81825
  }
81807
- var import_node_crypto56, import_node_fs91, import_node_path94, import_node_timers, setTimeoutNode, RETENTION_MS, watchedInputs, NativePreparation;
81826
+ var import_node_crypto55, import_node_fs91, import_node_path94, import_node_timers, setTimeoutNode, RETENTION_MS, watchedInputs, NativePreparation;
81808
81827
  var init_native_preparation = __esm({
81809
81828
  "src/native-preparation.ts"() {
81810
81829
  "use strict";
81811
- import_node_crypto56 = require("node:crypto");
81830
+ import_node_crypto55 = require("node:crypto");
81812
81831
  import_node_fs91 = __toESM(require("node:fs"), 1);
81813
81832
  import_node_path94 = __toESM(require("node:path"), 1);
81814
81833
  import_node_timers = require("node:timers");
@@ -81938,7 +81957,7 @@ function nativeStaticLibraryEntry(recipe2, compiler, sdk2, distribution) {
81938
81957
  return { name: recipe2.name, inputs: inputs2, key: nativeEntryKey(inputs2) };
81939
81958
  }
81940
81959
  function nativeStaticLibraryRecipe(bytes) {
81941
- const digest3 = (0, import_node_crypto57.createHash)("sha256").update(bytes).digest("hex");
81960
+ const digest3 = (0, import_node_crypto56.createHash)("sha256").update(bytes).digest("hex");
81942
81961
  return NATIVE_STATIC_LIBRARY_RECIPES.find((item) => item.nativeSha256 === digest3);
81943
81962
  }
81944
81963
  function nativeStaticLibrary(file, recipe2, moduleRoot) {
@@ -81981,7 +82000,7 @@ function isRustSymbol(name3, demangled) {
81981
82000
  function rustStaticLibrary(file, moduleRoot) {
81982
82001
  const toolchain = swiftModuleToolchain(moduleRoot);
81983
82002
  const bytes = import_node_fs92.default.readFileSync(file);
81984
- const key2 = (0, import_node_crypto57.createHash)("sha256").update("rust-c-abi-v4\0").update(toolchain.release).update("\0").update(bytes).digest("hex");
82003
+ const key2 = (0, import_node_crypto56.createHash)("sha256").update("rust-c-abi-v4\0").update(toolchain.release).update("\0").update(bytes).digest("hex");
81985
82004
  const directory2 = import_node_path95.default.join(cacheDir(), "native-archives", key2);
81986
82005
  const archive = import_node_path95.default.join(directory2, "library.a");
81987
82006
  if (import_node_fs92.default.existsSync(archive)) return archive;
@@ -82010,7 +82029,7 @@ function rustStaticLibrary(file, moduleRoot) {
82010
82029
  const members2 = readArMembers(bytes, true);
82011
82030
  const seen = /* @__PURE__ */ new Set();
82012
82031
  const unique2 = members2.filter(({ name: name3, bytes: bytes2 }) => {
82013
- const identity2 = name3 + "\0" + (0, import_node_crypto57.createHash)("sha256").update(bytes2).digest("hex");
82032
+ const identity2 = name3 + "\0" + (0, import_node_crypto56.createHash)("sha256").update(bytes2).digest("hex");
82014
82033
  if (seen.has(identity2)) return false;
82015
82034
  seen.add(identity2);
82016
82035
  return true;
@@ -82057,14 +82076,14 @@ function rustStaticLibrary(file, moduleRoot) {
82057
82076
  function combineNativeStaticLibraries(files2, moduleRoot) {
82058
82077
  if (files2.length === 1) return files2[0];
82059
82078
  const toolchain = swiftModuleToolchain(moduleRoot);
82060
- const hash = (0, import_node_crypto57.createHash)("sha256").update(toolchain.release);
82079
+ const hash = (0, import_node_crypto56.createHash)("sha256").update(toolchain.release);
82061
82080
  for (const file of files2)
82062
82081
  hash.update("\0").update(import_node_path95.default.basename(file)).update("\0").update(import_node_fs92.default.readFileSync(file));
82063
82082
  const directory2 = import_node_path95.default.join(cacheDir(), "native-archives", hash.digest("hex"));
82064
82083
  const archive = import_node_path95.default.join(directory2, "combined.a");
82065
82084
  if (import_node_fs92.default.existsSync(archive)) return archive;
82066
82085
  import_node_fs92.default.mkdirSync(directory2, { recursive: true });
82067
- const temporary = import_node_path95.default.join(directory2, `combined-${(0, import_node_crypto57.randomUUID)()}.a`);
82086
+ const temporary = import_node_path95.default.join(directory2, `combined-${(0, import_node_crypto56.randomUUID)()}.a`);
82068
82087
  try {
82069
82088
  (0, import_node_child_process47.execFileSync)(import_node_path95.default.join(toolchain.toolchainBin, "llvm-ar"), [
82070
82089
  "qcsDL",
@@ -82077,12 +82096,12 @@ function combineNativeStaticLibraries(files2, moduleRoot) {
82077
82096
  }
82078
82097
  return archive;
82079
82098
  }
82080
- var import_node_child_process47, import_node_crypto57, import_node_fs92, import_node_path95, WEBRTC_NATIVE_FRAMEWORK, SIGNAL_WEBRTC_NATIVE_FRAMEWORK, WEBRTC_NATIVE_FRAMEWORK_RECIPES, NATIVE_STATIC_LIBRARY_RECIPES;
82099
+ var import_node_child_process47, import_node_crypto56, import_node_fs92, import_node_path95, WEBRTC_NATIVE_FRAMEWORK, SIGNAL_WEBRTC_NATIVE_FRAMEWORK, WEBRTC_NATIVE_FRAMEWORK_RECIPES, NATIVE_STATIC_LIBRARY_RECIPES;
82081
82100
  var init_native_static_libraries = __esm({
82082
82101
  "src/native-static-libraries.ts"() {
82083
82102
  "use strict";
82084
82103
  import_node_child_process47 = require("node:child_process");
82085
- import_node_crypto57 = require("node:crypto");
82104
+ import_node_crypto56 = require("node:crypto");
82086
82105
  import_node_fs92 = __toESM(require("node:fs"), 1);
82087
82106
  import_node_path95 = __toESM(require("node:path"), 1);
82088
82107
  init_home_paths();
@@ -82804,11 +82823,11 @@ var init_nitro_adapter = __esm({
82804
82823
  });
82805
82824
 
82806
82825
  // src/react-native-core-digest.ts
82807
- var import_node_crypto58, import_node_fs95, import_node_path98;
82826
+ var import_node_crypto57, import_node_fs95, import_node_path98;
82808
82827
  var init_react_native_core_digest = __esm({
82809
82828
  "src/react-native-core-digest.ts"() {
82810
82829
  "use strict";
82811
- import_node_crypto58 = require("node:crypto");
82830
+ import_node_crypto57 = require("node:crypto");
82812
82831
  import_node_fs95 = __toESM(require("node:fs"), 1);
82813
82832
  import_node_path98 = __toESM(require("node:path"), 1);
82814
82833
  }
@@ -86143,19 +86162,19 @@ function u32(value) {
86143
86162
  }
86144
86163
  function propertyHash(property) {
86145
86164
  const transient = property.kind === "attribute" && property.transient;
86146
- const base2 = sha2563(
86165
+ const base2 = sha2562(
86147
86166
  property.name,
86148
86167
  [(property.optional ? 1 : 0) | (transient ? 2 : 0), 0],
86149
86168
  property.modifier ?? ""
86150
86169
  );
86151
86170
  if (property.kind === "attribute")
86152
- return sha2563(
86171
+ return sha2562(
86153
86172
  base2,
86154
86173
  u32(property.type),
86155
86174
  property.type === 1e3 && property.flags & EXTERNAL_BINARY ? [1] : [],
86156
86175
  property.flags & PRESERVE_AFTER_DELETION ? [1] : []
86157
86176
  );
86158
- return sha2563(
86177
+ return sha2562(
86159
86178
  base2,
86160
86179
  property.destination,
86161
86180
  property.inverse ?? "",
@@ -86170,7 +86189,7 @@ function entityHashes(model) {
86170
86189
  ...item.parent === null ? [] : allProperties(byName2.get(item.parent)),
86171
86190
  ...item.properties
86172
86191
  ];
86173
- const hash = (item) => sha2563(
86192
+ const hash = (item) => sha2562(
86174
86193
  item.name,
86175
86194
  [item.abstract ? 1 : 0],
86176
86195
  item.parent === null ? [] : hash(byName2.get(item.parent)),
@@ -86198,7 +86217,7 @@ function compileCoreDataModel(directory2) {
86198
86217
  files2[`${name3}.momd/${version2}.mom`] = archiveModel(model);
86199
86218
  const entities = entityHashes(model);
86200
86219
  hashes[version2] = Object.fromEntries(entities);
86201
- checksums[version2] = sha2563(...entities.map(([, hash]) => hash)).toString("base64");
86220
+ checksums[version2] = sha2562(...entities.map(([, hash]) => hash)).toString("base64");
86202
86221
  }
86203
86222
  const named = (0, import_node_fs97.existsSync)(import_node_path100.default.join(directory2, ".xccurrentversion")) ? {
86204
86223
  NSManagedObjectModel_CurrentVersionName: import_node_path100.default.basename(
@@ -86221,11 +86240,11 @@ function coreDataModelDirectories(files2) {
86221
86240
  }
86222
86241
  return [...models].sort();
86223
86242
  }
86224
- var import_node_crypto59, import_node_fs97, import_node_path100, attributeTypes, deleteRules, EXTERNAL_BINARY, PRESERVE_AFTER_DELETION, yes, common, uid, NULL, classChains, KeyedArchive, sha2563;
86243
+ var import_node_crypto58, import_node_fs97, import_node_path100, attributeTypes, deleteRules, EXTERNAL_BINARY, PRESERVE_AFTER_DELETION, yes, common, uid, NULL, classChains, KeyedArchive, sha2562;
86225
86244
  var init_core_data_model = __esm({
86226
86245
  "src/core-data-model.ts"() {
86227
86246
  "use strict";
86228
- import_node_crypto59 = require("node:crypto");
86247
+ import_node_crypto58 = require("node:crypto");
86229
86248
  import_node_fs97 = require("node:fs");
86230
86249
  import_node_path100 = __toESM(require("node:path"), 1);
86231
86250
  init_core_data_entity_classes();
@@ -86344,7 +86363,7 @@ var init_core_data_model = __esm({
86344
86363
  });
86345
86364
  }
86346
86365
  };
86347
- sha2563 = (...parts) => (0, import_node_crypto59.createHash)("sha256").update(
86366
+ sha2562 = (...parts) => (0, import_node_crypto58.createHash)("sha256").update(
86348
86367
  Buffer.concat(
86349
86368
  parts.map(
86350
86369
  (part) => Array.isArray(part) ? Buffer.from(part) : Buffer.from(part)
@@ -88607,7 +88626,7 @@ function sourceClosureFiles(srcDir, entrypoints, excludedFiles = []) {
88607
88626
  return files2.sort();
88608
88627
  }
88609
88628
  function sourceClosureDigest(srcDir, entrypoints, excludedFiles) {
88610
- const hash = (0, import_node_crypto60.createHash)("sha256");
88629
+ const hash = (0, import_node_crypto59.createHash)("sha256");
88611
88630
  for (const file of sourceClosureFiles(srcDir, entrypoints, excludedFiles)) {
88612
88631
  const key2 = import_node_path101.default.relative(srcDir, file);
88613
88632
  const bytes = (0, import_node_fs98.readFileSync)(file);
@@ -88615,11 +88634,11 @@ function sourceClosureDigest(srcDir, entrypoints, excludedFiles) {
88615
88634
  }
88616
88635
  return hash.digest("hex");
88617
88636
  }
88618
- var import_node_crypto60, import_node_fs98, import_node_path101, STANDIN_DIGEST_ENTRYPOINTS, STANDIN_DIGEST_EXCLUDED_FILES, RUNTIME_IMPORT, standinSourceDigest, STANDIN_SOURCE_DIGEST;
88637
+ var import_node_crypto59, import_node_fs98, import_node_path101, STANDIN_DIGEST_ENTRYPOINTS, STANDIN_DIGEST_EXCLUDED_FILES, RUNTIME_IMPORT, standinSourceDigest, STANDIN_SOURCE_DIGEST;
88619
88638
  var init_swift_standin_digest = __esm({
88620
88639
  "src/swift-standin-digest.ts"() {
88621
88640
  "use strict";
88622
- import_node_crypto60 = require("node:crypto");
88641
+ import_node_crypto59 = require("node:crypto");
88623
88642
  import_node_fs98 = require("node:fs");
88624
88643
  import_node_path101 = __toESM(require("node:path"), 1);
88625
88644
  STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
@@ -88630,7 +88649,7 @@ var init_swift_standin_digest = __esm({
88630
88649
  ];
88631
88650
  RUNTIME_IMPORT = /(?:^|[;\n])[ \t]*(?:import|export)\s+(?!type(?:\s|\{))([\s\S]*?)\s+from\s*['"]([^'"]+)['"]|(?:^|[;\n])[ \t]*import\s+['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
88632
88651
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS, STANDIN_DIGEST_EXCLUDED_FILES);
88633
- STANDIN_SOURCE_DIGEST = true ? "c2d1c024e059538977fdd0666278d52ec2116aafae79fe0e8b1cda82a5981f3b" : standinSourceDigest();
88652
+ STANDIN_SOURCE_DIGEST = true ? "b6aa8eda1952d06a101c0a46227f227fb983255bb2a5f825515d7b9bc6f8650d" : standinSourceDigest();
88634
88653
  }
88635
88654
  });
88636
88655
 
@@ -88942,13 +88961,13 @@ var init_swift_wasm64_wamr = __esm({
88942
88961
 
88943
88962
  // src/swift-wasm64-native-source.ts
88944
88963
  function deriveSource(file, bytes, backport) {
88945
- if (!backport || (0, import_node_crypto61.createHash)("sha256").update(bytes).digest("hex") !== backport.originalSha256)
88964
+ if (!backport || (0, import_node_crypto60.createHash)("sha256").update(bytes).digest("hex") !== backport.originalSha256)
88946
88965
  return null;
88947
88966
  const source = bytes.toString("utf8");
88948
88967
  const derived = Buffer.from(
88949
88968
  "rewrite" in backport ? backport.rewrite(source) : source.replace(backport.before, backport.after)
88950
88969
  );
88951
- if ((0, import_node_crypto61.createHash)("sha256").update(derived).digest("hex") !== backport.derivedSha256)
88970
+ if ((0, import_node_crypto60.createHash)("sha256").update(derived).digest("hex") !== backport.derivedSha256)
88952
88971
  throw new Error(`Native source derivation differs: ${file}`);
88953
88972
  return {
88954
88973
  bytes: derived,
@@ -88967,11 +88986,11 @@ function deriveWasm64NativeSource(file, bytes) {
88967
88986
  sourceDerivations.get(name3) ?? headerDerivations.get(name3)
88968
88987
  );
88969
88988
  }
88970
- var import_node_crypto61, import_node_path103, webrtcUnknownArchitecture, boringsslWordSize2, wamrCommit, headerDerivations, sourceDerivations;
88989
+ var import_node_crypto60, import_node_path103, webrtcUnknownArchitecture, boringsslWordSize2, wamrCommit, headerDerivations, sourceDerivations;
88971
88990
  var init_swift_wasm64_native_source = __esm({
88972
88991
  "src/swift-wasm64-native-source.ts"() {
88973
88992
  "use strict";
88974
- import_node_crypto61 = require("node:crypto");
88993
+ import_node_crypto60 = require("node:crypto");
88975
88994
  import_node_path103 = __toESM(require("node:path"), 1);
88976
88995
  init_swift_wasm64_wamr();
88977
88996
  init_swiftWasm64ConfigContract();
@@ -89431,7 +89450,7 @@ var init_genrule_library_builds = __esm({
89431
89450
  function nativeFrameworkCompiler(moduleRoot, toolchainBin, directory2) {
89432
89451
  const distribution = swiftDistributionAt(moduleRoot);
89433
89452
  const sdk2 = swiftSdkPaths(moduleRoot, toolchainBin);
89434
- const identity2 = (0, import_node_crypto62.createHash)("sha256").update(
89453
+ const identity2 = (0, import_node_crypto61.createHash)("sha256").update(
89435
89454
  JSON.stringify([
89436
89455
  distribution?.id,
89437
89456
  distribution?.link,
@@ -89457,7 +89476,7 @@ function nativeFrameworkCompiler(moduleRoot, toolchainBin, directory2) {
89457
89476
  for (const alias of product.frameworkAliases) {
89458
89477
  if (alias.wasmSdkId !== distribution.wasmSdkId || alias.wasmSdkChecksum !== distribution.wasmSdkChecksum)
89459
89478
  throw new Error(`framework SDK identity differs for ${alias.name}`);
89460
- if ((0, import_node_crypto62.createHash)("sha256").update(import_node_fs101.default.readFileSync(import_node_path105.default.join(moduleRoot, alias.moduleMap))).digest("hex") !== alias.moduleMapSha256)
89479
+ if ((0, import_node_crypto61.createHash)("sha256").update(import_node_fs101.default.readFileSync(import_node_path105.default.join(moduleRoot, alias.moduleMap))).digest("hex") !== alias.moduleMapSha256)
89461
89480
  throw new Error(`framework module map changed ${alias.moduleMap}`);
89462
89481
  const selected = /* @__PURE__ */ new Set();
89463
89482
  const reach = (name3) => {
@@ -89498,7 +89517,7 @@ function nativeFrameworkCompiler(moduleRoot, toolchainBin, directory2) {
89498
89517
  for (const alias of owner.frameworkAliases) {
89499
89518
  if (frameworkResponses[alias.name])
89500
89519
  throw new Error(`ambiguous declared framework ${alias.name}`);
89501
- if ((0, import_node_crypto62.createHash)("sha256").update(import_node_fs101.default.readFileSync(import_node_path105.default.join(sdkRoot, alias.moduleMap))).digest("hex") !== alias.moduleMapSha256)
89520
+ if ((0, import_node_crypto61.createHash)("sha256").update(import_node_fs101.default.readFileSync(import_node_path105.default.join(sdkRoot, alias.moduleMap))).digest("hex") !== alias.moduleMapSha256)
89502
89521
  throw new Error(`framework module map changed ${alias.moduleMap}`);
89503
89522
  const file = import_node_path105.default.join(root, `${alias.name}.rsp`);
89504
89523
  import_node_fs101.default.writeFileSync(file, aliasArtifacts.map(quote3).join("\n") + "\n");
@@ -89592,11 +89611,11 @@ exec ${shellQuote2(configuration.compiler)} "$@"
89592
89611
  };
89593
89612
  return { cc: compiler("clang"), cxx: compiler("clang++"), identity: identity2 };
89594
89613
  }
89595
- var import_node_crypto62, import_node_fs101, import_node_path105, v7;
89614
+ var import_node_crypto61, import_node_fs101, import_node_path105, v7;
89596
89615
  var init_native_framework_compiler = __esm({
89597
89616
  "src/native-framework-compiler.ts"() {
89598
89617
  "use strict";
89599
- import_node_crypto62 = require("node:crypto");
89618
+ import_node_crypto61 = require("node:crypto");
89600
89619
  import_node_fs101 = __toESM(require("node:fs"), 1);
89601
89620
  import_node_path105 = __toESM(require("node:path"), 1);
89602
89621
  v7 = __toESM(require("peachsim/vendor/valibot"), 1);
@@ -89617,7 +89636,7 @@ function processAlive(pid) {
89617
89636
  }
89618
89637
  function tryAcquireNumberedLock(directory2, detail = "") {
89619
89638
  (0, import_node_fs102.mkdirSync)(directory2, { recursive: true });
89620
- const claim = (0, import_node_path106.join)(directory2, `claim-${process.pid}-${(0, import_node_crypto63.randomUUID)()}`);
89639
+ const claim = (0, import_node_path106.join)(directory2, `claim-${process.pid}-${(0, import_node_crypto62.randomUUID)()}`);
89621
89640
  for (; ; ) {
89622
89641
  const numbers = (0, import_node_fs102.readdirSync)(directory2).filter((name3) => /^\d+$/.test(name3)).map(Number);
89623
89642
  const top = Math.max(-1, ...numbers);
@@ -89656,11 +89675,11 @@ ${detail}` : ""}`);
89656
89675
  };
89657
89676
  }
89658
89677
  }
89659
- var import_node_crypto63, import_node_fs102, import_node_path106, errorCode2;
89678
+ var import_node_crypto62, import_node_fs102, import_node_path106, errorCode2;
89660
89679
  var init_numbered_lock = __esm({
89661
89680
  "src/numbered-lock.ts"() {
89662
89681
  "use strict";
89663
- import_node_crypto63 = require("node:crypto");
89682
+ import_node_crypto62 = require("node:crypto");
89664
89683
  import_node_fs102 = require("node:fs");
89665
89684
  import_node_path106 = require("node:path");
89666
89685
  errorCode2 = (error) => error instanceof Error && "code" in error ? error.code : void 0;
@@ -89687,7 +89706,7 @@ function llvmIdentity(toolchainBin, release) {
89687
89706
  ] : ["clang", "wasm-ld", "llvm-ar", "llvm-nm", "llvm-strip"].map(
89688
89707
  (name3) => swiftFileChecksum(import_node_path107.default.join(toolchainBin, name3))
89689
89708
  );
89690
- const identity2 = (0, import_node_crypto64.createHash)("sha256").update(JSON.stringify(components)).digest("hex");
89709
+ const identity2 = (0, import_node_crypto63.createHash)("sha256").update(JSON.stringify(components)).digest("hex");
89691
89710
  toolIdentities.set(toolchainBin, identity2);
89692
89711
  return identity2;
89693
89712
  }
@@ -89695,7 +89714,7 @@ function cSdkIdentity(sysroot, resourceDir, frameworks) {
89695
89714
  const key2 = JSON.stringify([sysroot, resourceDir, frameworks]);
89696
89715
  const cached2 = sysrootIdentities.get(key2);
89697
89716
  if (cached2) return cached2;
89698
- const hash = (0, import_node_crypto64.createHash)("sha256");
89717
+ const hash = (0, import_node_crypto63.createHash)("sha256");
89699
89718
  const add = (root, relative4) => {
89700
89719
  const file = import_node_path107.default.join(root, relative4);
89701
89720
  const stat = import_node_fs103.default.statSync(file, { throwIfNoEntry: false });
@@ -89730,7 +89749,7 @@ function frameworkProbeIdentity(moduleRoot, toolchainBin) {
89730
89749
  import_node_fs103.default.readFileSync(import_node_path107.default.join(moduleRoot, SWIFT_FRAMEWORK_PRODUCT_FILE), "utf8")
89731
89750
  )
89732
89751
  );
89733
- const hash = (0, import_node_crypto64.createHash)("sha256").update(
89752
+ const hash = (0, import_node_crypto63.createHash)("sha256").update(
89734
89753
  JSON.stringify([
89735
89754
  headers,
89736
89755
  distribution.link,
@@ -89740,7 +89759,7 @@ function frameworkProbeIdentity(moduleRoot, toolchainBin) {
89740
89759
  ])
89741
89760
  );
89742
89761
  const objects = distribution.objects.map((file) => [file, distribution.files[file]]);
89743
- const objectKey = (0, import_node_crypto64.createHash)("sha256").update(JSON.stringify(objects)).digest("hex");
89762
+ const objectKey = (0, import_node_crypto63.createHash)("sha256").update(JSON.stringify(objects)).digest("hex");
89744
89763
  const cache = import_node_path107.default.join(cacheDir4, "framework-symbols-by-object", objectKey);
89745
89764
  if (!import_node_fs103.default.existsSync(cache)) {
89746
89765
  import_node_fs103.default.mkdirSync(import_node_path107.default.dirname(cache), { recursive: true });
@@ -89775,7 +89794,7 @@ function frameworkProbeIdentity(moduleRoot, toolchainBin) {
89775
89794
  const digest3 = import_node_path107.default.join(temporary, "digest");
89776
89795
  import_node_fs103.default.writeFileSync(
89777
89796
  digest3,
89778
- (0, import_node_crypto64.createHash)("sha256").update(symbols.sort().join("\n")).digest("hex")
89797
+ (0, import_node_crypto63.createHash)("sha256").update(symbols.sort().join("\n")).digest("hex")
89779
89798
  );
89780
89799
  import_node_fs103.default.renameSync(digest3, cache);
89781
89800
  } finally {
@@ -89830,7 +89849,7 @@ function buildable(declaration) {
89830
89849
  return builderOf(declaration) !== null && declaration.dependencies.every(buildable);
89831
89850
  }
89832
89851
  function declarationInputs(declaration, builder, toolchain, dependencyKeys) {
89833
- const hash = (0, import_node_crypto64.createHash)("sha256");
89852
+ const hash = (0, import_node_crypto63.createHash)("sha256");
89834
89853
  const files2 = declaration.sources.filter(
89835
89854
  (source) => !source.generator && !source.file.split(import_node_path107.default.sep).includes(".git")
89836
89855
  ).map((source) => import_node_path107.default.relative(declaration.packageDir, source.file));
@@ -89964,12 +89983,12 @@ function genruleArchive(declaration, library, moduleRoot) {
89964
89983
  }
89965
89984
  return combined;
89966
89985
  }
89967
- var import_node_child_process51, import_node_crypto64, import_node_fs103, import_node_os21, import_node_path107, v8, BUILDERS, cacheDir4, toolIdentities, sysrootIdentities, GENRULE_RECIPE, GENRULE_BUNDLE;
89986
+ var import_node_child_process51, import_node_crypto63, import_node_fs103, import_node_os21, import_node_path107, v8, BUILDERS, cacheDir4, toolIdentities, sysrootIdentities, GENRULE_RECIPE, GENRULE_BUNDLE;
89968
89987
  var init_genrule_archives = __esm({
89969
89988
  "src/genrule-archives.ts"() {
89970
89989
  "use strict";
89971
89990
  import_node_child_process51 = require("node:child_process");
89972
- import_node_crypto64 = require("node:crypto");
89991
+ import_node_crypto63 = require("node:crypto");
89973
89992
  import_node_fs103 = __toESM(require("node:fs"), 1);
89974
89993
  import_node_os21 = __toESM(require("node:os"), 1);
89975
89994
  import_node_path107 = __toESM(require("node:path"), 1);
@@ -90077,7 +90096,7 @@ function privateSentrySlice(entry, moduleRoot) {
90077
90096
  function nativeSwiftSlice(standin, moduleRoot, generator, configured, artifact) {
90078
90097
  if (standin.module !== SENTRY_SWIFT_SLICE.name) return standin;
90079
90098
  const native = simulatorNativeLibrary(artifact());
90080
- if (!native || (0, import_node_crypto65.createHash)("sha256").update(import_node_fs104.default.readFileSync(native.file)).digest("hex") !== SENTRY_SWIFT_SLICE.nativeSha256)
90099
+ if (!native || (0, import_node_crypto64.createHash)("sha256").update(import_node_fs104.default.readFileSync(native.file)).digest("hex") !== SENTRY_SWIFT_SLICE.nativeSha256)
90081
90100
  return standin;
90082
90101
  if (configured)
90083
90102
  throw new Error(
@@ -90135,12 +90154,12 @@ function nativeSwiftSlice(standin, moduleRoot, generator, configured, artifact)
90135
90154
  }
90136
90155
  };
90137
90156
  }
90138
- var import_node_child_process52, import_node_crypto65, import_node_fs104, import_node_os22, import_node_path108, SENTRY_SWIFT_SLICE;
90157
+ var import_node_child_process52, import_node_crypto64, import_node_fs104, import_node_os22, import_node_path108, SENTRY_SWIFT_SLICE;
90139
90158
  var init_native_swift_slices = __esm({
90140
90159
  "src/native-swift-slices.ts"() {
90141
90160
  "use strict";
90142
90161
  import_node_child_process52 = require("node:child_process");
90143
- import_node_crypto65 = require("node:crypto");
90162
+ import_node_crypto64 = require("node:crypto");
90144
90163
  import_node_fs104 = __toESM(require("node:fs"), 1);
90145
90164
  import_node_os22 = __toESM(require("node:os"), 1);
90146
90165
  import_node_path108 = __toESM(require("node:path"), 1);
@@ -90900,7 +90919,7 @@ function treeDigest(root) {
90900
90919
  }).join("\n");
90901
90920
  const memo2 = digests.get(`tree\0${root}`);
90902
90921
  if (memo2?.stamp === stamp) return memo2.digest;
90903
- const hash = (0, import_node_crypto66.createHash)("sha256");
90922
+ const hash = (0, import_node_crypto65.createHash)("sha256");
90904
90923
  for (const name3 of names) {
90905
90924
  hash.update(`${name3}\0`);
90906
90925
  hash.update(import_node_fs108.default.readFileSync(import_node_path111.default.join(root, name3)));
@@ -90947,7 +90966,7 @@ function swiftBinaryFramework(binary2) {
90947
90966
  const found3 = locateXcframework(import_node_path111.default.join(dir, "tree"));
90948
90967
  if (found3) return { dir: found3, digest: stored.sha };
90949
90968
  }
90950
- const sha2 = (0, import_node_crypto66.createHash)("sha256").update(import_node_fs108.default.readFileSync(binary2.dir)).digest("hex");
90969
+ const sha2 = (0, import_node_crypto65.createHash)("sha256").update(import_node_fs108.default.readFileSync(binary2.dir)).digest("hex");
90951
90970
  if (sha2 !== stored?.sha || !locateXcframework(import_node_path111.default.join(dir, "tree"))) {
90952
90971
  import_node_fs108.default.rmSync(dir, { recursive: true, force: true });
90953
90972
  import_node_fs108.default.mkdirSync(import_node_path111.default.join(dir, "tree"), { recursive: true });
@@ -90959,7 +90978,7 @@ function swiftBinaryFramework(binary2) {
90959
90978
  return { dir: found2, digest: sha2 };
90960
90979
  }
90961
90980
  if (stored && import_node_fs108.default.existsSync(archive)) {
90962
- const sha2 = (0, import_node_crypto66.createHash)("sha256").update(import_node_fs108.default.readFileSync(archive)).digest("hex");
90981
+ const sha2 = (0, import_node_crypto65.createHash)("sha256").update(import_node_fs108.default.readFileSync(archive)).digest("hex");
90963
90982
  if (sha2 !== expected)
90964
90983
  throw new Error(`archive checksum ${sha2} is not the declared checksum ${expected}`);
90965
90984
  const found2 = locateXcframework(import_node_path111.default.join(dir, "tree"));
@@ -90968,7 +90987,7 @@ function swiftBinaryFramework(binary2) {
90968
90987
  import_node_fs108.default.rmSync(dir, { recursive: true, force: true });
90969
90988
  import_node_fs108.default.mkdirSync(import_node_path111.default.join(dir, "tree"), { recursive: true });
90970
90989
  exec("curl", ["-fsSL", "--retry", "2", "-o", archive, binary2.url]);
90971
- const sha = (0, import_node_crypto66.createHash)("sha256").update(import_node_fs108.default.readFileSync(archive)).digest("hex");
90990
+ const sha = (0, import_node_crypto65.createHash)("sha256").update(import_node_fs108.default.readFileSync(archive)).digest("hex");
90972
90991
  if (sha !== expected) {
90973
90992
  import_node_fs108.default.rmSync(dir, { recursive: true, force: true });
90974
90993
  throw new Error(`archive checksum ${sha} is not the declared checksum ${expected}`);
@@ -91093,7 +91112,7 @@ function binaryHeaderSearchPaths(binary2, root, workspaceRoot2, declaredFramewor
91093
91112
  });
91094
91113
  }
91095
91114
  }
91096
- const declaredDigest = (0, import_node_crypto66.createHash)("sha256");
91115
+ const declaredDigest = (0, import_node_crypto65.createHash)("sha256");
91097
91116
  for (const framework of providedFrameworks)
91098
91117
  declaredDigest.update(`provided/${import_node_path111.default.relative(artifact.dir, framework)}\0`);
91099
91118
  for (const [framework, { declared: names, imports: imports2, sdkHeader }] of declared)
@@ -91163,7 +91182,7 @@ function binaryHeaderSearchPaths(binary2, root, workspaceRoot2, declaredFramewor
91163
91182
  import_node_fs108.default.copyFileSync(surface.modulemap, modulemap);
91164
91183
  }
91165
91184
  }
91166
- const contents2 = (0, import_node_crypto66.createHash)("sha256");
91185
+ const contents2 = (0, import_node_crypto65.createHash)("sha256");
91167
91186
  for (const framework of providedFrameworks.filter((item) => !declared.has(item))) {
91168
91187
  const modulemap = import_node_path111.default.join(
91169
91188
  pending2,
@@ -92578,7 +92597,7 @@ function crateSourceRoots(manifest, searchRoot) {
92578
92597
  return roots;
92579
92598
  }
92580
92599
  function crateSourceDigest(manifest, searchRoot) {
92581
- const hash = (0, import_node_crypto66.createHash)("sha256");
92600
+ const hash = (0, import_node_crypto65.createHash)("sha256");
92582
92601
  const walk4 = (dir, root) => {
92583
92602
  for (const entry of import_node_fs108.default.readdirSync(dir, { withFileTypes: true }).sort((left, right) => left.name < right.name ? -1 : 1)) {
92584
92603
  const full = import_node_path111.default.join(dir, entry.name);
@@ -93025,7 +93044,7 @@ function standinGenerationInputs(binaries, toolchain, configuredBehavior = {}, s
93025
93044
  ...swiftSources.flags,
93026
93045
  ...swiftSources.sources.flatMap((source) => [
93027
93046
  source,
93028
- (0, import_node_crypto66.createHash)("sha256").update(import_node_fs108.default.readFileSync(import_node_path111.default.join(binary2.dir, source))).digest("hex")
93047
+ (0, import_node_crypto65.createHash)("sha256").update(import_node_fs108.default.readFileSync(import_node_path111.default.join(binary2.dir, source))).digest("hex")
93029
93048
  ])
93030
93049
  );
93031
93050
  continue;
@@ -93061,7 +93080,7 @@ function standinGenerationInputs(binaries, toolchain, configuredBehavior = {}, s
93061
93080
  );
93062
93081
  }
93063
93082
  }
93064
- return (0, import_node_crypto66.createHash)("sha256").update(parts.join("\0")).digest("hex");
93083
+ return (0, import_node_crypto65.createHash)("sha256").update(parts.join("\0")).digest("hex");
93065
93084
  }
93066
93085
  function missingArtifactGap(binary2) {
93067
93086
  if (swiftBinaryOnDisk(binary2)) return null;
@@ -93143,7 +93162,7 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
93143
93162
  return NO_IMPORTABLE_SURFACE;
93144
93163
  }
93145
93164
  const configured = new Map(Object.entries(behavior));
93146
- const hash = (0, import_node_crypto66.createHash)("sha256").update(
93165
+ const hash = (0, import_node_crypto65.createHash)("sha256").update(
93147
93166
  standinGenerationInputs([binary2], toolchain, behavior)
93148
93167
  );
93149
93168
  hash.update(digest3);
@@ -93383,7 +93402,7 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
93383
93402
  );
93384
93403
  if (binary2.moduleSources !== void 0)
93385
93404
  frameworkInputs.push(
93386
- `${binary2.target}\0${(0, import_node_crypto66.createHash)("sha256").update(
93405
+ `${binary2.target}\0${(0, import_node_crypto65.createHash)("sha256").update(
93387
93406
  [iosSdkId(), ...swiftSources.flags, ...swiftSources.sources, ...texts].join(
93388
93407
  "\0"
93389
93408
  )
@@ -93424,7 +93443,7 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
93424
93443
  import_node_fs108.default.mkdirSync(sourceFrameworks);
93425
93444
  const frameworks = {
93426
93445
  dirs: [...frameworkDirs, sourceFrameworks].sort(),
93427
- digest: (0, import_node_crypto66.createHash)("sha256").update(frameworkInputs.sort().join("\0")).digest("hex"),
93446
+ digest: (0, import_node_crypto65.createHash)("sha256").update(frameworkInputs.sort().join("\0")).digest("hex"),
93428
93447
  surfaces: frameworkSurfaces
93429
93448
  };
93430
93449
  const siblings = new Map(
@@ -93543,12 +93562,12 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
93543
93562
  import_node_fs108.default.rmSync(modules, { recursive: true, force: true });
93544
93563
  }
93545
93564
  }
93546
- var import_node_child_process54, import_node_crypto66, import_node_fs108, import_node_path111, TRIPLE, cacheDir5, key, digests, isBinaryLibraryFile, OBJC_IMPORT, files, OBJC, NO_IMPORTABLE_SURFACE, OBJC_ATTRIBUTE, TYPE_DECLARATION, OPTIONAL_REQUIREMENT, WASM_EH_FLAGS, OBJC_UNREPRESENTABLE, INERT_VALUE, identChar, RUST_TARGET, UNSEARCHED, RUST_TOOLCHAIN, built;
93565
+ var import_node_child_process54, import_node_crypto65, import_node_fs108, import_node_path111, TRIPLE, cacheDir5, key, digests, isBinaryLibraryFile, OBJC_IMPORT, files, OBJC, NO_IMPORTABLE_SURFACE, OBJC_ATTRIBUTE, TYPE_DECLARATION, OPTIONAL_REQUIREMENT, WASM_EH_FLAGS, OBJC_UNREPRESENTABLE, INERT_VALUE, identChar, RUST_TARGET, UNSEARCHED, RUST_TOOLCHAIN, built;
93547
93566
  var init_swift_standins = __esm({
93548
93567
  "src/swift-standins.ts"() {
93549
93568
  "use strict";
93550
93569
  import_node_child_process54 = require("node:child_process");
93551
- import_node_crypto66 = require("node:crypto");
93570
+ import_node_crypto65 = require("node:crypto");
93552
93571
  import_node_fs108 = __toESM(require("node:fs"), 1);
93553
93572
  import_node_path111 = __toESM(require("node:path"), 1);
93554
93573
  init_forked_script_contract();
@@ -93578,7 +93597,7 @@ var init_swift_standins = __esm({
93578
93597
  init_swiftTargetContract();
93579
93598
  TRIPLE = SWIFT_WASM_TRIPLE;
93580
93599
  cacheDir5 = import_node_path111.default.join(cacheDir(), "swift-standins");
93581
- key = (...parts) => (0, import_node_crypto66.createHash)("sha256").update(parts.join("\0")).digest("hex").slice(0, 32);
93600
+ key = (...parts) => (0, import_node_crypto65.createHash)("sha256").update(parts.join("\0")).digest("hex").slice(0, 32);
93582
93601
  digests = /* @__PURE__ */ new Map();
93583
93602
  isBinaryLibraryFile = (file) => /\.(?:a|dylib|o|tbd)$/i.test(file);
93584
93603
  OBJC_IMPORT = /#\s*(?:import|include)\s*[<"](?:[\w+-]+\/)?([\w+.-]+\.h)[>"]/g;
@@ -93738,11 +93757,6 @@ function compiledFrameworkImports(app, products) {
93738
93757
  }
93739
93758
  return imports2;
93740
93759
  }
93741
- function sha256Hex6(bytes) {
93742
- if (typeof Bun !== "undefined")
93743
- return new Bun.CryptoHasher("sha256").update(bytes).digest("hex");
93744
- return (0, import_node_crypto67.createHash)("sha256").update(bytes).digest("hex");
93745
- }
93746
93760
  function regularFileStamp(file) {
93747
93761
  const stat = import_node_fs109.default.lstatSync(file, { bigint: true, throwIfNoEntry: false });
93748
93762
  if (!stat || !stat.isFile()) return null;
@@ -93756,7 +93770,7 @@ function verifyRetainedFile(work, file, hash, stamps) {
93756
93770
  if (typeof expectedStamp === "string" && regularFileStamp(resolved) === expectedStamp)
93757
93771
  return true;
93758
93772
  if (!import_node_fs109.default.existsSync(resolved)) return false;
93759
- return sha256Hex6(readPackageFile(work, resolved, Infinity)) === hash;
93773
+ return sha256Hex(readPackageFile(work, resolved, Infinity)) === hash;
93760
93774
  }
93761
93775
  function recordRetainedStamps(work, files2) {
93762
93776
  const stamps = {};
@@ -93773,7 +93787,7 @@ function cachedBinaryFileDigest(file) {
93773
93787
  const memory = binaryFileDigests.get(real);
93774
93788
  if (memory?.stamp === stamp) return memory.digest;
93775
93789
  const dir = import_node_path112.default.join(swiftCacheDir(), "swift-binary-digests");
93776
- const record5 = import_node_path112.default.join(dir, `${sha256Hex6(real)}.json`);
93790
+ const record5 = import_node_path112.default.join(dir, `${sha256Hex(real)}.json`);
93777
93791
  if (import_node_fs109.default.existsSync(record5)) {
93778
93792
  const saved = JSON.parse(import_node_fs109.default.readFileSync(record5, "utf8"));
93779
93793
  if (isRecord(saved) && saved.stamp === stamp && typeof saved.digest === "string") {
@@ -93781,10 +93795,10 @@ function cachedBinaryFileDigest(file) {
93781
93795
  return saved.digest;
93782
93796
  }
93783
93797
  }
93784
- const digest3 = sha256Hex6(import_node_fs109.default.readFileSync(real));
93798
+ const digest3 = sha256Hex(import_node_fs109.default.readFileSync(real));
93785
93799
  binaryFileDigests.set(real, { stamp, digest: digest3 });
93786
93800
  import_node_fs109.default.mkdirSync(dir, { recursive: true });
93787
- const partial = `${record5}.${process.pid}.${(0, import_node_crypto67.randomUUID)()}`;
93801
+ const partial = `${record5}.${process.pid}.${(0, import_node_crypto66.randomUUID)()}`;
93788
93802
  import_node_fs109.default.writeFileSync(partial, JSON.stringify({ stamp, digest: digest3 }));
93789
93803
  import_node_fs109.default.renameSync(partial, record5);
93790
93804
  return digest3;
@@ -94322,7 +94336,7 @@ function prepareXcodeSwiftProducts(app, binaries, moduleRoot) {
94322
94336
  const staged = withFrameworkCompanionImports(original);
94323
94337
  if (staged !== original) sources.set(file, Buffer.from(staged));
94324
94338
  }
94325
- const digest3 = sha256Hex6;
94339
+ const digest3 = sha256Hex;
94326
94340
  const providers = /* @__PURE__ */ new Map();
94327
94341
  for (const target of targets) {
94328
94342
  if (!supplied.has(target.moduleName)) continue;
@@ -94678,7 +94692,7 @@ async function prepareXcodeNativeInputs(app, binaries, moduleRoot, purpose) {
94678
94692
  products
94679
94693
  );
94680
94694
  const checkouts = remoteSwiftCheckouts(app.rootDir);
94681
- const digest3 = sha256Hex6;
94695
+ const digest3 = sha256Hex;
94682
94696
  const inputs2 = Object.fromEntries(
94683
94697
  [...sources].map(([file, bytes]) => [file, digest3(bytes)])
94684
94698
  );
@@ -95060,16 +95074,17 @@ ${reported.trimEnd() || `Clang exited with status ${result.status}`}`;
95060
95074
  import_node_fs109.default.closeSync(descriptor);
95061
95075
  }
95062
95076
  }
95063
- var import_node_child_process55, import_node_crypto67, import_node_fs109, import_node_path112, SwiftObjCCompilationError, isDirectory4, isSdkInclude, FRAMEWORK_IMPORT, OWN_IMPORT, binaryFileDigests, objcInputSnapshots;
95077
+ var import_node_child_process55, import_node_crypto66, import_node_fs109, import_node_path112, SwiftObjCCompilationError, isDirectory4, isSdkInclude, FRAMEWORK_IMPORT, OWN_IMPORT, binaryFileDigests, objcInputSnapshots;
95064
95078
  var init_swift_objc_compile = __esm({
95065
95079
  "src/swift-objc-compile.ts"() {
95066
95080
  "use strict";
95067
95081
  import_node_child_process55 = require("node:child_process");
95068
- import_node_crypto67 = require("node:crypto");
95082
+ import_node_crypto66 = require("node:crypto");
95069
95083
  import_node_fs109 = __toESM(require("node:fs"), 1);
95070
95084
  import_node_path112 = __toESM(require("node:path"), 1);
95071
95085
  init_mapLimit();
95072
95086
  init_is_record();
95087
+ init_sha256();
95073
95088
  init_swift_objc_import();
95074
95089
  init_swift_objc_runtime();
95075
95090
  init_swift_objc_standin();
@@ -95118,7 +95133,7 @@ async function buildRiveRuntimeDependencies(checkout, moduleRoot) {
95118
95133
  ];
95119
95134
  const objc = [...swiftObjCRuntimeFlags, "-fobjc-exceptions"];
95120
95135
  const xcode = (0, import_node_child_process56.execFileSync)("xcodebuild", ["-version"], { encoding: "utf8" });
95121
- const key2 = (0, import_node_crypto68.createHash)("sha256").update(
95136
+ const key2 = (0, import_node_crypto67.createHash)("sha256").update(
95122
95137
  JSON.stringify([
95123
95138
  RECIPE,
95124
95139
  (0, import_node_child_process56.execFileSync)("git", ["-C", runtime, "rev-parse", "HEAD"], {
@@ -95329,12 +95344,12 @@ exec ${quote3(import_node_path113.default.join(toolchainBin, "llvm-ar"))} rcs "$
95329
95344
  );
95330
95345
  return directory2;
95331
95346
  }
95332
- var import_node_child_process56, import_node_crypto68, import_node_fs110, import_node_os23, import_node_path113, import_promises10, RECIPE, CONFIG, RUNTIME_LIBRARIES;
95347
+ var import_node_child_process56, import_node_crypto67, import_node_fs110, import_node_os23, import_node_path113, import_promises10, RECIPE, CONFIG, RUNTIME_LIBRARIES;
95333
95348
  var init_rive_runtime_dependencies = __esm({
95334
95349
  "src/rive-runtime-dependencies.ts"() {
95335
95350
  "use strict";
95336
95351
  import_node_child_process56 = require("node:child_process");
95337
- import_node_crypto68 = require("node:crypto");
95352
+ import_node_crypto67 = require("node:crypto");
95338
95353
  import_node_fs110 = __toESM(require("node:fs"), 1);
95339
95354
  import_node_os23 = __toESM(require("node:os"), 1);
95340
95355
  import_node_path113 = __toESM(require("node:path"), 1);
@@ -96191,7 +96206,7 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
96191
96206
  (binary2) => binary2.publicHeaders === void 0 && binary2.placeholder === void 0 && swiftBinaryOnDisk(binary2) && binaryHeaderSearchPaths(binary2, staged, app.rootDir).headers.length === 1
96192
96207
  ))
96193
96208
  return [...binaries];
96194
- const hash = (0, import_node_crypto69.createHash)("sha256");
96209
+ const hash = (0, import_node_crypto68.createHash)("sha256");
96195
96210
  hash.update(
96196
96211
  JSON.stringify([
96197
96212
  inputs2.targets,
@@ -96400,12 +96415,12 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
96400
96415
  );
96401
96416
  return result;
96402
96417
  }
96403
- var import_node_child_process58, import_node_crypto69, import_node_fs112, import_node_path115, cachedInputs;
96418
+ var import_node_child_process58, import_node_crypto68, import_node_fs112, import_node_path115, cachedInputs;
96404
96419
  var init_swift_cxx_reachable = __esm({
96405
96420
  "src/swift-cxx-reachable.ts"() {
96406
96421
  "use strict";
96407
96422
  import_node_child_process58 = require("node:child_process");
96408
- import_node_crypto69 = require("node:crypto");
96423
+ import_node_crypto68 = require("node:crypto");
96409
96424
  import_node_fs112 = __toESM(require("node:fs"), 1);
96410
96425
  import_node_path115 = __toESM(require("node:path"), 1);
96411
96426
  init_is_record();
@@ -96426,15 +96441,15 @@ function rasterizePdfFiles(inputs2, { imageBytes, imageTotalBytes } = { imageByt
96426
96441
  const pending2 = /* @__PURE__ */ new Map();
96427
96442
  const renderer = process.platform === "darwin" ? "30774891a9db216d" : "pdfium-1";
96428
96443
  const cache = swiftCacheDir();
96429
- const cached2 = (sha2565) => import_node_path116.default.join(cache, `swift-pdf-png-${renderer}-${sha2565}.png`);
96444
+ const cached2 = (sha2564) => import_node_path116.default.join(cache, `swift-pdf-png-${renderer}-${sha2564}.png`);
96430
96445
  let remainingBytes = imageTotalBytes;
96431
- const record5 = ({ file, sha256: sha2565 }, bytes) => {
96446
+ const record5 = ({ file, sha256: sha2564 }, bytes) => {
96432
96447
  if (bytes.length > imageBytes)
96433
96448
  throw new Error(`swift image ${file} raster exceeds the per-image cap`);
96434
96449
  remainingBytes -= bytes.length;
96435
96450
  if (remainingBytes < 0)
96436
96451
  throw new Error("swift image pack exceeds the compile service caps");
96437
- rendered.set(sha2565, bytes);
96452
+ rendered.set(sha2564, bytes);
96438
96453
  };
96439
96454
  for (const input of inputs2) {
96440
96455
  if (rendered.has(input.sha256) || pending2.has(input.sha256)) continue;
@@ -96896,7 +96911,7 @@ function fetchSwiftSdkDataPlan({ url, dataPlan }) {
96896
96911
  if (!response.ok)
96897
96912
  throw new Error(`Swift SDK data plan ${address} answered ${response.status}`);
96898
96913
  const bytes = Buffer.from(await response.arrayBuffer());
96899
- if ((0, import_node_crypto70.createHash)("sha256").update(bytes).digest("hex") !== dataPlan)
96914
+ if ((0, import_node_crypto69.createHash)("sha256").update(bytes).digest("hex") !== dataPlan)
96900
96915
  throw new Error(`Swift SDK data plan ${address} failed its digest check`);
96901
96916
  return bytes;
96902
96917
  });
@@ -97001,7 +97016,7 @@ function splitSwiftSdkLaterData(directory2, binding, plan) {
97001
97016
  encode(now),
97002
97017
  encodeNativeSdkLater({
97003
97018
  files: later.map((bytes) => ({
97004
- sha256: (0, import_node_crypto70.createHash)("sha256").update(bytes).digest("hex"),
97019
+ sha256: (0, import_node_crypto69.createHash)("sha256").update(bytes).digest("hex"),
97005
97020
  byteLength: bytes.length
97006
97021
  })),
97007
97022
  ...needs && {
@@ -97017,11 +97032,11 @@ function splitSwiftSdkLaterData(directory2, binding, plan) {
97017
97032
  later
97018
97033
  };
97019
97034
  }
97020
- var import_node_crypto70, ADDRESS_REACH, sdkPieces, firstAtOrAfter, pieceAt, LATER_GROUP_BYTES, MAX_LATER_GROUPS, publishedPlans;
97035
+ var import_node_crypto69, ADDRESS_REACH, sdkPieces, firstAtOrAfter, pieceAt, LATER_GROUP_BYTES, MAX_LATER_GROUPS, publishedPlans;
97021
97036
  var init_swift_sdk_later_data = __esm({
97022
97037
  "src/swift-sdk-later-data.ts"() {
97023
97038
  "use strict";
97024
- import_node_crypto70 = require("node:crypto");
97039
+ import_node_crypto69 = require("node:crypto");
97025
97040
  init_nativeSdkBindingContract();
97026
97041
  init_nativeWasmContract();
97027
97042
  init_swift_sdk_image();
@@ -97073,7 +97088,7 @@ function nativeSourceDescriptor(packagePath) {
97073
97088
  function swiftArtifactContentDigest(bytes) {
97074
97089
  let digest3 = swiftArtifactDigests.get(bytes);
97075
97090
  if (!digest3) {
97076
- digest3 = (0, import_node_crypto71.createHash)("sha256").update(bytes).digest("hex");
97091
+ digest3 = (0, import_node_crypto70.createHash)("sha256").update(bytes).digest("hex");
97077
97092
  swiftArtifactDigests.set(bytes, digest3);
97078
97093
  }
97079
97094
  return digest3;
@@ -97201,7 +97216,7 @@ async function wasmPortableAssembly(binaries, toolchainBin, moduleRoot) {
97201
97216
  const clang = import_node_path117.default.join(toolchainBin, "clang");
97202
97217
  const empty = (binary2, file) => {
97203
97218
  const source = import_node_path117.default.join(binary2.dir, file);
97204
- const key2 = (0, import_node_crypto71.createHash)("sha256").update(
97219
+ const key2 = (0, import_node_crypto70.createHash)("sha256").update(
97205
97220
  JSON.stringify([
97206
97221
  clang,
97207
97222
  sdk2.sysroot,
@@ -97246,7 +97261,7 @@ async function wasmPortableAssembly(binaries, toolchainBin, moduleRoot) {
97246
97261
  return new Set(portable.flat());
97247
97262
  }
97248
97263
  async function swiftPackages(entry, app) {
97249
- const stamp = (file) => import_node_fs114.default.existsSync(file) ? (0, import_node_crypto71.createHash)("sha256").update(import_node_fs114.default.readFileSync(file)).digest("hex") : null;
97264
+ const stamp = (file) => import_node_fs114.default.existsSync(file) ? (0, import_node_crypto70.createHash)("sha256").update(import_node_fs114.default.readFileSync(file)).digest("hex") : null;
97250
97265
  const owners = [...app.frameworks, app].map((target) => ({
97251
97266
  module: target.moduleName,
97252
97267
  products: target.packageProducts ?? []
@@ -98415,18 +98430,18 @@ async function buildSwiftResourceTable(project2, baseUrl, inputs2) {
98415
98430
  const source = new TextDecoder("utf-8", { fatal: true, ignoreBOM: true }).decode(
98416
98431
  bytes
98417
98432
  );
98418
- const sha2565 = (0, import_node_crypto71.createHash)("sha256").update(bytes).digest("hex");
98433
+ const sha2564 = (0, import_node_crypto70.createHash)("sha256").update(bytes).digest("hex");
98419
98434
  const bundle = swiftResourceBundleForFile(bundles, key2);
98420
98435
  if (!bundle && inputs2["Package.swift"])
98421
98436
  throw new Error(`metal source ${key2} has no resource target bundle`);
98422
98437
  metalSources[key2] = {
98423
- sha256: sha2565,
98424
- url: `${baseUrl}${RESOURCE_PATH}${sha2565}.metal`,
98438
+ sha256: sha2564,
98439
+ url: `${baseUrl}${RESOURCE_PATH}${sha2564}.metal`,
98425
98440
  bundlePath: bundle?.path ?? "."
98426
98441
  };
98427
98442
  metalUploads[key2] = source;
98428
98443
  watched.push(file);
98429
- registered.set(`${sha2565}.metal`, { bytes, contentType: "text/plain; charset=utf-8" });
98444
+ registered.set(`${sha2564}.metal`, { bytes, contentType: "text/plain; charset=utf-8" });
98430
98445
  }
98431
98446
  const pdfs = /* @__PURE__ */ new Map();
98432
98447
  for (const { file } of found) {
@@ -98438,7 +98453,7 @@ async function buildSwiftResourceTable(project2, baseUrl, inputs2) {
98438
98453
  const bytes = readPackageFile2(project2.packagePath, disk, limits.imageBytes);
98439
98454
  pdfs.set(file, {
98440
98455
  file: disk,
98441
- sha256: (0, import_node_crypto71.createHash)("sha256").update(bytes).digest("hex")
98456
+ sha256: (0, import_node_crypto70.createHash)("sha256").update(bytes).digest("hex")
98442
98457
  });
98443
98458
  }
98444
98459
  const pdfRasters = rasterizePdfFiles([...pdfs.values()], limits);
@@ -98484,7 +98499,7 @@ async function buildSwiftResourceTable(project2, baseUrl, inputs2) {
98484
98499
  throw new Error("swift image pack exceeds the compile service caps");
98485
98500
  }
98486
98501
  imageBytes += bytes.length;
98487
- const hash = (0, import_node_crypto71.createHash)("sha256").update(bytes).digest("hex").slice(0, 16);
98502
+ const hash = (0, import_node_crypto70.createHash)("sha256").update(bytes).digest("hex").slice(0, 16);
98488
98503
  const bundle = table[bundlePath] ?? /* @__PURE__ */ Object.create(null);
98489
98504
  const pixelSize = ext === ".png" ? readPngDimensions(bytes) : null;
98490
98505
  const variant2 = {
@@ -98790,7 +98805,7 @@ function updateSwiftConfigStamp(hash, packagePath) {
98790
98805
  hash.update(JSON.stringify(gates.map((name3) => swiftWasm64PlatformGates[name3])));
98791
98806
  }
98792
98807
  function sourceStamp(packagePath, moduleRootOverride, hosted = false) {
98793
- const hash = (0, import_node_crypto71.createHash)("sha256");
98808
+ const hash = (0, import_node_crypto70.createHash)("sha256");
98794
98809
  hash.update(packagePath);
98795
98810
  updateSwiftConfigStamp(hash, packagePath);
98796
98811
  const libraries = projects().get(packagePath)?.libraries;
@@ -98819,7 +98834,7 @@ function sourceStamp(packagePath, moduleRootOverride, hosted = false) {
98819
98834
  return hash.digest("hex").slice(0, 16);
98820
98835
  }
98821
98836
  function sourceContentStamp(packagePath, moduleRootOverride) {
98822
- const hash = (0, import_node_crypto71.createHash)("sha256");
98837
+ const hash = (0, import_node_crypto70.createHash)("sha256");
98823
98838
  hash.update(compilerSourceDigest);
98824
98839
  updateSwiftConfigStamp(hash, packagePath);
98825
98840
  const libraries = projects().get(packagePath)?.libraries;
@@ -98851,7 +98866,7 @@ function moduleStamp(packagePath, moduleRootOverride, hosted) {
98851
98866
  (root) => import_node_fs114.default.existsSync(import_node_path117.default.join(root, "toolchain.json"))
98852
98867
  );
98853
98868
  if (!moduleRoot) return "";
98854
- const hash = (0, import_node_crypto71.createHash)("sha256");
98869
+ const hash = (0, import_node_crypto70.createHash)("sha256");
98855
98870
  hash.update(moduleRoot);
98856
98871
  for (const relative4 of swiftModuleInputFiles(moduleRoot)) {
98857
98872
  hash.update(relative4);
@@ -98861,7 +98876,7 @@ function moduleStamp(packagePath, moduleRootOverride, hosted) {
98861
98876
  }
98862
98877
  function otherInputs(input) {
98863
98878
  const { files: _files, ...rest } = input;
98864
- return (0, import_node_crypto71.createHash)("sha256").update(JSON.stringify(rest)).digest("hex");
98879
+ return (0, import_node_crypto70.createHash)("sha256").update(JSON.stringify(rest)).digest("hex");
98865
98880
  }
98866
98881
  function icuUrl(origin, artifact) {
98867
98882
  return "url" in artifact.icu ? artifact.icu.url : `${origin}${ICU_PATH}${swiftIcuAddress(artifact.icu)}`;
@@ -98876,7 +98891,7 @@ function standinLibraries(binaries, standins, rootDir, toolchain, rustWasm64) {
98876
98891
  for (const standin of standins) {
98877
98892
  if (!standin.prebuilt) continue;
98878
98893
  const bytes = Buffer.from(standin.prebuilt.library, "base64");
98879
- const digest3 = (0, import_node_crypto71.createHash)("sha256").update(bytes).digest("hex");
98894
+ const digest3 = (0, import_node_crypto70.createHash)("sha256").update(bytes).digest("hex");
98880
98895
  const dir = import_node_path117.default.join(swiftCacheDir(), "native-archives", digest3);
98881
98896
  import_node_fs114.default.mkdirSync(dir, { recursive: true });
98882
98897
  const library = import_node_path117.default.join(dir, `lib${standin.module}.a`);
@@ -99224,7 +99239,7 @@ function swiftBuildRoot(packagePath, moduleRoot) {
99224
99239
  return import_node_path117.default.join(
99225
99240
  swiftCacheDir(),
99226
99241
  "swift-builds",
99227
- (0, import_node_crypto71.createHash)("sha256").update(`${compilerKey}\0${buildKeyPath}`).digest("hex").slice(0, 16)
99242
+ (0, import_node_crypto70.createHash)("sha256").update(`${compilerKey}\0${buildKeyPath}`).digest("hex").slice(0, 16)
99228
99243
  );
99229
99244
  }
99230
99245
  function installedWorkspaceInput(packagePath, entry, moduleRoot) {
@@ -99518,14 +99533,14 @@ async function fetchSwiftDyldTable(moduleUrl, module2, signal) {
99518
99533
  const url = new URL(moduleUrl);
99519
99534
  const table = swiftDyldTableReference(url.pathname, module2);
99520
99535
  if (!table) return {};
99521
- const { sha256: sha2565, byteLength } = table;
99536
+ const { sha256: sha2564, byteLength } = table;
99522
99537
  url.pathname = table.path;
99523
99538
  const response = await fetch(url, { signal });
99524
99539
  if (!response.ok) throw new Error(`swift compile: ${url} answered ${response.status}`);
99525
99540
  const bytes = Buffer.from(await response.arrayBuffer());
99526
- if (bytes.length !== byteLength || (0, import_node_crypto71.createHash)("sha256").update(bytes).digest("hex") !== sha2565)
99541
+ if (bytes.length !== byteLength || (0, import_node_crypto70.createHash)("sha256").update(bytes).digest("hex") !== sha2564)
99527
99542
  throw new Error(`swift compile: ${url} does not match its module's index`);
99528
- return { dyldTable: { sha256: sha2565, bytes } };
99543
+ return { dyldTable: { sha256: sha2564, bytes } };
99529
99544
  }
99530
99545
  function currentStamp(project2, moduleRoot) {
99531
99546
  return withXcodeLayout(
@@ -99609,10 +99624,10 @@ async function splitSdkBinding(sdk2, splitKey, plan) {
99609
99624
  sdk2.binding.bytes,
99610
99625
  plan
99611
99626
  );
99612
- const digest3 = (0, import_node_crypto71.createHash)("sha256").update(split.binding).digest("hex");
99627
+ const digest3 = (0, import_node_crypto70.createHash)("sha256").update(split.binding).digest("hex");
99613
99628
  sdkBindingFiles.set(digest3, split.binding);
99614
99629
  for (const later of split.later)
99615
- sdkBindingFiles.set((0, import_node_crypto71.createHash)("sha256").update(later).digest("hex"), later);
99630
+ sdkBindingFiles.set((0, import_node_crypto70.createHash)("sha256").update(later).digest("hex"), later);
99616
99631
  sdkSplitBindings.set(key2, digest3);
99617
99632
  }
99618
99633
  function swiftSdkEntryAssets(origin, image, sdkDigest = image.sdk?.sha256) {
@@ -99687,10 +99702,10 @@ async function swiftArtifactAssets(artifact, { sdkUrl, sdkBindingUrl }) {
99687
99702
  const later = decodeNativeSdkBinding(
99688
99703
  bytes.buffer.slice(bytes.byteOffset, bytes.byteOffset + bytes.byteLength)
99689
99704
  ).later;
99690
- for (const { sha256: sha2565 } of later?.files ?? []) {
99691
- const laterBytes = sdkBindingFiles.get(sha2565);
99692
- if (!laterBytes) throw new Error(`swift sdk later data ${sha2565} is not served`);
99693
- assets2.set(`${SDK_BINDING_PATH}${sha2565}.bin`, {
99705
+ for (const { sha256: sha2564 } of later?.files ?? []) {
99706
+ const laterBytes = sdkBindingFiles.get(sha2564);
99707
+ if (!laterBytes) throw new Error(`swift sdk later data ${sha2564} is not served`);
99708
+ assets2.set(`${SDK_BINDING_PATH}${sha2564}.bin`, {
99694
99709
  bytes: laterBytes,
99695
99710
  contentType: "application/octet-stream"
99696
99711
  });
@@ -99702,13 +99717,13 @@ async function swiftArtifactAssets(artifact, { sdkUrl, sdkBindingUrl }) {
99702
99717
  }
99703
99718
  return assets2;
99704
99719
  }
99705
- var import_node_async_hooks3, import_node_child_process60, import_node_crypto71, import_node_fs114, import_node_os25, import_node_path117, ARTIFACT_PATH, RESOURCE_PATH, ICU_PATH, SDK_PATH, SDK_BINDING_PATH, SKIP_ROOT_DIRS, NATIVE_DESCRIPTOR, NATIVE_GLUE, SwiftMissingModulesError, swiftArtifactDigests, sharedProjects, projectScope, projects, sharedSourceEntries, sourceEntries, sharedXcodeProjects, xcodeProjects, preparedScriptInputs, emptyWasmAssembly, XCODE_APP_DIR, XCODE_FRAMEWORKS_DIR, XCODE_PACKAGES_DIR, layoutScope, HOSTED_LIMITS, LOCAL_LIMITS, inputLimits, RESOURCE_CONTENT_TYPES, API_GAP_PATTERNS, IOS_SDK_FRAMEWORKS, sdkStartupParts, sdkPieces2, sdkSplitBindings, sdkBindingFiles, servedSdkBinding;
99720
+ var import_node_async_hooks3, import_node_child_process60, import_node_crypto70, import_node_fs114, import_node_os25, import_node_path117, ARTIFACT_PATH, RESOURCE_PATH, ICU_PATH, SDK_PATH, SDK_BINDING_PATH, SKIP_ROOT_DIRS, NATIVE_DESCRIPTOR, NATIVE_GLUE, SwiftMissingModulesError, swiftArtifactDigests, sharedProjects, projectScope, projects, sharedSourceEntries, sourceEntries, sharedXcodeProjects, xcodeProjects, preparedScriptInputs, emptyWasmAssembly, XCODE_APP_DIR, XCODE_FRAMEWORKS_DIR, XCODE_PACKAGES_DIR, layoutScope, HOSTED_LIMITS, LOCAL_LIMITS, inputLimits, RESOURCE_CONTENT_TYPES, API_GAP_PATTERNS, IOS_SDK_FRAMEWORKS, sdkStartupParts, sdkPieces2, sdkSplitBindings, sdkBindingFiles, servedSdkBinding;
99706
99721
  var init_swift_host = __esm({
99707
99722
  "src/swift-host.ts"() {
99708
99723
  "use strict";
99709
99724
  import_node_async_hooks3 = require("node:async_hooks");
99710
99725
  import_node_child_process60 = require("node:child_process");
99711
- import_node_crypto71 = require("node:crypto");
99726
+ import_node_crypto70 = require("node:crypto");
99712
99727
  import_node_fs114 = __toESM(require("node:fs"), 1);
99713
99728
  import_node_os25 = __toESM(require("node:os"), 1);
99714
99729
  import_node_path117 = __toESM(require("node:path"), 1);
@@ -100269,7 +100284,7 @@ function hashTree(root) {
100269
100284
  for (const entry of import_node_fs117.default.readdirSync(root, { recursive: true, withFileTypes: true })) {
100270
100285
  if (!entry.isFile()) continue;
100271
100286
  const file = import_node_path120.default.join(entry.parentPath, entry.name);
100272
- hashes[import_node_path120.default.relative(root, file).split(import_node_path120.default.sep).join("/")] = (0, import_node_crypto72.createHash)("sha256").update(import_node_fs117.default.readFileSync(file)).digest("hex");
100287
+ hashes[import_node_path120.default.relative(root, file).split(import_node_path120.default.sep).join("/")] = (0, import_node_crypto71.createHash)("sha256").update(import_node_fs117.default.readFileSync(file)).digest("hex");
100273
100288
  }
100274
100289
  return Object.fromEntries(Object.entries(hashes).sort(([a], [b]) => a < b ? -1 : 1));
100275
100290
  }
@@ -100319,12 +100334,12 @@ async function runInstalledTurboCodegen(appRoot, outDir, signal) {
100319
100334
  files: hashTree(generatedRoot)
100320
100335
  };
100321
100336
  }
100322
- var import_node_child_process61, import_node_crypto72, import_node_fs117, import_node_module13, import_node_path120, import_node_util15, run10, RENDERER_DEPENDENCY_PODS, RENDERER_PODS, RENDERER_PODS_VERSIONED, COMPILED_SOURCE, LEGACY_BRIDGE_DEV_SUPPORT, LEGACY_BRIDGE_PODS, LEGACY_BRIDGE_PODS_VERSIONED;
100337
+ var import_node_child_process61, import_node_crypto71, import_node_fs117, import_node_module13, import_node_path120, import_node_util15, run10, RENDERER_DEPENDENCY_PODS, RENDERER_PODS, RENDERER_PODS_VERSIONED, COMPILED_SOURCE, LEGACY_BRIDGE_DEV_SUPPORT, LEGACY_BRIDGE_PODS, LEGACY_BRIDGE_PODS_VERSIONED;
100323
100338
  var init_turbo_codegen_intake = __esm({
100324
100339
  "src/turbo-codegen-intake.ts"() {
100325
100340
  "use strict";
100326
100341
  import_node_child_process61 = require("node:child_process");
100327
- import_node_crypto72 = require("node:crypto");
100342
+ import_node_crypto71 = require("node:crypto");
100328
100343
  import_node_fs117 = __toESM(require("node:fs"), 1);
100329
100344
  import_node_module13 = require("node:module");
100330
100345
  import_node_path120 = __toESM(require("node:path"), 1);
@@ -101397,7 +101412,7 @@ async function collectTurboSources(options2) {
101397
101412
  );
101398
101413
  const installedHeaders = /* @__PURE__ */ new Map();
101399
101414
  const targetPath = (name3) => `Sources/${name3}`;
101400
- const providerTarget = (name3) => `TurboPackage_${sha2564(name3).slice(0, 16)}`;
101415
+ const providerTarget = (name3) => `TurboPackage_${sha2563(name3).slice(0, 16)}`;
101401
101416
  const folly = readFollyConfig(reactNative.root);
101402
101417
  const baseDefines = [
101403
101418
  options2.configuration === "Debug" ? "DEBUG=1" : "NDEBUG",
@@ -101541,7 +101556,7 @@ async function collectTurboSources(options2) {
101541
101556
  if (!Buffer.from(text7).equals(bytes))
101542
101557
  throw new Error(`TurboModule source is not UTF-8: ${disk}`);
101543
101558
  add(key2, text7);
101544
- result.sources.push({ file: key2, source: disk, sha256: sha2564(bytes) });
101559
+ result.sources.push({ file: key2, source: disk, sha256: sha2563(bytes) });
101545
101560
  pending2.push({ key: key2, targetName, label, root, relative: relative4 });
101546
101561
  return key2;
101547
101562
  };
@@ -102354,13 +102369,13 @@ async function collectTurboSources(options2) {
102354
102369
  let decoratorHasPerformanceLogger = false;
102355
102370
  let managerHasDevMenuDecorator = false;
102356
102371
  if (fabric) objc = true;
102357
- for (const { relative: relative4, source, text: text7, sha256: sha2565, configured } of glogSources()) {
102372
+ for (const { relative: relative4, source, text: text7, sha256: sha2564, configured } of glogSources()) {
102358
102373
  const key2 = `${core}/dependencies/glog/${relative4}`;
102359
102374
  add(key2, text7);
102360
102375
  result.sources.push({
102361
102376
  file: key2,
102362
102377
  source,
102363
- sha256: sha2565,
102378
+ sha256: sha2564,
102364
102379
  ...configured && { configured }
102365
102380
  });
102366
102381
  if (relative4.startsWith("src/glog/"))
@@ -104643,11 +104658,11 @@ extern "C" __attribute__((export_name("peach_fabric_component_names"))) const ch
104643
104658
  }
104644
104659
  `;
104645
104660
  }
104646
- var import_node_crypto73, import_node_fs118, import_node_module14, import_node_path121, TURBO_CORE_TARGET, TURBO_FMT_TARGET, TURBO_ENTRY_HEADER, TURBO_CORE_PUBLIC_HEADERS, REGISTRATION, CODEGEN_OBJC, UNIT, HEADER5, OBJC2, OBJC_TURBO, OBJC_BRIDGE, OBJC_REGISTERED, REACT_NATIVE_UNITS, REACT_NATIVE_INCLUDE_ROOTS, REACT_NATIVE_OBJC_UNITS, REACT_NATIVE_OBJC_VERSIONED_UNITS, REACT_NATIVE_HEADER_DIRS, REACT_NATIVE_BARE_HEADER_DIRS, DECLARED_MODULE_NAME, EXPORTED_MODULE, sha2564, podspecList, reactNativePods, reactNativePod, versionParts, iosOf, JS_CALL_INVOKER, FABRIC_SHADOW_HANDLE_HOST, FABRIC_HOST_INCLUDES, FABRIC_HOST_PAPER_INCLUDES, PAPER_UIKIT_BRIDGE_SWIFT;
104661
+ var import_node_crypto72, import_node_fs118, import_node_module14, import_node_path121, TURBO_CORE_TARGET, TURBO_FMT_TARGET, TURBO_ENTRY_HEADER, TURBO_CORE_PUBLIC_HEADERS, REGISTRATION, CODEGEN_OBJC, UNIT, HEADER5, OBJC2, OBJC_TURBO, OBJC_BRIDGE, OBJC_REGISTERED, REACT_NATIVE_UNITS, REACT_NATIVE_INCLUDE_ROOTS, REACT_NATIVE_OBJC_UNITS, REACT_NATIVE_OBJC_VERSIONED_UNITS, REACT_NATIVE_HEADER_DIRS, REACT_NATIVE_BARE_HEADER_DIRS, DECLARED_MODULE_NAME, EXPORTED_MODULE, sha2563, podspecList, reactNativePods, reactNativePod, versionParts, iosOf, JS_CALL_INVOKER, FABRIC_SHADOW_HANDLE_HOST, FABRIC_HOST_INCLUDES, FABRIC_HOST_PAPER_INCLUDES, PAPER_UIKIT_BRIDGE_SWIFT;
104647
104662
  var init_turbo_source = __esm({
104648
104663
  "src/turbo-source.ts"() {
104649
104664
  "use strict";
104650
- import_node_crypto73 = require("node:crypto");
104665
+ import_node_crypto72 = require("node:crypto");
104651
104666
  import_node_fs118 = __toESM(require("node:fs"), 1);
104652
104667
  import_node_module14 = require("node:module");
104653
104668
  import_node_path121 = __toESM(require("node:path"), 1);
@@ -104777,7 +104792,7 @@ var init_turbo_source = __esm({
104777
104792
  ];
104778
104793
  DECLARED_MODULE_NAME = /\bName\(\s*"(\w+)"\s*\)/g;
104779
104794
  EXPORTED_MODULE = /\bRCT_(?:EXPORT_MODULE(?:_NO_LOAD)?|EXTERN_MODULE)\s*\(\s*(\w*)/g;
104780
- sha2564 = (data) => (0, import_node_crypto73.createHash)("sha256").update(data).digest("hex");
104795
+ sha2563 = (data) => (0, import_node_crypto72.createHash)("sha256").update(data).digest("hex");
104781
104796
  podspecList = podspecAttribute;
104782
104797
  reactNativePods = /* @__PURE__ */ new Set([
104783
104798
  "React",
@@ -105664,7 +105679,7 @@ function retainInstalledReactNativeDeclarations(snapshot, options2, skipped, cor
105664
105679
  }
105665
105680
  async function prepareTurboCompileInput(options2) {
105666
105681
  await prepareTurboSourceDependencies(options2.reactNativeRoot);
105667
- const key2 = (0, import_node_crypto74.createHash)("sha256").update(options2.providers.map(({ root }) => import_node_fs119.default.realpathSync(root)).join("\0")).update("\0").update(import_node_fs119.default.realpathSync(options2.moduleRoot)).digest("hex");
105682
+ const key2 = (0, import_node_crypto73.createHash)("sha256").update(options2.providers.map(({ root }) => import_node_fs119.default.realpathSync(root)).join("\0")).update("\0").update(import_node_fs119.default.realpathSync(options2.moduleRoot)).digest("hex");
105668
105683
  const scratch2 = import_node_path122.default.join(import_node_os26.default.tmpdir(), "peach-turbo-swift", key2);
105669
105684
  import_node_fs119.default.mkdirSync(scratch2, { recursive: true });
105670
105685
  const codegenDir = import_node_fs119.default.mkdtempSync(import_node_path122.default.join(scratch2, "codegen-"));
@@ -105906,11 +105921,11 @@ async function compileTurboModule(options2) {
105906
105921
  collection
105907
105922
  };
105908
105923
  }
105909
- var import_node_crypto74, import_node_fs119, import_node_module15, import_node_os26, import_node_path122;
105924
+ var import_node_crypto73, import_node_fs119, import_node_module15, import_node_os26, import_node_path122;
105910
105925
  var init_turbo_compile = __esm({
105911
105926
  "src/turbo-compile.ts"() {
105912
105927
  "use strict";
105913
- import_node_crypto74 = require("node:crypto");
105928
+ import_node_crypto73 = require("node:crypto");
105914
105929
  import_node_fs119 = __toESM(require("node:fs"), 1);
105915
105930
  import_node_module15 = require("node:module");
105916
105931
  import_node_os26 = __toESM(require("node:os"), 1);
@@ -106110,8 +106125,8 @@ function reactNativeCoreEntry(reactNativeRoot, moduleRoot, mode) {
106110
106125
  );
106111
106126
  if (!isRecord(manifest) || typeof manifest.version !== "string")
106112
106127
  throw new Error(`${reactNativeRoot}: react-native has no version`);
106113
- const headers = (0, import_node_crypto75.createHash)("sha256");
106114
- const sources = (0, import_node_crypto75.createHash)("sha256");
106128
+ const headers = (0, import_node_crypto74.createHash)("sha256");
106129
+ const sources = (0, import_node_crypto74.createHash)("sha256");
106115
106130
  const walk4 = (relative4) => {
106116
106131
  for (const file of import_node_fs121.default.readdirSync(import_node_path124.default.join(reactNativeRoot, relative4), { withFileTypes: true }).sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0)) {
106117
106132
  if (file.name === "node_modules" || file.name.startsWith(".")) continue;
@@ -106218,7 +106233,7 @@ function linkReactNativeCore(collection, core, moduleRoot) {
106218
106233
  const file = import_node_path124.default.join(
106219
106234
  cacheDir(),
106220
106235
  "native-archives",
106221
- `${(0, import_node_crypto75.createHash)("sha256").update(data).digest("hex")}.a`
106236
+ `${(0, import_node_crypto74.createHash)("sha256").update(data).digest("hex")}.a`
106222
106237
  );
106223
106238
  import_node_fs121.default.mkdirSync(import_node_path124.default.dirname(file), { recursive: true });
106224
106239
  if (!import_node_fs121.default.existsSync(file)) import_node_fs121.default.writeFileSync(file, Buffer.from(data, "base64"));
@@ -106228,11 +106243,11 @@ function linkReactNativeCore(collection, core, moduleRoot) {
106228
106243
  }
106229
106244
  }
106230
106245
  }
106231
- var import_node_crypto75, import_node_fs121, import_node_module16, import_node_path124, import_node_util16, recipe, strings3, building;
106246
+ var import_node_crypto74, import_node_fs121, import_node_module16, import_node_path124, import_node_util16, recipe, strings3, building;
106232
106247
  var init_react_native_core = __esm({
106233
106248
  "src/react-native-core.ts"() {
106234
106249
  "use strict";
106235
- import_node_crypto75 = require("node:crypto");
106250
+ import_node_crypto74 = require("node:crypto");
106236
106251
  import_node_fs121 = __toESM(require("node:fs"), 1);
106237
106252
  import_node_module16 = require("node:module");
106238
106253
  import_node_path124 = __toESM(require("node:path"), 1);
@@ -106263,11 +106278,11 @@ async function trunkSpecification(lockFile, root, version2, checksum) {
106263
106278
  "specifications",
106264
106279
  `${checksum}.json`
106265
106280
  );
106266
- const sha1 = (value) => (0, import_node_crypto76.createHash)("sha1").update(value).digest("hex");
106281
+ const sha1 = (value) => (0, import_node_crypto75.createHash)("sha1").update(value).digest("hex");
106267
106282
  let text7;
106268
106283
  if (import_node_fs122.default.existsSync(file)) text7 = import_node_fs122.default.readFileSync(file, "utf8");
106269
106284
  else {
106270
- const shard2 = (0, import_node_crypto76.createHash)("md5").update(root).digest("hex").slice(0, 3).split("").join("/");
106285
+ const shard2 = (0, import_node_crypto75.createHash)("md5").update(root).digest("hex").slice(0, 3).split("").join("/");
106271
106286
  const specPath = `Specs/${shard2}/${root}/${version2}/${root}.podspec.json`;
106272
106287
  const response = await fetch(`https://cdn.cocoapods.org/${specPath}`);
106273
106288
  if (!response.ok)
@@ -106396,7 +106411,7 @@ async function collectSwiftSourcePods(lockFile, modules, moduleRoot, headerModul
106396
106411
  "end",
106397
106412
  ""
106398
106413
  ].join("\n");
106399
- const key2 = (0, import_node_crypto76.createHash)("sha256").update(project).update(podfile).update(JSON.stringify([...selected].sort(([a], [b]) => a.localeCompare(b)))).update(
106414
+ const key2 = (0, import_node_crypto75.createHash)("sha256").update(project).update(podfile).update(JSON.stringify([...selected].sort(([a], [b]) => a.localeCompare(b)))).update(
106400
106415
  JSON.stringify(
106401
106416
  Object.entries(specificationChecksums).sort(([a], [b]) => a.localeCompare(b))
106402
106417
  )
@@ -106465,11 +106480,11 @@ async function collectSwiftSourcePods(lockFile, modules, moduleRoot, headerModul
106465
106480
  );
106466
106481
  });
106467
106482
  }
106468
- var import_node_crypto76, import_node_fs122, import_node_path125, APP, record4, project, podModuleName;
106483
+ var import_node_crypto75, import_node_fs122, import_node_path125, APP, record4, project, podModuleName;
106469
106484
  var init_swift_source_pods = __esm({
106470
106485
  "src/swift-source-pods.ts"() {
106471
106486
  "use strict";
106472
- import_node_crypto76 = require("node:crypto");
106487
+ import_node_crypto75 = require("node:crypto");
106473
106488
  import_node_fs122 = __toESM(require("node:fs"), 1);
106474
106489
  import_node_path125 = __toESM(require("node:path"), 1);
106475
106490
  init_browser();
@@ -107150,7 +107165,7 @@ async function prepareNitroCompileInput(options2) {
107150
107165
  input.libraries ??= {};
107151
107166
  input.libraries[nitroProviderTarget({ name: name3 })] = library;
107152
107167
  }
107153
- const key2 = (0, import_node_crypto77.createHash)("sha256").update(
107168
+ const key2 = (0, import_node_crypto76.createHash)("sha256").update(
107154
107169
  collection.providers.map(({ root, hybridObjects }) => `${root}\0${hybridObjects.join(",")}`).join("\0")
107155
107170
  ).update("\0").update(import_node_fs123.default.realpathSync(options2.moduleRoot)).update("\0").update(options2.configuration).digest("hex");
107156
107171
  const packagePath = import_node_path126.default.join(import_node_os27.default.tmpdir(), "peach-nitro-swift", key2, `p${process.pid}`);
@@ -107206,11 +107221,11 @@ function nitrogenGeneratedSources(podDirectory) {
107206
107221
  ...sources(import_node_path126.default.join(generated, "ios"), /\.(h|hpp|c|cpp|mm|swift)$/)
107207
107222
  ];
107208
107223
  }
107209
- var import_node_crypto77, import_node_fs123, import_node_os27, import_node_path126, BUNDLED_CXX_NAMESPACES, REACT_INCLUDE_PATTERN, REACT_LINKING_PATTERN, REACT_VERSION_PATTERN, RN_HEADER_DIR_MAP, RN_COMMON_ROOTS;
107224
+ var import_node_crypto76, import_node_fs123, import_node_os27, import_node_path126, BUNDLED_CXX_NAMESPACES, REACT_INCLUDE_PATTERN, REACT_LINKING_PATTERN, REACT_VERSION_PATTERN, RN_HEADER_DIR_MAP, RN_COMMON_ROOTS;
107210
107225
  var init_nitro_compile = __esm({
107211
107226
  "src/nitro-compile.ts"() {
107212
107227
  "use strict";
107213
- import_node_crypto77 = require("node:crypto");
107228
+ import_node_crypto76 = require("node:crypto");
107214
107229
  import_node_fs123 = __toESM(require("node:fs"), 1);
107215
107230
  import_node_os27 = __toESM(require("node:os"), 1);
107216
107231
  import_node_path126 = __toESM(require("node:path"), 1);
@@ -107287,11 +107302,11 @@ var init_nitro_compile = __esm({
107287
107302
  });
107288
107303
 
107289
107304
  // src/nitro-compiler-digest.ts
107290
- var import_node_crypto78, import_node_fs124, import_node_path127;
107305
+ var import_node_crypto77, import_node_fs124, import_node_path127;
107291
107306
  var init_nitro_compiler_digest = __esm({
107292
107307
  "src/nitro-compiler-digest.ts"() {
107293
107308
  "use strict";
107294
- import_node_crypto78 = require("node:crypto");
107309
+ import_node_crypto77 = require("node:crypto");
107295
107310
  import_node_fs124 = require("node:fs");
107296
107311
  import_node_path127 = __toESM(require("node:path"), 1);
107297
107312
  init_swift_compiler_digest();
@@ -107312,7 +107327,7 @@ function hashPackageTree(root, options2) {
107312
107327
  }
107313
107328
  };
107314
107329
  walk4(root, "");
107315
- const hash = (0, import_node_crypto79.createHash)("sha256");
107330
+ const hash = (0, import_node_crypto78.createHash)("sha256");
107316
107331
  return (async () => {
107317
107332
  for (let start = 0; start < files2.length; start += READ_AHEAD) {
107318
107333
  const batch = files2.slice(start, start + READ_AHEAD);
@@ -107327,11 +107342,11 @@ function packageTreeDigest(root) {
107327
107342
  compareNames: (left, right) => left.localeCompare(right)
107328
107343
  });
107329
107344
  }
107330
- var import_node_crypto79, import_node_fs125, import_promises12, import_node_path128, READ_AHEAD;
107345
+ var import_node_crypto78, import_node_fs125, import_promises12, import_node_path128, READ_AHEAD;
107331
107346
  var init_package_tree_digest = __esm({
107332
107347
  "src/package-tree-digest.ts"() {
107333
107348
  "use strict";
107334
- import_node_crypto79 = require("node:crypto");
107349
+ import_node_crypto78 = require("node:crypto");
107335
107350
  import_node_fs125 = require("node:fs");
107336
107351
  import_promises12 = require("node:fs/promises");
107337
107352
  import_node_path128 = require("node:path");
@@ -107470,7 +107485,7 @@ var init_nitro_superset = __esm({
107470
107485
  init_nitroContract();
107471
107486
  init_swift_standin_digest();
107472
107487
  NITRO_SUPERSET_ENTRY_NAME = "superset";
107473
- NITRO_COMPILER_DIGEST = true ? "474b8b30de1650e72f19b75c50a0db7090ddaffdf79752b283fb389946014fa7" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
107488
+ NITRO_COMPILER_DIGEST = true ? "9e51ce132e701d77aa700249b4788f66b041f8f00fbd0bac84d9a3c8ed3a7569" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
107474
107489
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
107475
107490
  nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
107476
107491
  published = /* @__PURE__ */ new Map();
@@ -108080,7 +108095,7 @@ async function compilePreparedOneSDKApp(appRoot, preparedRoot, origin, moduleRoo
108080
108095
  const packagePath = import_node_path131.default.join(
108081
108096
  swiftCacheDir(),
108082
108097
  "peach-one-sdk-swift",
108083
- (0, import_node_crypto80.createHash)("sha256").update(import_node_fs128.default.realpathSync(appRoot)).digest("hex").slice(0, 16),
108098
+ (0, import_node_crypto79.createHash)("sha256").update(import_node_fs128.default.realpathSync(appRoot)).digest("hex").slice(0, 16),
108084
108099
  "sdk"
108085
108100
  );
108086
108101
  const bindingFlags = optimize ? '["-suppress-warnings"]' : '["-suppress-warnings", "-Onone", "-no-whole-module-optimization"]';
@@ -108127,11 +108142,11 @@ async function buildOneSDKBundle(appRoot) {
108127
108142
  assets: await compiledModuleAssets(compiled.artifact)
108128
108143
  };
108129
108144
  }
108130
- var import_node_crypto80, import_node_fs128, import_node_path131, ONE_SDK_ROUTE, handleOneSDKRequest;
108145
+ var import_node_crypto79, import_node_fs128, import_node_path131, ONE_SDK_ROUTE, handleOneSDKRequest;
108131
108146
  var init_one_sdk_bundle = __esm({
108132
108147
  "src/one-sdk-bundle.ts"() {
108133
108148
  "use strict";
108134
- import_node_crypto80 = require("node:crypto");
108149
+ import_node_crypto79 = require("node:crypto");
108135
108150
  import_node_fs128 = __toESM(require("node:fs"), 1);
108136
108151
  import_node_path131 = __toESM(require("node:path"), 1);
108137
108152
  init_one_sdk_shard();
@@ -108174,13 +108189,13 @@ var init_expo_eager_seam_contract = __esm({
108174
108189
 
108175
108190
  // src/expo-native-compiler-digest.ts
108176
108191
  function expoNativeCompilerDigestValue() {
108177
- return true ? "c9950c3dbdb6ca5891145f8c4133c9b62e89b35f62d9343e8d7ef410cda838f5" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
108192
+ return true ? "d396bac9636107aeb95f7657c77fa10e270f50f4ac8935e007b088b2ef65dfc8" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
108178
108193
  }
108179
- var import_node_crypto81;
108194
+ var import_node_crypto80;
108180
108195
  var init_expo_native_compiler_digest = __esm({
108181
108196
  "src/expo-native-compiler-digest.ts"() {
108182
108197
  "use strict";
108183
- import_node_crypto81 = require("node:crypto");
108198
+ import_node_crypto80 = require("node:crypto");
108184
108199
  init_react_native_core_digest();
108185
108200
  init_swift_compiler_digest();
108186
108201
  init_swift_standin_digest();
@@ -108189,7 +108204,7 @@ var init_expo_native_compiler_digest = __esm({
108189
108204
 
108190
108205
  // src/expo-discovery-cache.ts
108191
108206
  function peachPin() {
108192
- return (0, import_node_crypto82.createHash)("sha256").update(
108207
+ return (0, import_node_crypto81.createHash)("sha256").update(
108193
108208
  `${FORMAT}\0${expoNativeCompilerDigestValue()}\0${swiftNativePin().distribution.id}\0`
108194
108209
  ).update(JSON.stringify([...EXPO_EAGER_NATIVE_VIEWS])).update(JSON.stringify([...peachAnsweredNativePackages()].sort())).digest("hex");
108195
108210
  }
@@ -108203,7 +108218,7 @@ function stable(value) {
108203
108218
  }
108204
108219
  async function expoDiscoveryKey(options2) {
108205
108220
  const { root, hash } = await hashExpoWorkspace(options2.appRoot, options2.signal);
108206
- const key2 = (0, import_node_crypto82.createHash)("sha256").update(`${peachPin()}\0${hash}\0`).update(`${stable(JSON.parse(options2.searchText))}\0`).update(`${stable(options2.configuration)}\0`).update(stable(JSON.parse(options2.resolveText))).digest("hex");
108221
+ const key2 = (0, import_node_crypto81.createHash)("sha256").update(`${peachPin()}\0${hash}\0`).update(`${stable(JSON.parse(options2.searchText))}\0`).update(`${stable(options2.configuration)}\0`).update(stable(JSON.parse(options2.resolveText))).digest("hex");
108207
108222
  return { key: key2, root };
108208
108223
  }
108209
108224
  function expoDiscoveryCacheDir() {
@@ -108274,7 +108289,7 @@ function readExpoDiscovery(key2) {
108274
108289
  if (typeof parsed2.archive !== "string" || !isDigest(parsed2.archive)) return void 0;
108275
108290
  const archive = import_node_path132.default.join(expoDiscoveryCacheDir(), "blobs", `${parsed2.archive}.zst`);
108276
108291
  const bytes = import_node_fs129.default.readFileSync(archive);
108277
- if ((0, import_node_crypto82.createHash)("sha256").update(bytes).digest("hex") !== parsed2.archive)
108292
+ if ((0, import_node_crypto81.createHash)("sha256").update(bytes).digest("hex") !== parsed2.archive)
108278
108293
  return void 0;
108279
108294
  const bodies = (0, import_node_zlib8.zstdDecompressSync)(bytes);
108280
108295
  const decoded = /* @__PURE__ */ new Map();
@@ -108348,7 +108363,7 @@ function stampedFileHash(file) {
108348
108363
  const stamp = [stat.dev, stat.ino, stat.size, stat.mtimeNs, stat.ctimeNs].join(":");
108349
108364
  const cached2 = fileHashes.get(file);
108350
108365
  if (cached2?.stamp === stamp) return cached2.checksum;
108351
- const checksum = (0, import_node_crypto82.createHash)("sha256").update(import_node_fs129.default.readFileSync(file)).digest("hex");
108366
+ const checksum = (0, import_node_crypto81.createHash)("sha256").update(import_node_fs129.default.readFileSync(file)).digest("hex");
108352
108367
  fileHashes.set(file, { stamp, checksum });
108353
108368
  fileHashesChanged = true;
108354
108369
  return checksum;
@@ -108357,7 +108372,7 @@ function saveFileHashes() {
108357
108372
  if (!fileHashesChanged) return;
108358
108373
  fileHashesChanged = false;
108359
108374
  const target = fileHashesPath();
108360
- const temporary = `${target}.${process.pid}.${(0, import_node_crypto82.randomUUID)()}.tmp`;
108375
+ const temporary = `${target}.${process.pid}.${(0, import_node_crypto81.randomUUID)()}.tmp`;
108361
108376
  try {
108362
108377
  import_node_fs129.default.mkdirSync(import_node_path132.default.dirname(target), { recursive: true });
108363
108378
  import_node_fs129.default.writeFileSync(
@@ -108412,7 +108427,7 @@ function frameworkDigest(directory2, signal) {
108412
108427
  if (target !== root && !target.startsWith(`${root}${import_node_path132.default.sep}`))
108413
108428
  throw new Error(`framework link escapes its tree: ${relative4}`);
108414
108429
  }
108415
- return (0, import_node_crypto82.createHash)("sha256").update(JSON.stringify([...entries2])).digest("hex");
108430
+ return (0, import_node_crypto81.createHash)("sha256").update(JSON.stringify([...entries2])).digest("hex");
108416
108431
  }
108417
108432
  function rewritePreparedPaths(options2) {
108418
108433
  const { units, sourceRoot, preparedRoot, signal } = options2;
@@ -108433,7 +108448,7 @@ function rewritePreparedPaths(options2) {
108433
108448
  return null;
108434
108449
  }
108435
108450
  if (!preparedBytes.equals(sourceBytes)) return null;
108436
- dependencies[sourceFile] = (0, import_node_crypto82.createHash)("sha256").update(sourceBytes).digest("hex");
108451
+ dependencies[sourceFile] = (0, import_node_crypto81.createHash)("sha256").update(sourceBytes).digest("hex");
108437
108452
  verifiedFiles.set(preparedFile, sourceFile);
108438
108453
  return sourceFile;
108439
108454
  };
@@ -108510,7 +108525,7 @@ function rewritePreparedPaths(options2) {
108510
108525
  portableDir = import_node_path132.default.join(parent, import_node_path132.default.basename(dir));
108511
108526
  if (!import_node_fs129.default.existsSync(portableDir)) {
108512
108527
  import_node_fs129.default.mkdirSync(parent, { recursive: true });
108513
- const tmp = import_node_path132.default.join(parent, `.${process.pid}.${(0, import_node_crypto82.randomUUID)()}.tmp`);
108528
+ const tmp = import_node_path132.default.join(parent, `.${process.pid}.${(0, import_node_crypto81.randomUUID)()}.tmp`);
108514
108529
  try {
108515
108530
  import_node_fs129.default.cpSync(dir, tmp, { recursive: true, verbatimSymlinks: true });
108516
108531
  if (frameworkDigest(tmp, signal) !== preparedDigest)
@@ -108539,7 +108554,7 @@ function writeExpoDiscovery(options2) {
108539
108554
  try {
108540
108555
  const dir = expoDiscoveryCacheDir();
108541
108556
  import_node_fs129.default.mkdirSync(dir, { recursive: true });
108542
- const tmp = import_node_path132.default.join(dir, `.${options2.key}.${process.pid}.${(0, import_node_crypto82.randomUUID)()}.tmp`);
108557
+ const tmp = import_node_path132.default.join(dir, `.${options2.key}.${process.pid}.${(0, import_node_crypto81.randomUUID)()}.tmp`);
108543
108558
  if (options2.units === null) {
108544
108559
  import_node_fs129.default.writeFileSync(
108545
108560
  tmp,
@@ -108602,8 +108617,8 @@ function writeExpoDiscovery(options2) {
108602
108617
  }
108603
108618
  );
108604
108619
  const contents2 = (0, import_node_zlib8.zstdCompressSync)(Buffer.concat(chunks, size2));
108605
- const archive = (0, import_node_crypto82.createHash)("sha256").update(contents2).digest("hex");
108606
- const temporary = import_node_path132.default.join(blobDir, "." + (0, import_node_crypto82.randomUUID)() + ".tmp");
108620
+ const archive = (0, import_node_crypto81.createHash)("sha256").update(contents2).digest("hex");
108621
+ const temporary = import_node_path132.default.join(blobDir, "." + (0, import_node_crypto81.randomUUID)() + ".tmp");
108607
108622
  try {
108608
108623
  import_node_fs129.default.writeFileSync(temporary, contents2);
108609
108624
  import_node_fs129.default.renameSync(temporary, import_node_path132.default.join(blobDir, `${archive}.zst`));
@@ -108630,11 +108645,11 @@ function writeExpoDiscovery(options2) {
108630
108645
  return error instanceof Error ? error.message : String(error);
108631
108646
  }
108632
108647
  }
108633
- var import_node_crypto82, import_node_fs129, import_node_path132, import_node_zlib8, FORMAT, EXPIRY_MS, ORPHAN_TEMPORARY_MS, strings4, stringRecord, isDigest, digestRecord, isBodyOffset, isBodyOffsets, sourceLocationLine, fileHashes, fileHashesLoaded, fileHashesChanged, MISSING_TREE;
108648
+ var import_node_crypto81, import_node_fs129, import_node_path132, import_node_zlib8, FORMAT, EXPIRY_MS, ORPHAN_TEMPORARY_MS, strings4, stringRecord, isDigest, digestRecord, isBodyOffset, isBodyOffsets, sourceLocationLine, fileHashes, fileHashesLoaded, fileHashesChanged, MISSING_TREE;
108634
108649
  var init_expo_discovery_cache = __esm({
108635
108650
  "src/expo-discovery-cache.ts"() {
108636
108651
  "use strict";
108637
- import_node_crypto82 = require("node:crypto");
108652
+ import_node_crypto81 = require("node:crypto");
108638
108653
  import_node_fs129 = __toESM(require("node:fs"), 1);
108639
108654
  import_node_path132 = __toESM(require("node:path"), 1);
108640
108655
  import_node_zlib8 = require("node:zlib");
@@ -108838,7 +108853,7 @@ async function expoNativeInputs(appRoot) {
108838
108853
  "swift-pin": JSON.stringify(swiftNativePin()),
108839
108854
  answered: JSON.stringify([...peachAnsweredNativePackages()].sort()),
108840
108855
  "pods-environment": JSON.stringify(reactNativePodsEnvironment()),
108841
- fingerprint: (0, import_node_crypto83.createHash)("sha256").update(lines.sort().join("\n")).digest("hex")
108856
+ fingerprint: (0, import_node_crypto82.createHash)("sha256").update(lines.sort().join("\n")).digest("hex")
108842
108857
  },
108843
108858
  packages
108844
108859
  };
@@ -108944,7 +108959,7 @@ async function prebuiltAppTarget(appRoot, signal, dependencies = "lockfile") {
108944
108959
  }
108945
108960
  function servedExpoSwift(appRoot, entry, app) {
108946
108961
  if (!entry.expoSwift) return null;
108947
- const rootId = `${(0, import_node_crypto83.createHash)("sha256").update(import_node_fs131.default.realpathSync(appRoot)).digest("hex")}/Expo`;
108962
+ const rootId = `${(0, import_node_crypto82.createHash)("sha256").update(import_node_fs131.default.realpathSync(appRoot)).digest("hex")}/Expo`;
108948
108963
  if (app.infoPlist === null) throw new Error("the prebuilt app target has no Info.plist");
108949
108964
  const installed = installedInfoPlist(app.infoPlist, entry.infoPlist);
108950
108965
  const infoPlist2 = Buffer.from(installed).toString("base64");
@@ -108972,11 +108987,11 @@ async function prebuiltExpoSwiftResult(appRoot, entry, signal) {
108972
108987
  await prebuiltAppTarget(appRoot, signal, "installed")
108973
108988
  );
108974
108989
  }
108975
- var import_node_crypto83, import_node_fs131, import_node_module19, import_node_path134, import_node_util17, EXPO_NATIVE_ENTRY_NAME, IDENTITY_SOURCE_SKIPS, expoNativeEntryUrl, isStringRecord, isPlistArray, published2, lookups, answers;
108990
+ var import_node_crypto82, import_node_fs131, import_node_module19, import_node_path134, import_node_util17, EXPO_NATIVE_ENTRY_NAME, IDENTITY_SOURCE_SKIPS, expoNativeEntryUrl, isStringRecord, isPlistArray, published2, lookups, answers;
108976
108991
  var init_expo_native_prebuilt = __esm({
108977
108992
  "src/expo-native-prebuilt.ts"() {
108978
108993
  "use strict";
108979
- import_node_crypto83 = require("node:crypto");
108994
+ import_node_crypto82 = require("node:crypto");
108980
108995
  import_node_fs131 = __toESM(require("node:fs"), 1);
108981
108996
  import_node_module19 = require("node:module");
108982
108997
  import_node_path134 = __toESM(require("node:path"), 1);
@@ -109593,7 +109608,7 @@ function exportedNames(moduleRoot, name3) {
109593
109608
  const modules = import_node_path136.default.join(moduleRoot, "modules");
109594
109609
  const module2 = import_node_path136.default.join(modules, `${name3}.swiftmodule`);
109595
109610
  if (!import_node_fs133.default.existsSync(module2)) return /* @__PURE__ */ new Set();
109596
- const key2 = (0, import_node_crypto84.createHash)("sha256").update(import_node_fs133.default.readFileSync(module2)).digest("hex");
109611
+ const key2 = (0, import_node_crypto83.createHash)("sha256").update(import_node_fs133.default.readFileSync(module2)).digest("hex");
109597
109612
  const directory2 = import_node_path136.default.join(swiftCacheDir(), "swift-public-names");
109598
109613
  const receipt = import_node_path136.default.join(directory2, `${key2}.json`);
109599
109614
  if (import_node_fs133.default.existsSync(receipt)) {
@@ -109676,12 +109691,12 @@ function clangTypeOwnership(moduleRoot, module2) {
109676
109691
  }
109677
109692
  );
109678
109693
  }
109679
- var import_node_child_process64, import_node_crypto84, import_node_fs133, import_node_path136, blockTypedef, enumTypedef, enumConstant, swiftPrivate;
109694
+ var import_node_child_process64, import_node_crypto83, import_node_fs133, import_node_path136, blockTypedef, enumTypedef, enumConstant, swiftPrivate;
109680
109695
  var init_swift_clang_type_ownership = __esm({
109681
109696
  "src/swift-clang-type-ownership.ts"() {
109682
109697
  "use strict";
109683
109698
  import_node_child_process64 = require("node:child_process");
109684
- import_node_crypto84 = require("node:crypto");
109699
+ import_node_crypto83 = require("node:crypto");
109685
109700
  import_node_fs133 = __toESM(require("node:fs"), 1);
109686
109701
  import_node_path136 = __toESM(require("node:path"), 1);
109687
109702
  init_is_record();
@@ -111349,7 +111364,7 @@ function targetSettings2(units) {
111349
111364
  }
111350
111365
  function oneSDKStamp(oneSDK) {
111351
111366
  if (!oneSDK) return "";
111352
- const hash = (0, import_node_crypto85.createHash)("sha256");
111367
+ const hash = (0, import_node_crypto84.createHash)("sha256");
111353
111368
  for (const files2 of [oneSDK.targets, oneSDK.entry])
111354
111369
  for (const [name3, source] of [...files2].sort(([a], [b]) => a.localeCompare(b)))
111355
111370
  hash.update(`${name3}\0${source}\0`);
@@ -111400,7 +111415,7 @@ ${bridgeModules.length ? "import React\n" : ""}${oneSDK ? "import One\nimport On
111400
111415
  `;
111401
111416
  }
111402
111417
  function expoSwiftPreparedKey(base2, units, reactProviderStamp) {
111403
- const hash = (0, import_node_crypto85.createHash)("sha256");
111418
+ const hash = (0, import_node_crypto84.createHash)("sha256");
111404
111419
  hash.update(base2);
111405
111420
  hash.update(reactProviderStamp);
111406
111421
  for (const unit2 of units) {
@@ -111773,8 +111788,8 @@ async function compileExpoSwiftModulesTraced(root, base2, publishArtifact, optio
111773
111788
  }
111774
111789
  return provider;
111775
111790
  })() : void 0;
111776
- const reactProviderStamp = reactProvider ? (0, import_node_crypto85.createHash)("sha256").update(JSON.stringify(reactProvider)).digest("hex") : "";
111777
- const key2 = (0, import_node_crypto85.createHash)("sha256").update(import_node_fs134.default.realpathSync(root)).digest("hex");
111791
+ const reactProviderStamp = reactProvider ? (0, import_node_crypto84.createHash)("sha256").update(JSON.stringify(reactProvider)).digest("hex") : "";
111792
+ const key2 = (0, import_node_crypto84.createHash)("sha256").update(import_node_fs134.default.realpathSync(root)).digest("hex");
111778
111793
  const unitContentStamp = (unit2) => sourceContentStamp(expoSwiftPackage(key2, unit2.moduleId), module2.root) + (unit2.reactNativeProvider ? `:${reactProviderStamp}` : "");
111779
111794
  const failures = /* @__PURE__ */ new Map();
111780
111795
  const failureRecords = /* @__PURE__ */ new Map();
@@ -112068,7 +112083,7 @@ async function compileExpoSwiftModulesTraced(root, base2, publishArtifact, optio
112068
112083
  await check2(part[0]);
112069
112084
  continue;
112070
112085
  }
112071
- const name3 = (0, import_node_crypto85.createHash)("sha256").update(part.map((unit2) => unit2.moduleId).join("\0")).digest("hex").slice(0, 16);
112086
+ const name3 = (0, import_node_crypto84.createHash)("sha256").update(part.map((unit2) => unit2.moduleId).join("\0")).digest("hex").slice(0, 16);
112072
112087
  report(`linking ${part.length} namespaces to isolate failures`);
112073
112088
  try {
112074
112089
  const built2 = await link(part, `isolate-${name3}`);
@@ -112141,13 +112156,13 @@ async function compileExpoSwiftModulesTraced(root, base2, publishArtifact, optio
112141
112156
  throw failure2;
112142
112157
  }
112143
112158
  }
112144
- var import_node_async_hooks4, import_node_child_process65, import_node_crypto85, import_node_fs134, import_node_module21, import_node_os29, import_node_path137, import_node_url4, import_node_util18, run11, scriptEnv, EXPO_SWIFT_ENTRY, WITNESS_BATCH, traceStore, discoveryCache, preparedCache, savedFs, ignoredRoots, ownTemporaryRoots, EXPO_MODULE_SCAN_TIMEOUT_MS, preparedExpoSwift, openPreparations, ExpoSwiftLinkRefusal;
112159
+ var import_node_async_hooks4, import_node_child_process65, import_node_crypto84, import_node_fs134, import_node_module21, import_node_os29, import_node_path137, import_node_url4, import_node_util18, run11, scriptEnv, EXPO_SWIFT_ENTRY, WITNESS_BATCH, traceStore, discoveryCache, preparedCache, savedFs, ignoredRoots, ownTemporaryRoots, EXPO_MODULE_SCAN_TIMEOUT_MS, preparedExpoSwift, openPreparations, ExpoSwiftLinkRefusal;
112145
112160
  var init_expo_swift_host = __esm({
112146
112161
  "src/expo-swift-host.ts"() {
112147
112162
  "use strict";
112148
112163
  import_node_async_hooks4 = require("node:async_hooks");
112149
112164
  import_node_child_process65 = require("node:child_process");
112150
- import_node_crypto85 = require("node:crypto");
112165
+ import_node_crypto84 = require("node:crypto");
112151
112166
  import_node_fs134 = __toESM(require("node:fs"), 1);
112152
112167
  import_node_module21 = require("node:module");
112153
112168
  import_node_os29 = __toESM(require("node:os"), 1);
@@ -112472,7 +112487,7 @@ async function resolveAndroidGradleSources(request) {
112472
112487
  const parent = import_node_path140.default.join(kotlinHome(), "gradle-sources");
112473
112488
  import_node_fs136.default.mkdirSync(parent, { recursive: true });
112474
112489
  const work = import_node_fs136.default.mkdtempSync(import_node_path140.default.join(parent, ".query-"));
112475
- const task = `peachAndroidSources${(0, import_node_crypto86.randomBytes)(8).toString("hex")}`;
112490
+ const task = `peachAndroidSources${(0, import_node_crypto85.randomBytes)(8).toString("hex")}`;
112476
112491
  const script = import_node_path140.default.join(work, "sources.gradle");
112477
112492
  const encoded = Buffer.from(
112478
112493
  JSON.stringify({
@@ -112624,12 +112639,12 @@ function readDependencySources(value) {
112624
112639
  };
112625
112640
  });
112626
112641
  }
112627
- var import_node_child_process66, import_node_crypto86, import_node_fs136, import_node_path140, import_node_util19, run12, modelQuery;
112642
+ var import_node_child_process66, import_node_crypto85, import_node_fs136, import_node_path140, import_node_util19, run12, modelQuery;
112628
112643
  var init_android_gradle_sources = __esm({
112629
112644
  "src/android-gradle-sources.ts"() {
112630
112645
  "use strict";
112631
112646
  import_node_child_process66 = require("node:child_process");
112632
- import_node_crypto86 = require("node:crypto");
112647
+ import_node_crypto85 = require("node:crypto");
112633
112648
  import_node_fs136 = __toESM(require("node:fs"), 1);
112634
112649
  import_node_path140 = __toESM(require("node:path"), 1);
112635
112650
  import_node_util19 = require("node:util");
@@ -113017,7 +113032,7 @@ var init_android_bridge_packages = __esm({
113017
113032
 
113018
113033
  // src/java-module-abi.ts
113019
113034
  async function readJavaModuleSpecs(files2, sdkRoot, toolchain) {
113020
- const digest3 = (0, import_node_crypto87.createHash)("sha256");
113035
+ const digest3 = (0, import_node_crypto86.createHash)("sha256");
113021
113036
  const parent = import_node_path142.default.join(kotlinHome(), "java-specs");
113022
113037
  import_node_fs138.default.mkdirSync(parent, { recursive: true });
113023
113038
  const work = import_node_fs138.default.mkdtempSync(import_node_path142.default.join(parent, ".read-"));
@@ -113114,12 +113129,12 @@ async function compileJavaModuleAbi(input) {
113114
113129
  );
113115
113130
  return library;
113116
113131
  }
113117
- var import_node_child_process67, import_node_crypto87, import_node_fs138, import_node_path142, import_node_util20, run13, JAVA_BINDINGS_INITIALIZER;
113132
+ var import_node_child_process67, import_node_crypto86, import_node_fs138, import_node_path142, import_node_util20, run13, JAVA_BINDINGS_INITIALIZER;
113118
113133
  var init_java_module_abi = __esm({
113119
113134
  "src/java-module-abi.ts"() {
113120
113135
  "use strict";
113121
113136
  import_node_child_process67 = require("node:child_process");
113122
- import_node_crypto87 = require("node:crypto");
113137
+ import_node_crypto86 = require("node:crypto");
113123
113138
  import_node_fs138 = __toESM(require("node:fs"), 1);
113124
113139
  import_node_path142 = __toESM(require("node:path"), 1);
113125
113140
  import_node_util20 = require("node:util");
@@ -113227,17 +113242,17 @@ function verifyKotlinSdkDirectory(root, compiler) {
113227
113242
  if (!stat.isFile() || stat.nlink !== 1)
113228
113243
  throw new Error(`Kotlin SDK binary is not a regular file: ${name3}`);
113229
113244
  const bytes = import_node_fs139.default.readFileSync(target);
113230
- if (bytes.length !== expected.bytes || (0, import_node_crypto88.createHash)("sha256").update(bytes).digest("hex") !== expected.sha256)
113245
+ if (bytes.length !== expected.bytes || (0, import_node_crypto87.createHash)("sha256").update(bytes).digest("hex") !== expected.sha256)
113231
113246
  throw new Error(`Kotlin SDK binary differs from its manifest: ${name3}`);
113232
113247
  }
113233
113248
  return manifest;
113234
113249
  }
113235
113250
  async function installKotlinSdkArchive(archive, compiler) {
113236
- const sha2565 = (0, import_node_crypto88.createHash)("sha256").update(archive).digest("hex");
113251
+ const sha2564 = (0, import_node_crypto87.createHash)("sha256").update(archive).digest("hex");
113237
113252
  const parent = import_node_path143.default.join(kotlinHome(), "sdk");
113238
- const root = import_node_path143.default.join(parent, sha2565);
113253
+ const root = import_node_path143.default.join(parent, sha2564);
113239
113254
  if (import_node_fs139.default.existsSync(root))
113240
- return { root, sha256: sha2565, manifest: verifyKotlinSdkDirectory(root, compiler) };
113255
+ return { root, sha256: sha2564, manifest: verifyKotlinSdkDirectory(root, compiler) };
113241
113256
  import_node_fs139.default.mkdirSync(parent, { recursive: true });
113242
113257
  const work = import_node_fs139.default.mkdtempSync(import_node_path143.default.join(parent, ".install-"));
113243
113258
  try {
@@ -113257,17 +113272,17 @@ async function installKotlinSdkArchive(archive, compiler) {
113257
113272
  if (!import_node_fs139.default.existsSync(root)) throw error;
113258
113273
  verifyKotlinSdkDirectory(root, compiler);
113259
113274
  }
113260
- return { root, sha256: sha2565, manifest };
113275
+ return { root, sha256: sha2564, manifest };
113261
113276
  } finally {
113262
113277
  import_node_fs139.default.rmSync(work, { recursive: true, force: true });
113263
113278
  }
113264
113279
  }
113265
- var import_node_child_process68, import_node_crypto88, import_node_fs139, import_node_path143, import_node_util21, run14;
113280
+ var import_node_child_process68, import_node_crypto87, import_node_fs139, import_node_path143, import_node_util21, run14;
113266
113281
  var init_kotlin_sdk = __esm({
113267
113282
  "src/kotlin-sdk.ts"() {
113268
113283
  "use strict";
113269
113284
  import_node_child_process68 = require("node:child_process");
113270
- import_node_crypto88 = require("node:crypto");
113285
+ import_node_crypto87 = require("node:crypto");
113271
113286
  import_node_fs139 = __toESM(require("node:fs"), 1);
113272
113287
  import_node_path143 = __toESM(require("node:path"), 1);
113273
113288
  import_node_util21 = require("node:util");
@@ -113373,7 +113388,7 @@ function peachKotlinModuleRoot() {
113373
113388
  if (!IS_STANDALONE) return import_node_path145.default.join(peachsimPackageRoot(), "kotlin");
113374
113389
  if (installedRoot) return installedRoot;
113375
113390
  const files2 = JSON.parse(__PEACH_BUNDLED_KOTLIN__);
113376
- const digest3 = (0, import_node_crypto89.createHash)("sha256").update(__PEACH_BUNDLED_KOTLIN__).digest("hex");
113391
+ const digest3 = (0, import_node_crypto88.createHash)("sha256").update(__PEACH_BUNDLED_KOTLIN__).digest("hex");
113377
113392
  const parent = import_node_path145.default.join(rnxHomeDir(), "kotlin", "modules");
113378
113393
  const root = import_node_path145.default.join(parent, digest3);
113379
113394
  import_node_fs141.default.mkdirSync(parent, { recursive: true });
@@ -113402,11 +113417,11 @@ function peachKotlinModuleRoot() {
113402
113417
  installedRoot = root;
113403
113418
  return root;
113404
113419
  }
113405
- var import_node_crypto89, import_node_fs141, import_node_path145, installedRoot;
113420
+ var import_node_crypto88, import_node_fs141, import_node_path145, installedRoot;
113406
113421
  var init_kotlin_module = __esm({
113407
113422
  "src/kotlin-module.ts"() {
113408
113423
  "use strict";
113409
- import_node_crypto89 = require("node:crypto");
113424
+ import_node_crypto88 = require("node:crypto");
113410
113425
  import_node_fs141 = __toESM(require("node:fs"), 1);
113411
113426
  import_node_path145 = __toESM(require("node:path"), 1);
113412
113427
  init_standalone();
@@ -113769,7 +113784,7 @@ function zipSources(bytes, where) {
113769
113784
  return entries2;
113770
113785
  }
113771
113786
  function extract(bytes, where) {
113772
- const key2 = (0, import_node_crypto90.createHash)("sha256").update(bytes).digest("hex");
113787
+ const key2 = (0, import_node_crypto89.createHash)("sha256").update(bytes).digest("hex");
113773
113788
  const cached2 = pending.get(key2);
113774
113789
  if (cached2) return cached2;
113775
113790
  const request = (async () => {
@@ -113818,11 +113833,11 @@ function readSourcesJar(archive, where) {
113818
113833
  function readMavenSourcesArchive(archive) {
113819
113834
  return extract(readSourcesJar(archive, archive), archive);
113820
113835
  }
113821
- var import_node_crypto90, import_node_fs143, import_node_os30, import_node_path147, import_node_zlib9, pending, MAX_SOURCES_JAR_BYTES, MAX_SOURCE_ENTRY_BYTES, MAX_TOTAL_EXTRACTED_BYTES;
113836
+ var import_node_crypto89, import_node_fs143, import_node_os30, import_node_path147, import_node_zlib9, pending, MAX_SOURCES_JAR_BYTES, MAX_SOURCE_ENTRY_BYTES, MAX_TOTAL_EXTRACTED_BYTES;
113822
113837
  var init_kotlin_maven_sources = __esm({
113823
113838
  "src/kotlin-maven-sources.ts"() {
113824
113839
  "use strict";
113825
- import_node_crypto90 = require("node:crypto");
113840
+ import_node_crypto89 = require("node:crypto");
113826
113841
  import_node_fs143 = __toESM(require("node:fs"), 1);
113827
113842
  import_node_os30 = __toESM(require("node:os"), 1);
113828
113843
  import_node_path147 = __toESM(require("node:path"), 1);
@@ -113863,7 +113878,7 @@ async function compileKotlinGradleLibraries(input) {
113863
113878
  ])
113864
113879
  ];
113865
113880
  const name3 = library.coordinate.replace(/[^a-zA-Z0-9._-]/g, "-");
113866
- const suffix = (0, import_node_crypto91.createHash)("sha256").update(library.coordinate).digest("hex").slice(0, 12);
113881
+ const suffix = (0, import_node_crypto90.createHash)("sha256").update(library.coordinate).digest("hex").slice(0, 12);
113867
113882
  const klib = import_node_path148.default.join(input.output, `${name3}-${suffix}.klib`);
113868
113883
  const kotlinJvmAbi = java.length && kotlin.length && library.jars.length === 1 ? library.jars[0] : void 0;
113869
113884
  const abiPairs = java.length ? dependencies.flatMap(
@@ -113905,11 +113920,11 @@ async function compileKotlinGradleLibraries(input) {
113905
113920
  }
113906
113921
  return [...compiled.values()].map(({ klib }) => klib);
113907
113922
  }
113908
- var import_node_crypto91, import_node_fs144, import_node_path148;
113923
+ var import_node_crypto90, import_node_fs144, import_node_path148;
113909
113924
  var init_kotlin_gradle_library_plan = __esm({
113910
113925
  "src/kotlin-gradle-library-plan.ts"() {
113911
113926
  "use strict";
113912
- import_node_crypto91 = require("node:crypto");
113927
+ import_node_crypto90 = require("node:crypto");
113913
113928
  import_node_fs144 = __toESM(require("node:fs"), 1);
113914
113929
  import_node_path148 = __toESM(require("node:path"), 1);
113915
113930
  init_kotlin_library_sources();
@@ -114366,7 +114381,7 @@ function readExpoTypes(output) {
114366
114381
  });
114367
114382
  }
114368
114383
  async function scanSources(tool, parse16, toolchain, moduleRoot, files2) {
114369
- const digest3 = (0, import_node_crypto92.createHash)("sha256").update(JSON.stringify(toolchain.compiler));
114384
+ const digest3 = (0, import_node_crypto91.createHash)("sha256").update(JSON.stringify(toolchain.compiler));
114370
114385
  const sdk2 = await loadKotlinSdk(moduleRoot, toolchain);
114371
114386
  digest3.update(import_node_fs145.default.readFileSync(import_node_path149.default.join(moduleRoot, "sdk.tar.gz")));
114372
114387
  digest3.update(tool);
@@ -115028,7 +115043,7 @@ async function compileKotlin(input, origin) {
115028
115043
  bytes: import_node_fs145.default.readFileSync(file)
115029
115044
  }));
115030
115045
  const { composeArchive, ...compilerInputs } = toolchain;
115031
- const digest3 = (0, import_node_crypto92.createHash)("sha256");
115046
+ const digest3 = (0, import_node_crypto91.createHash)("sha256");
115032
115047
  digest3.update(
115033
115048
  JSON.stringify({
115034
115049
  format: BUILD_FORMAT,
@@ -115050,7 +115065,7 @@ async function compileKotlin(input, origin) {
115050
115065
  ...gradleLibraries.libraries.flatMap(({ archive, jars }) => [archive, ...jars])
115051
115066
  ]);
115052
115067
  for (const file of files2) {
115053
- digest3.update((0, import_node_crypto92.createHash)("sha256").update(import_node_fs145.default.readFileSync(file)).digest());
115068
+ digest3.update((0, import_node_crypto91.createHash)("sha256").update(import_node_fs145.default.readFileSync(file)).digest());
115054
115069
  }
115055
115070
  }
115056
115071
  if (viewModels) digest3.update(viewModels.toolClass);
@@ -115342,12 +115357,12 @@ async function serveKotlinRequest(pathname, res, app) {
115342
115357
  }
115343
115358
  return true;
115344
115359
  }
115345
- var import_node_child_process70, import_node_crypto92, import_node_fs145, import_node_module24, import_node_path149, import_node_util22, run15, KOTLIN_ARTIFACT_PREFIX, SKIP_DIRS, configureDeviceSource, BUILD_FORMAT, builds, toolScans, BRIDGE_PARAMETERS, BRIDGE_CASTS, BRIDGE_RETURNS, bridgeType, JAVA_CLASSES, argb, escapes2, literal2, CONTENT_TYPES;
115360
+ var import_node_child_process70, import_node_crypto91, import_node_fs145, import_node_module24, import_node_path149, import_node_util22, run15, KOTLIN_ARTIFACT_PREFIX, SKIP_DIRS, configureDeviceSource, BUILD_FORMAT, builds, toolScans, BRIDGE_PARAMETERS, BRIDGE_CASTS, BRIDGE_RETURNS, bridgeType, JAVA_CLASSES, argb, escapes2, literal2, CONTENT_TYPES;
115346
115361
  var init_kotlin_host = __esm({
115347
115362
  "src/kotlin-host.ts"() {
115348
115363
  "use strict";
115349
115364
  import_node_child_process70 = require("node:child_process");
115350
- import_node_crypto92 = require("node:crypto");
115365
+ import_node_crypto91 = require("node:crypto");
115351
115366
  import_node_fs145 = __toESM(require("node:fs"), 1);
115352
115367
  import_node_module24 = require("node:module");
115353
115368
  import_node_path149 = __toESM(require("node:path"), 1);
@@ -116190,7 +116205,7 @@ __export(bundle_channel_exports, {
116190
116205
  snapshotOneProductionBundle: () => snapshotOneProductionBundle
116191
116206
  });
116192
116207
  module.exports = __toCommonJS(bundle_channel_exports);
116193
- var import_node_crypto94 = require("node:crypto");
116208
+ var import_node_crypto93 = require("node:crypto");
116194
116209
  var import_node_fs153 = require("node:fs");
116195
116210
  var import_node_path158 = require("node:path");
116196
116211
  var import_node_vm = require("node:vm");
@@ -116399,7 +116414,7 @@ init_expo_native_workspace();
116399
116414
 
116400
116415
  // src/host/staged-host-files.ts
116401
116416
  var import_node_async_hooks5 = require("node:async_hooks");
116402
- var import_node_crypto93 = require("node:crypto");
116417
+ var import_node_crypto92 = require("node:crypto");
116403
116418
  var import_node_fs148 = __toESM(require("node:fs"), 1);
116404
116419
  var import_node_path152 = __toESM(require("node:path"), 1);
116405
116420
 
@@ -116531,10 +116546,10 @@ function stageHostBytes(bytes, origin, extension = "") {
116531
116546
  }
116532
116547
  async function stageHostDerivedBytes(input, producer, origin, extension, derive) {
116533
116548
  const directory2 = prepareStagedDirectory();
116534
- const inputDigest = (0, import_node_crypto93.createHash)("sha256").update(input).digest("hex");
116549
+ const inputDigest = (0, import_node_crypto92.createHash)("sha256").update(input).digest("hex");
116535
116550
  const index = import_node_path152.default.join(
116536
116551
  directory2,
116537
- `derived-${(0, import_node_crypto93.createHash)("sha256").update(`${producer}\0${inputDigest}`).digest("hex")}`
116552
+ `derived-${(0, import_node_crypto92.createHash)("sha256").update(`${producer}\0${inputDigest}`).digest("hex")}`
116538
116553
  );
116539
116554
  const recorded = import_node_fs148.default.existsSync(index) ? import_node_fs148.default.readFileSync(index, "utf8") : "";
116540
116555
  if (STAGED_NAME.test(recorded) && import_node_fs148.default.existsSync(import_node_path152.default.join(directory2, recorded))) {
@@ -116545,7 +116560,7 @@ async function stageHostDerivedBytes(input, producer, origin, extension, derive)
116545
116560
  return new URL(STAGED_PREFIX + recorded, origin).toString();
116546
116561
  }
116547
116562
  const staged = writeStagedBytes(await derive(), origin, extension, directory2);
116548
- const temporary = import_node_path152.default.join(directory2, (0, import_node_crypto93.randomUUID)());
116563
+ const temporary = import_node_path152.default.join(directory2, (0, import_node_crypto92.randomUUID)());
116549
116564
  try {
116550
116565
  import_node_fs148.default.writeFileSync(temporary, new URL(staged).pathname.slice(STAGED_PREFIX.length), {
116551
116566
  flag: "wx"
@@ -116570,7 +116585,7 @@ function prepareStagedDirectory() {
116570
116585
  return directory2;
116571
116586
  }
116572
116587
  function writeStagedBytes(bytes, origin, extension, directory2) {
116573
- const digest3 = (0, import_node_crypto93.createHash)("sha256").update(bytes).digest("hex");
116588
+ const digest3 = (0, import_node_crypto92.createHash)("sha256").update(bytes).digest("hex");
116574
116589
  extension = extension.toLowerCase();
116575
116590
  const name3 = STAGED_NAME.test(digest3 + extension) ? digest3 + extension : digest3;
116576
116591
  stagedCapture.getStore()?.add(name3);
@@ -116579,7 +116594,7 @@ function writeStagedBytes(bytes, origin, extension, directory2) {
116579
116594
  if (import_node_fs148.default.existsSync(destination)) {
116580
116595
  import_node_fs148.default.utimesSync(destination, new Date(now), new Date(now));
116581
116596
  } else {
116582
- const temporary = import_node_path152.default.join(directory2, (0, import_node_crypto93.randomUUID)());
116597
+ const temporary = import_node_path152.default.join(directory2, (0, import_node_crypto92.randomUUID)());
116583
116598
  try {
116584
116599
  import_node_fs148.default.writeFileSync(temporary, bytes, { flag: "wx" });
116585
116600
  import_node_fs148.default.renameSync(temporary, destination);
@@ -116876,7 +116891,7 @@ async function discoverProjectOneNativeAppCatalog(projectRoot, assetOrigin) {
116876
116891
  }
116877
116892
 
116878
116893
  // src/bundle-channel.mjs
116879
- var digest2 = (bytes) => (0, import_node_crypto94.createHash)("sha256").update(bytes).digest("hex");
116894
+ var digest2 = (bytes) => (0, import_node_crypto93.createHash)("sha256").update(bytes).digest("hex");
116880
116895
  var segment2 = /^[a-zA-Z0-9._-]+$/;
116881
116896
  function packagedAssetDirectory(location) {
116882
116897
  const parsed2 = new URL(location, "https://packaged.invalid");
@@ -116982,7 +116997,7 @@ async function prepareChannel({
116982
116997
  files2.set(asset.path, asset.bytes);
116983
116998
  }
116984
116999
  }
116985
- const identity2 = (0, import_node_crypto94.createHash)("sha256").update(bundle).update(icon);
117000
+ const identity2 = (0, import_node_crypto93.createHash)("sha256").update(bundle).update(icon);
116986
117001
  for (const [path145, bytes] of [...files2].sort(
116987
117002
  ([a], [b]) => a < b ? -1 : a > b ? 1 : 0
116988
117003
  )) {