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;
@@ -2111,7 +2111,7 @@ var init_swift_compile = __esm({
2111
2111
  };
2112
2112
  OPTIONAL_FRAMEWORKS = new Set(Object.keys(OPTIONAL_FRAMEWORK_DEPENDENCIES));
2113
2113
  NON_IOS_MODULES = /* @__PURE__ */ new Set(["FoundationNetworking", "WASILibc"]);
2114
- compilerSourceDigest = true ? "6fbcbab3535da2f464a19f4d3c1db8a7e4b393927e5158477332f4cc978cc22f" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
2114
+ compilerSourceDigest = true ? "37c95b1d4be497f3f882c4c51f2be7e5bb09b4bcc4976a51d553b0a993c9c7ca" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
2115
2115
  NOT_ON_IOS = new RegExp(
2116
2116
  `\\b(?:os\\(\\s*WASI\\s*\\)|canImport\\(\\s*(?:${[...NON_IOS_MODULES].join("|")})\\s*\\))`,
2117
2117
  "g"
@@ -2753,29 +2753,29 @@ function readSiriEntitlement(dictionary2) {
2753
2753
  function nonEmptyString(value) {
2754
2754
  return typeof value === "string" && value.length > 0 ? value : null;
2755
2755
  }
2756
- function readGoogleSignInConfiguration(plist4, resources) {
2756
+ function readGoogleSignInConfiguration(plist, resources) {
2757
2757
  const clientIds = {};
2758
2758
  for (const [file, value] of Object.entries(resources)) {
2759
2759
  if (isRecord(value) && typeof value.CLIENT_ID === "string")
2760
2760
  clientIds[file.split("/").pop()?.replace(/\.plist$/, "") ?? file] = value.CLIENT_ID;
2761
2761
  }
2762
2762
  const urlSchemes = [];
2763
- for (const entry of Array.isArray(plist4.CFBundleURLTypes) ? plist4.CFBundleURLTypes : []) {
2763
+ for (const entry of Array.isArray(plist.CFBundleURLTypes) ? plist.CFBundleURLTypes : []) {
2764
2764
  if (!isRecord(entry) || !Array.isArray(entry.CFBundleURLSchemes)) continue;
2765
2765
  for (const scheme of entry.CFBundleURLSchemes)
2766
2766
  if (typeof scheme === "string") urlSchemes.push(scheme);
2767
2767
  }
2768
2768
  return {
2769
- clientId: plist4.GIDClientID,
2770
- serverClientId: plist4.GIDServerClientID,
2771
- hostedDomain: plist4.GIDHostedDomain,
2772
- openIDRealm: plist4.GIDOpenIDRealm,
2769
+ clientId: plist.GIDClientID,
2770
+ serverClientId: plist.GIDServerClientID,
2771
+ hostedDomain: plist.GIDHostedDomain,
2772
+ openIDRealm: plist.GIDOpenIDRealm,
2773
2773
  urlSchemes,
2774
2774
  clientIds
2775
2775
  };
2776
2776
  }
2777
- function plistString(plist4, key) {
2778
- const match = plist4.match(new RegExp(`<key>${key}</key>\\s*<string>([^<]*)</string>`));
2777
+ function plistString(plist, key) {
2778
+ const match = plist.match(new RegExp(`<key>${key}</key>\\s*<string>([^<]*)</string>`));
2779
2779
  return match ? match[1].trim() : null;
2780
2780
  }
2781
2781
  function resolvePlistStrings(value, settings) {
@@ -2851,9 +2851,9 @@ function appTargetReleaseSettings(pbxproj, targetName, infoPlistRelativePath) {
2851
2851
  candidates.push({ name: match[1], settings });
2852
2852
  }
2853
2853
  const plistMatch = (settings) => {
2854
- const plist4 = settings.INFOPLIST_FILE;
2855
- if (!plist4) return false;
2856
- const normalized = plist4.replace(/^"|"$/g, "");
2854
+ const plist = settings.INFOPLIST_FILE;
2855
+ if (!plist) return false;
2856
+ const normalized = plist.replace(/^"|"$/g, "");
2857
2857
  return normalized === infoPlistRelativePath || infoPlistRelativePath.endsWith(`/${normalized}`) || normalized.endsWith(`/${infoPlistRelativePath}`);
2858
2858
  };
2859
2859
  const named = (settings) => resolveBuildSetting(settings.PRODUCT_NAME ?? "", settings) === targetName;
@@ -2966,41 +2966,41 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
2966
2966
  );
2967
2967
  if (legacy) Object.assign(settings, legacy);
2968
2968
  }
2969
- let plist4;
2969
+ let plist;
2970
2970
  const infoPlistPath = settings.INFOPLIST_FILE;
2971
2971
  if (infoPlistPath) {
2972
2972
  const normalized = infoPlistPath.replace(/^"|"$/g, "");
2973
- plist4 = files[`ios/${normalized}`] ?? files[normalized] ?? Object.entries(files).find(([k]) => k.endsWith(`/${normalized}`))?.[1];
2973
+ plist = files[`ios/${normalized}`] ?? files[normalized] ?? Object.entries(files).find(([k]) => k.endsWith(`/${normalized}`))?.[1];
2974
2974
  }
2975
- if (!plist4) {
2976
- plist4 = files[`ios/${targetName}/Info.plist`] ?? files[`${targetName}/Info.plist`] ?? Object.entries(files).find(([k]) => k.endsWith(`/${targetName}/Info.plist`))?.[1];
2975
+ if (!plist) {
2976
+ plist = files[`ios/${targetName}/Info.plist`] ?? files[`${targetName}/Info.plist`] ?? Object.entries(files).find(([k]) => k.endsWith(`/${targetName}/Info.plist`))?.[1];
2977
2977
  }
2978
- if (!plist4) return null;
2978
+ if (!plist) return null;
2979
2979
  const bundleIdentifier = identityFieldFrom(
2980
2980
  settings,
2981
- plistString(plist4, "CFBundleIdentifier"),
2981
+ plistString(plist, "CFBundleIdentifier"),
2982
2982
  settings.PRODUCT_BUNDLE_IDENTIFIER
2983
2983
  );
2984
2984
  if (!bundleIdentifier) return null;
2985
2985
  const appVersion = identityFieldFrom(
2986
2986
  settings,
2987
- plistString(plist4, "CFBundleShortVersionString"),
2987
+ plistString(plist, "CFBundleShortVersionString"),
2988
2988
  settings.MARKETING_VERSION
2989
2989
  );
2990
2990
  const buildVersion = identityFieldFrom(
2991
2991
  settings,
2992
- plistString(plist4, "CFBundleVersion"),
2992
+ plistString(plist, "CFBundleVersion"),
2993
2993
  settings.CURRENT_PROJECT_VERSION
2994
2994
  );
2995
2995
  if (!appVersion || !buildVersion) return null;
2996
2996
  const bundleName = identityFieldFrom(
2997
2997
  settings,
2998
- plistString(plist4, "CFBundleName"),
2998
+ plistString(plist, "CFBundleName"),
2999
2999
  settings.PRODUCT_NAME
3000
3000
  ) ?? resolvedIdentityField(resolveBuildSetting(settings.PRODUCT_NAME ?? "", settings)) ?? resolvedIdentityField(targetName);
3001
3001
  if (!bundleName) return null;
3002
- const applicationName = identityFieldFrom(settings, plistString(plist4, "CFBundleDisplayName"), void 0) ?? bundleName;
3003
- const dictionary2 = parseInfoPlist(plist4);
3002
+ const applicationName = identityFieldFrom(settings, plistString(plist, "CFBundleDisplayName"), void 0) ?? bundleName;
3003
+ const dictionary2 = parseInfoPlist(plist);
3004
3004
  if (!isRecord(dictionary2)) throw new Error("native app Info.plist is not a dictionary");
3005
3005
  let keychainAccessGroups;
3006
3006
  let siriEntitled = false;
@@ -3260,16 +3260,452 @@ function extractNativeAppIdentityFromFiles(files, platform, parseInfoPlist, iosT
3260
3260
  }
3261
3261
 
3262
3262
  // src/plist.ts
3263
- var import_plist = __toESM(require("peachsim/vendor/plist"), 1);
3263
+ var NAMED_ENTITIES = {
3264
+ amp: "&",
3265
+ lt: "<",
3266
+ gt: ">",
3267
+ quot: '"',
3268
+ apos: "'"
3269
+ };
3270
+ function decodeXmlEntities(text3) {
3271
+ if (!text3.includes("&")) return text3;
3272
+ return text3.replace(/&(#x[0-9a-fA-F]+|#[0-9]+|[a-zA-Z]+);/g, (full, entity) => {
3273
+ if (entity.startsWith("#x") || entity.startsWith("#X")) {
3274
+ const code = Number.parseInt(entity.slice(2), 16);
3275
+ return Number.isFinite(code) ? String.fromCodePoint(code) : full;
3276
+ }
3277
+ if (entity.startsWith("#")) {
3278
+ const code = Number.parseInt(entity.slice(1), 10);
3279
+ return Number.isFinite(code) ? String.fromCodePoint(code) : full;
3280
+ }
3281
+ return NAMED_ENTITIES[entity] ?? full;
3282
+ });
3283
+ }
3284
+ function escapeXmlText(text3) {
3285
+ return text3.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
3286
+ }
3287
+ function parseXmlDocument(input) {
3288
+ const source = input.startsWith("\uFEFF") ? input.slice(1) : input;
3289
+ const len = source.length;
3290
+ let pos = 0;
3291
+ const skipIgnorable = () => {
3292
+ while (pos < len) {
3293
+ while (pos < len && /\s/.test(source[pos])) pos++;
3294
+ if (source.startsWith("<!--", pos)) {
3295
+ const end = source.indexOf("-->", pos + 4);
3296
+ if (end === -1) throw new Error("unterminated XML comment");
3297
+ pos = end + 3;
3298
+ continue;
3299
+ }
3300
+ if (source.startsWith("<?", pos)) {
3301
+ const end = source.indexOf("?>", pos + 2);
3302
+ if (end === -1) throw new Error("unterminated XML processing instruction");
3303
+ pos = end + 2;
3304
+ continue;
3305
+ }
3306
+ if (source.startsWith("<!DOCTYPE", pos)) {
3307
+ pos += 9;
3308
+ let depth = 0;
3309
+ let quote = "";
3310
+ while (pos < len) {
3311
+ const ch = source[pos];
3312
+ pos++;
3313
+ if (quote) {
3314
+ if (ch === quote) quote = "";
3315
+ } else if (ch === '"' || ch === "'") {
3316
+ quote = ch;
3317
+ } else if (ch === "[") {
3318
+ depth++;
3319
+ } else if (ch === "]") {
3320
+ depth = Math.max(0, depth - 1);
3321
+ } else if (ch === ">" && depth === 0) {
3322
+ break;
3323
+ }
3324
+ }
3325
+ continue;
3326
+ }
3327
+ break;
3328
+ }
3329
+ };
3330
+ const readElement = () => {
3331
+ if (source[pos] !== "<") {
3332
+ throw new Error(`expected XML tag at offset ${pos}`);
3333
+ }
3334
+ pos++;
3335
+ const nameStart = pos;
3336
+ while (pos < len && /[^\s/>]/.test(source[pos])) pos++;
3337
+ const tag = source.slice(nameStart, pos);
3338
+ if (!tag) throw new Error(`empty XML tag name at offset ${nameStart}`);
3339
+ let quote = "";
3340
+ let selfClosing = false;
3341
+ while (pos < len) {
3342
+ const ch = source[pos];
3343
+ if (quote) {
3344
+ pos++;
3345
+ if (ch === quote) quote = "";
3346
+ continue;
3347
+ }
3348
+ if (ch === '"' || ch === "'") {
3349
+ quote = ch;
3350
+ pos++;
3351
+ continue;
3352
+ }
3353
+ if (ch === "/" && source[pos + 1] === ">") {
3354
+ selfClosing = true;
3355
+ pos += 2;
3356
+ break;
3357
+ }
3358
+ if (ch === ">") {
3359
+ pos++;
3360
+ break;
3361
+ }
3362
+ pos++;
3363
+ }
3364
+ if (selfClosing) {
3365
+ return { tag, children: [], text: "" };
3366
+ }
3367
+ const children = [];
3368
+ let text3 = "";
3369
+ while (pos < len) {
3370
+ if (source.startsWith("<!--", pos)) {
3371
+ const end2 = source.indexOf("-->", pos + 4);
3372
+ if (end2 === -1) throw new Error("unterminated XML comment");
3373
+ pos = end2 + 3;
3374
+ continue;
3375
+ }
3376
+ if (source.startsWith("<![CDATA[", pos)) {
3377
+ const end2 = source.indexOf("]]>", pos + 9);
3378
+ if (end2 === -1) throw new Error("unterminated CDATA section");
3379
+ text3 += source.slice(pos + 9, end2);
3380
+ pos = end2 + 3;
3381
+ continue;
3382
+ }
3383
+ if (source.startsWith("</", pos)) {
3384
+ pos += 2;
3385
+ const closeStart = pos;
3386
+ while (pos < len && /[^\s>]/.test(source[pos])) pos++;
3387
+ const closeTag = source.slice(closeStart, pos);
3388
+ while (pos < len && /\s/.test(source[pos])) pos++;
3389
+ if (source[pos] !== ">") throw new Error(`malformed closing tag </${closeTag}>`);
3390
+ pos++;
3391
+ if (closeTag !== tag) {
3392
+ throw new Error(`mismatched XML closing tag </${closeTag}> for <${tag}>`);
3393
+ }
3394
+ return { tag, children, text: text3 };
3395
+ }
3396
+ if (source[pos] === "<") {
3397
+ children.push(readElement());
3398
+ continue;
3399
+ }
3400
+ const nextTag = source.indexOf("<", pos);
3401
+ const end = nextTag === -1 ? len : nextTag;
3402
+ text3 += decodeXmlEntities(source.slice(pos, end));
3403
+ pos = end;
3404
+ }
3405
+ throw new Error(`unclosed XML tag <${tag}>`);
3406
+ };
3407
+ skipIgnorable();
3408
+ if (pos >= len) throw new Error("empty XML plist document");
3409
+ return readElement();
3410
+ }
3411
+ function parseXmlPlist(source, options2 = {}) {
3412
+ const root = parseXmlDocument(source);
3413
+ if (root.tag !== "plist") {
3414
+ throw new Error(`expected <plist> root element, got <${root.tag}>`);
3415
+ }
3416
+ if (root.children.length === 0) {
3417
+ if (options2.strict) throw new Error("<plist> element has no root value");
3418
+ return void 0;
3419
+ }
3420
+ if (options2.strict && root.children.length !== 1) {
3421
+ throw new Error("<plist> element must contain exactly one root value");
3422
+ }
3423
+ const leafText = (node) => {
3424
+ if (options2.strict && node.children.length > 0) {
3425
+ throw new Error(`<${node.tag}> must not contain child elements`);
3426
+ }
3427
+ return node.text;
3428
+ };
3429
+ const visit = (node) => {
3430
+ switch (node.tag) {
3431
+ case "dict": {
3432
+ const result = {};
3433
+ if (options2.strict && node.children.length % 2 !== 0) {
3434
+ throw new Error("<dict> must contain key/value pairs");
3435
+ }
3436
+ for (let i = 0; i + 1 < node.children.length; i += 2) {
3437
+ const keyNode = node.children[i];
3438
+ if (keyNode.tag !== "key") {
3439
+ throw new Error(`expected <key> in <dict>, got <${keyNode.tag}>`);
3440
+ }
3441
+ result[leafText(keyNode)] = visit(node.children[i + 1]);
3442
+ }
3443
+ return result;
3444
+ }
3445
+ case "array":
3446
+ return node.children.map(visit);
3447
+ case "string":
3448
+ return leafText(node);
3449
+ case "integer": {
3450
+ const raw = leafText(node).trim();
3451
+ if (options2.onInteger) return options2.onInteger(raw);
3452
+ if (!raw) throw new Error("empty <integer> element");
3453
+ return Number.parseInt(raw, 10);
3454
+ }
3455
+ case "real": {
3456
+ const raw = leafText(node).trim();
3457
+ if (options2.onReal) return options2.onReal(raw);
3458
+ if (!raw) throw new Error("empty <real> element");
3459
+ return Number.parseFloat(raw);
3460
+ }
3461
+ case "true":
3462
+ return true;
3463
+ case "false":
3464
+ return false;
3465
+ case "data":
3466
+ return Buffer.from(leafText(node).replace(/\s+/g, ""), "base64");
3467
+ case "date":
3468
+ return new Date(leafText(node).trim());
3469
+ default:
3470
+ throw new Error(`unsupported plist element ${node.tag}`);
3471
+ }
3472
+ };
3473
+ return visit(root.children[0]);
3474
+ }
3475
+ function parsePlist(source) {
3476
+ const root = parseXmlDocument(source);
3477
+ if (root.tag !== "plist") {
3478
+ throw new Error(`expected <plist> root element, got <${root.tag}>`);
3479
+ }
3480
+ if (root.children.length === 0) return {};
3481
+ const visit = (node) => {
3482
+ switch (node.tag) {
3483
+ case "dict": {
3484
+ const result = {};
3485
+ for (let i = 0; i + 1 < node.children.length; i += 2) {
3486
+ const keyNode = node.children[i];
3487
+ if (keyNode.tag !== "key") {
3488
+ throw new Error(`expected <key> in <dict>, got <${keyNode.tag}>`);
3489
+ }
3490
+ result[keyNode.text] = visit(node.children[i + 1]);
3491
+ }
3492
+ return result;
3493
+ }
3494
+ case "array":
3495
+ return node.children.map(visit);
3496
+ case "string":
3497
+ return node.text;
3498
+ case "integer": {
3499
+ const raw = node.text.trim();
3500
+ if (!raw) throw new Error("empty <integer> element");
3501
+ return Number.parseInt(raw, 10);
3502
+ }
3503
+ case "real": {
3504
+ const raw = node.text.trim();
3505
+ if (!raw) throw new Error("empty <real> element");
3506
+ return Number.parseFloat(raw);
3507
+ }
3508
+ case "true":
3509
+ return true;
3510
+ case "false":
3511
+ return false;
3512
+ case "data":
3513
+ return Buffer.from(node.text.replace(/\s+/g, ""), "base64");
3514
+ case "date":
3515
+ return new Date(node.text.trim());
3516
+ default:
3517
+ throw new Error(`unsupported plist element ${node.tag}`);
3518
+ }
3519
+ };
3520
+ return visit(root.children[0]);
3521
+ }
3264
3522
  function parsePlistSource(source) {
3265
- return import_plist.default.parse(source);
3523
+ return parseXmlPlist(source);
3524
+ }
3525
+ function renderValue(value, indent) {
3526
+ if (value === void 0 || value === null) return null;
3527
+ if (typeof value === "string") {
3528
+ return `${indent}<string>${escapeXmlText(value)}</string>`;
3529
+ }
3530
+ if (typeof value === "boolean") {
3531
+ return `${indent}${value ? "<true/>" : "<false/>"}`;
3532
+ }
3533
+ if (typeof value === "number") {
3534
+ if (Number.isInteger(value) && !Object.is(value, -0)) {
3535
+ return `${indent}<integer>${value}</integer>`;
3536
+ }
3537
+ return `${indent}<real>${value}</real>`;
3538
+ }
3539
+ if (value instanceof Date) {
3540
+ return `${indent}<date>${value.toISOString().replace(/\.\d{3}Z$/, "Z")}</date>`;
3541
+ }
3542
+ if (Buffer.isBuffer(value) || value instanceof Uint8Array) {
3543
+ const encoded = Buffer.from(value).toString("base64");
3544
+ return encoded ? `${indent}<data>${encoded}</data>` : `${indent}<data/>`;
3545
+ }
3546
+ if (Array.isArray(value)) {
3547
+ const items2 = value.map((entry) => renderValue(entry, `${indent} `)).filter((entry) => entry !== null);
3548
+ if (items2.length === 0) return `${indent}<array/>`;
3549
+ return `${indent}<array>
3550
+ ${items2.join("\n")}
3551
+ ${indent}</array>`;
3552
+ }
3553
+ if (typeof value === "object") {
3554
+ const lines = [];
3555
+ for (const [key, entry] of Object.entries(value)) {
3556
+ const rendered = renderValue(entry, `${indent} `);
3557
+ if (rendered === null) continue;
3558
+ lines.push(`${indent} <key>${escapeXmlText(key)}</key>`);
3559
+ lines.push(rendered);
3560
+ }
3561
+ if (lines.length === 0) return `${indent}<dict/>`;
3562
+ return `${indent}<dict>
3563
+ ${lines.join("\n")}
3564
+ ${indent}</dict>`;
3565
+ }
3566
+ throw new Error(`unsupported plist value type: ${typeof value}`);
3567
+ }
3568
+ function buildPlist(value) {
3569
+ const body = renderValue(value, " ");
3570
+ return [
3571
+ '<?xml version="1.0" encoding="UTF-8"?>',
3572
+ '<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">',
3573
+ '<plist version="1.0">',
3574
+ ...body ? [body] : [],
3575
+ "</plist>",
3576
+ ""
3577
+ ].join("\n");
3266
3578
  }
3267
3579
 
3268
3580
  // src/plist-bytes.ts
3269
- var import_bplist_parser = __toESM(require("peachsim/vendor/bplist-parser"), 1);
3581
+ var import_strict = __toESM(require("node:assert/strict"), 1);
3582
+ function defaultInteger(value) {
3583
+ return value >= BigInt(Number.MIN_SAFE_INTEGER) && value <= BigInt(Number.MAX_SAFE_INTEGER) ? Number(value) : value;
3584
+ }
3585
+ function parseBinaryPlist(source, options2 = {}) {
3586
+ const bytes = Buffer.isBuffer(source) ? source : Buffer.from(source);
3587
+ (0, import_strict.default)(bytes.length >= 40, "binary plist is too short");
3588
+ (0, import_strict.default)(bytes.toString("ascii", 0, 8) === "bplist00", "invalid binary plist header");
3589
+ const trailer = bytes.length - 32;
3590
+ const offsetWidth = bytes[trailer + 6];
3591
+ const refWidth = bytes[trailer + 7];
3592
+ (0, import_strict.default)(offsetWidth > 0 && offsetWidth <= 8 && refWidth > 0 && refWidth <= 8);
3593
+ const count = Number(bytes.readBigUInt64BE(trailer + 8));
3594
+ const root = Number(bytes.readBigUInt64BE(trailer + 16));
3595
+ const table = Number(bytes.readBigUInt64BE(trailer + 24));
3596
+ (0, import_strict.default)(
3597
+ table >= 8 && table < trailer && count > 0 && count <= (trailer - table) / offsetWidth
3598
+ );
3599
+ const unsigned = (at, width) => {
3600
+ (0, import_strict.default)(at >= 8 && at + width <= trailer);
3601
+ let result = 0n;
3602
+ for (let i = at; i < at + width; i++) result = result * 256n + BigInt(bytes[i]);
3603
+ return result;
3604
+ };
3605
+ const cache = /* @__PURE__ */ new Map();
3606
+ const visiting = /* @__PURE__ */ new Set();
3607
+ const visit = (ref) => {
3608
+ (0, import_strict.default)(ref >= 0 && ref < count && !visiting.has(ref));
3609
+ if (cache.has(ref)) return cache.get(ref);
3610
+ visiting.add(ref);
3611
+ const at = Number(unsigned(table + ref * offsetWidth, offsetWidth));
3612
+ (0, import_strict.default)(at >= 8 && at < table);
3613
+ const marker = bytes[at];
3614
+ const type = marker >> 4;
3615
+ let length = marker & 15;
3616
+ let data = at + 1;
3617
+ if (length === 15 && [4, 5, 6, 7, 10, 12, 13].includes(type)) {
3618
+ (0, import_strict.default)(data < table && bytes[data] >> 4 === 1);
3619
+ const width = 2 ** (bytes[data] & 15);
3620
+ (0, import_strict.default)(width <= 8 && data + 1 + width <= table);
3621
+ length = Number(unsigned(data + 1, width));
3622
+ data += 1 + width;
3623
+ }
3624
+ const end = (size) => {
3625
+ (0, import_strict.default)(Number.isSafeInteger(size) && data + size <= table);
3626
+ return data + size;
3627
+ };
3628
+ const references = (total) => {
3629
+ end(total * refWidth);
3630
+ return Array.from(
3631
+ { length: total },
3632
+ (_, i) => visit(Number(unsigned(data + i * refWidth, refWidth)))
3633
+ );
3634
+ };
3635
+ let value;
3636
+ switch (type) {
3637
+ case 0:
3638
+ if (!options2.strict && marker === 0) {
3639
+ value = null;
3640
+ break;
3641
+ }
3642
+ (0, import_strict.default)(marker === 8 || marker === 9);
3643
+ value = marker === 9;
3644
+ break;
3645
+ case 1: {
3646
+ const size = 2 ** length;
3647
+ (0, import_strict.default)(size <= 16);
3648
+ end(size);
3649
+ const raw = unsigned(data, size);
3650
+ const signed = size >= 8 ? BigInt.asIntN(size * 8, raw) : raw;
3651
+ value = options2.onInteger ? options2.onInteger(signed) : defaultInteger(signed);
3652
+ break;
3653
+ }
3654
+ case 2: {
3655
+ (0, import_strict.default)(length === 2 || length === 3);
3656
+ end(2 ** length);
3657
+ const real = length === 2 ? bytes.readFloatBE(data) : bytes.readDoubleBE(data);
3658
+ value = options2.onReal ? options2.onReal(real) : real;
3659
+ break;
3660
+ }
3661
+ case 3:
3662
+ (0, import_strict.default)(length === 3);
3663
+ end(8);
3664
+ value = new Date(Date.UTC(2001, 0, 1) + bytes.readDoubleBE(data) * 1e3);
3665
+ break;
3666
+ case 4:
3667
+ value = bytes.subarray(data, end(length));
3668
+ break;
3669
+ case 5:
3670
+ value = bytes.toString("ascii", data, end(length));
3671
+ break;
3672
+ case 6:
3673
+ value = Buffer.from(bytes.subarray(data, end(length * 2))).swap16().toString("utf16le");
3674
+ break;
3675
+ case 7:
3676
+ value = bytes.toString("utf8", data, end(length));
3677
+ break;
3678
+ case 8: {
3679
+ if (options2.strict) throw new Error(`unsupported binary plist type ${type}`);
3680
+ const size = length + 1;
3681
+ (0, import_strict.default)(size >= 1 && size <= 8);
3682
+ end(size);
3683
+ value = { UID: Number(unsigned(data, size)) };
3684
+ break;
3685
+ }
3686
+ case 10:
3687
+ case 12:
3688
+ value = references(length);
3689
+ break;
3690
+ case 13: {
3691
+ const elements = references(length * 2);
3692
+ const keys = elements.slice(0, length);
3693
+ (0, import_strict.default)(keys.every((key) => typeof key === "string"));
3694
+ value = Object.fromEntries(keys.map((key, i) => [key, elements[length + i]]));
3695
+ break;
3696
+ }
3697
+ default:
3698
+ throw new Error(`unsupported binary plist type ${type}`);
3699
+ }
3700
+ visiting.delete(ref);
3701
+ cache.set(ref, value);
3702
+ return value;
3703
+ };
3704
+ return visit(root);
3705
+ }
3270
3706
  function parsePlistBytes(source, parseXml2 = parsePlistSource) {
3271
3707
  const bytes = Buffer.from(source);
3272
- return bytes.subarray(0, 8).toString("ascii") === "bplist00" ? import_bplist_parser.default.parseBuffer(bytes)[0] : parseXml2(bytes.toString("utf8"));
3708
+ return bytes.subarray(0, 8).toString("ascii") === "bplist00" ? parseBinaryPlist(bytes) : parseXml2(bytes.toString("utf8"));
3273
3709
  }
3274
3710
 
3275
3711
  // src/native-app-identity-project.ts
@@ -3281,7 +3717,6 @@ var import_node_crypto33 = require("node:crypto");
3281
3717
  var import_node_fs50 = __toESM(require("node:fs"), 1);
3282
3718
  var import_node_module = require("node:module");
3283
3719
  var import_node_path52 = __toESM(require("node:path"), 1);
3284
- var import_plist4 = __toESM(require("peachsim/vendor/plist"), 1);
3285
3720
 
3286
3721
  // src/bazel-project.ts
3287
3722
  var import_node_child_process4 = require("node:child_process");
@@ -3289,7 +3724,6 @@ var import_node_crypto4 = require("node:crypto");
3289
3724
  var import_node_fs6 = __toESM(require("node:fs"), 1);
3290
3725
  var import_node_os2 = __toESM(require("node:os"), 1);
3291
3726
  var import_node_path8 = __toESM(require("node:path"), 1);
3292
- var import_plist3 = __toESM(require("peachsim/vendor/plist"), 1);
3293
3727
  init_is_record();
3294
3728
  var LIBRARY_RULES = /* @__PURE__ */ new Set(["swift_library", "objc_library", "cc_library"]);
3295
3729
  var QUERIED_RULES = [
@@ -4067,7 +4501,7 @@ ${published.map(
4067
4501
  const contents = new Map([
4068
4502
  [
4069
4503
  "Info.plist",
4070
- import_plist3.default.build({
4504
+ buildPlist({
4071
4505
  AvailableLibraries: [
4072
4506
  {
4073
4507
  LibraryIdentifier: "ios-arm64-simulator",
@@ -4152,7 +4586,7 @@ ${published.map(
4152
4586
  const infoPlistReady = infoPlistFiles.every((file) => import_node_fs6.default.existsSync(file));
4153
4587
  const info = {};
4154
4588
  for (const file of infoPlistReady ? infoPlistFiles : []) {
4155
- const fragment = import_plist3.default.parse(import_node_fs6.default.readFileSync(file, "utf8"));
4589
+ const fragment = parsePlist(import_node_fs6.default.readFileSync(file, "utf8"));
4156
4590
  if (!fragment || typeof fragment !== "object" || Array.isArray(fragment) || fragment instanceof Date || Buffer.isBuffer(fragment))
4157
4591
  throw new Error(`${file} is not a plist dictionary`);
4158
4592
  for (const [key, value] of Object.entries(fragment)) {
@@ -4221,7 +4655,7 @@ ${published.map(
4221
4655
  rootDir: root,
4222
4656
  projectFiles: buildFiles.sort(),
4223
4657
  projectDirs: [root],
4224
- infoPlist: infoPlistReady ? import_plist3.default.build(info) : null,
4658
+ infoPlist: infoPlistReady ? buildPlist(info) : null,
4225
4659
  infoPlistFile: null,
4226
4660
  postBundleScripts: [],
4227
4661
  appIconName: "",
@@ -4626,7 +5060,7 @@ var import_node_path13 = require("node:path");
4626
5060
  var import_node_crypto7 = require("node:crypto");
4627
5061
  var import_node_fs10 = require("node:fs");
4628
5062
  var import_node_path11 = require("node:path");
4629
- var swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"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_path11.join)(__sootsim_import_meta_dirname, ".."));
5063
+ var swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"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_path11.join)(__sootsim_import_meta_dirname, ".."));
4630
5064
 
4631
5065
  // src/swift-coverage/xcode-asset-symbols.ts
4632
5066
  var import_node_fs11 = require("node:fs");
@@ -4848,7 +5282,7 @@ var import_node_fs49 = __toESM(require("node:fs"), 1);
4848
5282
  var import_node_path50 = __toESM(require("node:path"), 1);
4849
5283
 
4850
5284
  // src/intent-definition/fields.ts
4851
- var import_strict = __toESM(require("node:assert/strict"), 1);
5285
+ var import_strict2 = __toESM(require("node:assert/strict"), 1);
4852
5286
 
4853
5287
  // src/intent-definition/system-types.ts
4854
5288
  var systemEnumHashes = /* @__PURE__ */ new Map([
@@ -5138,13 +5572,13 @@ function intentModelVersion(value) {
5138
5572
  return value === "1.0" || value === "1.1" ? value : "1.2";
5139
5573
  }
5140
5574
  function modelList(value, key) {
5141
- (0, import_strict.default)(value && typeof value === "object");
5575
+ (0, import_strict2.default)(value && typeof value === "object");
5142
5576
  const entries = Reflect.get(value, key) ?? [];
5143
- (0, import_strict.default)(Array.isArray(entries));
5577
+ (0, import_strict2.default)(Array.isArray(entries));
5144
5578
  return entries;
5145
5579
  }
5146
5580
  function identifier(value) {
5147
- (0, import_strict.default)(
5581
+ (0, import_strict2.default)(
5148
5582
  typeof value === "string" && /^[_\p{ID_Start}][_\p{ID_Continue}]*$/u.test(value),
5149
5583
  `invalid intent identifier ${String(value)}`
5150
5584
  );
@@ -5152,18 +5586,18 @@ function identifier(value) {
5152
5586
  }
5153
5587
  function intentClassIdentifier(value) {
5154
5588
  const name2 = identifier(value);
5155
- (0, import_strict.default)(/^[A-Za-z_0-9]+$/.test(name2), `invalid intent class name ${name2}`);
5589
+ (0, import_strict2.default)(/^[A-Za-z_0-9]+$/.test(name2), `invalid intent class name ${name2}`);
5156
5590
  return name2;
5157
5591
  }
5158
5592
  function readSwiftField(value, key, customTypes) {
5159
- (0, import_strict.default)(value && typeof value === "object");
5593
+ (0, import_strict2.default)(value && typeof value === "object");
5160
5594
  const get = (property) => Reflect.get(value, key + property);
5161
5595
  const name2 = identifier(get("Name"));
5162
5596
  let kind = intentParameterKind(get("Type"));
5163
5597
  let enumeration = get("EnumType");
5164
5598
  let object4 = get("ObjectType");
5165
- (0, import_strict.default)(enumeration === void 0 || kind === "Integer");
5166
- (0, import_strict.default)(object4 === void 0 || kind === "Object");
5599
+ (0, import_strict2.default)(enumeration === void 0 || kind === "Integer");
5600
+ (0, import_strict2.default)(object4 === void 0 || kind === "Object");
5167
5601
  const custom = enumeration ?? object4;
5168
5602
  let customName;
5169
5603
  if (custom !== void 0) {
@@ -5178,7 +5612,7 @@ function readSwiftField(value, key, customTypes) {
5178
5612
  }
5179
5613
  } else {
5180
5614
  customName = customTypes.get(name3);
5181
- (0, import_strict.default)(customName, "unknown intent parameter type: " + name3);
5615
+ (0, import_strict2.default)(customName, "unknown intent parameter type: " + name3);
5182
5616
  }
5183
5617
  }
5184
5618
  const type = types.get(kind);
@@ -5188,7 +5622,7 @@ function readSwiftField(value, key, customTypes) {
5188
5622
  const valueType = multiple ? `[${array6}]` : base;
5189
5623
  const resolves = get("SupportsResolution") === true;
5190
5624
  const explicitReasons = modelList(value, key + "UnsupportedReasons").map((entry) => {
5191
- (0, import_strict.default)(entry && typeof entry === "object");
5625
+ (0, import_strict2.default)(entry && typeof entry === "object");
5192
5626
  return identifier(Reflect.get(entry, key + "UnsupportedReasonCode"));
5193
5627
  });
5194
5628
  const defaults = resolves && !customName ? defaultUnsupportedReasons(kind) : [];
@@ -5279,7 +5713,7 @@ fatalError()
5279
5713
  }
5280
5714
  function customObjectFields(definition, customTypes) {
5281
5715
  return modelList(definition, "INTypeProperties").filter((entry) => {
5282
- (0, import_strict.default)(entry && typeof entry === "object");
5716
+ (0, import_strict2.default)(entry && typeof entry === "object");
5283
5717
  return Reflect.get(entry, "INTypePropertyDefault") !== true;
5284
5718
  }).map((entry) => {
5285
5719
  const field = readSwiftField(entry, "INTypeProperty", customTypes);
@@ -5288,11 +5722,11 @@ function customObjectFields(definition, customTypes) {
5288
5722
  }
5289
5723
 
5290
5724
  // src/intent-definition/metadata.ts
5291
- var import_strict3 = __toESM(require("node:assert/strict"), 1);
5725
+ var import_strict4 = __toESM(require("node:assert/strict"), 1);
5292
5726
  var import_node_crypto31 = require("node:crypto");
5293
5727
 
5294
5728
  // src/intent-definition/hash-input.ts
5295
- var import_strict2 = __toESM(require("node:assert/strict"), 1);
5729
+ var import_strict3 = __toESM(require("node:assert/strict"), 1);
5296
5730
  var IntentReal = class {
5297
5731
  constructor(value) {
5298
5732
  this.value = value;
@@ -5326,7 +5760,7 @@ function intentHashInput(root, propertyTypes = []) {
5326
5760
  integer2(18, BigInt(value.length));
5327
5761
  for (const item of value) append(item);
5328
5762
  } else {
5329
- (0, import_strict2.default)(
5763
+ (0, import_strict3.default)(
5330
5764
  value && typeof value === "object" && Object.getPrototypeOf(value) === Object.prototype
5331
5765
  );
5332
5766
  const keys = Object.keys(value).sort();
@@ -5437,7 +5871,7 @@ var widgetArraySizes = {
5437
5871
  };
5438
5872
  function normalizedEnums(input) {
5439
5873
  return modelList(input, "INEnums").map((value) => {
5440
- (0, import_strict3.default)(dictionary(value));
5874
+ (0, import_strict4.default)(dictionary(value));
5441
5875
  return {
5442
5876
  ...value,
5443
5877
  INEnumName: intentClassIdentifier(value.INEnumName),
@@ -5455,7 +5889,7 @@ function localizationIdentifier(field, key) {
5455
5889
  }
5456
5890
  function normalizedMetadata(type, source, field) {
5457
5891
  const defaults = typeMetadata.get(type) ?? {};
5458
- (0, import_strict3.default)(source === void 0 || dictionary(source));
5892
+ (0, import_strict4.default)(source === void 0 || dictionary(source));
5459
5893
  const metadata = source ? { ...source } : Object.fromEntries(
5460
5894
  Object.entries(defaults).map(([key, value]) => {
5461
5895
  const qualified = `INIntentParameterMetadata${key}`;
@@ -5484,7 +5918,7 @@ var defaultReasonMessages = /* @__PURE__ */ new Map([
5484
5918
  function normalizedReasons(parameter, kind, field) {
5485
5919
  const reasons = /* @__PURE__ */ new Map();
5486
5920
  for (const reason of modelList(parameter, "INIntentParameterUnsupportedReasons")) {
5487
- (0, import_strict3.default)(dictionary(reason));
5921
+ (0, import_strict4.default)(dictionary(reason));
5488
5922
  const code = identifier(reason.INIntentParameterUnsupportedReasonCode);
5489
5923
  const text3 = reason.INIntentParameterUnsupportedReasonFormatString;
5490
5924
  reasons.set(
@@ -5521,17 +5955,17 @@ function compileIntentMetadata(input, enums, prefix) {
5521
5955
  }
5522
5956
  const objectHashes = /* @__PURE__ */ new Map();
5523
5957
  for (const declaration of modelList(input, "INTypes")) {
5524
- (0, import_strict3.default)(dictionary(declaration) && typeof declaration.INTypeName === "string");
5958
+ (0, import_strict4.default)(dictionary(declaration) && typeof declaration.INTypeName === "string");
5525
5959
  objectHashes.set(declaration.INTypeName, intentSipHash(intentHashInput(declaration)));
5526
5960
  }
5527
5961
  const intents = modelList(input, "INIntents").map((value) => {
5528
- (0, import_strict3.default)(dictionary(value));
5962
+ (0, import_strict4.default)(dictionary(value));
5529
5963
  const name2 = intentClassIdentifier(value.INIntentName);
5530
5964
  const system = value.INIntentType === "System";
5531
5965
  const propertyTypes = [];
5532
5966
  const parameters = modelList(value, "INIntentParameters").map(
5533
5967
  (parameter, position) => {
5534
- (0, import_strict3.default)(dictionary(parameter));
5968
+ (0, import_strict4.default)(dictionary(parameter));
5535
5969
  const enumName = parameter.INIntentParameterEnumType;
5536
5970
  const objectName = parameter.INIntentParameterObjectType;
5537
5971
  const reference = enumName ?? objectName;
@@ -5558,7 +5992,7 @@ function compileIntentMetadata(input, enums, prefix) {
5558
5992
  }
5559
5993
  } else {
5560
5994
  const localHash = hashes.get(typeName);
5561
- (0, import_strict3.default)(localHash !== void 0, `unknown intent parameter type: ${typeName}`);
5995
+ (0, import_strict4.default)(localHash !== void 0, `unknown intent parameter type: ${typeName}`);
5562
5996
  hash2 = localHash;
5563
5997
  }
5564
5998
  }
@@ -5584,7 +6018,7 @@ function compileIntentMetadata(input, enums, prefix) {
5584
6018
  if (parameter.INIntentParameterSupportsMultipleValues && parameter.INIntentParameterFixedSizeArray) {
5585
6019
  const sizes = /* @__PURE__ */ new Map();
5586
6020
  for (const size of modelList(parameter, "INIntentParameterArraySizes")) {
5587
- (0, import_strict3.default)(
6021
+ (0, import_strict4.default)(
5588
6022
  dictionary(size) && typeof size.INIntentParameterArraySizeSizeClass === "string"
5589
6023
  );
5590
6024
  sizes.set(size.INIntentParameterArraySizeSizeClass, size);
@@ -5708,7 +6142,7 @@ function formatPlistReal(value) {
5708
6142
  return `${sign}${digits.slice(0, point)}.${digits.slice(point)}`;
5709
6143
  }
5710
6144
  function writeIntentDefinition(input, prefix) {
5711
- (0, import_strict3.default)(dictionary(input));
6145
+ (0, import_strict4.default)(dictionary(input));
5712
6146
  const escape = (text3) => text3.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
5713
6147
  const lines = [
5714
6148
  '<?xml version="1.0" encoding="UTF-8"?>',
@@ -5745,7 +6179,7 @@ function writeIntentDefinition(input, prefix) {
5745
6179
  lines.push(`${indent}</array>`);
5746
6180
  }
5747
6181
  } else {
5748
- (0, import_strict3.default)(dictionary(value));
6182
+ (0, import_strict4.default)(dictionary(value));
5749
6183
  const keys = Object.keys(value).sort();
5750
6184
  if (keys.length === 0) lines.push(`${indent}<dict/>`);
5751
6185
  else {
@@ -5779,186 +6213,43 @@ function writeIntentDefinition(input, prefix) {
5779
6213
  }
5780
6214
 
5781
6215
  // src/intent-definition/plist-reader.ts
5782
- var import_strict4 = __toESM(require("node:assert/strict"), 1);
5783
- var import_xmldom = require("peachsim/vendor/@xmldom/xmldom");
6216
+ var import_strict5 = __toESM(require("node:assert/strict"), 1);
5784
6217
  function safeNumber(value) {
5785
6218
  return value >= BigInt(Number.MIN_SAFE_INTEGER) && value <= BigInt(Number.MAX_SAFE_INTEGER) ? Number(value) : value;
5786
6219
  }
5787
6220
  function xmlPlist(bytes) {
5788
6221
  const encoding = bytes[0] === 255 && bytes[1] === 254 ? "utf-16le" : bytes[0] === 254 && bytes[1] === 255 ? "utf-16be" : "utf-8";
5789
6222
  const text3 = new TextDecoder(encoding, { fatal: true }).decode(bytes);
5790
- const document = new import_xmldom.DOMParser({
5791
- onError(_level, message) {
5792
- throw new Error(message);
5793
- }
5794
- }).parseFromString(text3, "application/xml");
5795
- const children = (element) => Array.from(element.children);
5796
- const contents = (element) => {
5797
- (0, import_strict4.default)(element.children.length === 0);
5798
- return element.textContent ?? "";
5799
- };
5800
- const visit = (element) => {
5801
- switch (element.tagName) {
5802
- case "dict": {
5803
- const entries = children(element);
5804
- (0, import_strict4.default)(entries.length % 2 === 0);
5805
- const pairs = [];
5806
- for (let i = 0; i < entries.length; i += 2) {
5807
- const key = entries[i];
5808
- (0, import_strict4.default)(key.tagName === "key");
5809
- pairs.push([contents(key), visit(entries[i + 1])]);
5810
- }
5811
- return Object.fromEntries(pairs);
5812
- }
5813
- case "array":
5814
- return children(element).map(visit);
5815
- case "string":
5816
- return contents(element);
5817
- case "integer": {
5818
- const value = contents(element).trim();
5819
- (0, import_strict4.default)(value.length > 0);
5820
- return safeNumber(BigInt(value));
5821
- }
5822
- case "real": {
5823
- const value = contents(element).trim();
5824
- (0, import_strict4.default)(value.length > 0);
5825
- return new IntentReal(
5826
- /^[+-]?inf(?:inity)?$/i.test(value) ? value.startsWith("-") ? -Infinity : Infinity : Number(value)
5827
- );
5828
- }
5829
- case "true":
5830
- return true;
5831
- case "false":
5832
- return false;
5833
- case "data":
5834
- return Buffer.from(contents(element), "base64");
5835
- case "date":
5836
- return new Date(contents(element));
5837
- default:
5838
- throw new Error(`unsupported plist element ${element.tagName}`);
5839
- }
5840
- };
5841
- const plist4 = document.documentElement;
5842
- (0, import_strict4.default)(plist4?.tagName === "plist" && plist4.children.length === 1);
5843
- return visit(plist4.children[0]);
5844
- }
5845
- function binaryPlist2(bytes) {
5846
- (0, import_strict4.default)(bytes.length >= 40);
5847
- const trailer = bytes.length - 32;
5848
- const offsetWidth = bytes[trailer + 6];
5849
- const refWidth = bytes[trailer + 7];
5850
- (0, import_strict4.default)(offsetWidth > 0 && offsetWidth <= 8 && refWidth > 0 && refWidth <= 8);
5851
- const count = Number(bytes.readBigUInt64BE(trailer + 8));
5852
- const root = Number(bytes.readBigUInt64BE(trailer + 16));
5853
- const table = Number(bytes.readBigUInt64BE(trailer + 24));
5854
- (0, import_strict4.default)(
5855
- table >= 8 && table < trailer && count > 0 && count <= (trailer - table) / offsetWidth
5856
- );
5857
- const unsigned = (at, width) => {
5858
- (0, import_strict4.default)(at >= 8 && at + width <= trailer);
5859
- let result = 0n;
5860
- for (let i = at; i < at + width; i++) result = result * 256n + BigInt(bytes[i]);
5861
- return result;
5862
- };
5863
- const cache = /* @__PURE__ */ new Map();
5864
- const visiting = /* @__PURE__ */ new Set();
5865
- const visit = (ref) => {
5866
- (0, import_strict4.default)(ref >= 0 && ref < count && !visiting.has(ref));
5867
- if (cache.has(ref)) return cache.get(ref);
5868
- visiting.add(ref);
5869
- const at = Number(unsigned(table + ref * offsetWidth, offsetWidth));
5870
- (0, import_strict4.default)(at >= 8 && at < table);
5871
- const marker = bytes[at];
5872
- const type = marker >> 4;
5873
- let length = marker & 15;
5874
- let data = at + 1;
5875
- if (length === 15 && [4, 5, 6, 7, 10, 13].includes(type)) {
5876
- (0, import_strict4.default)(data < table && bytes[data] >> 4 === 1);
5877
- const width = 2 ** (bytes[data] & 15);
5878
- (0, import_strict4.default)(width <= 8 && data + 1 + width <= table);
5879
- length = Number(unsigned(data + 1, width));
5880
- data += 1 + width;
5881
- }
5882
- const end = (size) => {
5883
- (0, import_strict4.default)(Number.isSafeInteger(size) && data + size <= table);
5884
- return data + size;
5885
- };
5886
- const references = (total) => {
5887
- end(total * refWidth);
5888
- return Array.from(
5889
- { length: total },
5890
- (_, i) => visit(Number(unsigned(data + i * refWidth, refWidth)))
6223
+ return parseXmlPlist(text3, {
6224
+ strict: true,
6225
+ onInteger(raw) {
6226
+ (0, import_strict5.default)(raw.length > 0);
6227
+ return safeNumber(BigInt(raw));
6228
+ },
6229
+ onReal(raw) {
6230
+ (0, import_strict5.default)(raw.length > 0);
6231
+ return new IntentReal(
6232
+ /^[+-]?inf(?:inity)?$/i.test(raw) ? raw.startsWith("-") ? -Infinity : Infinity : Number(raw)
5891
6233
  );
5892
- };
5893
- let value;
5894
- switch (type) {
5895
- case 0:
5896
- (0, import_strict4.default)(marker === 8 || marker === 9);
5897
- value = marker === 9;
5898
- break;
5899
- case 1: {
5900
- const size = 2 ** length;
5901
- (0, import_strict4.default)(size <= 16);
5902
- end(size);
5903
- const integer2 = unsigned(data, size);
5904
- value = safeNumber(size >= 8 ? BigInt.asIntN(size * 8, integer2) : integer2);
5905
- break;
5906
- }
5907
- case 2:
5908
- (0, import_strict4.default)(length === 2 || length === 3);
5909
- end(2 ** length);
5910
- value = new IntentReal(
5911
- length === 2 ? bytes.readFloatBE(data) : bytes.readDoubleBE(data)
5912
- );
5913
- break;
5914
- case 3:
5915
- (0, import_strict4.default)(length === 3);
5916
- end(8);
5917
- value = new Date(Date.UTC(2001, 0, 1) + bytes.readDoubleBE(data) * 1e3);
5918
- break;
5919
- case 4:
5920
- value = bytes.subarray(data, end(length));
5921
- break;
5922
- case 5:
5923
- value = bytes.toString("ascii", data, end(length));
5924
- break;
5925
- case 6:
5926
- value = Buffer.from(bytes.subarray(data, end(length * 2))).swap16().toString("utf16le");
5927
- break;
5928
- case 7:
5929
- value = bytes.toString("utf8", data, end(length));
5930
- break;
5931
- case 10:
5932
- value = references(length);
5933
- break;
5934
- case 13: {
5935
- const elements = references(length * 2);
5936
- const keys = elements.slice(0, length);
5937
- (0, import_strict4.default)(keys.every((key) => typeof key === "string"));
5938
- value = Object.fromEntries(keys.map((key, i) => [key, elements[length + i]]));
5939
- break;
5940
- }
5941
- default:
5942
- throw new Error(`unsupported binary plist type ${type}`);
5943
6234
  }
5944
- visiting.delete(ref);
5945
- cache.set(ref, value);
5946
- return value;
5947
- };
5948
- return visit(root);
6235
+ });
5949
6236
  }
5950
6237
  function parseIntentPlist(bytes) {
5951
- return bytes.toString("ascii", 0, 8) === "bplist00" ? binaryPlist2(bytes) : xmlPlist(bytes);
6238
+ return bytes.toString("ascii", 0, 8) === "bplist00" ? parseBinaryPlist(bytes, {
6239
+ strict: true,
6240
+ onInteger: safeNumber,
6241
+ onReal: (value) => new IntentReal(value)
6242
+ }) : xmlPlist(bytes);
5952
6243
  }
5953
6244
 
5954
6245
  // src/intent-definition/source.ts
5955
- var import_strict8 = __toESM(require("node:assert/strict"), 1);
6246
+ var import_strict9 = __toESM(require("node:assert/strict"), 1);
5956
6247
 
5957
6248
  // src/intent-definition/objective-c.ts
5958
- var import_strict6 = __toESM(require("node:assert/strict"), 1);
6249
+ var import_strict7 = __toESM(require("node:assert/strict"), 1);
5959
6250
 
5960
6251
  // src/intent-definition/response.ts
5961
- var import_strict5 = __toESM(require("node:assert/strict"), 1);
6252
+ var import_strict6 = __toESM(require("node:assert/strict"), 1);
5962
6253
  var responseCodes = [
5963
6254
  "unspecified",
5964
6255
  "ready",
@@ -5974,10 +6265,10 @@ function readIntentResponse(definition, customTypes) {
5974
6265
  );
5975
6266
  const definitions = new Map(
5976
6267
  modelList(definition, "INIntentResponseCodes").map((entry) => {
5977
- (0, import_strict5.default)(entry && typeof entry === "object");
6268
+ (0, import_strict6.default)(entry && typeof entry === "object");
5978
6269
  const name2 = identifier(Reflect.get(entry, "INIntentResponseCodeName"));
5979
6270
  const message = Reflect.get(entry, "INIntentResponseCodeFormatString");
5980
- (0, import_strict5.default)(message === void 0 || typeof message === "string");
6271
+ (0, import_strict6.default)(message === void 0 || typeof message === "string");
5981
6272
  const referenced = new Set(
5982
6273
  [
5983
6274
  ...String(message ?? "").matchAll(
@@ -5988,7 +6279,7 @@ function readIntentResponse(definition, customTypes) {
5988
6279
  const names = [...referenced].sort();
5989
6280
  const parameters = names.map((name3) => {
5990
6281
  const field = fields.find((field2) => field2.name === name3);
5991
- (0, import_strict5.default)(field, "unknown intent response field " + name3);
6282
+ (0, import_strict6.default)(field, "unknown intent response field " + name3);
5992
6283
  return field;
5993
6284
  });
5994
6285
  return [
@@ -6054,7 +6345,7 @@ var array5 = (element) => `NSArray<${element}> *`;
6054
6345
  function objcAvailability(swift) {
6055
6346
  if (!swift) return "";
6056
6347
  const version = /^@available\(iOS ([\d.]+), macOS ([\d.]+), watchOS ([\d.]+), \*\)$/.exec(swift);
6057
- (0, import_strict6.default)(version);
6348
+ (0, import_strict7.default)(version);
6058
6349
  return ` API_AVAILABLE(ios(${version[1]}), macos(${version[2]}), watchos(${version[3]}))`;
6059
6350
  }
6060
6351
  function objcElement(field) {
@@ -6083,7 +6374,7 @@ function headerImports(fields, visibility, module2) {
6083
6374
  return [...imports].join("\n");
6084
6375
  }
6085
6376
  function objcIntentSource(name2, prefix, definition, customTypes, version, visibility, module2) {
6086
- (0, import_strict6.default)(definition && typeof definition === "object");
6377
+ (0, import_strict7.default)(definition && typeof definition === "object");
6087
6378
  const klass = prefix + name2 + "Intent";
6088
6379
  const response = klass + "Response";
6089
6380
  const attr = hidden(visibility);
@@ -6122,7 +6413,7 @@ function objcIntentSource(name2, prefix, definition, customTypes, version, visib
6122
6413
  };
6123
6414
  const constructors = [...definitions].filter(([, definition2]) => definition2.parameters.length > 0).map(([code, { parameters: parameters2, availability }]) => {
6124
6415
  const [first, ...rest] = parameters2;
6125
- (0, import_strict6.default)(first);
6416
+ (0, import_strict7.default)(first);
6126
6417
  const selector = `${code}IntentResponseWith${upper(first.name)}:(${objcType(first)})${first.name}` + rest.map((field) => ` ${field.name}:(${objcType(field)})${field.name}`).join("");
6127
6418
  return {
6128
6419
  code,
@@ -6220,15 +6511,15 @@ ${reasons.map(
6220
6511
  return { header, implementation };
6221
6512
  }
6222
6513
  function objcEnumSource(definition, label, prefix, visibility) {
6223
- (0, import_strict6.default)(definition && typeof definition === "object");
6514
+ (0, import_strict7.default)(definition && typeof definition === "object");
6224
6515
  const name2 = prefix + label;
6225
6516
  const attr = hidden(visibility);
6226
6517
  const bases = [attr, available].filter(Boolean).join(" ");
6227
6518
  const cases = modelList(definition, "INEnumValues").map((entry) => {
6228
- (0, import_strict6.default)(entry && typeof entry === "object");
6519
+ (0, import_strict7.default)(entry && typeof entry === "object");
6229
6520
  const value = identifier(Reflect.get(entry, "INEnumValueName"));
6230
6521
  const index = Reflect.get(entry, "INEnumValueIndex") ?? 0;
6231
- (0, import_strict6.default)(typeof index === "number" && Number.isSafeInteger(index));
6522
+ (0, import_strict7.default)(typeof index === "number" && Number.isSafeInteger(index));
6232
6523
  return ` ${name2}${upper(value)} = ${index}`;
6233
6524
  });
6234
6525
  const success = `+ (instancetype)successWithResolved${label}:(${name2})resolvedValue`;
@@ -6314,9 +6605,9 @@ ${confirm} {
6314
6605
  }
6315
6606
 
6316
6607
  // src/intent-definition/swift.ts
6317
- var import_strict7 = __toESM(require("node:assert/strict"), 1);
6608
+ var import_strict8 = __toESM(require("node:assert/strict"), 1);
6318
6609
  function swiftIntentSource(name2, prefix, definition, customTypes, version, access) {
6319
- (0, import_strict7.default)(definition && typeof definition === "object");
6610
+ (0, import_strict8.default)(definition && typeof definition === "object");
6320
6611
  const klass = `${prefix}${name2}Intent`;
6321
6612
  const response = `${klass}Response`;
6322
6613
  const parameters = modelList(definition, "INIntentParameters").map(
@@ -6420,17 +6711,17 @@ ${access} class func unsupported(forReason reason: ${base}UnsupportedReason) ->
6420
6711
 
6421
6712
  // src/intent-definition/source.ts
6422
6713
  function swiftEnumSource(definition, visibility, prefix = "") {
6423
- (0, import_strict8.default)(definition && typeof definition === "object");
6714
+ (0, import_strict9.default)(definition && typeof definition === "object");
6424
6715
  const unprefixed = identifier(Reflect.get(definition, "INEnumName"));
6425
6716
  const name2 = prefix + unprefixed;
6426
6717
  const values = Reflect.get(definition, "INEnumValues");
6427
- (0, import_strict8.default)(Array.isArray(values));
6718
+ (0, import_strict9.default)(Array.isArray(values));
6428
6719
  const access = visibility === "project" ? "internal" : "public";
6429
6720
  const cases = values.map((entry) => {
6430
- (0, import_strict8.default)(entry && typeof entry === "object");
6721
+ (0, import_strict9.default)(entry && typeof entry === "object");
6431
6722
  const name3 = identifier(Reflect.get(entry, "INEnumValueName"));
6432
6723
  const index = Reflect.get(entry, "INEnumValueIndex") ?? 0;
6433
- (0, import_strict8.default)(typeof index === "number" && Number.isSafeInteger(index));
6724
+ (0, import_strict9.default)(typeof index === "number" && Number.isSafeInteger(index));
6434
6725
  return ` case \`${name3}\` = ${index}`;
6435
6726
  });
6436
6727
  return `#if canImport(Intents)
@@ -6455,7 +6746,7 @@ ${access} class ${name2}ResolutionResult: INEnumResolutionResult {
6455
6746
  `;
6456
6747
  }
6457
6748
  function emitIntentSource(definition, prefix, visibility, language, module2) {
6458
- (0, import_strict8.default)(definition && typeof definition === "object");
6749
+ (0, import_strict9.default)(definition && typeof definition === "object");
6459
6750
  const intents = modelList(definition, "INIntents");
6460
6751
  const types2 = modelList(definition, "INTypes");
6461
6752
  const enums = modelList(definition, "INEnums");
@@ -6465,7 +6756,7 @@ function emitIntentSource(definition, prefix, visibility, language, module2) {
6465
6756
  intentModelVersion(Reflect.get(definition, "INIntentDefinitionModelVersion"))
6466
6757
  );
6467
6758
  const nameOf = (entry, key) => {
6468
- (0, import_strict8.default)(entry && typeof entry === "object");
6759
+ (0, import_strict9.default)(entry && typeof entry === "object");
6469
6760
  return identifier(Reflect.get(entry, key));
6470
6761
  };
6471
6762
  const typeNames = types2.map((type) => nameOf(type, "INTypeName"));
@@ -6505,7 +6796,7 @@ function emitIntentSource(definition, prefix, visibility, language, module2) {
6505
6796
  });
6506
6797
  }
6507
6798
  for (const intent of intents) {
6508
- (0, import_strict8.default)(intent && typeof intent === "object");
6799
+ (0, import_strict9.default)(intent && typeof intent === "object");
6509
6800
  if (Reflect.get(intent, "INIntentType") === "System") continue;
6510
6801
  const name2 = identifier(Reflect.get(intent, "INIntentName"));
6511
6802
  const filename = `${prefix}${name2}Intent`;
@@ -7280,7 +7571,7 @@ function expandValue(value, settings) {
7280
7571
  return value;
7281
7572
  }
7282
7573
  function processedInfoPlist(name2, file, settings, settingKeys) {
7283
- const source = file ? import_plist4.default.parse(import_node_fs50.default.readFileSync(file, "utf8")) : {};
7574
+ const source = file ? parsePlist(import_node_fs50.default.readFileSync(file, "utf8")) : {};
7284
7575
  if (!source || typeof source !== "object" || Array.isArray(source) || source instanceof Date || Buffer.isBuffer(source))
7285
7576
  throw new Error(`${name2} Info.plist must contain a dictionary`);
7286
7577
  const info = {};
@@ -7855,7 +8146,7 @@ ${output}`
7855
8146
  );
7856
8147
  let launchName = settings("INFOPLIST_KEY_UILaunchStoryboardName");
7857
8148
  if (process.platform !== "darwin" && !launchName && infoPlistOutput && import_node_fs50.default.existsSync(infoPlistOutput)) {
7858
- const info = import_plist4.default.parse(import_node_fs50.default.readFileSync(infoPlistOutput, "utf8"));
8149
+ const info = parsePlist(import_node_fs50.default.readFileSync(infoPlistOutput, "utf8"));
7859
8150
  const declared = isRecord(info) ? info.UILaunchStoryboardName : void 0;
7860
8151
  if (typeof declared === "string") launchName = expand(declared, settings);
7861
8152
  }
@@ -8889,7 +9180,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
8889
9180
  }
8890
9181
  return {
8891
9182
  ref,
8892
- framework: Object.assign(module3, { frameworkInfoPlist: import_plist4.default.build(info2) })
9183
+ framework: Object.assign(module3, { frameworkInfoPlist: buildPlist(info2) })
8893
9184
  };
8894
9185
  });
8895
9186
  const frameworks = frameworkTargets.map(({ framework }) => framework);
@@ -8956,9 +9247,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
8956
9247
  path: bundlePath,
8957
9248
  ...product ? {
8958
9249
  resources: product.module.resources,
8959
- infoPlist: import_plist4.default.build(
9250
+ infoPlist: buildPlist(
8960
9251
  expandValue(
8961
- import_plist4.default.parse(import_node_fs50.default.readFileSync(infoFile, "utf8")),
9252
+ parsePlist(import_node_fs50.default.readFileSync(infoFile, "utf8")),
8962
9253
  product.productSettings
8963
9254
  )
8964
9255
  )
@@ -8980,7 +9271,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
8980
9271
  settingKeys
8981
9272
  );
8982
9273
  const bundleIdentifier = productSettings("PRODUCT_BUNDLE_IDENTIFIER") || (typeof info.CFBundleIdentifier === "string" ? info.CFBundleIdentifier : "");
8983
- const entitlements = entitlementsFile ? import_plist4.default.parse(import_node_fs50.default.readFileSync(entitlementsFile, "utf8")) : void 0;
9274
+ const entitlements = entitlementsFile ? parsePlist(import_node_fs50.default.readFileSync(entitlementsFile, "utf8")) : void 0;
8984
9275
  const keychainAccessGroups = entitlementsFile ? readKeychainAccessGroups(
8985
9276
  entitlements,
8986
9277
  (value) => expand(value, (key) => {
@@ -9326,7 +9617,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
9326
9617
  ].sort(),
9327
9618
  projectDirs: [...new Set(used.map((project) => project.projectDir))].sort(),
9328
9619
  appIconName: settings("ASSETCATALOG_COMPILER_APPICON_NAME"),
9329
- infoPlist: infoPlistPending ? null : import_plist4.default.build(info),
9620
+ infoPlist: infoPlistPending ? null : buildPlist(info),
9330
9621
  infoPlistFile,
9331
9622
  ...keychainAccessGroups === void 0 ? {} : { keychainAccessGroups },
9332
9623
  siriEntitled: readSiriEntitlement(entitlements),