peachsim 0.1.2605 → 0.1.2606

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 (135) 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 +711 -264
  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 +1 -1
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/esm-chunks/{acorn-UNOYFUKI.mjs → acorn-UL7Z3WUQ.mjs} +3 -3
  27. package/dist-lib/esm-chunks/chunk-25LYRBSX.mjs +326 -0
  28. package/dist-lib/esm-chunks/{chunk-3XUIDCBF.mjs → chunk-34CIYRB7.mjs} +4 -4
  29. package/dist-lib/esm-chunks/{chunk-RJCM34J7.mjs → chunk-5ANQR24T.mjs} +1 -1
  30. package/dist-lib/esm-chunks/{chunk-GT54N3GG.mjs → chunk-5JMW5G3U.mjs} +1 -1
  31. package/dist-lib/esm-chunks/{chunk-YO756PYQ.mjs → chunk-66ESCMV3.mjs} +14 -16
  32. package/dist-lib/esm-chunks/{chunk-O55DZ2EL.mjs → chunk-B7AXR7WA.mjs} +1 -1
  33. package/dist-lib/esm-chunks/{chunk-M4G5YUO7.mjs → chunk-CPMK3DA6.mjs} +3 -3
  34. package/dist-lib/esm-chunks/{chunk-AYHTHFG4.mjs → chunk-E2TASYAA.mjs} +1 -1
  35. package/dist-lib/esm-chunks/{chunk-WSRPZF7M.mjs → chunk-EXB4QSQI.mjs} +1 -1
  36. package/dist-lib/esm-chunks/{chunk-WB2EBX5Q.mjs → chunk-KWLQDES2.mjs} +1 -1
  37. package/dist-lib/esm-chunks/chunk-L7FPUZZO.mjs +32 -0
  38. package/dist-lib/esm-chunks/{chunk-FXONOT2L.mjs → chunk-MBCSJQRY.mjs} +1 -1
  39. package/dist-lib/esm-chunks/{chunk-LFN7VAPB.mjs → chunk-O6NRI4T2.mjs} +1 -1
  40. package/dist-lib/esm-chunks/{chunk-HHS4A7GI.mjs → chunk-O6ZNRBLB.mjs} +1 -1
  41. package/dist-lib/esm-chunks/{chunk-B54SPDLA.mjs → chunk-OB5XSLW6.mjs} +1 -1
  42. package/dist-lib/esm-chunks/{chunk-UPUOCALX.mjs → chunk-PLOV7VQQ.mjs} +1 -1
  43. package/dist-lib/esm-chunks/{chunk-M3V4F5OV.mjs → chunk-QFASF6EH.mjs} +5 -5
  44. package/dist-lib/esm-chunks/{chunk-7K33ENH6.mjs → chunk-RTPUFY2K.mjs} +5 -5
  45. package/dist-lib/esm-chunks/{chunk-VRQPEROV.mjs → chunk-TVICD24H.mjs} +1 -1
  46. package/dist-lib/esm-chunks/{chunk-AST6VA7D.mjs → chunk-VTZJPPTE.mjs} +1 -1
  47. package/dist-lib/esm-chunks/{chunk-LG76KUUO.mjs → chunk-WJKACRMG.mjs} +1 -1
  48. package/dist-lib/esm-chunks/{chunk-6TE7WLSF.mjs → chunk-XUWYWP35.mjs} +1 -1
  49. package/dist-lib/esm-chunks/{metro-layout-parser-YRBZCLVD.mjs → metro-layout-parser-OMUFYOJI.mjs} +3 -3
  50. package/dist-lib/esm-chunks/{swift-package-prebuilt-S7KR6TKE.mjs → swift-package-prebuilt-X7EZCX34.mjs} +10 -10
  51. package/dist-lib/esm-chunks/{swift-sdk-app-module-3JNA7PCB.mjs → swift-sdk-app-module-E3IF2XPD.mjs} +14 -14
  52. package/dist-lib/esm-chunks/{swift-sdk-image-3P4IUP2A.mjs → swift-sdk-image-57YYLNU6.mjs} +14 -14
  53. package/dist-lib/esm-chunks/{swift-sdk-image-producer-EA2RYBM4.mjs → swift-sdk-image-producer-DZOZTTDZ.mjs} +4 -4
  54. package/dist-lib/expo-swift-bundle.cjs +710 -263
  55. package/dist-lib/expo-swift-metadata.cjs +1 -1
  56. package/dist-lib/expo-swift-metadata.mjs +7 -7
  57. package/dist-lib/home-paths.cjs +1 -1
  58. package/dist-lib/host/bridge-host.cjs +724 -277
  59. package/dist-lib/host/fetch-proxy-handler.cjs +43 -37
  60. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  61. package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
  62. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  63. package/dist-lib/host/websocket-proxy.cjs +1 -1
  64. package/dist-lib/index.cjs +1 -1
  65. package/dist-lib/kotlin-host.cjs +1 -1
  66. package/dist-lib/menu.cjs +1 -1
  67. package/dist-lib/menu.mjs +3 -3
  68. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  69. package/dist-lib/metro-fingerprint-registry.mjs +3 -3
  70. package/dist-lib/metro-production-bundle.cjs +1 -1
  71. package/dist-lib/metro-production-bundle.mjs +4 -4
  72. package/dist-lib/native-app-identity-project.cjs +537 -246
  73. package/dist-lib/native-app-identity-project.mjs +218 -1828
  74. package/dist-lib/native-app-identity.cjs +1 -1
  75. package/dist-lib/native-app-identity.mjs +6 -6
  76. package/dist-lib/native-firebase-metadata.cjs +1 -1
  77. package/dist-lib/native-firebase-metadata.mjs +3 -3
  78. package/dist-lib/pdfium-raster.cjs +1 -1
  79. package/dist-lib/pdfium-raster.mjs +2 -2
  80. package/dist-lib/plist.cjs +327 -15
  81. package/dist-lib/plist.mjs +13 -5
  82. package/dist-lib/profiles.cjs +1 -1
  83. package/dist-lib/public-brand.cjs +1 -1
  84. package/dist-lib/public-origins-lib-esm.json +82 -129
  85. package/dist-lib/public-origins-lib.json +69 -140
  86. package/dist-lib/react-native-host-modules.cjs +1 -1
  87. package/dist-lib/react-native-host-modules.mjs +2 -2
  88. package/dist-lib/reap-browser.cjs +1 -1
  89. package/dist-lib/scripts/dev-server-scanner.cjs +211 -3
  90. package/dist-lib/sdk.cjs +1 -1
  91. package/dist-lib/sdk.mjs +8 -8
  92. package/dist-lib/skills.cjs +740 -293
  93. package/dist-lib/swift-compile.cjs +3 -5
  94. package/dist-lib/swift-compile.mjs +10 -10
  95. package/dist-lib/swift-package.cjs +1 -1
  96. package/dist-lib/swift-package.mjs +3 -3
  97. package/dist-lib/swift-submit.cjs +1 -1
  98. package/dist-lib/swift-submit.mjs +6 -6
  99. package/dist-lib/swift-svg-raster.cjs +1 -1
  100. package/dist-lib/swift-svg-raster.mjs +2 -2
  101. package/dist-lib/swift-toolchain.cjs +1 -1
  102. package/dist-lib/swift.cjs +1 -1
  103. package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
  104. package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
  105. package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
  106. package/dist-lib/vendor/acorn.cjs +1 -1
  107. package/dist-lib/vendor/magic-string.cjs +1 -1
  108. package/dist-lib/vendor/stream-json.cjs +1 -1
  109. package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
  110. package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
  111. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
  112. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
  113. package/dist-lib/vendor/sucrase.cjs +1 -1
  114. package/dist-lib/vendor/terser.cjs +1 -1
  115. package/dist-lib/vendor/valibot.cjs +1 -1
  116. package/dist-lib/vendor/ws.cjs +1 -1
  117. package/dist-lib/vendor/zod.cjs +1 -1
  118. package/dist-lib/worklet-executable.cjs +1 -1
  119. package/dist-lib/worklet-executable.mjs +3 -3
  120. package/package.json +1 -6
  121. package/src/bazel-project.ts +1 -1
  122. package/src/expo-native-prebuilt.ts +1 -1
  123. package/src/expo-workspace-exclusion.ts +1 -1
  124. package/src/gitignore.ts +175 -0
  125. package/src/intent-definition/plist-reader.ts +22 -168
  126. package/src/plist-bytes.ts +144 -2
  127. package/src/plist.ts +359 -2
  128. package/src/swift-compile.ts +4 -6
  129. package/src/xcode-project.ts +1 -1
  130. package/dist-lib/esm-chunks/chunk-OW4VRQKO.mjs +0 -10993
  131. package/dist-lib/esm-chunks/chunk-ZSHGFGW7.mjs +0 -65
  132. package/dist-lib/vendor/@xmldom/xmldom.cjs +0 -6481
  133. package/dist-lib/vendor/bplist-parser.cjs +0 -1589
  134. package/dist-lib/vendor/ignore.cjs +0 -455
  135. package/dist-lib/vendor/plist.cjs +0 -10978
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2605 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2606 | (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;
@@ -17979,13 +17979,13 @@ var init_swift_standin_digest = __esm({
17979
17979
  STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
17980
17980
  SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
17981
17981
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
17982
- STANDIN_SOURCE_DIGEST = true ? "cb9d3dbcce3fdc3dbbec1990247cf5b2a1f9fd7cd32791740e313792bd8bcfcc" : standinSourceDigest();
17982
+ STANDIN_SOURCE_DIGEST = true ? "0fa01889b40249e7aa8b8e48fee286aef4d4994798bf35e354ae224d421cdd03" : standinSourceDigest();
17983
17983
  }
17984
17984
  });
17985
17985
 
17986
17986
  // src/expo-native-compiler-digest.ts
17987
17987
  function expoNativeCompilerDigestValue() {
17988
- return true ? "6aedf26bc25b6a36f195ca561d0ac7cf616934f0decbe54a770edcae5bda1407" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
17988
+ return true ? "f6f1fdf256bd2bea43a47405f3cf628eb70398ab6fe8a8b27eee2dd2c6354b11" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
17989
17989
  }
17990
17990
  var import_node_crypto17;
17991
17991
  var init_expo_native_compiler_digest = __esm({
@@ -18041,6 +18041,160 @@ var init_admitted_mac_build = __esm({
18041
18041
  }
18042
18042
  });
18043
18043
 
18044
+ // src/gitignore.ts
18045
+ function stripTrailingSpaces(line) {
18046
+ let end = line.length;
18047
+ while (end > 0 && line[end - 1] === " ") {
18048
+ let slashes = 0;
18049
+ for (let i = end - 2; i >= 0 && line[i] === "\\"; i--) slashes++;
18050
+ if (slashes % 2 === 1) break;
18051
+ end--;
18052
+ }
18053
+ return line.slice(0, end);
18054
+ }
18055
+ function globToRegexSource(pattern) {
18056
+ let out = "";
18057
+ let i = 0;
18058
+ while (i < pattern.length) {
18059
+ const ch = pattern[i];
18060
+ if (ch === "\\" && i + 1 < pattern.length) {
18061
+ out += pattern[i + 1].replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
18062
+ i += 2;
18063
+ continue;
18064
+ }
18065
+ if (ch === "*") {
18066
+ if (pattern[i + 1] === "*") {
18067
+ const prevIsSlashOrStart = i === 0 || pattern[i - 1] === "/";
18068
+ const nextIsSlash = pattern[i + 2] === "/";
18069
+ const nextIsEnd = i + 2 === pattern.length;
18070
+ if (prevIsSlashOrStart && nextIsSlash) {
18071
+ out += "(?:.+/)?";
18072
+ i += 3;
18073
+ continue;
18074
+ }
18075
+ if (prevIsSlashOrStart && nextIsEnd) {
18076
+ out += ".*";
18077
+ i += 2;
18078
+ continue;
18079
+ }
18080
+ out += ".*";
18081
+ i += 2;
18082
+ continue;
18083
+ }
18084
+ out += "[^/]*";
18085
+ i++;
18086
+ continue;
18087
+ }
18088
+ if (ch === "?") {
18089
+ out += "[^/]";
18090
+ i++;
18091
+ continue;
18092
+ }
18093
+ if (ch === "[") {
18094
+ let j = i + 1;
18095
+ if (j < pattern.length && (pattern[j] === "!" || pattern[j] === "^")) j++;
18096
+ if (j < pattern.length && pattern[j] === "]") j++;
18097
+ while (j < pattern.length && pattern[j] !== "]") {
18098
+ if (pattern[j] === "\\" && j + 1 < pattern.length) j += 2;
18099
+ else j++;
18100
+ }
18101
+ if (j < pattern.length) {
18102
+ let body = pattern.slice(i + 1, j);
18103
+ if (body.startsWith("!")) body = `^${body.slice(1)}`;
18104
+ out += `[${body}]`;
18105
+ i = j + 1;
18106
+ continue;
18107
+ }
18108
+ }
18109
+ out += ch.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
18110
+ i++;
18111
+ }
18112
+ return out;
18113
+ }
18114
+ function compileRule(rawLine) {
18115
+ const withoutCr = rawLine.endsWith("\r") ? rawLine.slice(0, -1) : rawLine;
18116
+ const trimmed = stripTrailingSpaces(withoutCr);
18117
+ if (!trimmed || trimmed.startsWith("#")) return null;
18118
+ let negative = false;
18119
+ let pattern = trimmed;
18120
+ if (pattern.startsWith("!")) {
18121
+ negative = true;
18122
+ pattern = pattern.slice(1);
18123
+ }
18124
+ if (!pattern) return null;
18125
+ const directoryOnly = pattern.endsWith("/");
18126
+ if (directoryOnly) {
18127
+ pattern = pattern.slice(0, -1);
18128
+ if (!pattern) return null;
18129
+ }
18130
+ const anchored = pattern.includes("/");
18131
+ if (pattern.startsWith("/")) {
18132
+ pattern = pattern.slice(1);
18133
+ }
18134
+ const body = globToRegexSource(pattern);
18135
+ const prefix = anchored ? "^" : "(?:^|/)";
18136
+ const regex2 = new RegExp(`${prefix}${body}$`, "i");
18137
+ return { negative, directoryOnly, regex: regex2 };
18138
+ }
18139
+ function normalizePath(input) {
18140
+ const isDirectory5 = input.endsWith("/");
18141
+ let normalized = isDirectory5 ? input.slice(0, -1) : input;
18142
+ if (normalized.startsWith("./")) normalized = normalized.slice(2);
18143
+ return { path: normalized, isDirectory: isDirectory5 };
18144
+ }
18145
+ function createGitignoreMatcher() {
18146
+ const rules2 = [];
18147
+ const matchSingle = (candidate, isDirectory5) => {
18148
+ let ignored = false;
18149
+ let unignored = false;
18150
+ for (const rule of rules2) {
18151
+ if (rule.directoryOnly && !isDirectory5) continue;
18152
+ if (!rule.regex.test(candidate)) continue;
18153
+ if (rule.negative) {
18154
+ ignored = false;
18155
+ unignored = true;
18156
+ } else {
18157
+ ignored = true;
18158
+ unignored = false;
18159
+ }
18160
+ }
18161
+ return { ignored, unignored };
18162
+ };
18163
+ const matcher = {
18164
+ add(patterns) {
18165
+ const list2 = typeof patterns === "string" ? patterns.split("\n") : patterns;
18166
+ for (const entry of list2) {
18167
+ for (const line of entry.split("\n")) {
18168
+ const compiled = compileRule(line);
18169
+ if (compiled) rules2.push(compiled);
18170
+ }
18171
+ }
18172
+ return matcher;
18173
+ },
18174
+ test(relativePath2) {
18175
+ const { path: path116, isDirectory: isDirectory5 } = normalizePath(relativePath2);
18176
+ if (!path116) return { ignored: false, unignored: false };
18177
+ const parts = path116.split("/");
18178
+ let prefix = "";
18179
+ for (let i = 0; i < parts.length - 1; i++) {
18180
+ prefix = prefix ? `${prefix}/${parts[i]}` : parts[i];
18181
+ const parent = matchSingle(prefix, true);
18182
+ if (parent.ignored) return { ignored: true, unignored: false };
18183
+ }
18184
+ return matchSingle(path116, isDirectory5);
18185
+ },
18186
+ ignores(relativePath2) {
18187
+ return matcher.test(relativePath2).ignored;
18188
+ }
18189
+ };
18190
+ return matcher;
18191
+ }
18192
+ var init_gitignore = __esm({
18193
+ "src/gitignore.ts"() {
18194
+ "use strict";
18195
+ }
18196
+ });
18197
+
18044
18198
  // src/expo-workspace-exclusion.ts
18045
18199
  async function workspaceExclusion(root, portable = false, linkedPackages = []) {
18046
18200
  const listed = await (0, import_node_util4.promisify)(import_node_child_process15.execFile)(
@@ -18110,7 +18264,7 @@ function gitignoreRules(root) {
18110
18264
  let rules2 = ignoreFiles.get(directory2);
18111
18265
  if (rules2 === void 0) {
18112
18266
  const file = import_node_path32.default.join(root, directory2, ".gitignore");
18113
- rules2 = import_node_fs33.default.existsSync(file) ? (0, import_ignore.default)().add(import_node_fs33.default.readFileSync(file, "utf8")) : null;
18267
+ rules2 = import_node_fs33.default.existsSync(file) ? createGitignoreMatcher().add(import_node_fs33.default.readFileSync(file, "utf8")) : null;
18114
18268
  ignoreFiles.set(directory2, rules2);
18115
18269
  }
18116
18270
  if (!rules2) continue;
@@ -18122,7 +18276,7 @@ function gitignoreRules(root) {
18122
18276
  return excluded;
18123
18277
  };
18124
18278
  }
18125
- var import_node_child_process15, import_node_fs33, import_node_path32, import_node_util4, import_ignore, gitEnvironment;
18279
+ var import_node_child_process15, import_node_fs33, import_node_path32, import_node_util4, gitEnvironment;
18126
18280
  var init_expo_workspace_exclusion = __esm({
18127
18281
  "src/expo-workspace-exclusion.ts"() {
18128
18282
  "use strict";
@@ -18130,7 +18284,7 @@ var init_expo_workspace_exclusion = __esm({
18130
18284
  import_node_fs33 = __toESM(require("node:fs"), 1);
18131
18285
  import_node_path32 = __toESM(require("node:path"), 1);
18132
18286
  import_node_util4 = require("node:util");
18133
- import_ignore = __toESM(require("peachsim/vendor/ignore"), 1);
18287
+ init_gitignore();
18134
18288
  gitEnvironment = () => ({
18135
18289
  ...process.env,
18136
18290
  GIT_CONFIG_GLOBAL: "/dev/null",
@@ -42583,7 +42737,6 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
42583
42737
  (left, right) => right.path.length - left.path.length
42584
42738
  );
42585
42739
  const targetsByDir = indexTargetsByDirectory(bySourcePath);
42586
- const targetByName = new Map(targets.map((target) => [target.name, target]));
42587
42740
  const nativeTargets2 = input.nativeTargets ?? [];
42588
42741
  const nativeTargetByName = new Map(nativeTargets2.map((target) => [target.name, target]));
42589
42742
  const nativeTargetIndex = new Map(
@@ -42659,7 +42812,6 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
42659
42812
  checkedToolchain = swiftToolchain(pin2.release, swiftModuleSdk(moduleRoot));
42660
42813
  return checkedToolchain;
42661
42814
  };
42662
- const deploymentTarget = (name3) => nativeTargetByName.get(name3)?.deploymentTarget ?? targetByName.get(name3)?.iosDeploymentTarget ?? null;
42663
42815
  const targetStagedFiles = /* @__PURE__ */ new Map();
42664
42816
  const stageTargetFile = (target, file, contents2, options2) => {
42665
42817
  const relative3 = import_node_path68.default.relative(layout2.root, file).split(import_node_path68.default.sep).join(import_node_path68.default.posix.sep);
@@ -43734,7 +43886,7 @@ ${entry}`);
43734
43886
  };
43735
43887
  for (const target of targets) {
43736
43888
  if (!target.executable && !reachesNative(target.name)) continue;
43737
- const version2 = deploymentTarget(target.name);
43889
+ const version2 = nativeTargetByName.get(target.name)?.deploymentTarget ?? target.iosDeploymentTarget ?? null;
43738
43890
  const minimum = iosDeploymentMinimum(version2);
43739
43891
  if (minimum === void 0)
43740
43892
  throw new Error(
@@ -46400,7 +46552,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
46400
46552
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
46401
46553
  MULTI_MANIFEST_VERSION = 76;
46402
46554
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
46403
- compilerSourceDigest = true ? "6fbcbab3535da2f464a19f4d3c1db8a7e4b393927e5158477332f4cc978cc22f" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
46555
+ compilerSourceDigest = true ? "37c95b1d4be497f3f882c4c51f2be7e5bb09b4bcc4976a51d553b0a993c9c7ca" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
46404
46556
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
46405
46557
  MODULE_MAP_RESPONSE_FILE_RUN = 16;
46406
46558
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
@@ -56952,21 +57104,457 @@ end
56952
57104
  });
56953
57105
 
56954
57106
  // src/plist.ts
57107
+ function decodeXmlEntities(text7) {
57108
+ if (!text7.includes("&")) return text7;
57109
+ return text7.replace(/&(#x[0-9a-fA-F]+|#[0-9]+|[a-zA-Z]+);/g, (full, entity2) => {
57110
+ if (entity2.startsWith("#x") || entity2.startsWith("#X")) {
57111
+ const code = Number.parseInt(entity2.slice(2), 16);
57112
+ return Number.isFinite(code) ? String.fromCodePoint(code) : full;
57113
+ }
57114
+ if (entity2.startsWith("#")) {
57115
+ const code = Number.parseInt(entity2.slice(1), 10);
57116
+ return Number.isFinite(code) ? String.fromCodePoint(code) : full;
57117
+ }
57118
+ return NAMED_ENTITIES[entity2] ?? full;
57119
+ });
57120
+ }
57121
+ function escapeXmlText(text7) {
57122
+ return text7.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
57123
+ }
57124
+ function parseXmlDocument(input) {
57125
+ const source = input.startsWith("\uFEFF") ? input.slice(1) : input;
57126
+ const len = source.length;
57127
+ let pos = 0;
57128
+ const skipIgnorable = () => {
57129
+ while (pos < len) {
57130
+ while (pos < len && /\s/.test(source[pos])) pos++;
57131
+ if (source.startsWith("<!--", pos)) {
57132
+ const end = source.indexOf("-->", pos + 4);
57133
+ if (end === -1) throw new Error("unterminated XML comment");
57134
+ pos = end + 3;
57135
+ continue;
57136
+ }
57137
+ if (source.startsWith("<?", pos)) {
57138
+ const end = source.indexOf("?>", pos + 2);
57139
+ if (end === -1) throw new Error("unterminated XML processing instruction");
57140
+ pos = end + 2;
57141
+ continue;
57142
+ }
57143
+ if (source.startsWith("<!DOCTYPE", pos)) {
57144
+ pos += 9;
57145
+ let depth = 0;
57146
+ let quote3 = "";
57147
+ while (pos < len) {
57148
+ const ch = source[pos];
57149
+ pos++;
57150
+ if (quote3) {
57151
+ if (ch === quote3) quote3 = "";
57152
+ } else if (ch === '"' || ch === "'") {
57153
+ quote3 = ch;
57154
+ } else if (ch === "[") {
57155
+ depth++;
57156
+ } else if (ch === "]") {
57157
+ depth = Math.max(0, depth - 1);
57158
+ } else if (ch === ">" && depth === 0) {
57159
+ break;
57160
+ }
57161
+ }
57162
+ continue;
57163
+ }
57164
+ break;
57165
+ }
57166
+ };
57167
+ const readElement = () => {
57168
+ if (source[pos] !== "<") {
57169
+ throw new Error(`expected XML tag at offset ${pos}`);
57170
+ }
57171
+ pos++;
57172
+ const nameStart = pos;
57173
+ while (pos < len && /[^\s/>]/.test(source[pos])) pos++;
57174
+ const tag = source.slice(nameStart, pos);
57175
+ if (!tag) throw new Error(`empty XML tag name at offset ${nameStart}`);
57176
+ let quote3 = "";
57177
+ let selfClosing = false;
57178
+ while (pos < len) {
57179
+ const ch = source[pos];
57180
+ if (quote3) {
57181
+ pos++;
57182
+ if (ch === quote3) quote3 = "";
57183
+ continue;
57184
+ }
57185
+ if (ch === '"' || ch === "'") {
57186
+ quote3 = ch;
57187
+ pos++;
57188
+ continue;
57189
+ }
57190
+ if (ch === "/" && source[pos + 1] === ">") {
57191
+ selfClosing = true;
57192
+ pos += 2;
57193
+ break;
57194
+ }
57195
+ if (ch === ">") {
57196
+ pos++;
57197
+ break;
57198
+ }
57199
+ pos++;
57200
+ }
57201
+ if (selfClosing) {
57202
+ return { tag, children: [], text: "" };
57203
+ }
57204
+ const children = [];
57205
+ let text7 = "";
57206
+ while (pos < len) {
57207
+ if (source.startsWith("<!--", pos)) {
57208
+ const end2 = source.indexOf("-->", pos + 4);
57209
+ if (end2 === -1) throw new Error("unterminated XML comment");
57210
+ pos = end2 + 3;
57211
+ continue;
57212
+ }
57213
+ if (source.startsWith("<![CDATA[", pos)) {
57214
+ const end2 = source.indexOf("]]>", pos + 9);
57215
+ if (end2 === -1) throw new Error("unterminated CDATA section");
57216
+ text7 += source.slice(pos + 9, end2);
57217
+ pos = end2 + 3;
57218
+ continue;
57219
+ }
57220
+ if (source.startsWith("</", pos)) {
57221
+ pos += 2;
57222
+ const closeStart = pos;
57223
+ while (pos < len && /[^\s>]/.test(source[pos])) pos++;
57224
+ const closeTag = source.slice(closeStart, pos);
57225
+ while (pos < len && /\s/.test(source[pos])) pos++;
57226
+ if (source[pos] !== ">") throw new Error(`malformed closing tag </${closeTag}>`);
57227
+ pos++;
57228
+ if (closeTag !== tag) {
57229
+ throw new Error(`mismatched XML closing tag </${closeTag}> for <${tag}>`);
57230
+ }
57231
+ return { tag, children, text: text7 };
57232
+ }
57233
+ if (source[pos] === "<") {
57234
+ children.push(readElement());
57235
+ continue;
57236
+ }
57237
+ const nextTag = source.indexOf("<", pos);
57238
+ const end = nextTag === -1 ? len : nextTag;
57239
+ text7 += decodeXmlEntities(source.slice(pos, end));
57240
+ pos = end;
57241
+ }
57242
+ throw new Error(`unclosed XML tag <${tag}>`);
57243
+ };
57244
+ skipIgnorable();
57245
+ if (pos >= len) throw new Error("empty XML plist document");
57246
+ return readElement();
57247
+ }
57248
+ function parseXmlPlist(source, options2 = {}) {
57249
+ const root = parseXmlDocument(source);
57250
+ if (root.tag !== "plist") {
57251
+ throw new Error(`expected <plist> root element, got <${root.tag}>`);
57252
+ }
57253
+ if (root.children.length === 0) {
57254
+ if (options2.strict) throw new Error("<plist> element has no root value");
57255
+ return void 0;
57256
+ }
57257
+ if (options2.strict && root.children.length !== 1) {
57258
+ throw new Error("<plist> element must contain exactly one root value");
57259
+ }
57260
+ const leafText = (node) => {
57261
+ if (options2.strict && node.children.length > 0) {
57262
+ throw new Error(`<${node.tag}> must not contain child elements`);
57263
+ }
57264
+ return node.text;
57265
+ };
57266
+ const visit3 = (node) => {
57267
+ switch (node.tag) {
57268
+ case "dict": {
57269
+ const result = {};
57270
+ if (options2.strict && node.children.length % 2 !== 0) {
57271
+ throw new Error("<dict> must contain key/value pairs");
57272
+ }
57273
+ for (let i = 0; i + 1 < node.children.length; i += 2) {
57274
+ const keyNode = node.children[i];
57275
+ if (keyNode.tag !== "key") {
57276
+ throw new Error(`expected <key> in <dict>, got <${keyNode.tag}>`);
57277
+ }
57278
+ result[leafText(keyNode)] = visit3(node.children[i + 1]);
57279
+ }
57280
+ return result;
57281
+ }
57282
+ case "array":
57283
+ return node.children.map(visit3);
57284
+ case "string":
57285
+ return leafText(node);
57286
+ case "integer": {
57287
+ const raw2 = leafText(node).trim();
57288
+ if (options2.onInteger) return options2.onInteger(raw2);
57289
+ if (!raw2) throw new Error("empty <integer> element");
57290
+ return Number.parseInt(raw2, 10);
57291
+ }
57292
+ case "real": {
57293
+ const raw2 = leafText(node).trim();
57294
+ if (options2.onReal) return options2.onReal(raw2);
57295
+ if (!raw2) throw new Error("empty <real> element");
57296
+ return Number.parseFloat(raw2);
57297
+ }
57298
+ case "true":
57299
+ return true;
57300
+ case "false":
57301
+ return false;
57302
+ case "data":
57303
+ return Buffer.from(leafText(node).replace(/\s+/g, ""), "base64");
57304
+ case "date":
57305
+ return new Date(leafText(node).trim());
57306
+ default:
57307
+ throw new Error(`unsupported plist element ${node.tag}`);
57308
+ }
57309
+ };
57310
+ return visit3(root.children[0]);
57311
+ }
57312
+ function parsePlist(source) {
57313
+ const root = parseXmlDocument(source);
57314
+ if (root.tag !== "plist") {
57315
+ throw new Error(`expected <plist> root element, got <${root.tag}>`);
57316
+ }
57317
+ if (root.children.length === 0) return {};
57318
+ const visit3 = (node) => {
57319
+ switch (node.tag) {
57320
+ case "dict": {
57321
+ const result = {};
57322
+ for (let i = 0; i + 1 < node.children.length; i += 2) {
57323
+ const keyNode = node.children[i];
57324
+ if (keyNode.tag !== "key") {
57325
+ throw new Error(`expected <key> in <dict>, got <${keyNode.tag}>`);
57326
+ }
57327
+ result[keyNode.text] = visit3(node.children[i + 1]);
57328
+ }
57329
+ return result;
57330
+ }
57331
+ case "array":
57332
+ return node.children.map(visit3);
57333
+ case "string":
57334
+ return node.text;
57335
+ case "integer": {
57336
+ const raw2 = node.text.trim();
57337
+ if (!raw2) throw new Error("empty <integer> element");
57338
+ return Number.parseInt(raw2, 10);
57339
+ }
57340
+ case "real": {
57341
+ const raw2 = node.text.trim();
57342
+ if (!raw2) throw new Error("empty <real> element");
57343
+ return Number.parseFloat(raw2);
57344
+ }
57345
+ case "true":
57346
+ return true;
57347
+ case "false":
57348
+ return false;
57349
+ case "data":
57350
+ return Buffer.from(node.text.replace(/\s+/g, ""), "base64");
57351
+ case "date":
57352
+ return new Date(node.text.trim());
57353
+ default:
57354
+ throw new Error(`unsupported plist element ${node.tag}`);
57355
+ }
57356
+ };
57357
+ return visit3(root.children[0]);
57358
+ }
56955
57359
  function parsePlistSource(source) {
56956
- return import_plist.default.parse(source);
57360
+ return parseXmlPlist(source);
56957
57361
  }
56958
- var import_plist;
57362
+ function renderValue(value, indent2) {
57363
+ if (value === void 0 || value === null) return null;
57364
+ if (typeof value === "string") {
57365
+ return `${indent2}<string>${escapeXmlText(value)}</string>`;
57366
+ }
57367
+ if (typeof value === "boolean") {
57368
+ return `${indent2}${value ? "<true/>" : "<false/>"}`;
57369
+ }
57370
+ if (typeof value === "number") {
57371
+ if (Number.isInteger(value) && !Object.is(value, -0)) {
57372
+ return `${indent2}<integer>${value}</integer>`;
57373
+ }
57374
+ return `${indent2}<real>${value}</real>`;
57375
+ }
57376
+ if (value instanceof Date) {
57377
+ return `${indent2}<date>${value.toISOString().replace(/\.\d{3}Z$/, "Z")}</date>`;
57378
+ }
57379
+ if (Buffer.isBuffer(value) || value instanceof Uint8Array) {
57380
+ const encoded = Buffer.from(value).toString("base64");
57381
+ return encoded ? `${indent2}<data>${encoded}</data>` : `${indent2}<data/>`;
57382
+ }
57383
+ if (Array.isArray(value)) {
57384
+ const items2 = value.map((entry) => renderValue(entry, `${indent2} `)).filter((entry) => entry !== null);
57385
+ if (items2.length === 0) return `${indent2}<array/>`;
57386
+ return `${indent2}<array>
57387
+ ${items2.join("\n")}
57388
+ ${indent2}</array>`;
57389
+ }
57390
+ if (typeof value === "object") {
57391
+ const lines = [];
57392
+ for (const [key2, entry] of Object.entries(value)) {
57393
+ const rendered = renderValue(entry, `${indent2} `);
57394
+ if (rendered === null) continue;
57395
+ lines.push(`${indent2} <key>${escapeXmlText(key2)}</key>`);
57396
+ lines.push(rendered);
57397
+ }
57398
+ if (lines.length === 0) return `${indent2}<dict/>`;
57399
+ return `${indent2}<dict>
57400
+ ${lines.join("\n")}
57401
+ ${indent2}</dict>`;
57402
+ }
57403
+ throw new Error(`unsupported plist value type: ${typeof value}`);
57404
+ }
57405
+ function buildPlist(value) {
57406
+ const body = renderValue(value, " ");
57407
+ return [
57408
+ '<?xml version="1.0" encoding="UTF-8"?>',
57409
+ '<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">',
57410
+ '<plist version="1.0">',
57411
+ ...body ? [body] : [],
57412
+ "</plist>",
57413
+ ""
57414
+ ].join("\n");
57415
+ }
57416
+ var NAMED_ENTITIES;
56959
57417
  var init_plist = __esm({
56960
57418
  "src/plist.ts"() {
56961
57419
  "use strict";
56962
- import_plist = __toESM(require("peachsim/vendor/plist"), 1);
57420
+ NAMED_ENTITIES = {
57421
+ amp: "&",
57422
+ lt: "<",
57423
+ gt: ">",
57424
+ quot: '"',
57425
+ apos: "'"
57426
+ };
56963
57427
  }
56964
57428
  });
56965
57429
 
56966
57430
  // src/plist-bytes.ts
57431
+ function defaultInteger(value) {
57432
+ return value >= BigInt(Number.MIN_SAFE_INTEGER) && value <= BigInt(Number.MAX_SAFE_INTEGER) ? Number(value) : value;
57433
+ }
57434
+ function parseBinaryPlist(source, options2 = {}) {
57435
+ const bytes = Buffer.isBuffer(source) ? source : Buffer.from(source);
57436
+ (0, import_strict.default)(bytes.length >= 40, "binary plist is too short");
57437
+ (0, import_strict.default)(bytes.toString("ascii", 0, 8) === "bplist00", "invalid binary plist header");
57438
+ const trailer = bytes.length - 32;
57439
+ const offsetWidth = bytes[trailer + 6];
57440
+ const refWidth = bytes[trailer + 7];
57441
+ (0, import_strict.default)(offsetWidth > 0 && offsetWidth <= 8 && refWidth > 0 && refWidth <= 8);
57442
+ const count = Number(bytes.readBigUInt64BE(trailer + 8));
57443
+ const root = Number(bytes.readBigUInt64BE(trailer + 16));
57444
+ const table = Number(bytes.readBigUInt64BE(trailer + 24));
57445
+ (0, import_strict.default)(
57446
+ table >= 8 && table < trailer && count > 0 && count <= (trailer - table) / offsetWidth
57447
+ );
57448
+ const unsigned = (at, width) => {
57449
+ (0, import_strict.default)(at >= 8 && at + width <= trailer);
57450
+ let result = 0n;
57451
+ for (let i = at; i < at + width; i++) result = result * 256n + BigInt(bytes[i]);
57452
+ return result;
57453
+ };
57454
+ const cache = /* @__PURE__ */ new Map();
57455
+ const visiting = /* @__PURE__ */ new Set();
57456
+ const visit3 = (ref) => {
57457
+ (0, import_strict.default)(ref >= 0 && ref < count && !visiting.has(ref));
57458
+ if (cache.has(ref)) return cache.get(ref);
57459
+ visiting.add(ref);
57460
+ const at = Number(unsigned(table + ref * offsetWidth, offsetWidth));
57461
+ (0, import_strict.default)(at >= 8 && at < table);
57462
+ const marker = bytes[at];
57463
+ const type = marker >> 4;
57464
+ let length = marker & 15;
57465
+ let data = at + 1;
57466
+ if (length === 15 && [4, 5, 6, 7, 10, 12, 13].includes(type)) {
57467
+ (0, import_strict.default)(data < table && bytes[data] >> 4 === 1);
57468
+ const width = 2 ** (bytes[data] & 15);
57469
+ (0, import_strict.default)(width <= 8 && data + 1 + width <= table);
57470
+ length = Number(unsigned(data + 1, width));
57471
+ data += 1 + width;
57472
+ }
57473
+ const end = (size2) => {
57474
+ (0, import_strict.default)(Number.isSafeInteger(size2) && data + size2 <= table);
57475
+ return data + size2;
57476
+ };
57477
+ const references = (total) => {
57478
+ end(total * refWidth);
57479
+ return Array.from(
57480
+ { length: total },
57481
+ (_, i) => visit3(Number(unsigned(data + i * refWidth, refWidth)))
57482
+ );
57483
+ };
57484
+ let value;
57485
+ switch (type) {
57486
+ case 0:
57487
+ if (!options2.strict && marker === 0) {
57488
+ value = null;
57489
+ break;
57490
+ }
57491
+ (0, import_strict.default)(marker === 8 || marker === 9);
57492
+ value = marker === 9;
57493
+ break;
57494
+ case 1: {
57495
+ const size2 = 2 ** length;
57496
+ (0, import_strict.default)(size2 <= 16);
57497
+ end(size2);
57498
+ const raw2 = unsigned(data, size2);
57499
+ const signed = size2 >= 8 ? BigInt.asIntN(size2 * 8, raw2) : raw2;
57500
+ value = options2.onInteger ? options2.onInteger(signed) : defaultInteger(signed);
57501
+ break;
57502
+ }
57503
+ case 2: {
57504
+ (0, import_strict.default)(length === 2 || length === 3);
57505
+ end(2 ** length);
57506
+ const real = length === 2 ? bytes.readFloatBE(data) : bytes.readDoubleBE(data);
57507
+ value = options2.onReal ? options2.onReal(real) : real;
57508
+ break;
57509
+ }
57510
+ case 3:
57511
+ (0, import_strict.default)(length === 3);
57512
+ end(8);
57513
+ value = new Date(Date.UTC(2001, 0, 1) + bytes.readDoubleBE(data) * 1e3);
57514
+ break;
57515
+ case 4:
57516
+ value = bytes.subarray(data, end(length));
57517
+ break;
57518
+ case 5:
57519
+ value = bytes.toString("ascii", data, end(length));
57520
+ break;
57521
+ case 6:
57522
+ value = Buffer.from(bytes.subarray(data, end(length * 2))).swap16().toString("utf16le");
57523
+ break;
57524
+ case 7:
57525
+ value = bytes.toString("utf8", data, end(length));
57526
+ break;
57527
+ case 8: {
57528
+ if (options2.strict) throw new Error(`unsupported binary plist type ${type}`);
57529
+ const size2 = length + 1;
57530
+ (0, import_strict.default)(size2 >= 1 && size2 <= 8);
57531
+ end(size2);
57532
+ value = { UID: Number(unsigned(data, size2)) };
57533
+ break;
57534
+ }
57535
+ case 10:
57536
+ case 12:
57537
+ value = references(length);
57538
+ break;
57539
+ case 13: {
57540
+ const elements = references(length * 2);
57541
+ const keys = elements.slice(0, length);
57542
+ (0, import_strict.default)(keys.every((key2) => typeof key2 === "string"));
57543
+ value = Object.fromEntries(keys.map((key2, i) => [key2, elements[length + i]]));
57544
+ break;
57545
+ }
57546
+ default:
57547
+ throw new Error(`unsupported binary plist type ${type}`);
57548
+ }
57549
+ visiting.delete(ref);
57550
+ cache.set(ref, value);
57551
+ return value;
57552
+ };
57553
+ return visit3(root);
57554
+ }
56967
57555
  function parsePlistBytes(source, parseXml2 = parsePlistSource) {
56968
57556
  const bytes = Buffer.from(source);
56969
- return bytes.subarray(0, 8).toString("ascii") === "bplist00" ? import_bplist_parser.default.parseBuffer(bytes)[0] : parseXml2(bytes.toString("utf8"));
57557
+ return bytes.subarray(0, 8).toString("ascii") === "bplist00" ? parseBinaryPlist(bytes) : parseXml2(bytes.toString("utf8"));
56970
57558
  }
56971
57559
  function buildBinaryPlist(top) {
56972
57560
  const nodes = [];
@@ -57052,11 +57640,11 @@ function buildBinaryPlist(top) {
57052
57640
  trailer
57053
57641
  ]);
57054
57642
  }
57055
- var import_bplist_parser, isList, isUid;
57643
+ var import_strict, isList, isUid;
57056
57644
  var init_plist_bytes = __esm({
57057
57645
  "src/plist-bytes.ts"() {
57058
57646
  "use strict";
57059
- import_bplist_parser = __toESM(require("peachsim/vendor/bplist-parser"), 1);
57647
+ import_strict = __toESM(require("node:assert/strict"), 1);
57060
57648
  init_plist();
57061
57649
  isList = (value) => Array.isArray(value);
57062
57650
  isUid = (value) => typeof value === "object" && !isList(value) && !Buffer.isBuffer(value) && Object.keys(value).length === 1 && typeof value["CF$UID"] === "number";
@@ -57251,10 +57839,10 @@ var init_pods_files = __esm({
57251
57839
  constructor(targetName, path116) {
57252
57840
  this.targetName = targetName;
57253
57841
  this.path = path116;
57254
- const plist6 = parsePlistBytes(import_node_fs74.default.readFileSync(`${path116}/Info.plist`));
57255
- if (!isRecord(plist6) || !Array.isArray(plist6.AvailableLibraries))
57842
+ const plist2 = parsePlistBytes(import_node_fs74.default.readFileSync(`${path116}/Info.plist`));
57843
+ if (!isRecord(plist2) || !Array.isArray(plist2.AvailableLibraries))
57256
57844
  throw new Error(`${path116}/Info.plist declares no AvailableLibraries`);
57257
- this.slices = plist6.AvailableLibraries.map((library) => {
57845
+ this.slices = plist2.AvailableLibraries.map((library) => {
57258
57846
  if (!isRecord(library) || typeof library.LibraryIdentifier !== "string" || typeof library.LibraryPath !== "string" || typeof library.SupportedPlatform !== "string")
57259
57847
  throw new Error(`${path116}/Info.plist has an invalid library entry`);
57260
57848
  const root = `${path116}/${library.LibraryIdentifier}`;
@@ -65000,7 +65588,7 @@ ${published2.map(
65000
65588
  const contents2 = new Map([
65001
65589
  [
65002
65590
  "Info.plist",
65003
- import_plist3.default.build({
65591
+ buildPlist({
65004
65592
  AvailableLibraries: [
65005
65593
  {
65006
65594
  LibraryIdentifier: "ios-arm64-simulator",
@@ -65085,7 +65673,7 @@ ${published2.map(
65085
65673
  const infoPlistReady = infoPlistFiles.every((file) => import_node_fs80.default.existsSync(file));
65086
65674
  const info = {};
65087
65675
  for (const file of infoPlistReady ? infoPlistFiles : []) {
65088
- const fragment = import_plist3.default.parse(import_node_fs80.default.readFileSync(file, "utf8"));
65676
+ const fragment = parsePlist(import_node_fs80.default.readFileSync(file, "utf8"));
65089
65677
  if (!fragment || typeof fragment !== "object" || Array.isArray(fragment) || fragment instanceof Date || Buffer.isBuffer(fragment))
65090
65678
  throw new Error(`${file} is not a plist dictionary`);
65091
65679
  for (const [key2, value] of Object.entries(fragment)) {
@@ -65154,7 +65742,7 @@ ${published2.map(
65154
65742
  rootDir: root,
65155
65743
  projectFiles: buildFiles.sort(),
65156
65744
  projectDirs: [root],
65157
- infoPlist: infoPlistReady ? import_plist3.default.build(info) : null,
65745
+ infoPlist: infoPlistReady ? buildPlist(info) : null,
65158
65746
  infoPlistFile: null,
65159
65747
  postBundleScripts: [],
65160
65748
  appIconName: "",
@@ -65206,7 +65794,7 @@ function shellTokens(options2) {
65206
65794
  return words2;
65207
65795
  });
65208
65796
  }
65209
- var import_node_child_process41, import_node_crypto46, import_node_fs80, import_node_os16, import_node_path81, import_plist3, LIBRARY_RULES, QUERIED_RULES, NATIVE_SOURCE, HEADER4, PRODUCTS, graphs, CLANG_CONFIGURATION_FLAGS, GRAPH_FORMAT, BazelFiles, CXX_STANDARD;
65797
+ var import_node_child_process41, import_node_crypto46, import_node_fs80, import_node_os16, import_node_path81, LIBRARY_RULES, QUERIED_RULES, NATIVE_SOURCE, HEADER4, PRODUCTS, graphs, CLANG_CONFIGURATION_FLAGS, GRAPH_FORMAT, BazelFiles, CXX_STANDARD;
65210
65798
  var init_bazel_project = __esm({
65211
65799
  "src/bazel-project.ts"() {
65212
65800
  "use strict";
@@ -65215,8 +65803,8 @@ var init_bazel_project = __esm({
65215
65803
  import_node_fs80 = __toESM(require("node:fs"), 1);
65216
65804
  import_node_os16 = __toESM(require("node:os"), 1);
65217
65805
  import_node_path81 = __toESM(require("node:path"), 1);
65218
- import_plist3 = __toESM(require("peachsim/vendor/plist"), 1);
65219
65806
  init_is_record();
65807
+ init_plist();
65220
65808
  LIBRARY_RULES = /* @__PURE__ */ new Set(["swift_library", "objc_library", "cc_library"]);
65221
65809
  QUERIED_RULES = [
65222
65810
  "swift_library",
@@ -65979,23 +66567,23 @@ function isNativeAppIdentity(value) {
65979
66567
  if (platform === "android" && !/^[1-9][0-9]*$/.test(buildVersion)) return false;
65980
66568
  return true;
65981
66569
  }
65982
- function readGoogleSignInConfiguration(plist6, resources) {
66570
+ function readGoogleSignInConfiguration(plist2, resources) {
65983
66571
  const clientIds = {};
65984
66572
  for (const [file, value] of Object.entries(resources)) {
65985
66573
  if (isRecord(value) && typeof value.CLIENT_ID === "string")
65986
66574
  clientIds[file.split("/").pop()?.replace(/\.plist$/, "") ?? file] = value.CLIENT_ID;
65987
66575
  }
65988
66576
  const urlSchemes = [];
65989
- for (const entry of Array.isArray(plist6.CFBundleURLTypes) ? plist6.CFBundleURLTypes : []) {
66577
+ for (const entry of Array.isArray(plist2.CFBundleURLTypes) ? plist2.CFBundleURLTypes : []) {
65990
66578
  if (!isRecord(entry) || !Array.isArray(entry.CFBundleURLSchemes)) continue;
65991
66579
  for (const scheme of entry.CFBundleURLSchemes)
65992
66580
  if (typeof scheme === "string") urlSchemes.push(scheme);
65993
66581
  }
65994
66582
  return {
65995
- clientId: plist6.GIDClientID,
65996
- serverClientId: plist6.GIDServerClientID,
65997
- hostedDomain: plist6.GIDHostedDomain,
65998
- openIDRealm: plist6.GIDOpenIDRealm,
66583
+ clientId: plist2.GIDClientID,
66584
+ serverClientId: plist2.GIDServerClientID,
66585
+ hostedDomain: plist2.GIDHostedDomain,
66586
+ openIDRealm: plist2.GIDOpenIDRealm,
65999
66587
  urlSchemes,
66000
66588
  clientIds
66001
66589
  };
@@ -66139,7 +66727,7 @@ var init_provenance = __esm({
66139
66727
  import_node_crypto48 = require("node:crypto");
66140
66728
  import_node_fs82 = require("node:fs");
66141
66729
  import_node_path83 = require("node:path");
66142
- 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":"c64b677c93e48d61c71b371d887e9db8506c32ef968ed50d9468de1f67fe5d8d","swift-package.ts":"05c6cf101fbc944f6684a70db0a9c5aede846b2f0482a6b4a5a0abed737d4658","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"4f54e110f6f2f72da6d20ca6fc1a10c7dbd0cd462b7dd3959351e107c4aa7548","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"c72b724fc497e4cf603c355f86eb3c07c929ad299758cffbc6ff88ed241654c6","xcode-project.ts":"81f36daeda9ac5c81a5631fdcab42fb12d09a74705915b8861f404d0db2e01c5","xcode-target-members.ts":"96f6a9f5567a4fbd9806252229b35b9a451a112b20f70f8c20189ffd428815fd","xcode-json-project.ts":"df6d6db28e0c8cfdf1f480e1e32d35f12c9cf1936642d5dda923889fb18a8fd6","openstep-plist.ts":"da11f86885ef1e25979ad989f332195c113c4b7a43f108e8d36646973430b81b"}') : swiftCoverageSourceDigests((0, import_node_path83.join)(__sootsim_import_meta_dirname, ".."));
66730
+ 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":"c64b677c93e48d61c71b371d887e9db8506c32ef968ed50d9468de1f67fe5d8d","swift-package.ts":"05c6cf101fbc944f6684a70db0a9c5aede846b2f0482a6b4a5a0abed737d4658","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"4f54e110f6f2f72da6d20ca6fc1a10c7dbd0cd462b7dd3959351e107c4aa7548","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"c72b724fc497e4cf603c355f86eb3c07c929ad299758cffbc6ff88ed241654c6","xcode-project.ts":"fe50b74f53082e75bb32393ada42bbbcb0ff982024a026b4b673f2004dd404d8","xcode-target-members.ts":"96f6a9f5567a4fbd9806252229b35b9a451a112b20f70f8c20189ffd428815fd","xcode-json-project.ts":"df6d6db28e0c8cfdf1f480e1e32d35f12c9cf1936642d5dda923889fb18a8fd6","openstep-plist.ts":"da11f86885ef1e25979ad989f332195c113c4b7a43f108e8d36646973430b81b"}') : swiftCoverageSourceDigests((0, import_node_path83.join)(__sootsim_import_meta_dirname, ".."));
66143
66731
  }
66144
66732
  });
66145
66733
 
@@ -68092,13 +68680,13 @@ function intentModelVersion(value) {
68092
68680
  return value === "1.0" || value === "1.1" ? value : "1.2";
68093
68681
  }
68094
68682
  function modelList(value, key2) {
68095
- (0, import_strict.default)(value && typeof value === "object");
68683
+ (0, import_strict2.default)(value && typeof value === "object");
68096
68684
  const entries2 = Reflect.get(value, key2) ?? [];
68097
- (0, import_strict.default)(Array.isArray(entries2));
68685
+ (0, import_strict2.default)(Array.isArray(entries2));
68098
68686
  return entries2;
68099
68687
  }
68100
68688
  function identifier(value) {
68101
- (0, import_strict.default)(
68689
+ (0, import_strict2.default)(
68102
68690
  typeof value === "string" && /^[_\p{ID_Start}][_\p{ID_Continue}]*$/u.test(value),
68103
68691
  `invalid intent identifier ${String(value)}`
68104
68692
  );
@@ -68106,18 +68694,18 @@ function identifier(value) {
68106
68694
  }
68107
68695
  function intentClassIdentifier(value) {
68108
68696
  const name3 = identifier(value);
68109
- (0, import_strict.default)(/^[A-Za-z_0-9]+$/.test(name3), `invalid intent class name ${name3}`);
68697
+ (0, import_strict2.default)(/^[A-Za-z_0-9]+$/.test(name3), `invalid intent class name ${name3}`);
68110
68698
  return name3;
68111
68699
  }
68112
68700
  function readSwiftField(value, key2, customTypes) {
68113
- (0, import_strict.default)(value && typeof value === "object");
68701
+ (0, import_strict2.default)(value && typeof value === "object");
68114
68702
  const get = (property) => Reflect.get(value, key2 + property);
68115
68703
  const name3 = identifier(get("Name"));
68116
68704
  let kind = intentParameterKind(get("Type"));
68117
68705
  let enumeration = get("EnumType");
68118
68706
  let object8 = get("ObjectType");
68119
- (0, import_strict.default)(enumeration === void 0 || kind === "Integer");
68120
- (0, import_strict.default)(object8 === void 0 || kind === "Object");
68707
+ (0, import_strict2.default)(enumeration === void 0 || kind === "Integer");
68708
+ (0, import_strict2.default)(object8 === void 0 || kind === "Object");
68121
68709
  const custom = enumeration ?? object8;
68122
68710
  let customName;
68123
68711
  if (custom !== void 0) {
@@ -68132,7 +68720,7 @@ function readSwiftField(value, key2, customTypes) {
68132
68720
  }
68133
68721
  } else {
68134
68722
  customName = customTypes.get(name4);
68135
- (0, import_strict.default)(customName, "unknown intent parameter type: " + name4);
68723
+ (0, import_strict2.default)(customName, "unknown intent parameter type: " + name4);
68136
68724
  }
68137
68725
  }
68138
68726
  const type = types.get(kind);
@@ -68142,7 +68730,7 @@ function readSwiftField(value, key2, customTypes) {
68142
68730
  const valueType = multiple ? `[${array8}]` : base;
68143
68731
  const resolves = get("SupportsResolution") === true;
68144
68732
  const explicitReasons = modelList(value, key2 + "UnsupportedReasons").map((entry) => {
68145
- (0, import_strict.default)(entry && typeof entry === "object");
68733
+ (0, import_strict2.default)(entry && typeof entry === "object");
68146
68734
  return identifier(Reflect.get(entry, key2 + "UnsupportedReasonCode"));
68147
68735
  });
68148
68736
  const defaults = resolves && !customName ? defaultUnsupportedReasons(kind) : [];
@@ -68233,18 +68821,18 @@ fatalError()
68233
68821
  }
68234
68822
  function customObjectFields(definition2, customTypes) {
68235
68823
  return modelList(definition2, "INTypeProperties").filter((entry) => {
68236
- (0, import_strict.default)(entry && typeof entry === "object");
68824
+ (0, import_strict2.default)(entry && typeof entry === "object");
68237
68825
  return Reflect.get(entry, "INTypePropertyDefault") !== true;
68238
68826
  }).map((entry) => {
68239
68827
  const field = readSwiftField(entry, "INTypeProperty", customTypes);
68240
68828
  return { ...field, availability: field.availability ?? swiftResolutionAvailable };
68241
68829
  });
68242
68830
  }
68243
- var import_strict, swiftAvailable, swiftResolutionAvailable, swiftOptionsAvailable, upper, iOS13, numericReasons, builtin2, types;
68831
+ var import_strict2, swiftAvailable, swiftResolutionAvailable, swiftOptionsAvailable, upper, iOS13, numericReasons, builtin2, types;
68244
68832
  var init_fields = __esm({
68245
68833
  "src/intent-definition/fields.ts"() {
68246
68834
  "use strict";
68247
- import_strict = __toESM(require("node:assert/strict"), 1);
68835
+ import_strict2 = __toESM(require("node:assert/strict"), 1);
68248
68836
  init_system_types();
68249
68837
  swiftAvailable = "@available(iOS 12.0, macOS 11.0, watchOS 5.0, *) @available(tvOS, unavailable)";
68250
68838
  swiftResolutionAvailable = "@available(iOS 13.0, macOS 11.0, watchOS 6.0, *)";
@@ -68419,7 +69007,7 @@ function intentHashInput(root, propertyTypes = []) {
68419
69007
  integer2(18, BigInt(value.length));
68420
69008
  for (const item of value) append(item);
68421
69009
  } else {
68422
- (0, import_strict2.default)(
69010
+ (0, import_strict3.default)(
68423
69011
  value && typeof value === "object" && Object.getPrototypeOf(value) === Object.prototype
68424
69012
  );
68425
69013
  const keys = Object.keys(value).sort();
@@ -68434,11 +69022,11 @@ function intentHashInput(root, propertyTypes = []) {
68434
69022
  for (const propertyType of propertyTypes) append(propertyType);
68435
69023
  return Buffer.concat(chunks);
68436
69024
  }
68437
- var import_strict2, IntentReal;
69025
+ var import_strict3, IntentReal;
68438
69026
  var init_hash_input = __esm({
68439
69027
  "src/intent-definition/hash-input.ts"() {
68440
69028
  "use strict";
68441
- import_strict2 = __toESM(require("node:assert/strict"), 1);
69029
+ import_strict3 = __toESM(require("node:assert/strict"), 1);
68442
69030
  IntentReal = class {
68443
69031
  constructor(value) {
68444
69032
  this.value = value;
@@ -68498,7 +69086,7 @@ function dictionary(value) {
68498
69086
  }
68499
69087
  function normalizedEnums(input) {
68500
69088
  return modelList(input, "INEnums").map((value) => {
68501
- (0, import_strict3.default)(dictionary(value));
69089
+ (0, import_strict4.default)(dictionary(value));
68502
69090
  return {
68503
69091
  ...value,
68504
69092
  INEnumName: intentClassIdentifier(value.INEnumName),
@@ -68516,7 +69104,7 @@ function localizationIdentifier(field, key2) {
68516
69104
  }
68517
69105
  function normalizedMetadata(type, source, field) {
68518
69106
  const defaults = typeMetadata.get(type) ?? {};
68519
- (0, import_strict3.default)(source === void 0 || dictionary(source));
69107
+ (0, import_strict4.default)(source === void 0 || dictionary(source));
68520
69108
  const metadata = source ? { ...source } : Object.fromEntries(
68521
69109
  Object.entries(defaults).map(([key2, value]) => {
68522
69110
  const qualified2 = `INIntentParameterMetadata${key2}`;
@@ -68540,7 +69128,7 @@ function normalizedMetadata(type, source, field) {
68540
69128
  function normalizedReasons(parameter, kind, field) {
68541
69129
  const reasons = /* @__PURE__ */ new Map();
68542
69130
  for (const reason of modelList(parameter, "INIntentParameterUnsupportedReasons")) {
68543
- (0, import_strict3.default)(dictionary(reason));
69131
+ (0, import_strict4.default)(dictionary(reason));
68544
69132
  const code = identifier(reason.INIntentParameterUnsupportedReasonCode);
68545
69133
  const text7 = reason.INIntentParameterUnsupportedReasonFormatString;
68546
69134
  reasons.set(
@@ -68577,17 +69165,17 @@ function compileIntentMetadata(input, enums, prefix) {
68577
69165
  }
68578
69166
  const objectHashes = /* @__PURE__ */ new Map();
68579
69167
  for (const declaration of modelList(input, "INTypes")) {
68580
- (0, import_strict3.default)(dictionary(declaration) && typeof declaration.INTypeName === "string");
69168
+ (0, import_strict4.default)(dictionary(declaration) && typeof declaration.INTypeName === "string");
68581
69169
  objectHashes.set(declaration.INTypeName, intentSipHash(intentHashInput(declaration)));
68582
69170
  }
68583
69171
  const intents = modelList(input, "INIntents").map((value) => {
68584
- (0, import_strict3.default)(dictionary(value));
69172
+ (0, import_strict4.default)(dictionary(value));
68585
69173
  const name3 = intentClassIdentifier(value.INIntentName);
68586
69174
  const system = value.INIntentType === "System";
68587
69175
  const propertyTypes = [];
68588
69176
  const parameters = modelList(value, "INIntentParameters").map(
68589
69177
  (parameter, position) => {
68590
- (0, import_strict3.default)(dictionary(parameter));
69178
+ (0, import_strict4.default)(dictionary(parameter));
68591
69179
  const enumName = parameter.INIntentParameterEnumType;
68592
69180
  const objectName = parameter.INIntentParameterObjectType;
68593
69181
  const reference = enumName ?? objectName;
@@ -68614,7 +69202,7 @@ function compileIntentMetadata(input, enums, prefix) {
68614
69202
  }
68615
69203
  } else {
68616
69204
  const localHash = hashes.get(typeName);
68617
- (0, import_strict3.default)(localHash !== void 0, `unknown intent parameter type: ${typeName}`);
69205
+ (0, import_strict4.default)(localHash !== void 0, `unknown intent parameter type: ${typeName}`);
68618
69206
  hash2 = localHash;
68619
69207
  }
68620
69208
  }
@@ -68640,7 +69228,7 @@ function compileIntentMetadata(input, enums, prefix) {
68640
69228
  if (parameter.INIntentParameterSupportsMultipleValues && parameter.INIntentParameterFixedSizeArray) {
68641
69229
  const sizes = /* @__PURE__ */ new Map();
68642
69230
  for (const size2 of modelList(parameter, "INIntentParameterArraySizes")) {
68643
- (0, import_strict3.default)(
69231
+ (0, import_strict4.default)(
68644
69232
  dictionary(size2) && typeof size2.INIntentParameterArraySizeSizeClass === "string"
68645
69233
  );
68646
69234
  sizes.set(size2.INIntentParameterArraySizeSizeClass, size2);
@@ -68764,7 +69352,7 @@ function formatPlistReal(value) {
68764
69352
  return `${sign}${digits.slice(0, point)}.${digits.slice(point)}`;
68765
69353
  }
68766
69354
  function writeIntentDefinition(input, prefix) {
68767
- (0, import_strict3.default)(dictionary(input));
69355
+ (0, import_strict4.default)(dictionary(input));
68768
69356
  const escape2 = (text7) => text7.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
68769
69357
  const lines = [
68770
69358
  '<?xml version="1.0" encoding="UTF-8"?>',
@@ -68801,7 +69389,7 @@ function writeIntentDefinition(input, prefix) {
68801
69389
  lines.push(`${indent2}</array>`);
68802
69390
  }
68803
69391
  } else {
68804
- (0, import_strict3.default)(dictionary(value));
69392
+ (0, import_strict4.default)(dictionary(value));
68805
69393
  const keys = Object.keys(value).sort();
68806
69394
  if (keys.length === 0) lines.push(`${indent2}<dict/>`);
68807
69395
  else {
@@ -68833,11 +69421,11 @@ function writeIntentDefinition(input, prefix) {
68833
69421
  lines.push("</plist>", "");
68834
69422
  return lines.join("\n");
68835
69423
  }
68836
- var import_strict3, import_node_crypto51, typeMetadata, initializeMetadata, widgetArraySizes, defaultReasonMessages;
69424
+ var import_strict4, import_node_crypto51, typeMetadata, initializeMetadata, widgetArraySizes, defaultReasonMessages;
68837
69425
  var init_metadata = __esm({
68838
69426
  "src/intent-definition/metadata.ts"() {
68839
69427
  "use strict";
68840
- import_strict3 = __toESM(require("node:assert/strict"), 1);
69428
+ import_strict4 = __toESM(require("node:assert/strict"), 1);
68841
69429
  import_node_crypto51 = require("node:crypto");
68842
69430
  init_fields();
68843
69431
  init_hash_input();
@@ -68908,175 +69496,34 @@ function safeNumber(value) {
68908
69496
  function xmlPlist2(bytes) {
68909
69497
  const encoding = bytes[0] === 255 && bytes[1] === 254 ? "utf-16le" : bytes[0] === 254 && bytes[1] === 255 ? "utf-16be" : "utf-8";
68910
69498
  const text7 = new TextDecoder(encoding, { fatal: true }).decode(bytes);
68911
- const document = new import_xmldom.DOMParser({
68912
- onError(_level, message) {
68913
- throw new Error(message);
68914
- }
68915
- }).parseFromString(text7, "application/xml");
68916
- const children = (element) => Array.from(element.children);
68917
- const contents2 = (element) => {
68918
- (0, import_strict4.default)(element.children.length === 0);
68919
- return element.textContent ?? "";
68920
- };
68921
- const visit3 = (element) => {
68922
- switch (element.tagName) {
68923
- case "dict": {
68924
- const entries2 = children(element);
68925
- (0, import_strict4.default)(entries2.length % 2 === 0);
68926
- const pairs2 = [];
68927
- for (let i = 0; i < entries2.length; i += 2) {
68928
- const key2 = entries2[i];
68929
- (0, import_strict4.default)(key2.tagName === "key");
68930
- pairs2.push([contents2(key2), visit3(entries2[i + 1])]);
68931
- }
68932
- return Object.fromEntries(pairs2);
68933
- }
68934
- case "array":
68935
- return children(element).map(visit3);
68936
- case "string":
68937
- return contents2(element);
68938
- case "integer": {
68939
- const value = contents2(element).trim();
68940
- (0, import_strict4.default)(value.length > 0);
68941
- return safeNumber(BigInt(value));
68942
- }
68943
- case "real": {
68944
- const value = contents2(element).trim();
68945
- (0, import_strict4.default)(value.length > 0);
68946
- return new IntentReal(
68947
- /^[+-]?inf(?:inity)?$/i.test(value) ? value.startsWith("-") ? -Infinity : Infinity : Number(value)
68948
- );
68949
- }
68950
- case "true":
68951
- return true;
68952
- case "false":
68953
- return false;
68954
- case "data":
68955
- return Buffer.from(contents2(element), "base64");
68956
- case "date":
68957
- return new Date(contents2(element));
68958
- default:
68959
- throw new Error(`unsupported plist element ${element.tagName}`);
68960
- }
68961
- };
68962
- const plist6 = document.documentElement;
68963
- (0, import_strict4.default)(plist6?.tagName === "plist" && plist6.children.length === 1);
68964
- return visit3(plist6.children[0]);
68965
- }
68966
- function binaryPlist2(bytes) {
68967
- (0, import_strict4.default)(bytes.length >= 40);
68968
- const trailer = bytes.length - 32;
68969
- const offsetWidth = bytes[trailer + 6];
68970
- const refWidth = bytes[trailer + 7];
68971
- (0, import_strict4.default)(offsetWidth > 0 && offsetWidth <= 8 && refWidth > 0 && refWidth <= 8);
68972
- const count = Number(bytes.readBigUInt64BE(trailer + 8));
68973
- const root = Number(bytes.readBigUInt64BE(trailer + 16));
68974
- const table = Number(bytes.readBigUInt64BE(trailer + 24));
68975
- (0, import_strict4.default)(
68976
- table >= 8 && table < trailer && count > 0 && count <= (trailer - table) / offsetWidth
68977
- );
68978
- const unsigned = (at, width) => {
68979
- (0, import_strict4.default)(at >= 8 && at + width <= trailer);
68980
- let result = 0n;
68981
- for (let i = at; i < at + width; i++) result = result * 256n + BigInt(bytes[i]);
68982
- return result;
68983
- };
68984
- const cache = /* @__PURE__ */ new Map();
68985
- const visiting = /* @__PURE__ */ new Set();
68986
- const visit3 = (ref) => {
68987
- (0, import_strict4.default)(ref >= 0 && ref < count && !visiting.has(ref));
68988
- if (cache.has(ref)) return cache.get(ref);
68989
- visiting.add(ref);
68990
- const at = Number(unsigned(table + ref * offsetWidth, offsetWidth));
68991
- (0, import_strict4.default)(at >= 8 && at < table);
68992
- const marker = bytes[at];
68993
- const type = marker >> 4;
68994
- let length = marker & 15;
68995
- let data = at + 1;
68996
- if (length === 15 && [4, 5, 6, 7, 10, 13].includes(type)) {
68997
- (0, import_strict4.default)(data < table && bytes[data] >> 4 === 1);
68998
- const width = 2 ** (bytes[data] & 15);
68999
- (0, import_strict4.default)(width <= 8 && data + 1 + width <= table);
69000
- length = Number(unsigned(data + 1, width));
69001
- data += 1 + width;
69002
- }
69003
- const end = (size2) => {
69004
- (0, import_strict4.default)(Number.isSafeInteger(size2) && data + size2 <= table);
69005
- return data + size2;
69006
- };
69007
- const references = (total) => {
69008
- end(total * refWidth);
69009
- return Array.from(
69010
- { length: total },
69011
- (_, i) => visit3(Number(unsigned(data + i * refWidth, refWidth)))
69499
+ return parseXmlPlist(text7, {
69500
+ strict: true,
69501
+ onInteger(raw2) {
69502
+ (0, import_strict5.default)(raw2.length > 0);
69503
+ return safeNumber(BigInt(raw2));
69504
+ },
69505
+ onReal(raw2) {
69506
+ (0, import_strict5.default)(raw2.length > 0);
69507
+ return new IntentReal(
69508
+ /^[+-]?inf(?:inity)?$/i.test(raw2) ? raw2.startsWith("-") ? -Infinity : Infinity : Number(raw2)
69012
69509
  );
69013
- };
69014
- let value;
69015
- switch (type) {
69016
- case 0:
69017
- (0, import_strict4.default)(marker === 8 || marker === 9);
69018
- value = marker === 9;
69019
- break;
69020
- case 1: {
69021
- const size2 = 2 ** length;
69022
- (0, import_strict4.default)(size2 <= 16);
69023
- end(size2);
69024
- const integer2 = unsigned(data, size2);
69025
- value = safeNumber(size2 >= 8 ? BigInt.asIntN(size2 * 8, integer2) : integer2);
69026
- break;
69027
- }
69028
- case 2:
69029
- (0, import_strict4.default)(length === 2 || length === 3);
69030
- end(2 ** length);
69031
- value = new IntentReal(
69032
- length === 2 ? bytes.readFloatBE(data) : bytes.readDoubleBE(data)
69033
- );
69034
- break;
69035
- case 3:
69036
- (0, import_strict4.default)(length === 3);
69037
- end(8);
69038
- value = new Date(Date.UTC(2001, 0, 1) + bytes.readDoubleBE(data) * 1e3);
69039
- break;
69040
- case 4:
69041
- value = bytes.subarray(data, end(length));
69042
- break;
69043
- case 5:
69044
- value = bytes.toString("ascii", data, end(length));
69045
- break;
69046
- case 6:
69047
- value = Buffer.from(bytes.subarray(data, end(length * 2))).swap16().toString("utf16le");
69048
- break;
69049
- case 7:
69050
- value = bytes.toString("utf8", data, end(length));
69051
- break;
69052
- case 10:
69053
- value = references(length);
69054
- break;
69055
- case 13: {
69056
- const elements = references(length * 2);
69057
- const keys = elements.slice(0, length);
69058
- (0, import_strict4.default)(keys.every((key2) => typeof key2 === "string"));
69059
- value = Object.fromEntries(keys.map((key2, i) => [key2, elements[length + i]]));
69060
- break;
69061
- }
69062
- default:
69063
- throw new Error(`unsupported binary plist type ${type}`);
69064
69510
  }
69065
- visiting.delete(ref);
69066
- cache.set(ref, value);
69067
- return value;
69068
- };
69069
- return visit3(root);
69511
+ });
69070
69512
  }
69071
69513
  function parseIntentPlist(bytes) {
69072
- return bytes.toString("ascii", 0, 8) === "bplist00" ? binaryPlist2(bytes) : xmlPlist2(bytes);
69514
+ return bytes.toString("ascii", 0, 8) === "bplist00" ? parseBinaryPlist(bytes, {
69515
+ strict: true,
69516
+ onInteger: safeNumber,
69517
+ onReal: (value) => new IntentReal(value)
69518
+ }) : xmlPlist2(bytes);
69073
69519
  }
69074
- var import_strict4, import_xmldom;
69520
+ var import_strict5;
69075
69521
  var init_plist_reader = __esm({
69076
69522
  "src/intent-definition/plist-reader.ts"() {
69077
69523
  "use strict";
69078
- import_strict4 = __toESM(require("node:assert/strict"), 1);
69079
- import_xmldom = require("peachsim/vendor/@xmldom/xmldom");
69524
+ import_strict5 = __toESM(require("node:assert/strict"), 1);
69525
+ init_plist();
69526
+ init_plist_bytes();
69080
69527
  init_hash_input();
69081
69528
  }
69082
69529
  });
@@ -69088,10 +69535,10 @@ function readIntentResponse(definition2, customTypes) {
69088
69535
  );
69089
69536
  const definitions = new Map(
69090
69537
  modelList(definition2, "INIntentResponseCodes").map((entry) => {
69091
- (0, import_strict5.default)(entry && typeof entry === "object");
69538
+ (0, import_strict6.default)(entry && typeof entry === "object");
69092
69539
  const name3 = identifier(Reflect.get(entry, "INIntentResponseCodeName"));
69093
69540
  const message = Reflect.get(entry, "INIntentResponseCodeFormatString");
69094
- (0, import_strict5.default)(message === void 0 || typeof message === "string");
69541
+ (0, import_strict6.default)(message === void 0 || typeof message === "string");
69095
69542
  const referenced = new Set(
69096
69543
  [
69097
69544
  ...String(message ?? "").matchAll(
@@ -69102,7 +69549,7 @@ function readIntentResponse(definition2, customTypes) {
69102
69549
  const names = [...referenced].sort();
69103
69550
  const parameters = names.map((name4) => {
69104
69551
  const field = fields.find((field2) => field2.name === name4);
69105
- (0, import_strict5.default)(field, "unknown intent response field " + name4);
69552
+ (0, import_strict6.default)(field, "unknown intent response field " + name4);
69106
69553
  return field;
69107
69554
  });
69108
69555
  return [
@@ -69154,11 +69601,11 @@ ${access} static func ${code}(${parameters.map((field) => `${field.name}: ${fiel
69154
69601
  }).join("\n")}
69155
69602
  }`;
69156
69603
  }
69157
- var import_strict5, responseCodes;
69604
+ var import_strict6, responseCodes;
69158
69605
  var init_response = __esm({
69159
69606
  "src/intent-definition/response.ts"() {
69160
69607
  "use strict";
69161
- import_strict5 = __toESM(require("node:assert/strict"), 1);
69608
+ import_strict6 = __toESM(require("node:assert/strict"), 1);
69162
69609
  init_fields();
69163
69610
  responseCodes = [
69164
69611
  "unspecified",
@@ -69176,7 +69623,7 @@ var init_response = __esm({
69176
69623
  function objcAvailability(swift) {
69177
69624
  if (!swift) return "";
69178
69625
  const version2 = /^@available\(iOS ([\d.]+), macOS ([\d.]+), watchOS ([\d.]+), \*\)$/.exec(swift);
69179
- (0, import_strict6.default)(version2);
69626
+ (0, import_strict7.default)(version2);
69180
69627
  return ` API_AVAILABLE(ios(${version2[1]}), macos(${version2[2]}), watchos(${version2[3]}))`;
69181
69628
  }
69182
69629
  function objcElement(field) {
@@ -69205,7 +69652,7 @@ function headerImports(fields, visibility, module2) {
69205
69652
  return [...imports2].join("\n");
69206
69653
  }
69207
69654
  function objcIntentSource(name3, prefix, definition2, customTypes, version2, visibility, module2) {
69208
- (0, import_strict6.default)(definition2 && typeof definition2 === "object");
69655
+ (0, import_strict7.default)(definition2 && typeof definition2 === "object");
69209
69656
  const klass = prefix + name3 + "Intent";
69210
69657
  const response = klass + "Response";
69211
69658
  const attr = hidden(visibility);
@@ -69244,7 +69691,7 @@ function objcIntentSource(name3, prefix, definition2, customTypes, version2, vis
69244
69691
  };
69245
69692
  const constructors = [...definitions].filter(([, definition3]) => definition3.parameters.length > 0).map(([code, { parameters: parameters2, availability }]) => {
69246
69693
  const [first, ...rest] = parameters2;
69247
- (0, import_strict6.default)(first);
69694
+ (0, import_strict7.default)(first);
69248
69695
  const selector = `${code}IntentResponseWith${upper(first.name)}:(${objcType(first)})${first.name}` + rest.map((field) => ` ${field.name}:(${objcType(field)})${field.name}`).join("");
69249
69696
  return {
69250
69697
  code,
@@ -69342,15 +69789,15 @@ ${reasons.map(
69342
69789
  return { header, implementation };
69343
69790
  }
69344
69791
  function objcEnumSource(definition2, label, prefix, visibility) {
69345
- (0, import_strict6.default)(definition2 && typeof definition2 === "object");
69792
+ (0, import_strict7.default)(definition2 && typeof definition2 === "object");
69346
69793
  const name3 = prefix + label;
69347
69794
  const attr = hidden(visibility);
69348
69795
  const bases = [attr, available].filter(Boolean).join(" ");
69349
69796
  const cases = modelList(definition2, "INEnumValues").map((entry) => {
69350
- (0, import_strict6.default)(entry && typeof entry === "object");
69797
+ (0, import_strict7.default)(entry && typeof entry === "object");
69351
69798
  const value = identifier(Reflect.get(entry, "INEnumValueName"));
69352
69799
  const index = Reflect.get(entry, "INEnumValueIndex") ?? 0;
69353
- (0, import_strict6.default)(typeof index === "number" && Number.isSafeInteger(index));
69800
+ (0, import_strict7.default)(typeof index === "number" && Number.isSafeInteger(index));
69354
69801
  return ` ${name3}${upper(value)} = ${index}`;
69355
69802
  });
69356
69803
  const success = `+ (instancetype)successWithResolved${label}:(${name3})resolvedValue`;
@@ -69434,11 +69881,11 @@ ${confirm} {
69434
69881
  `
69435
69882
  };
69436
69883
  }
69437
- var import_strict6, available, resolution, options, hiddenAttribute, hidden, headerStart, headerEnd, pointer, array7;
69884
+ var import_strict7, available, resolution, options, hiddenAttribute, hidden, headerStart, headerEnd, pointer, array7;
69438
69885
  var init_objective_c = __esm({
69439
69886
  "src/intent-definition/objective-c.ts"() {
69440
69887
  "use strict";
69441
- import_strict6 = __toESM(require("node:assert/strict"), 1);
69888
+ import_strict7 = __toESM(require("node:assert/strict"), 1);
69442
69889
  init_fields();
69443
69890
  init_response();
69444
69891
  available = "API_AVAILABLE(ios(12.0), macos(11.0), watchos(5.0)) API_UNAVAILABLE(tvos)";
@@ -69455,7 +69902,7 @@ var init_objective_c = __esm({
69455
69902
 
69456
69903
  // src/intent-definition/swift.ts
69457
69904
  function swiftIntentSource(name3, prefix, definition2, customTypes, version2, access) {
69458
- (0, import_strict7.default)(definition2 && typeof definition2 === "object");
69905
+ (0, import_strict8.default)(definition2 && typeof definition2 === "object");
69459
69906
  const klass = `${prefix}${name3}Intent`;
69460
69907
  const response = `${klass}Response`;
69461
69908
  const parameters = modelList(definition2, "INIntentParameters").map(
@@ -69556,11 +70003,11 @@ ${access} class func unsupported(forReason reason: ${base}UnsupportedReason) ->
69556
70003
  #endif
69557
70004
  `;
69558
70005
  }
69559
- var import_strict7;
70006
+ var import_strict8;
69560
70007
  var init_swift = __esm({
69561
70008
  "src/intent-definition/swift.ts"() {
69562
70009
  "use strict";
69563
- import_strict7 = __toESM(require("node:assert/strict"), 1);
70010
+ import_strict8 = __toESM(require("node:assert/strict"), 1);
69564
70011
  init_fields();
69565
70012
  init_response();
69566
70013
  }
@@ -69568,17 +70015,17 @@ var init_swift = __esm({
69568
70015
 
69569
70016
  // src/intent-definition/source.ts
69570
70017
  function swiftEnumSource(definition2, visibility, prefix = "") {
69571
- (0, import_strict8.default)(definition2 && typeof definition2 === "object");
70018
+ (0, import_strict9.default)(definition2 && typeof definition2 === "object");
69572
70019
  const unprefixed = identifier(Reflect.get(definition2, "INEnumName"));
69573
70020
  const name3 = prefix + unprefixed;
69574
70021
  const values = Reflect.get(definition2, "INEnumValues");
69575
- (0, import_strict8.default)(Array.isArray(values));
70022
+ (0, import_strict9.default)(Array.isArray(values));
69576
70023
  const access = visibility === "project" ? "internal" : "public";
69577
70024
  const cases = values.map((entry) => {
69578
- (0, import_strict8.default)(entry && typeof entry === "object");
70025
+ (0, import_strict9.default)(entry && typeof entry === "object");
69579
70026
  const name4 = identifier(Reflect.get(entry, "INEnumValueName"));
69580
70027
  const index = Reflect.get(entry, "INEnumValueIndex") ?? 0;
69581
- (0, import_strict8.default)(typeof index === "number" && Number.isSafeInteger(index));
70028
+ (0, import_strict9.default)(typeof index === "number" && Number.isSafeInteger(index));
69582
70029
  return ` case \`${name4}\` = ${index}`;
69583
70030
  });
69584
70031
  return `#if canImport(Intents)
@@ -69603,7 +70050,7 @@ ${access} class ${name3}ResolutionResult: INEnumResolutionResult {
69603
70050
  `;
69604
70051
  }
69605
70052
  function emitIntentSource(definition2, prefix, visibility, language, module2) {
69606
- (0, import_strict8.default)(definition2 && typeof definition2 === "object");
70053
+ (0, import_strict9.default)(definition2 && typeof definition2 === "object");
69607
70054
  const intents = modelList(definition2, "INIntents");
69608
70055
  const types2 = modelList(definition2, "INTypes");
69609
70056
  const enums = modelList(definition2, "INEnums");
@@ -69613,7 +70060,7 @@ function emitIntentSource(definition2, prefix, visibility, language, module2) {
69613
70060
  intentModelVersion(Reflect.get(definition2, "INIntentDefinitionModelVersion"))
69614
70061
  );
69615
70062
  const nameOf = (entry, key2) => {
69616
- (0, import_strict8.default)(entry && typeof entry === "object");
70063
+ (0, import_strict9.default)(entry && typeof entry === "object");
69617
70064
  return identifier(Reflect.get(entry, key2));
69618
70065
  };
69619
70066
  const typeNames = types2.map((type) => nameOf(type, "INTypeName"));
@@ -69653,7 +70100,7 @@ function emitIntentSource(definition2, prefix, visibility, language, module2) {
69653
70100
  });
69654
70101
  }
69655
70102
  for (const intent of intents) {
69656
- (0, import_strict8.default)(intent && typeof intent === "object");
70103
+ (0, import_strict9.default)(intent && typeof intent === "object");
69657
70104
  if (Reflect.get(intent, "INIntentType") === "System") continue;
69658
70105
  const name3 = identifier(Reflect.get(intent, "INIntentName"));
69659
70106
  const filename = `${prefix}${name3}Intent`;
@@ -69670,11 +70117,11 @@ function emitIntentSource(definition2, prefix, visibility, language, module2) {
69670
70117
  }
69671
70118
  return output;
69672
70119
  }
69673
- var import_strict8;
70120
+ var import_strict9;
69674
70121
  var init_source = __esm({
69675
70122
  "src/intent-definition/source.ts"() {
69676
70123
  "use strict";
69677
- import_strict8 = __toESM(require("node:assert/strict"), 1);
70124
+ import_strict9 = __toESM(require("node:assert/strict"), 1);
69678
70125
  init_fields();
69679
70126
  init_objective_c();
69680
70127
  init_swift();
@@ -70498,7 +70945,7 @@ function expandValue(value, settings) {
70498
70945
  return value;
70499
70946
  }
70500
70947
  function processedInfoPlist(name3, file, settings, settingKeys) {
70501
- const source = file ? import_plist4.default.parse(import_node_fs87.default.readFileSync(file, "utf8")) : {};
70948
+ const source = file ? parsePlist(import_node_fs87.default.readFileSync(file, "utf8")) : {};
70502
70949
  if (!source || typeof source !== "object" || Array.isArray(source) || source instanceof Date || Buffer.isBuffer(source))
70503
70950
  throw new Error(`${name3} Info.plist must contain a dictionary`);
70504
70951
  const info = {};
@@ -71072,7 +71519,7 @@ ${output}`
71072
71519
  );
71073
71520
  let launchName = settings("INFOPLIST_KEY_UILaunchStoryboardName");
71074
71521
  if (process.platform !== "darwin" && !launchName && infoPlistOutput && import_node_fs87.default.existsSync(infoPlistOutput)) {
71075
- const info = import_plist4.default.parse(import_node_fs87.default.readFileSync(infoPlistOutput, "utf8"));
71522
+ const info = parsePlist(import_node_fs87.default.readFileSync(infoPlistOutput, "utf8"));
71076
71523
  const declared = isRecord(info) ? info.UILaunchStoryboardName : void 0;
71077
71524
  if (typeof declared === "string") launchName = expand(declared, settings);
71078
71525
  }
@@ -71961,7 +72408,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
71961
72408
  }
71962
72409
  return {
71963
72410
  ref,
71964
- framework: Object.assign(module3, { frameworkInfoPlist: import_plist4.default.build(info2) })
72411
+ framework: Object.assign(module3, { frameworkInfoPlist: buildPlist(info2) })
71965
72412
  };
71966
72413
  });
71967
72414
  const frameworks = frameworkTargets.map(({ framework }) => framework);
@@ -72028,9 +72475,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
72028
72475
  path: bundlePath,
72029
72476
  ...product ? {
72030
72477
  resources: product.module.resources,
72031
- infoPlist: import_plist4.default.build(
72478
+ infoPlist: buildPlist(
72032
72479
  expandValue(
72033
- import_plist4.default.parse(import_node_fs87.default.readFileSync(infoFile, "utf8")),
72480
+ parsePlist(import_node_fs87.default.readFileSync(infoFile, "utf8")),
72034
72481
  product.productSettings
72035
72482
  )
72036
72483
  )
@@ -72052,7 +72499,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
72052
72499
  settingKeys
72053
72500
  );
72054
72501
  const bundleIdentifier = productSettings("PRODUCT_BUNDLE_IDENTIFIER") || (typeof info.CFBundleIdentifier === "string" ? info.CFBundleIdentifier : "");
72055
- const entitlements = entitlementsFile ? import_plist4.default.parse(import_node_fs87.default.readFileSync(entitlementsFile, "utf8")) : void 0;
72502
+ const entitlements = entitlementsFile ? parsePlist(import_node_fs87.default.readFileSync(entitlementsFile, "utf8")) : void 0;
72056
72503
  const keychainAccessGroups = entitlementsFile ? readKeychainAccessGroups(
72057
72504
  entitlements,
72058
72505
  (value) => expand(value, (key2) => {
@@ -72398,7 +72845,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
72398
72845
  ].sort(),
72399
72846
  projectDirs: [...new Set(used.map((project) => project.projectDir))].sort(),
72400
72847
  appIconName: settings("ASSETCATALOG_COMPILER_APPICON_NAME"),
72401
- infoPlist: infoPlistPending ? null : import_plist4.default.build(info),
72848
+ infoPlist: infoPlistPending ? null : buildPlist(info),
72402
72849
  infoPlistFile,
72403
72850
  ...keychainAccessGroups === void 0 ? {} : { keychainAccessGroups },
72404
72851
  siriEntitled: readSiriEntitlement(entitlements),
@@ -72421,7 +72868,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
72421
72868
  cocoapods
72422
72869
  };
72423
72870
  }
72424
- var import_node_child_process43, import_node_crypto53, import_node_fs87, import_node_module8, import_node_path89, import_plist4, 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, loaded2, developerDir, preparedSourcePhases, isPodsProject, targetRefs, workspaceResolvedFile, SwiftPackageResolutionRequired;
72871
+ var import_node_child_process43, import_node_crypto53, import_node_fs87, import_node_module8, import_node_path89, 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, loaded2, developerDir, preparedSourcePhases, isPodsProject, targetRefs, workspaceResolvedFile, SwiftPackageResolutionRequired;
72425
72872
  var init_xcode_project = __esm({
72426
72873
  "src/xcode-project.ts"() {
72427
72874
  "use strict";
@@ -72430,11 +72877,11 @@ var init_xcode_project = __esm({
72430
72877
  import_node_fs87 = __toESM(require("node:fs"), 1);
72431
72878
  import_node_module8 = require("node:module");
72432
72879
  import_node_path89 = __toESM(require("node:path"), 1);
72433
- import_plist4 = __toESM(require("peachsim/vendor/plist"), 1);
72434
72880
  init_bazel_project();
72435
72881
  init_ios_sdk_frameworks();
72436
72882
  init_is_record();
72437
72883
  init_native_app_identity();
72884
+ init_plist();
72438
72885
  init_pod_graph_specifications();
72439
72886
  init_swift_binary_modules();
72440
72887
  init_xcode_assets();
@@ -74348,14 +74795,14 @@ function isPlistValue(value) {
74348
74795
  return isRecord(value) && Object.values(value).every(isPlistValue);
74349
74796
  }
74350
74797
  function parsePlistDictionary(source) {
74351
- const parsed2 = import_plist7.default.parse(source);
74798
+ const parsed2 = parsePlist(source);
74352
74799
  if (typeof parsed2 !== "object" || isPlistArray(parsed2) || parsed2 instanceof Date || Buffer.isBuffer(parsed2))
74353
74800
  throw new Error("Info.plist is not a dictionary");
74354
74801
  return parsed2;
74355
74802
  }
74356
74803
  function installedInfoPlist(prebuilt, additions) {
74357
74804
  const merged = { ...parsePlistDictionary(prebuilt), ...additions };
74358
- return import_plist7.default.build(
74805
+ return buildPlist(
74359
74806
  Object.fromEntries(
74360
74807
  Object.keys(merged).sort().map((key2) => [key2, merged[key2]])
74361
74808
  )
@@ -74463,7 +74910,7 @@ async function prebuiltExpoSwiftResult(appRoot, entry, signal) {
74463
74910
  await prebuiltAppTarget(appRoot, signal, "installed")
74464
74911
  );
74465
74912
  }
74466
- var import_node_crypto57, import_node_fs93, import_node_module12, import_node_path95, import_node_util13, import_plist7, EXPO_NATIVE_ENTRY_NAME, IDENTITY_SOURCE_SKIPS, expoNativeEntryUrl, isStringRecord, isPlistArray, published, lookups, answers;
74913
+ var import_node_crypto57, import_node_fs93, import_node_module12, import_node_path95, import_node_util13, EXPO_NATIVE_ENTRY_NAME, IDENTITY_SOURCE_SKIPS, expoNativeEntryUrl, isStringRecord, isPlistArray, published, lookups, answers;
74467
74914
  var init_expo_native_prebuilt = __esm({
74468
74915
  "src/expo-native-prebuilt.ts"() {
74469
74916
  "use strict";
@@ -74472,7 +74919,6 @@ var init_expo_native_prebuilt = __esm({
74472
74919
  import_node_module12 = require("node:module");
74473
74920
  import_node_path95 = __toESM(require("node:path"), 1);
74474
74921
  import_node_util13 = require("node:util");
74475
- import_plist7 = __toESM(require("peachsim/vendor/plist"), 1);
74476
74922
  init_answeredNativePackages();
74477
74923
  init_expo_native_compiler_digest();
74478
74924
  init_expo_native_workspace();
@@ -74483,6 +74929,7 @@ var init_expo_native_prebuilt = __esm({
74483
74929
  init_native_prebuilt();
74484
74930
  init_nitroContract();
74485
74931
  init_package_tree_digest();
74932
+ init_plist();
74486
74933
  init_swift_native_pin();
74487
74934
  init_xcode_project();
74488
74935
  EXPO_NATIVE_ENTRY_NAME = "ios";
@@ -85459,7 +85906,7 @@ function compileCatalogTables(source, name3) {
85459
85906
  }
85460
85907
  return output;
85461
85908
  }
85462
- function plist5(value, depth) {
85909
+ function plist(value, depth) {
85463
85910
  const indent2 = " ".repeat(depth);
85464
85911
  const escaped = (text7) => text7.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
85465
85912
  if (typeof value === "string") return `${indent2}<string>${escaped(value)}</string>
@@ -85470,7 +85917,7 @@ function plist5(value, depth) {
85470
85917
  return `${indent2}<dict>
85471
85918
  ` + keys.map(
85472
85919
  (key2) => `${indent2} <key>${escaped(key2)}</key>
85473
- ` + plist5(value[key2] ?? "", depth + 1)
85920
+ ` + plist(value[key2] ?? "", depth + 1)
85474
85921
  ).join("") + `${indent2}</dict>
85475
85922
  `;
85476
85923
  }
@@ -85478,7 +85925,7 @@ function compileStringCatalog(source, name3) {
85478
85925
  return Object.fromEntries(
85479
85926
  Object.entries(compileCatalogTables(source, name3)).map(([path116, table]) => [
85480
85927
  path116,
85481
- '<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n<plist version="1.0">\n' + plist5(table, 0) + "</plist>\n"
85928
+ '<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n<plist version="1.0">\n' + plist(table, 0) + "</plist>\n"
85482
85929
  ])
85483
85930
  );
85484
85931
  }
@@ -88407,7 +88854,7 @@ var require_packer_async = __commonJS({
88407
88854
  var require_sync_inflate = __commonJS({
88408
88855
  "../../node_modules/pngjs/lib/sync-inflate.js"(exports2, module2) {
88409
88856
  "use strict";
88410
- var assert9 = require("assert").ok;
88857
+ var assert10 = require("assert").ok;
88411
88858
  var zlib3 = require("zlib");
88412
88859
  var util = require("util");
88413
88860
  var kMaxLength = require("buffer").kMaxLength;
@@ -88458,7 +88905,7 @@ var require_sync_inflate = __commonJS({
88458
88905
  return;
88459
88906
  }
88460
88907
  let have = availOutBefore - availOutAfter;
88461
- assert9(have >= 0, "have should not go down");
88908
+ assert10(have >= 0, "have should not go down");
88462
88909
  if (have > 0) {
88463
88910
  let out = self._buffer.slice(self._offset, self._offset + have);
88464
88911
  self._offset += have;
@@ -88484,7 +88931,7 @@ var require_sync_inflate = __commonJS({
88484
88931
  }
88485
88932
  return false;
88486
88933
  }
88487
- assert9(this._handle, "zlib binding closed");
88934
+ assert10(this._handle, "zlib binding closed");
88488
88935
  let res;
88489
88936
  do {
88490
88937
  res = this._handle.writeSync(