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;
@@ -1815,17 +1815,17 @@ function desktopHostExecutable() {
1815
1815
  return desktopHostPlatform() === "linux-x64" ? "bin/node" : "PeachDesktop.app/Contents/MacOS/PeachDesktop";
1816
1816
  }
1817
1817
  function bundleValue(app, key2) {
1818
- const plist6 = import_node_path6.default.join(app, "Contents/Info.plist");
1819
- const stat2 = import_node_fs8.default.statSync(plist6, { throwIfNoEntry: false });
1818
+ const plist2 = import_node_path6.default.join(app, "Contents/Info.plist");
1819
+ const stat2 = import_node_fs8.default.statSync(plist2, { throwIfNoEntry: false });
1820
1820
  if (!stat2) return null;
1821
1821
  const stamp = `${stat2.ino}:${stat2.size}:${stat2.mtimeMs}`;
1822
- let entry = bundleValues.get(plist6);
1822
+ let entry = bundleValues.get(plist2);
1823
1823
  if (entry?.stamp !== stamp) {
1824
1824
  entry = { stamp, values: /* @__PURE__ */ new Map() };
1825
- bundleValues.set(plist6, entry);
1825
+ bundleValues.set(plist2, entry);
1826
1826
  }
1827
1827
  if (entry.values.has(key2)) return entry.values.get(key2) ?? null;
1828
- const read = (0, import_node_child_process4.spawnSync)("plutil", ["-extract", key2, "raw", "-o", "-", plist6], {
1828
+ const read = (0, import_node_child_process4.spawnSync)("plutil", ["-extract", key2, "raw", "-o", "-", plist2], {
1829
1829
  encoding: "utf8"
1830
1830
  });
1831
1831
  const value = read.status === 0 ? read.stdout.trim() : null;
@@ -3510,14 +3510,326 @@ var init_dev_bundle_resolution = __esm({
3510
3510
  });
3511
3511
 
3512
3512
  // src/plist.ts
3513
+ function decodeXmlEntities(text7) {
3514
+ if (!text7.includes("&")) return text7;
3515
+ return text7.replace(/&(#x[0-9a-fA-F]+|#[0-9]+|[a-zA-Z]+);/g, (full, entity2) => {
3516
+ if (entity2.startsWith("#x") || entity2.startsWith("#X")) {
3517
+ const code = Number.parseInt(entity2.slice(2), 16);
3518
+ return Number.isFinite(code) ? String.fromCodePoint(code) : full;
3519
+ }
3520
+ if (entity2.startsWith("#")) {
3521
+ const code = Number.parseInt(entity2.slice(1), 10);
3522
+ return Number.isFinite(code) ? String.fromCodePoint(code) : full;
3523
+ }
3524
+ return NAMED_ENTITIES[entity2] ?? full;
3525
+ });
3526
+ }
3527
+ function escapeXmlText(text7) {
3528
+ return text7.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
3529
+ }
3530
+ function parseXmlDocument(input) {
3531
+ const source = input.startsWith("\uFEFF") ? input.slice(1) : input;
3532
+ const len = source.length;
3533
+ let pos = 0;
3534
+ const skipIgnorable = () => {
3535
+ while (pos < len) {
3536
+ while (pos < len && /\s/.test(source[pos])) pos++;
3537
+ if (source.startsWith("<!--", pos)) {
3538
+ const end = source.indexOf("-->", pos + 4);
3539
+ if (end === -1) throw new Error("unterminated XML comment");
3540
+ pos = end + 3;
3541
+ continue;
3542
+ }
3543
+ if (source.startsWith("<?", pos)) {
3544
+ const end = source.indexOf("?>", pos + 2);
3545
+ if (end === -1) throw new Error("unterminated XML processing instruction");
3546
+ pos = end + 2;
3547
+ continue;
3548
+ }
3549
+ if (source.startsWith("<!DOCTYPE", pos)) {
3550
+ pos += 9;
3551
+ let depth = 0;
3552
+ let quote3 = "";
3553
+ while (pos < len) {
3554
+ const ch = source[pos];
3555
+ pos++;
3556
+ if (quote3) {
3557
+ if (ch === quote3) quote3 = "";
3558
+ } else if (ch === '"' || ch === "'") {
3559
+ quote3 = ch;
3560
+ } else if (ch === "[") {
3561
+ depth++;
3562
+ } else if (ch === "]") {
3563
+ depth = Math.max(0, depth - 1);
3564
+ } else if (ch === ">" && depth === 0) {
3565
+ break;
3566
+ }
3567
+ }
3568
+ continue;
3569
+ }
3570
+ break;
3571
+ }
3572
+ };
3573
+ const readElement = () => {
3574
+ if (source[pos] !== "<") {
3575
+ throw new Error(`expected XML tag at offset ${pos}`);
3576
+ }
3577
+ pos++;
3578
+ const nameStart = pos;
3579
+ while (pos < len && /[^\s/>]/.test(source[pos])) pos++;
3580
+ const tag = source.slice(nameStart, pos);
3581
+ if (!tag) throw new Error(`empty XML tag name at offset ${nameStart}`);
3582
+ let quote3 = "";
3583
+ let selfClosing = false;
3584
+ while (pos < len) {
3585
+ const ch = source[pos];
3586
+ if (quote3) {
3587
+ pos++;
3588
+ if (ch === quote3) quote3 = "";
3589
+ continue;
3590
+ }
3591
+ if (ch === '"' || ch === "'") {
3592
+ quote3 = ch;
3593
+ pos++;
3594
+ continue;
3595
+ }
3596
+ if (ch === "/" && source[pos + 1] === ">") {
3597
+ selfClosing = true;
3598
+ pos += 2;
3599
+ break;
3600
+ }
3601
+ if (ch === ">") {
3602
+ pos++;
3603
+ break;
3604
+ }
3605
+ pos++;
3606
+ }
3607
+ if (selfClosing) {
3608
+ return { tag, children: [], text: "" };
3609
+ }
3610
+ const children = [];
3611
+ let text7 = "";
3612
+ while (pos < len) {
3613
+ if (source.startsWith("<!--", pos)) {
3614
+ const end2 = source.indexOf("-->", pos + 4);
3615
+ if (end2 === -1) throw new Error("unterminated XML comment");
3616
+ pos = end2 + 3;
3617
+ continue;
3618
+ }
3619
+ if (source.startsWith("<![CDATA[", pos)) {
3620
+ const end2 = source.indexOf("]]>", pos + 9);
3621
+ if (end2 === -1) throw new Error("unterminated CDATA section");
3622
+ text7 += source.slice(pos + 9, end2);
3623
+ pos = end2 + 3;
3624
+ continue;
3625
+ }
3626
+ if (source.startsWith("</", pos)) {
3627
+ pos += 2;
3628
+ const closeStart = pos;
3629
+ while (pos < len && /[^\s>]/.test(source[pos])) pos++;
3630
+ const closeTag = source.slice(closeStart, pos);
3631
+ while (pos < len && /\s/.test(source[pos])) pos++;
3632
+ if (source[pos] !== ">") throw new Error(`malformed closing tag </${closeTag}>`);
3633
+ pos++;
3634
+ if (closeTag !== tag) {
3635
+ throw new Error(`mismatched XML closing tag </${closeTag}> for <${tag}>`);
3636
+ }
3637
+ return { tag, children, text: text7 };
3638
+ }
3639
+ if (source[pos] === "<") {
3640
+ children.push(readElement());
3641
+ continue;
3642
+ }
3643
+ const nextTag = source.indexOf("<", pos);
3644
+ const end = nextTag === -1 ? len : nextTag;
3645
+ text7 += decodeXmlEntities(source.slice(pos, end));
3646
+ pos = end;
3647
+ }
3648
+ throw new Error(`unclosed XML tag <${tag}>`);
3649
+ };
3650
+ skipIgnorable();
3651
+ if (pos >= len) throw new Error("empty XML plist document");
3652
+ return readElement();
3653
+ }
3654
+ function parseXmlPlist(source, options2 = {}) {
3655
+ const root = parseXmlDocument(source);
3656
+ if (root.tag !== "plist") {
3657
+ throw new Error(`expected <plist> root element, got <${root.tag}>`);
3658
+ }
3659
+ if (root.children.length === 0) {
3660
+ if (options2.strict) throw new Error("<plist> element has no root value");
3661
+ return void 0;
3662
+ }
3663
+ if (options2.strict && root.children.length !== 1) {
3664
+ throw new Error("<plist> element must contain exactly one root value");
3665
+ }
3666
+ const leafText = (node) => {
3667
+ if (options2.strict && node.children.length > 0) {
3668
+ throw new Error(`<${node.tag}> must not contain child elements`);
3669
+ }
3670
+ return node.text;
3671
+ };
3672
+ const visit3 = (node) => {
3673
+ switch (node.tag) {
3674
+ case "dict": {
3675
+ const result = {};
3676
+ if (options2.strict && node.children.length % 2 !== 0) {
3677
+ throw new Error("<dict> must contain key/value pairs");
3678
+ }
3679
+ for (let i = 0; i + 1 < node.children.length; i += 2) {
3680
+ const keyNode = node.children[i];
3681
+ if (keyNode.tag !== "key") {
3682
+ throw new Error(`expected <key> in <dict>, got <${keyNode.tag}>`);
3683
+ }
3684
+ result[leafText(keyNode)] = visit3(node.children[i + 1]);
3685
+ }
3686
+ return result;
3687
+ }
3688
+ case "array":
3689
+ return node.children.map(visit3);
3690
+ case "string":
3691
+ return leafText(node);
3692
+ case "integer": {
3693
+ const raw2 = leafText(node).trim();
3694
+ if (options2.onInteger) return options2.onInteger(raw2);
3695
+ if (!raw2) throw new Error("empty <integer> element");
3696
+ return Number.parseInt(raw2, 10);
3697
+ }
3698
+ case "real": {
3699
+ const raw2 = leafText(node).trim();
3700
+ if (options2.onReal) return options2.onReal(raw2);
3701
+ if (!raw2) throw new Error("empty <real> element");
3702
+ return Number.parseFloat(raw2);
3703
+ }
3704
+ case "true":
3705
+ return true;
3706
+ case "false":
3707
+ return false;
3708
+ case "data":
3709
+ return Buffer.from(leafText(node).replace(/\s+/g, ""), "base64");
3710
+ case "date":
3711
+ return new Date(leafText(node).trim());
3712
+ default:
3713
+ throw new Error(`unsupported plist element ${node.tag}`);
3714
+ }
3715
+ };
3716
+ return visit3(root.children[0]);
3717
+ }
3718
+ function parsePlist(source) {
3719
+ const root = parseXmlDocument(source);
3720
+ if (root.tag !== "plist") {
3721
+ throw new Error(`expected <plist> root element, got <${root.tag}>`);
3722
+ }
3723
+ if (root.children.length === 0) return {};
3724
+ const visit3 = (node) => {
3725
+ switch (node.tag) {
3726
+ case "dict": {
3727
+ const result = {};
3728
+ for (let i = 0; i + 1 < node.children.length; i += 2) {
3729
+ const keyNode = node.children[i];
3730
+ if (keyNode.tag !== "key") {
3731
+ throw new Error(`expected <key> in <dict>, got <${keyNode.tag}>`);
3732
+ }
3733
+ result[keyNode.text] = visit3(node.children[i + 1]);
3734
+ }
3735
+ return result;
3736
+ }
3737
+ case "array":
3738
+ return node.children.map(visit3);
3739
+ case "string":
3740
+ return node.text;
3741
+ case "integer": {
3742
+ const raw2 = node.text.trim();
3743
+ if (!raw2) throw new Error("empty <integer> element");
3744
+ return Number.parseInt(raw2, 10);
3745
+ }
3746
+ case "real": {
3747
+ const raw2 = node.text.trim();
3748
+ if (!raw2) throw new Error("empty <real> element");
3749
+ return Number.parseFloat(raw2);
3750
+ }
3751
+ case "true":
3752
+ return true;
3753
+ case "false":
3754
+ return false;
3755
+ case "data":
3756
+ return Buffer.from(node.text.replace(/\s+/g, ""), "base64");
3757
+ case "date":
3758
+ return new Date(node.text.trim());
3759
+ default:
3760
+ throw new Error(`unsupported plist element ${node.tag}`);
3761
+ }
3762
+ };
3763
+ return visit3(root.children[0]);
3764
+ }
3513
3765
  function parsePlistSource(source) {
3514
- return import_plist.default.parse(source);
3766
+ return parseXmlPlist(source);
3767
+ }
3768
+ function renderValue(value, indent2) {
3769
+ if (value === void 0 || value === null) return null;
3770
+ if (typeof value === "string") {
3771
+ return `${indent2}<string>${escapeXmlText(value)}</string>`;
3772
+ }
3773
+ if (typeof value === "boolean") {
3774
+ return `${indent2}${value ? "<true/>" : "<false/>"}`;
3775
+ }
3776
+ if (typeof value === "number") {
3777
+ if (Number.isInteger(value) && !Object.is(value, -0)) {
3778
+ return `${indent2}<integer>${value}</integer>`;
3779
+ }
3780
+ return `${indent2}<real>${value}</real>`;
3781
+ }
3782
+ if (value instanceof Date) {
3783
+ return `${indent2}<date>${value.toISOString().replace(/\.\d{3}Z$/, "Z")}</date>`;
3784
+ }
3785
+ if (Buffer.isBuffer(value) || value instanceof Uint8Array) {
3786
+ const encoded = Buffer.from(value).toString("base64");
3787
+ return encoded ? `${indent2}<data>${encoded}</data>` : `${indent2}<data/>`;
3788
+ }
3789
+ if (Array.isArray(value)) {
3790
+ const items2 = value.map((entry) => renderValue(entry, `${indent2} `)).filter((entry) => entry !== null);
3791
+ if (items2.length === 0) return `${indent2}<array/>`;
3792
+ return `${indent2}<array>
3793
+ ${items2.join("\n")}
3794
+ ${indent2}</array>`;
3795
+ }
3796
+ if (typeof value === "object") {
3797
+ const lines = [];
3798
+ for (const [key2, entry] of Object.entries(value)) {
3799
+ const rendered = renderValue(entry, `${indent2} `);
3800
+ if (rendered === null) continue;
3801
+ lines.push(`${indent2} <key>${escapeXmlText(key2)}</key>`);
3802
+ lines.push(rendered);
3803
+ }
3804
+ if (lines.length === 0) return `${indent2}<dict/>`;
3805
+ return `${indent2}<dict>
3806
+ ${lines.join("\n")}
3807
+ ${indent2}</dict>`;
3808
+ }
3809
+ throw new Error(`unsupported plist value type: ${typeof value}`);
3810
+ }
3811
+ function buildPlist(value) {
3812
+ const body = renderValue(value, " ");
3813
+ return [
3814
+ '<?xml version="1.0" encoding="UTF-8"?>',
3815
+ '<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">',
3816
+ '<plist version="1.0">',
3817
+ ...body ? [body] : [],
3818
+ "</plist>",
3819
+ ""
3820
+ ].join("\n");
3515
3821
  }
3516
- var import_plist;
3822
+ var NAMED_ENTITIES;
3517
3823
  var init_plist = __esm({
3518
3824
  "src/plist.ts"() {
3519
3825
  "use strict";
3520
- import_plist = __toESM(require("peachsim/vendor/plist"), 1);
3826
+ NAMED_ENTITIES = {
3827
+ amp: "&",
3828
+ lt: "<",
3829
+ gt: ">",
3830
+ quot: '"',
3831
+ apos: "'"
3832
+ };
3521
3833
  }
3522
3834
  });
3523
3835
 
@@ -5712,13 +6024,13 @@ var init_swift_standin_digest = __esm({
5712
6024
  STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
5713
6025
  SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
5714
6026
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
5715
- STANDIN_SOURCE_DIGEST = true ? "cb9d3dbcce3fdc3dbbec1990247cf5b2a1f9fd7cd32791740e313792bd8bcfcc" : standinSourceDigest();
6027
+ STANDIN_SOURCE_DIGEST = true ? "0fa01889b40249e7aa8b8e48fee286aef4d4994798bf35e354ae224d421cdd03" : standinSourceDigest();
5716
6028
  }
5717
6029
  });
5718
6030
 
5719
6031
  // src/expo-native-compiler-digest.ts
5720
6032
  function expoNativeCompilerDigestValue() {
5721
- return true ? "6aedf26bc25b6a36f195ca561d0ac7cf616934f0decbe54a770edcae5bda1407" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
6033
+ return true ? "f6f1fdf256bd2bea43a47405f3cf628eb70398ab6fe8a8b27eee2dd2c6354b11" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
5722
6034
  }
5723
6035
  var import_node_crypto11;
5724
6036
  var init_expo_native_compiler_digest = __esm({
@@ -23265,6 +23577,160 @@ var init_admitted_mac_build = __esm({
23265
23577
  }
23266
23578
  });
23267
23579
 
23580
+ // src/gitignore.ts
23581
+ function stripTrailingSpaces(line) {
23582
+ let end = line.length;
23583
+ while (end > 0 && line[end - 1] === " ") {
23584
+ let slashes = 0;
23585
+ for (let i = end - 2; i >= 0 && line[i] === "\\"; i--) slashes++;
23586
+ if (slashes % 2 === 1) break;
23587
+ end--;
23588
+ }
23589
+ return line.slice(0, end);
23590
+ }
23591
+ function globToRegexSource(pattern) {
23592
+ let out = "";
23593
+ let i = 0;
23594
+ while (i < pattern.length) {
23595
+ const ch = pattern[i];
23596
+ if (ch === "\\" && i + 1 < pattern.length) {
23597
+ out += pattern[i + 1].replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
23598
+ i += 2;
23599
+ continue;
23600
+ }
23601
+ if (ch === "*") {
23602
+ if (pattern[i + 1] === "*") {
23603
+ const prevIsSlashOrStart = i === 0 || pattern[i - 1] === "/";
23604
+ const nextIsSlash = pattern[i + 2] === "/";
23605
+ const nextIsEnd = i + 2 === pattern.length;
23606
+ if (prevIsSlashOrStart && nextIsSlash) {
23607
+ out += "(?:.+/)?";
23608
+ i += 3;
23609
+ continue;
23610
+ }
23611
+ if (prevIsSlashOrStart && nextIsEnd) {
23612
+ out += ".*";
23613
+ i += 2;
23614
+ continue;
23615
+ }
23616
+ out += ".*";
23617
+ i += 2;
23618
+ continue;
23619
+ }
23620
+ out += "[^/]*";
23621
+ i++;
23622
+ continue;
23623
+ }
23624
+ if (ch === "?") {
23625
+ out += "[^/]";
23626
+ i++;
23627
+ continue;
23628
+ }
23629
+ if (ch === "[") {
23630
+ let j = i + 1;
23631
+ if (j < pattern.length && (pattern[j] === "!" || pattern[j] === "^")) j++;
23632
+ if (j < pattern.length && pattern[j] === "]") j++;
23633
+ while (j < pattern.length && pattern[j] !== "]") {
23634
+ if (pattern[j] === "\\" && j + 1 < pattern.length) j += 2;
23635
+ else j++;
23636
+ }
23637
+ if (j < pattern.length) {
23638
+ let body = pattern.slice(i + 1, j);
23639
+ if (body.startsWith("!")) body = `^${body.slice(1)}`;
23640
+ out += `[${body}]`;
23641
+ i = j + 1;
23642
+ continue;
23643
+ }
23644
+ }
23645
+ out += ch.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
23646
+ i++;
23647
+ }
23648
+ return out;
23649
+ }
23650
+ function compileRule(rawLine) {
23651
+ const withoutCr = rawLine.endsWith("\r") ? rawLine.slice(0, -1) : rawLine;
23652
+ const trimmed = stripTrailingSpaces(withoutCr);
23653
+ if (!trimmed || trimmed.startsWith("#")) return null;
23654
+ let negative = false;
23655
+ let pattern = trimmed;
23656
+ if (pattern.startsWith("!")) {
23657
+ negative = true;
23658
+ pattern = pattern.slice(1);
23659
+ }
23660
+ if (!pattern) return null;
23661
+ const directoryOnly = pattern.endsWith("/");
23662
+ if (directoryOnly) {
23663
+ pattern = pattern.slice(0, -1);
23664
+ if (!pattern) return null;
23665
+ }
23666
+ const anchored = pattern.includes("/");
23667
+ if (pattern.startsWith("/")) {
23668
+ pattern = pattern.slice(1);
23669
+ }
23670
+ const body = globToRegexSource(pattern);
23671
+ const prefix = anchored ? "^" : "(?:^|/)";
23672
+ const regex2 = new RegExp(`${prefix}${body}$`, "i");
23673
+ return { negative, directoryOnly, regex: regex2 };
23674
+ }
23675
+ function normalizePath(input) {
23676
+ const isDirectory5 = input.endsWith("/");
23677
+ let normalized = isDirectory5 ? input.slice(0, -1) : input;
23678
+ if (normalized.startsWith("./")) normalized = normalized.slice(2);
23679
+ return { path: normalized, isDirectory: isDirectory5 };
23680
+ }
23681
+ function createGitignoreMatcher() {
23682
+ const rules2 = [];
23683
+ const matchSingle = (candidate, isDirectory5) => {
23684
+ let ignored = false;
23685
+ let unignored = false;
23686
+ for (const rule of rules2) {
23687
+ if (rule.directoryOnly && !isDirectory5) continue;
23688
+ if (!rule.regex.test(candidate)) continue;
23689
+ if (rule.negative) {
23690
+ ignored = false;
23691
+ unignored = true;
23692
+ } else {
23693
+ ignored = true;
23694
+ unignored = false;
23695
+ }
23696
+ }
23697
+ return { ignored, unignored };
23698
+ };
23699
+ const matcher = {
23700
+ add(patterns) {
23701
+ const list2 = typeof patterns === "string" ? patterns.split("\n") : patterns;
23702
+ for (const entry of list2) {
23703
+ for (const line of entry.split("\n")) {
23704
+ const compiled = compileRule(line);
23705
+ if (compiled) rules2.push(compiled);
23706
+ }
23707
+ }
23708
+ return matcher;
23709
+ },
23710
+ test(relativePath2) {
23711
+ const { path: path162, isDirectory: isDirectory5 } = normalizePath(relativePath2);
23712
+ if (!path162) return { ignored: false, unignored: false };
23713
+ const parts2 = path162.split("/");
23714
+ let prefix = "";
23715
+ for (let i = 0; i < parts2.length - 1; i++) {
23716
+ prefix = prefix ? `${prefix}/${parts2[i]}` : parts2[i];
23717
+ const parent = matchSingle(prefix, true);
23718
+ if (parent.ignored) return { ignored: true, unignored: false };
23719
+ }
23720
+ return matchSingle(path162, isDirectory5);
23721
+ },
23722
+ ignores(relativePath2) {
23723
+ return matcher.test(relativePath2).ignored;
23724
+ }
23725
+ };
23726
+ return matcher;
23727
+ }
23728
+ var init_gitignore = __esm({
23729
+ "src/gitignore.ts"() {
23730
+ "use strict";
23731
+ }
23732
+ });
23733
+
23268
23734
  // src/expo-workspace-exclusion.ts
23269
23735
  async function workspaceExclusion(root, portable = false, linkedPackages = []) {
23270
23736
  const listed = await (0, import_node_util4.promisify)(import_node_child_process18.execFile)(
@@ -23334,7 +23800,7 @@ function gitignoreRules(root) {
23334
23800
  let rules2 = ignoreFiles.get(directory2);
23335
23801
  if (rules2 === void 0) {
23336
23802
  const file = import_node_path46.default.join(root, directory2, ".gitignore");
23337
- rules2 = import_node_fs46.default.existsSync(file) ? (0, import_ignore.default)().add(import_node_fs46.default.readFileSync(file, "utf8")) : null;
23803
+ rules2 = import_node_fs46.default.existsSync(file) ? createGitignoreMatcher().add(import_node_fs46.default.readFileSync(file, "utf8")) : null;
23338
23804
  ignoreFiles.set(directory2, rules2);
23339
23805
  }
23340
23806
  if (!rules2) continue;
@@ -23346,7 +23812,7 @@ function gitignoreRules(root) {
23346
23812
  return excluded;
23347
23813
  };
23348
23814
  }
23349
- var import_node_child_process18, import_node_fs46, import_node_path46, import_node_util4, import_ignore, gitEnvironment;
23815
+ var import_node_child_process18, import_node_fs46, import_node_path46, import_node_util4, gitEnvironment;
23350
23816
  var init_expo_workspace_exclusion = __esm({
23351
23817
  "src/expo-workspace-exclusion.ts"() {
23352
23818
  "use strict";
@@ -23354,7 +23820,7 @@ var init_expo_workspace_exclusion = __esm({
23354
23820
  import_node_fs46 = __toESM(require("node:fs"), 1);
23355
23821
  import_node_path46 = __toESM(require("node:path"), 1);
23356
23822
  import_node_util4 = require("node:util");
23357
- import_ignore = __toESM(require("peachsim/vendor/ignore"), 1);
23823
+ init_gitignore();
23358
23824
  gitEnvironment = () => ({
23359
23825
  ...process.env,
23360
23826
  GIT_CONFIG_GLOBAL: "/dev/null",
@@ -48342,7 +48808,6 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
48342
48808
  (left, right) => right.path.length - left.path.length
48343
48809
  );
48344
48810
  const targetsByDir = indexTargetsByDirectory(bySourcePath);
48345
- const targetByName = new Map(targets.map((target) => [target.name, target]));
48346
48811
  const nativeTargets2 = input.nativeTargets ?? [];
48347
48812
  const nativeTargetByName = new Map(nativeTargets2.map((target) => [target.name, target]));
48348
48813
  const nativeTargetIndex = new Map(
@@ -48418,7 +48883,6 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
48418
48883
  checkedToolchain = swiftToolchain(pin2.release, swiftModuleSdk(moduleRoot));
48419
48884
  return checkedToolchain;
48420
48885
  };
48421
- const deploymentTarget = (name3) => nativeTargetByName.get(name3)?.deploymentTarget ?? targetByName.get(name3)?.iosDeploymentTarget ?? null;
48422
48886
  const targetStagedFiles = /* @__PURE__ */ new Map();
48423
48887
  const stageTargetFile = (target, file, contents2, options2) => {
48424
48888
  const relative6 = import_node_path81.default.relative(layout2.root, file).split(import_node_path81.default.sep).join(import_node_path81.default.posix.sep);
@@ -49493,7 +49957,7 @@ ${entry}`);
49493
49957
  };
49494
49958
  for (const target of targets) {
49495
49959
  if (!target.executable && !reachesNative(target.name)) continue;
49496
- const version2 = deploymentTarget(target.name);
49960
+ const version2 = nativeTargetByName.get(target.name)?.deploymentTarget ?? target.iosDeploymentTarget ?? null;
49497
49961
  const minimum = iosDeploymentMinimum(version2);
49498
49962
  if (minimum === void 0)
49499
49963
  throw new Error(
@@ -52159,7 +52623,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
52159
52623
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
52160
52624
  MULTI_MANIFEST_VERSION = 76;
52161
52625
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
52162
- compilerSourceDigest = true ? "6fbcbab3535da2f464a19f4d3c1db8a7e4b393927e5158477332f4cc978cc22f" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
52626
+ compilerSourceDigest = true ? "37c95b1d4be497f3f882c4c51f2be7e5bb09b4bcc4976a51d553b0a993c9c7ca" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
52163
52627
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
52164
52628
  MODULE_MAP_RESPONSE_FILE_RUN = 16;
52165
52629
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
@@ -62711,9 +63175,133 @@ end
62711
63175
  });
62712
63176
 
62713
63177
  // src/plist-bytes.ts
63178
+ function defaultInteger(value) {
63179
+ return value >= BigInt(Number.MIN_SAFE_INTEGER) && value <= BigInt(Number.MAX_SAFE_INTEGER) ? Number(value) : value;
63180
+ }
63181
+ function parseBinaryPlist(source, options2 = {}) {
63182
+ const bytes = Buffer.isBuffer(source) ? source : Buffer.from(source);
63183
+ (0, import_strict.default)(bytes.length >= 40, "binary plist is too short");
63184
+ (0, import_strict.default)(bytes.toString("ascii", 0, 8) === "bplist00", "invalid binary plist header");
63185
+ const trailer = bytes.length - 32;
63186
+ const offsetWidth = bytes[trailer + 6];
63187
+ const refWidth = bytes[trailer + 7];
63188
+ (0, import_strict.default)(offsetWidth > 0 && offsetWidth <= 8 && refWidth > 0 && refWidth <= 8);
63189
+ const count = Number(bytes.readBigUInt64BE(trailer + 8));
63190
+ const root = Number(bytes.readBigUInt64BE(trailer + 16));
63191
+ const table = Number(bytes.readBigUInt64BE(trailer + 24));
63192
+ (0, import_strict.default)(
63193
+ table >= 8 && table < trailer && count > 0 && count <= (trailer - table) / offsetWidth
63194
+ );
63195
+ const unsigned = (at, width) => {
63196
+ (0, import_strict.default)(at >= 8 && at + width <= trailer);
63197
+ let result = 0n;
63198
+ for (let i = at; i < at + width; i++) result = result * 256n + BigInt(bytes[i]);
63199
+ return result;
63200
+ };
63201
+ const cache = /* @__PURE__ */ new Map();
63202
+ const visiting = /* @__PURE__ */ new Set();
63203
+ const visit3 = (ref) => {
63204
+ (0, import_strict.default)(ref >= 0 && ref < count && !visiting.has(ref));
63205
+ if (cache.has(ref)) return cache.get(ref);
63206
+ visiting.add(ref);
63207
+ const at = Number(unsigned(table + ref * offsetWidth, offsetWidth));
63208
+ (0, import_strict.default)(at >= 8 && at < table);
63209
+ const marker = bytes[at];
63210
+ const type = marker >> 4;
63211
+ let length = marker & 15;
63212
+ let data = at + 1;
63213
+ if (length === 15 && [4, 5, 6, 7, 10, 12, 13].includes(type)) {
63214
+ (0, import_strict.default)(data < table && bytes[data] >> 4 === 1);
63215
+ const width = 2 ** (bytes[data] & 15);
63216
+ (0, import_strict.default)(width <= 8 && data + 1 + width <= table);
63217
+ length = Number(unsigned(data + 1, width));
63218
+ data += 1 + width;
63219
+ }
63220
+ const end = (size2) => {
63221
+ (0, import_strict.default)(Number.isSafeInteger(size2) && data + size2 <= table);
63222
+ return data + size2;
63223
+ };
63224
+ const references = (total) => {
63225
+ end(total * refWidth);
63226
+ return Array.from(
63227
+ { length: total },
63228
+ (_, i) => visit3(Number(unsigned(data + i * refWidth, refWidth)))
63229
+ );
63230
+ };
63231
+ let value;
63232
+ switch (type) {
63233
+ case 0:
63234
+ if (!options2.strict && marker === 0) {
63235
+ value = null;
63236
+ break;
63237
+ }
63238
+ (0, import_strict.default)(marker === 8 || marker === 9);
63239
+ value = marker === 9;
63240
+ break;
63241
+ case 1: {
63242
+ const size2 = 2 ** length;
63243
+ (0, import_strict.default)(size2 <= 16);
63244
+ end(size2);
63245
+ const raw2 = unsigned(data, size2);
63246
+ const signed = size2 >= 8 ? BigInt.asIntN(size2 * 8, raw2) : raw2;
63247
+ value = options2.onInteger ? options2.onInteger(signed) : defaultInteger(signed);
63248
+ break;
63249
+ }
63250
+ case 2: {
63251
+ (0, import_strict.default)(length === 2 || length === 3);
63252
+ end(2 ** length);
63253
+ const real = length === 2 ? bytes.readFloatBE(data) : bytes.readDoubleBE(data);
63254
+ value = options2.onReal ? options2.onReal(real) : real;
63255
+ break;
63256
+ }
63257
+ case 3:
63258
+ (0, import_strict.default)(length === 3);
63259
+ end(8);
63260
+ value = new Date(Date.UTC(2001, 0, 1) + bytes.readDoubleBE(data) * 1e3);
63261
+ break;
63262
+ case 4:
63263
+ value = bytes.subarray(data, end(length));
63264
+ break;
63265
+ case 5:
63266
+ value = bytes.toString("ascii", data, end(length));
63267
+ break;
63268
+ case 6:
63269
+ value = Buffer.from(bytes.subarray(data, end(length * 2))).swap16().toString("utf16le");
63270
+ break;
63271
+ case 7:
63272
+ value = bytes.toString("utf8", data, end(length));
63273
+ break;
63274
+ case 8: {
63275
+ if (options2.strict) throw new Error(`unsupported binary plist type ${type}`);
63276
+ const size2 = length + 1;
63277
+ (0, import_strict.default)(size2 >= 1 && size2 <= 8);
63278
+ end(size2);
63279
+ value = { UID: Number(unsigned(data, size2)) };
63280
+ break;
63281
+ }
63282
+ case 10:
63283
+ case 12:
63284
+ value = references(length);
63285
+ break;
63286
+ case 13: {
63287
+ const elements = references(length * 2);
63288
+ const keys = elements.slice(0, length);
63289
+ (0, import_strict.default)(keys.every((key2) => typeof key2 === "string"));
63290
+ value = Object.fromEntries(keys.map((key2, i) => [key2, elements[length + i]]));
63291
+ break;
63292
+ }
63293
+ default:
63294
+ throw new Error(`unsupported binary plist type ${type}`);
63295
+ }
63296
+ visiting.delete(ref);
63297
+ cache.set(ref, value);
63298
+ return value;
63299
+ };
63300
+ return visit3(root);
63301
+ }
62714
63302
  function parsePlistBytes(source, parseXml2 = parsePlistSource) {
62715
63303
  const bytes = Buffer.from(source);
62716
- return bytes.subarray(0, 8).toString("ascii") === "bplist00" ? import_bplist_parser.default.parseBuffer(bytes)[0] : parseXml2(bytes.toString("utf8"));
63304
+ return bytes.subarray(0, 8).toString("ascii") === "bplist00" ? parseBinaryPlist(bytes) : parseXml2(bytes.toString("utf8"));
62717
63305
  }
62718
63306
  function buildBinaryPlist(top) {
62719
63307
  const nodes = [];
@@ -62799,11 +63387,11 @@ function buildBinaryPlist(top) {
62799
63387
  trailer
62800
63388
  ]);
62801
63389
  }
62802
- var import_bplist_parser, isList, isUid;
63390
+ var import_strict, isList, isUid;
62803
63391
  var init_plist_bytes = __esm({
62804
63392
  "src/plist-bytes.ts"() {
62805
63393
  "use strict";
62806
- import_bplist_parser = __toESM(require("peachsim/vendor/bplist-parser"), 1);
63394
+ import_strict = __toESM(require("node:assert/strict"), 1);
62807
63395
  init_plist();
62808
63396
  isList = (value) => Array.isArray(value);
62809
63397
  isUid = (value) => typeof value === "object" && !isList(value) && !Buffer.isBuffer(value) && Object.keys(value).length === 1 && typeof value["CF$UID"] === "number";
@@ -62998,10 +63586,10 @@ var init_pods_files = __esm({
62998
63586
  constructor(targetName, path162) {
62999
63587
  this.targetName = targetName;
63000
63588
  this.path = path162;
63001
- const plist6 = parsePlistBytes(import_node_fs85.default.readFileSync(`${path162}/Info.plist`));
63002
- if (!isRecord(plist6) || !Array.isArray(plist6.AvailableLibraries))
63589
+ const plist2 = parsePlistBytes(import_node_fs85.default.readFileSync(`${path162}/Info.plist`));
63590
+ if (!isRecord(plist2) || !Array.isArray(plist2.AvailableLibraries))
63003
63591
  throw new Error(`${path162}/Info.plist declares no AvailableLibraries`);
63004
- this.slices = plist6.AvailableLibraries.map((library) => {
63592
+ this.slices = plist2.AvailableLibraries.map((library) => {
63005
63593
  if (!isRecord(library) || typeof library.LibraryIdentifier !== "string" || typeof library.LibraryPath !== "string" || typeof library.SupportedPlatform !== "string")
63006
63594
  throw new Error(`${path162}/Info.plist has an invalid library entry`);
63007
63595
  const root = `${path162}/${library.LibraryIdentifier}`;
@@ -70747,7 +71335,7 @@ ${published4.map(
70747
71335
  const contents2 = new Map([
70748
71336
  [
70749
71337
  "Info.plist",
70750
- import_plist4.default.build({
71338
+ buildPlist({
70751
71339
  AvailableLibraries: [
70752
71340
  {
70753
71341
  LibraryIdentifier: "ios-arm64-simulator",
@@ -70832,7 +71420,7 @@ ${published4.map(
70832
71420
  const infoPlistReady = infoPlistFiles.every((file) => import_node_fs91.default.existsSync(file));
70833
71421
  const info = {};
70834
71422
  for (const file of infoPlistReady ? infoPlistFiles : []) {
70835
- const fragment = import_plist4.default.parse(import_node_fs91.default.readFileSync(file, "utf8"));
71423
+ const fragment = parsePlist(import_node_fs91.default.readFileSync(file, "utf8"));
70836
71424
  if (!fragment || typeof fragment !== "object" || Array.isArray(fragment) || fragment instanceof Date || Buffer.isBuffer(fragment))
70837
71425
  throw new Error(`${file} is not a plist dictionary`);
70838
71426
  for (const [key2, value] of Object.entries(fragment)) {
@@ -70901,7 +71489,7 @@ ${published4.map(
70901
71489
  rootDir: root,
70902
71490
  projectFiles: buildFiles.sort(),
70903
71491
  projectDirs: [root],
70904
- infoPlist: infoPlistReady ? import_plist4.default.build(info) : null,
71492
+ infoPlist: infoPlistReady ? buildPlist(info) : null,
70905
71493
  infoPlistFile: null,
70906
71494
  postBundleScripts: [],
70907
71495
  appIconName: "",
@@ -70953,7 +71541,7 @@ function shellTokens(options2) {
70953
71541
  return words2;
70954
71542
  });
70955
71543
  }
70956
- var import_node_child_process43, import_node_crypto51, import_node_fs91, import_node_os18, import_node_path94, import_plist4, LIBRARY_RULES, QUERIED_RULES, NATIVE_SOURCE, HEADER4, PRODUCTS, graphs, CLANG_CONFIGURATION_FLAGS, GRAPH_FORMAT, BazelFiles, CXX_STANDARD;
71544
+ var import_node_child_process43, import_node_crypto51, import_node_fs91, import_node_os18, import_node_path94, LIBRARY_RULES, QUERIED_RULES, NATIVE_SOURCE, HEADER4, PRODUCTS, graphs, CLANG_CONFIGURATION_FLAGS, GRAPH_FORMAT, BazelFiles, CXX_STANDARD;
70957
71545
  var init_bazel_project = __esm({
70958
71546
  "src/bazel-project.ts"() {
70959
71547
  "use strict";
@@ -70962,8 +71550,8 @@ var init_bazel_project = __esm({
70962
71550
  import_node_fs91 = __toESM(require("node:fs"), 1);
70963
71551
  import_node_os18 = __toESM(require("node:os"), 1);
70964
71552
  import_node_path94 = __toESM(require("node:path"), 1);
70965
- import_plist4 = __toESM(require("peachsim/vendor/plist"), 1);
70966
71553
  init_is_record();
71554
+ init_plist();
70967
71555
  LIBRARY_RULES = /* @__PURE__ */ new Set(["swift_library", "objc_library", "cc_library"]);
70968
71556
  QUERIED_RULES = [
70969
71557
  "swift_library",
@@ -71809,23 +72397,23 @@ function readNativeAppIdentity(value) {
71809
72397
  function createNativeAppIdentityHeader(identity2) {
71810
72398
  return encodeURIComponent(JSON.stringify(readNativeAppIdentity(identity2)));
71811
72399
  }
71812
- function readGoogleSignInConfiguration(plist6, resources) {
72400
+ function readGoogleSignInConfiguration(plist2, resources) {
71813
72401
  const clientIds = {};
71814
72402
  for (const [file, value] of Object.entries(resources)) {
71815
72403
  if (isRecord(value) && typeof value.CLIENT_ID === "string")
71816
72404
  clientIds[file.split("/").pop()?.replace(/\.plist$/, "") ?? file] = value.CLIENT_ID;
71817
72405
  }
71818
72406
  const urlSchemes = [];
71819
- for (const entry of Array.isArray(plist6.CFBundleURLTypes) ? plist6.CFBundleURLTypes : []) {
72407
+ for (const entry of Array.isArray(plist2.CFBundleURLTypes) ? plist2.CFBundleURLTypes : []) {
71820
72408
  if (!isRecord(entry) || !Array.isArray(entry.CFBundleURLSchemes)) continue;
71821
72409
  for (const scheme of entry.CFBundleURLSchemes)
71822
72410
  if (typeof scheme === "string") urlSchemes.push(scheme);
71823
72411
  }
71824
72412
  return {
71825
- clientId: plist6.GIDClientID,
71826
- serverClientId: plist6.GIDServerClientID,
71827
- hostedDomain: plist6.GIDHostedDomain,
71828
- openIDRealm: plist6.GIDOpenIDRealm,
72413
+ clientId: plist2.GIDClientID,
72414
+ serverClientId: plist2.GIDServerClientID,
72415
+ hostedDomain: plist2.GIDHostedDomain,
72416
+ openIDRealm: plist2.GIDOpenIDRealm,
71829
72417
  urlSchemes,
71830
72418
  clientIds
71831
72419
  };
@@ -71969,7 +72557,7 @@ var init_provenance = __esm({
71969
72557
  import_node_crypto53 = require("node:crypto");
71970
72558
  import_node_fs93 = require("node:fs");
71971
72559
  import_node_path96 = require("node:path");
71972
- 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_path96.join)(__sootsim_import_meta_dirname, ".."));
72560
+ 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_path96.join)(__sootsim_import_meta_dirname, ".."));
71973
72561
  }
71974
72562
  });
71975
72563
 
@@ -73922,13 +74510,13 @@ function intentModelVersion(value) {
73922
74510
  return value === "1.0" || value === "1.1" ? value : "1.2";
73923
74511
  }
73924
74512
  function modelList(value, key2) {
73925
- (0, import_strict.default)(value && typeof value === "object");
74513
+ (0, import_strict2.default)(value && typeof value === "object");
73926
74514
  const entries2 = Reflect.get(value, key2) ?? [];
73927
- (0, import_strict.default)(Array.isArray(entries2));
74515
+ (0, import_strict2.default)(Array.isArray(entries2));
73928
74516
  return entries2;
73929
74517
  }
73930
74518
  function identifier(value) {
73931
- (0, import_strict.default)(
74519
+ (0, import_strict2.default)(
73932
74520
  typeof value === "string" && /^[_\p{ID_Start}][_\p{ID_Continue}]*$/u.test(value),
73933
74521
  `invalid intent identifier ${String(value)}`
73934
74522
  );
@@ -73936,18 +74524,18 @@ function identifier(value) {
73936
74524
  }
73937
74525
  function intentClassIdentifier(value) {
73938
74526
  const name3 = identifier(value);
73939
- (0, import_strict.default)(/^[A-Za-z_0-9]+$/.test(name3), `invalid intent class name ${name3}`);
74527
+ (0, import_strict2.default)(/^[A-Za-z_0-9]+$/.test(name3), `invalid intent class name ${name3}`);
73940
74528
  return name3;
73941
74529
  }
73942
74530
  function readSwiftField(value, key2, customTypes) {
73943
- (0, import_strict.default)(value && typeof value === "object");
74531
+ (0, import_strict2.default)(value && typeof value === "object");
73944
74532
  const get2 = (property) => Reflect.get(value, key2 + property);
73945
74533
  const name3 = identifier(get2("Name"));
73946
74534
  let kind = intentParameterKind(get2("Type"));
73947
74535
  let enumeration = get2("EnumType");
73948
74536
  let object9 = get2("ObjectType");
73949
- (0, import_strict.default)(enumeration === void 0 || kind === "Integer");
73950
- (0, import_strict.default)(object9 === void 0 || kind === "Object");
74537
+ (0, import_strict2.default)(enumeration === void 0 || kind === "Integer");
74538
+ (0, import_strict2.default)(object9 === void 0 || kind === "Object");
73951
74539
  const custom = enumeration ?? object9;
73952
74540
  let customName;
73953
74541
  if (custom !== void 0) {
@@ -73962,7 +74550,7 @@ function readSwiftField(value, key2, customTypes) {
73962
74550
  }
73963
74551
  } else {
73964
74552
  customName = customTypes.get(name4);
73965
- (0, import_strict.default)(customName, "unknown intent parameter type: " + name4);
74553
+ (0, import_strict2.default)(customName, "unknown intent parameter type: " + name4);
73966
74554
  }
73967
74555
  }
73968
74556
  const type = types.get(kind);
@@ -73972,7 +74560,7 @@ function readSwiftField(value, key2, customTypes) {
73972
74560
  const valueType = multiple ? `[${array9}]` : base2;
73973
74561
  const resolves = get2("SupportsResolution") === true;
73974
74562
  const explicitReasons = modelList(value, key2 + "UnsupportedReasons").map((entry) => {
73975
- (0, import_strict.default)(entry && typeof entry === "object");
74563
+ (0, import_strict2.default)(entry && typeof entry === "object");
73976
74564
  return identifier(Reflect.get(entry, key2 + "UnsupportedReasonCode"));
73977
74565
  });
73978
74566
  const defaults = resolves && !customName ? defaultUnsupportedReasons(kind) : [];
@@ -74063,18 +74651,18 @@ fatalError()
74063
74651
  }
74064
74652
  function customObjectFields(definition2, customTypes) {
74065
74653
  return modelList(definition2, "INTypeProperties").filter((entry) => {
74066
- (0, import_strict.default)(entry && typeof entry === "object");
74654
+ (0, import_strict2.default)(entry && typeof entry === "object");
74067
74655
  return Reflect.get(entry, "INTypePropertyDefault") !== true;
74068
74656
  }).map((entry) => {
74069
74657
  const field = readSwiftField(entry, "INTypeProperty", customTypes);
74070
74658
  return { ...field, availability: field.availability ?? swiftResolutionAvailable };
74071
74659
  });
74072
74660
  }
74073
- var import_strict, swiftAvailable, swiftResolutionAvailable, swiftOptionsAvailable, upper, iOS13, numericReasons, builtin2, types;
74661
+ var import_strict2, swiftAvailable, swiftResolutionAvailable, swiftOptionsAvailable, upper, iOS13, numericReasons, builtin2, types;
74074
74662
  var init_fields = __esm({
74075
74663
  "src/intent-definition/fields.ts"() {
74076
74664
  "use strict";
74077
- import_strict = __toESM(require("node:assert/strict"), 1);
74665
+ import_strict2 = __toESM(require("node:assert/strict"), 1);
74078
74666
  init_system_types();
74079
74667
  swiftAvailable = "@available(iOS 12.0, macOS 11.0, watchOS 5.0, *) @available(tvOS, unavailable)";
74080
74668
  swiftResolutionAvailable = "@available(iOS 13.0, macOS 11.0, watchOS 6.0, *)";
@@ -74249,7 +74837,7 @@ function intentHashInput(root, propertyTypes = []) {
74249
74837
  integer2(18, BigInt(value.length));
74250
74838
  for (const item of value) append(item);
74251
74839
  } else {
74252
- (0, import_strict2.default)(
74840
+ (0, import_strict3.default)(
74253
74841
  value && typeof value === "object" && Object.getPrototypeOf(value) === Object.prototype
74254
74842
  );
74255
74843
  const keys = Object.keys(value).sort();
@@ -74264,11 +74852,11 @@ function intentHashInput(root, propertyTypes = []) {
74264
74852
  for (const propertyType of propertyTypes) append(propertyType);
74265
74853
  return Buffer.concat(chunks);
74266
74854
  }
74267
- var import_strict2, IntentReal;
74855
+ var import_strict3, IntentReal;
74268
74856
  var init_hash_input = __esm({
74269
74857
  "src/intent-definition/hash-input.ts"() {
74270
74858
  "use strict";
74271
- import_strict2 = __toESM(require("node:assert/strict"), 1);
74859
+ import_strict3 = __toESM(require("node:assert/strict"), 1);
74272
74860
  IntentReal = class {
74273
74861
  constructor(value) {
74274
74862
  this.value = value;
@@ -74328,7 +74916,7 @@ function dictionary(value) {
74328
74916
  }
74329
74917
  function normalizedEnums(input) {
74330
74918
  return modelList(input, "INEnums").map((value) => {
74331
- (0, import_strict3.default)(dictionary(value));
74919
+ (0, import_strict4.default)(dictionary(value));
74332
74920
  return {
74333
74921
  ...value,
74334
74922
  INEnumName: intentClassIdentifier(value.INEnumName),
@@ -74346,7 +74934,7 @@ function localizationIdentifier(field, key2) {
74346
74934
  }
74347
74935
  function normalizedMetadata(type, source, field) {
74348
74936
  const defaults = typeMetadata.get(type) ?? {};
74349
- (0, import_strict3.default)(source === void 0 || dictionary(source));
74937
+ (0, import_strict4.default)(source === void 0 || dictionary(source));
74350
74938
  const metadata = source ? { ...source } : Object.fromEntries(
74351
74939
  Object.entries(defaults).map(([key2, value]) => {
74352
74940
  const qualified3 = `INIntentParameterMetadata${key2}`;
@@ -74370,7 +74958,7 @@ function normalizedMetadata(type, source, field) {
74370
74958
  function normalizedReasons(parameter, kind, field) {
74371
74959
  const reasons = /* @__PURE__ */ new Map();
74372
74960
  for (const reason of modelList(parameter, "INIntentParameterUnsupportedReasons")) {
74373
- (0, import_strict3.default)(dictionary(reason));
74961
+ (0, import_strict4.default)(dictionary(reason));
74374
74962
  const code = identifier(reason.INIntentParameterUnsupportedReasonCode);
74375
74963
  const text7 = reason.INIntentParameterUnsupportedReasonFormatString;
74376
74964
  reasons.set(
@@ -74407,17 +74995,17 @@ function compileIntentMetadata(input, enums, prefix) {
74407
74995
  }
74408
74996
  const objectHashes = /* @__PURE__ */ new Map();
74409
74997
  for (const declaration of modelList(input, "INTypes")) {
74410
- (0, import_strict3.default)(dictionary(declaration) && typeof declaration.INTypeName === "string");
74998
+ (0, import_strict4.default)(dictionary(declaration) && typeof declaration.INTypeName === "string");
74411
74999
  objectHashes.set(declaration.INTypeName, intentSipHash(intentHashInput(declaration)));
74412
75000
  }
74413
75001
  const intents = modelList(input, "INIntents").map((value) => {
74414
- (0, import_strict3.default)(dictionary(value));
75002
+ (0, import_strict4.default)(dictionary(value));
74415
75003
  const name3 = intentClassIdentifier(value.INIntentName);
74416
75004
  const system = value.INIntentType === "System";
74417
75005
  const propertyTypes = [];
74418
75006
  const parameters = modelList(value, "INIntentParameters").map(
74419
75007
  (parameter, position) => {
74420
- (0, import_strict3.default)(dictionary(parameter));
75008
+ (0, import_strict4.default)(dictionary(parameter));
74421
75009
  const enumName = parameter.INIntentParameterEnumType;
74422
75010
  const objectName = parameter.INIntentParameterObjectType;
74423
75011
  const reference = enumName ?? objectName;
@@ -74444,7 +75032,7 @@ function compileIntentMetadata(input, enums, prefix) {
74444
75032
  }
74445
75033
  } else {
74446
75034
  const localHash = hashes.get(typeName);
74447
- (0, import_strict3.default)(localHash !== void 0, `unknown intent parameter type: ${typeName}`);
75035
+ (0, import_strict4.default)(localHash !== void 0, `unknown intent parameter type: ${typeName}`);
74448
75036
  hash2 = localHash;
74449
75037
  }
74450
75038
  }
@@ -74470,7 +75058,7 @@ function compileIntentMetadata(input, enums, prefix) {
74470
75058
  if (parameter.INIntentParameterSupportsMultipleValues && parameter.INIntentParameterFixedSizeArray) {
74471
75059
  const sizes = /* @__PURE__ */ new Map();
74472
75060
  for (const size2 of modelList(parameter, "INIntentParameterArraySizes")) {
74473
- (0, import_strict3.default)(
75061
+ (0, import_strict4.default)(
74474
75062
  dictionary(size2) && typeof size2.INIntentParameterArraySizeSizeClass === "string"
74475
75063
  );
74476
75064
  sizes.set(size2.INIntentParameterArraySizeSizeClass, size2);
@@ -74594,7 +75182,7 @@ function formatPlistReal(value) {
74594
75182
  return `${sign}${digits.slice(0, point)}.${digits.slice(point)}`;
74595
75183
  }
74596
75184
  function writeIntentDefinition(input, prefix) {
74597
- (0, import_strict3.default)(dictionary(input));
75185
+ (0, import_strict4.default)(dictionary(input));
74598
75186
  const escape2 = (text7) => text7.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
74599
75187
  const lines = [
74600
75188
  '<?xml version="1.0" encoding="UTF-8"?>',
@@ -74631,7 +75219,7 @@ function writeIntentDefinition(input, prefix) {
74631
75219
  lines.push(`${indent2}</array>`);
74632
75220
  }
74633
75221
  } else {
74634
- (0, import_strict3.default)(dictionary(value));
75222
+ (0, import_strict4.default)(dictionary(value));
74635
75223
  const keys = Object.keys(value).sort();
74636
75224
  if (keys.length === 0) lines.push(`${indent2}<dict/>`);
74637
75225
  else {
@@ -74663,11 +75251,11 @@ function writeIntentDefinition(input, prefix) {
74663
75251
  lines.push("</plist>", "");
74664
75252
  return lines.join("\n");
74665
75253
  }
74666
- var import_strict3, import_node_crypto56, typeMetadata, initializeMetadata, widgetArraySizes, defaultReasonMessages;
75254
+ var import_strict4, import_node_crypto56, typeMetadata, initializeMetadata, widgetArraySizes, defaultReasonMessages;
74667
75255
  var init_metadata = __esm({
74668
75256
  "src/intent-definition/metadata.ts"() {
74669
75257
  "use strict";
74670
- import_strict3 = __toESM(require("node:assert/strict"), 1);
75258
+ import_strict4 = __toESM(require("node:assert/strict"), 1);
74671
75259
  import_node_crypto56 = require("node:crypto");
74672
75260
  init_fields();
74673
75261
  init_hash_input();
@@ -74738,175 +75326,34 @@ function safeNumber(value) {
74738
75326
  function xmlPlist2(bytes) {
74739
75327
  const encoding = bytes[0] === 255 && bytes[1] === 254 ? "utf-16le" : bytes[0] === 254 && bytes[1] === 255 ? "utf-16be" : "utf-8";
74740
75328
  const text7 = new TextDecoder(encoding, { fatal: true }).decode(bytes);
74741
- const document = new import_xmldom.DOMParser({
74742
- onError(_level, message) {
74743
- throw new Error(message);
74744
- }
74745
- }).parseFromString(text7, "application/xml");
74746
- const children = (element) => Array.from(element.children);
74747
- const contents2 = (element) => {
74748
- (0, import_strict4.default)(element.children.length === 0);
74749
- return element.textContent ?? "";
74750
- };
74751
- const visit3 = (element) => {
74752
- switch (element.tagName) {
74753
- case "dict": {
74754
- const entries2 = children(element);
74755
- (0, import_strict4.default)(entries2.length % 2 === 0);
74756
- const pairs2 = [];
74757
- for (let i = 0; i < entries2.length; i += 2) {
74758
- const key2 = entries2[i];
74759
- (0, import_strict4.default)(key2.tagName === "key");
74760
- pairs2.push([contents2(key2), visit3(entries2[i + 1])]);
74761
- }
74762
- return Object.fromEntries(pairs2);
74763
- }
74764
- case "array":
74765
- return children(element).map(visit3);
74766
- case "string":
74767
- return contents2(element);
74768
- case "integer": {
74769
- const value = contents2(element).trim();
74770
- (0, import_strict4.default)(value.length > 0);
74771
- return safeNumber(BigInt(value));
74772
- }
74773
- case "real": {
74774
- const value = contents2(element).trim();
74775
- (0, import_strict4.default)(value.length > 0);
74776
- return new IntentReal(
74777
- /^[+-]?inf(?:inity)?$/i.test(value) ? value.startsWith("-") ? -Infinity : Infinity : Number(value)
74778
- );
74779
- }
74780
- case "true":
74781
- return true;
74782
- case "false":
74783
- return false;
74784
- case "data":
74785
- return Buffer.from(contents2(element), "base64");
74786
- case "date":
74787
- return new Date(contents2(element));
74788
- default:
74789
- throw new Error(`unsupported plist element ${element.tagName}`);
74790
- }
74791
- };
74792
- const plist6 = document.documentElement;
74793
- (0, import_strict4.default)(plist6?.tagName === "plist" && plist6.children.length === 1);
74794
- return visit3(plist6.children[0]);
74795
- }
74796
- function binaryPlist2(bytes) {
74797
- (0, import_strict4.default)(bytes.length >= 40);
74798
- const trailer = bytes.length - 32;
74799
- const offsetWidth = bytes[trailer + 6];
74800
- const refWidth = bytes[trailer + 7];
74801
- (0, import_strict4.default)(offsetWidth > 0 && offsetWidth <= 8 && refWidth > 0 && refWidth <= 8);
74802
- const count = Number(bytes.readBigUInt64BE(trailer + 8));
74803
- const root = Number(bytes.readBigUInt64BE(trailer + 16));
74804
- const table = Number(bytes.readBigUInt64BE(trailer + 24));
74805
- (0, import_strict4.default)(
74806
- table >= 8 && table < trailer && count > 0 && count <= (trailer - table) / offsetWidth
74807
- );
74808
- const unsigned = (at, width) => {
74809
- (0, import_strict4.default)(at >= 8 && at + width <= trailer);
74810
- let result = 0n;
74811
- for (let i = at; i < at + width; i++) result = result * 256n + BigInt(bytes[i]);
74812
- return result;
74813
- };
74814
- const cache = /* @__PURE__ */ new Map();
74815
- const visiting = /* @__PURE__ */ new Set();
74816
- const visit3 = (ref) => {
74817
- (0, import_strict4.default)(ref >= 0 && ref < count && !visiting.has(ref));
74818
- if (cache.has(ref)) return cache.get(ref);
74819
- visiting.add(ref);
74820
- const at = Number(unsigned(table + ref * offsetWidth, offsetWidth));
74821
- (0, import_strict4.default)(at >= 8 && at < table);
74822
- const marker = bytes[at];
74823
- const type = marker >> 4;
74824
- let length = marker & 15;
74825
- let data = at + 1;
74826
- if (length === 15 && [4, 5, 6, 7, 10, 13].includes(type)) {
74827
- (0, import_strict4.default)(data < table && bytes[data] >> 4 === 1);
74828
- const width = 2 ** (bytes[data] & 15);
74829
- (0, import_strict4.default)(width <= 8 && data + 1 + width <= table);
74830
- length = Number(unsigned(data + 1, width));
74831
- data += 1 + width;
74832
- }
74833
- const end = (size2) => {
74834
- (0, import_strict4.default)(Number.isSafeInteger(size2) && data + size2 <= table);
74835
- return data + size2;
74836
- };
74837
- const references = (total) => {
74838
- end(total * refWidth);
74839
- return Array.from(
74840
- { length: total },
74841
- (_, i) => visit3(Number(unsigned(data + i * refWidth, refWidth)))
75329
+ return parseXmlPlist(text7, {
75330
+ strict: true,
75331
+ onInteger(raw2) {
75332
+ (0, import_strict5.default)(raw2.length > 0);
75333
+ return safeNumber(BigInt(raw2));
75334
+ },
75335
+ onReal(raw2) {
75336
+ (0, import_strict5.default)(raw2.length > 0);
75337
+ return new IntentReal(
75338
+ /^[+-]?inf(?:inity)?$/i.test(raw2) ? raw2.startsWith("-") ? -Infinity : Infinity : Number(raw2)
74842
75339
  );
74843
- };
74844
- let value;
74845
- switch (type) {
74846
- case 0:
74847
- (0, import_strict4.default)(marker === 8 || marker === 9);
74848
- value = marker === 9;
74849
- break;
74850
- case 1: {
74851
- const size2 = 2 ** length;
74852
- (0, import_strict4.default)(size2 <= 16);
74853
- end(size2);
74854
- const integer2 = unsigned(data, size2);
74855
- value = safeNumber(size2 >= 8 ? BigInt.asIntN(size2 * 8, integer2) : integer2);
74856
- break;
74857
- }
74858
- case 2:
74859
- (0, import_strict4.default)(length === 2 || length === 3);
74860
- end(2 ** length);
74861
- value = new IntentReal(
74862
- length === 2 ? bytes.readFloatBE(data) : bytes.readDoubleBE(data)
74863
- );
74864
- break;
74865
- case 3:
74866
- (0, import_strict4.default)(length === 3);
74867
- end(8);
74868
- value = new Date(Date.UTC(2001, 0, 1) + bytes.readDoubleBE(data) * 1e3);
74869
- break;
74870
- case 4:
74871
- value = bytes.subarray(data, end(length));
74872
- break;
74873
- case 5:
74874
- value = bytes.toString("ascii", data, end(length));
74875
- break;
74876
- case 6:
74877
- value = Buffer.from(bytes.subarray(data, end(length * 2))).swap16().toString("utf16le");
74878
- break;
74879
- case 7:
74880
- value = bytes.toString("utf8", data, end(length));
74881
- break;
74882
- case 10:
74883
- value = references(length);
74884
- break;
74885
- case 13: {
74886
- const elements = references(length * 2);
74887
- const keys = elements.slice(0, length);
74888
- (0, import_strict4.default)(keys.every((key2) => typeof key2 === "string"));
74889
- value = Object.fromEntries(keys.map((key2, i) => [key2, elements[length + i]]));
74890
- break;
74891
- }
74892
- default:
74893
- throw new Error(`unsupported binary plist type ${type}`);
74894
75340
  }
74895
- visiting.delete(ref);
74896
- cache.set(ref, value);
74897
- return value;
74898
- };
74899
- return visit3(root);
75341
+ });
74900
75342
  }
74901
75343
  function parseIntentPlist(bytes) {
74902
- return bytes.toString("ascii", 0, 8) === "bplist00" ? binaryPlist2(bytes) : xmlPlist2(bytes);
75344
+ return bytes.toString("ascii", 0, 8) === "bplist00" ? parseBinaryPlist(bytes, {
75345
+ strict: true,
75346
+ onInteger: safeNumber,
75347
+ onReal: (value) => new IntentReal(value)
75348
+ }) : xmlPlist2(bytes);
74903
75349
  }
74904
- var import_strict4, import_xmldom;
75350
+ var import_strict5;
74905
75351
  var init_plist_reader = __esm({
74906
75352
  "src/intent-definition/plist-reader.ts"() {
74907
75353
  "use strict";
74908
- import_strict4 = __toESM(require("node:assert/strict"), 1);
74909
- import_xmldom = require("peachsim/vendor/@xmldom/xmldom");
75354
+ import_strict5 = __toESM(require("node:assert/strict"), 1);
75355
+ init_plist();
75356
+ init_plist_bytes();
74910
75357
  init_hash_input();
74911
75358
  }
74912
75359
  });
@@ -74918,10 +75365,10 @@ function readIntentResponse(definition2, customTypes) {
74918
75365
  );
74919
75366
  const definitions = new Map(
74920
75367
  modelList(definition2, "INIntentResponseCodes").map((entry) => {
74921
- (0, import_strict5.default)(entry && typeof entry === "object");
75368
+ (0, import_strict6.default)(entry && typeof entry === "object");
74922
75369
  const name3 = identifier(Reflect.get(entry, "INIntentResponseCodeName"));
74923
75370
  const message = Reflect.get(entry, "INIntentResponseCodeFormatString");
74924
- (0, import_strict5.default)(message === void 0 || typeof message === "string");
75371
+ (0, import_strict6.default)(message === void 0 || typeof message === "string");
74925
75372
  const referenced = new Set(
74926
75373
  [
74927
75374
  ...String(message ?? "").matchAll(
@@ -74932,7 +75379,7 @@ function readIntentResponse(definition2, customTypes) {
74932
75379
  const names = [...referenced].sort();
74933
75380
  const parameters = names.map((name4) => {
74934
75381
  const field = fields.find((field2) => field2.name === name4);
74935
- (0, import_strict5.default)(field, "unknown intent response field " + name4);
75382
+ (0, import_strict6.default)(field, "unknown intent response field " + name4);
74936
75383
  return field;
74937
75384
  });
74938
75385
  return [
@@ -74984,11 +75431,11 @@ ${access} static func ${code}(${parameters.map((field) => `${field.name}: ${fiel
74984
75431
  }).join("\n")}
74985
75432
  }`;
74986
75433
  }
74987
- var import_strict5, responseCodes;
75434
+ var import_strict6, responseCodes;
74988
75435
  var init_response = __esm({
74989
75436
  "src/intent-definition/response.ts"() {
74990
75437
  "use strict";
74991
- import_strict5 = __toESM(require("node:assert/strict"), 1);
75438
+ import_strict6 = __toESM(require("node:assert/strict"), 1);
74992
75439
  init_fields();
74993
75440
  responseCodes = [
74994
75441
  "unspecified",
@@ -75006,7 +75453,7 @@ var init_response = __esm({
75006
75453
  function objcAvailability(swift) {
75007
75454
  if (!swift) return "";
75008
75455
  const version2 = /^@available\(iOS ([\d.]+), macOS ([\d.]+), watchOS ([\d.]+), \*\)$/.exec(swift);
75009
- (0, import_strict6.default)(version2);
75456
+ (0, import_strict7.default)(version2);
75010
75457
  return ` API_AVAILABLE(ios(${version2[1]}), macos(${version2[2]}), watchos(${version2[3]}))`;
75011
75458
  }
75012
75459
  function objcElement(field) {
@@ -75035,7 +75482,7 @@ function headerImports(fields, visibility, module2) {
75035
75482
  return [...imports2].join("\n");
75036
75483
  }
75037
75484
  function objcIntentSource(name3, prefix, definition2, customTypes, version2, visibility, module2) {
75038
- (0, import_strict6.default)(definition2 && typeof definition2 === "object");
75485
+ (0, import_strict7.default)(definition2 && typeof definition2 === "object");
75039
75486
  const klass = prefix + name3 + "Intent";
75040
75487
  const response = klass + "Response";
75041
75488
  const attr = hidden(visibility);
@@ -75074,7 +75521,7 @@ function objcIntentSource(name3, prefix, definition2, customTypes, version2, vis
75074
75521
  };
75075
75522
  const constructors = [...definitions].filter(([, definition3]) => definition3.parameters.length > 0).map(([code, { parameters: parameters2, availability }]) => {
75076
75523
  const [first, ...rest] = parameters2;
75077
- (0, import_strict6.default)(first);
75524
+ (0, import_strict7.default)(first);
75078
75525
  const selector = `${code}IntentResponseWith${upper(first.name)}:(${objcType(first)})${first.name}` + rest.map((field) => ` ${field.name}:(${objcType(field)})${field.name}`).join("");
75079
75526
  return {
75080
75527
  code,
@@ -75172,15 +75619,15 @@ ${reasons.map(
75172
75619
  return { header, implementation };
75173
75620
  }
75174
75621
  function objcEnumSource(definition2, label, prefix, visibility) {
75175
- (0, import_strict6.default)(definition2 && typeof definition2 === "object");
75622
+ (0, import_strict7.default)(definition2 && typeof definition2 === "object");
75176
75623
  const name3 = prefix + label;
75177
75624
  const attr = hidden(visibility);
75178
75625
  const bases = [attr, available].filter(Boolean).join(" ");
75179
75626
  const cases = modelList(definition2, "INEnumValues").map((entry) => {
75180
- (0, import_strict6.default)(entry && typeof entry === "object");
75627
+ (0, import_strict7.default)(entry && typeof entry === "object");
75181
75628
  const value = identifier(Reflect.get(entry, "INEnumValueName"));
75182
75629
  const index = Reflect.get(entry, "INEnumValueIndex") ?? 0;
75183
- (0, import_strict6.default)(typeof index === "number" && Number.isSafeInteger(index));
75630
+ (0, import_strict7.default)(typeof index === "number" && Number.isSafeInteger(index));
75184
75631
  return ` ${name3}${upper(value)} = ${index}`;
75185
75632
  });
75186
75633
  const success = `+ (instancetype)successWithResolved${label}:(${name3})resolvedValue`;
@@ -75264,11 +75711,11 @@ ${confirm} {
75264
75711
  `
75265
75712
  };
75266
75713
  }
75267
- var import_strict6, available, resolution, options, hiddenAttribute, hidden, headerStart, headerEnd, pointer, array7;
75714
+ var import_strict7, available, resolution, options, hiddenAttribute, hidden, headerStart, headerEnd, pointer, array7;
75268
75715
  var init_objective_c = __esm({
75269
75716
  "src/intent-definition/objective-c.ts"() {
75270
75717
  "use strict";
75271
- import_strict6 = __toESM(require("node:assert/strict"), 1);
75718
+ import_strict7 = __toESM(require("node:assert/strict"), 1);
75272
75719
  init_fields();
75273
75720
  init_response();
75274
75721
  available = "API_AVAILABLE(ios(12.0), macos(11.0), watchos(5.0)) API_UNAVAILABLE(tvos)";
@@ -75285,7 +75732,7 @@ var init_objective_c = __esm({
75285
75732
 
75286
75733
  // src/intent-definition/swift.ts
75287
75734
  function swiftIntentSource(name3, prefix, definition2, customTypes, version2, access) {
75288
- (0, import_strict7.default)(definition2 && typeof definition2 === "object");
75735
+ (0, import_strict8.default)(definition2 && typeof definition2 === "object");
75289
75736
  const klass = `${prefix}${name3}Intent`;
75290
75737
  const response = `${klass}Response`;
75291
75738
  const parameters = modelList(definition2, "INIntentParameters").map(
@@ -75386,11 +75833,11 @@ ${access} class func unsupported(forReason reason: ${base2}UnsupportedReason) ->
75386
75833
  #endif
75387
75834
  `;
75388
75835
  }
75389
- var import_strict7;
75836
+ var import_strict8;
75390
75837
  var init_swift = __esm({
75391
75838
  "src/intent-definition/swift.ts"() {
75392
75839
  "use strict";
75393
- import_strict7 = __toESM(require("node:assert/strict"), 1);
75840
+ import_strict8 = __toESM(require("node:assert/strict"), 1);
75394
75841
  init_fields();
75395
75842
  init_response();
75396
75843
  }
@@ -75398,17 +75845,17 @@ var init_swift = __esm({
75398
75845
 
75399
75846
  // src/intent-definition/source.ts
75400
75847
  function swiftEnumSource(definition2, visibility, prefix = "") {
75401
- (0, import_strict8.default)(definition2 && typeof definition2 === "object");
75848
+ (0, import_strict9.default)(definition2 && typeof definition2 === "object");
75402
75849
  const unprefixed = identifier(Reflect.get(definition2, "INEnumName"));
75403
75850
  const name3 = prefix + unprefixed;
75404
75851
  const values = Reflect.get(definition2, "INEnumValues");
75405
- (0, import_strict8.default)(Array.isArray(values));
75852
+ (0, import_strict9.default)(Array.isArray(values));
75406
75853
  const access = visibility === "project" ? "internal" : "public";
75407
75854
  const cases = values.map((entry) => {
75408
- (0, import_strict8.default)(entry && typeof entry === "object");
75855
+ (0, import_strict9.default)(entry && typeof entry === "object");
75409
75856
  const name4 = identifier(Reflect.get(entry, "INEnumValueName"));
75410
75857
  const index = Reflect.get(entry, "INEnumValueIndex") ?? 0;
75411
- (0, import_strict8.default)(typeof index === "number" && Number.isSafeInteger(index));
75858
+ (0, import_strict9.default)(typeof index === "number" && Number.isSafeInteger(index));
75412
75859
  return ` case \`${name4}\` = ${index}`;
75413
75860
  });
75414
75861
  return `#if canImport(Intents)
@@ -75433,7 +75880,7 @@ ${access} class ${name3}ResolutionResult: INEnumResolutionResult {
75433
75880
  `;
75434
75881
  }
75435
75882
  function emitIntentSource(definition2, prefix, visibility, language, module2) {
75436
- (0, import_strict8.default)(definition2 && typeof definition2 === "object");
75883
+ (0, import_strict9.default)(definition2 && typeof definition2 === "object");
75437
75884
  const intents = modelList(definition2, "INIntents");
75438
75885
  const types2 = modelList(definition2, "INTypes");
75439
75886
  const enums = modelList(definition2, "INEnums");
@@ -75443,7 +75890,7 @@ function emitIntentSource(definition2, prefix, visibility, language, module2) {
75443
75890
  intentModelVersion(Reflect.get(definition2, "INIntentDefinitionModelVersion"))
75444
75891
  );
75445
75892
  const nameOf = (entry, key2) => {
75446
- (0, import_strict8.default)(entry && typeof entry === "object");
75893
+ (0, import_strict9.default)(entry && typeof entry === "object");
75447
75894
  return identifier(Reflect.get(entry, key2));
75448
75895
  };
75449
75896
  const typeNames = types2.map((type) => nameOf(type, "INTypeName"));
@@ -75483,7 +75930,7 @@ function emitIntentSource(definition2, prefix, visibility, language, module2) {
75483
75930
  });
75484
75931
  }
75485
75932
  for (const intent of intents) {
75486
- (0, import_strict8.default)(intent && typeof intent === "object");
75933
+ (0, import_strict9.default)(intent && typeof intent === "object");
75487
75934
  if (Reflect.get(intent, "INIntentType") === "System") continue;
75488
75935
  const name3 = identifier(Reflect.get(intent, "INIntentName"));
75489
75936
  const filename = `${prefix}${name3}Intent`;
@@ -75500,11 +75947,11 @@ function emitIntentSource(definition2, prefix, visibility, language, module2) {
75500
75947
  }
75501
75948
  return output;
75502
75949
  }
75503
- var import_strict8;
75950
+ var import_strict9;
75504
75951
  var init_source = __esm({
75505
75952
  "src/intent-definition/source.ts"() {
75506
75953
  "use strict";
75507
- import_strict8 = __toESM(require("node:assert/strict"), 1);
75954
+ import_strict9 = __toESM(require("node:assert/strict"), 1);
75508
75955
  init_fields();
75509
75956
  init_objective_c();
75510
75957
  init_swift();
@@ -76336,7 +76783,7 @@ function expandValue(value, settings) {
76336
76783
  return value;
76337
76784
  }
76338
76785
  function processedInfoPlist(name3, file, settings, settingKeys) {
76339
- const source = file ? import_plist5.default.parse(import_node_fs98.default.readFileSync(file, "utf8")) : {};
76786
+ const source = file ? parsePlist(import_node_fs98.default.readFileSync(file, "utf8")) : {};
76340
76787
  if (!source || typeof source !== "object" || Array.isArray(source) || source instanceof Date || Buffer.isBuffer(source))
76341
76788
  throw new Error(`${name3} Info.plist must contain a dictionary`);
76342
76789
  const info = {};
@@ -76910,7 +77357,7 @@ ${output}`
76910
77357
  );
76911
77358
  let launchName = settings("INFOPLIST_KEY_UILaunchStoryboardName");
76912
77359
  if (process.platform !== "darwin" && !launchName && infoPlistOutput && import_node_fs98.default.existsSync(infoPlistOutput)) {
76913
- const info = import_plist5.default.parse(import_node_fs98.default.readFileSync(infoPlistOutput, "utf8"));
77360
+ const info = parsePlist(import_node_fs98.default.readFileSync(infoPlistOutput, "utf8"));
76914
77361
  const declared = isRecord(info) ? info.UILaunchStoryboardName : void 0;
76915
77362
  if (typeof declared === "string") launchName = expand(declared, settings);
76916
77363
  }
@@ -77148,7 +77595,7 @@ function readXcodeExtensionTargets(input) {
77148
77595
  );
77149
77596
  const infoFile = get2("INFOPLIST_FILE");
77150
77597
  if (!infoFile) throw new Error(`${name3}: extension has no INFOPLIST_FILE`);
77151
- const info = import_plist5.default.parse(
77598
+ const info = parsePlist(
77152
77599
  import_node_fs98.default.readFileSync(import_node_path102.default.resolve(project2.projectDir, infoFile), "utf8")
77153
77600
  );
77154
77601
  if (!isRecord(info))
@@ -77982,7 +78429,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
77982
78429
  }
77983
78430
  return {
77984
78431
  ref,
77985
- framework: Object.assign(module3, { frameworkInfoPlist: import_plist5.default.build(info2) })
78432
+ framework: Object.assign(module3, { frameworkInfoPlist: buildPlist(info2) })
77986
78433
  };
77987
78434
  });
77988
78435
  const frameworks = frameworkTargets.map(({ framework }) => framework);
@@ -78049,9 +78496,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
78049
78496
  path: bundlePath,
78050
78497
  ...product ? {
78051
78498
  resources: product.module.resources,
78052
- infoPlist: import_plist5.default.build(
78499
+ infoPlist: buildPlist(
78053
78500
  expandValue(
78054
- import_plist5.default.parse(import_node_fs98.default.readFileSync(infoFile, "utf8")),
78501
+ parsePlist(import_node_fs98.default.readFileSync(infoFile, "utf8")),
78055
78502
  product.productSettings
78056
78503
  )
78057
78504
  )
@@ -78073,7 +78520,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
78073
78520
  settingKeys
78074
78521
  );
78075
78522
  const bundleIdentifier = productSettings("PRODUCT_BUNDLE_IDENTIFIER") || (typeof info.CFBundleIdentifier === "string" ? info.CFBundleIdentifier : "");
78076
- const entitlements = entitlementsFile ? import_plist5.default.parse(import_node_fs98.default.readFileSync(entitlementsFile, "utf8")) : void 0;
78523
+ const entitlements = entitlementsFile ? parsePlist(import_node_fs98.default.readFileSync(entitlementsFile, "utf8")) : void 0;
78077
78524
  const keychainAccessGroups = entitlementsFile ? readKeychainAccessGroups(
78078
78525
  entitlements,
78079
78526
  (value) => expand(value, (key2) => {
@@ -78419,7 +78866,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
78419
78866
  ].sort(),
78420
78867
  projectDirs: [...new Set(used.map((project2) => project2.projectDir))].sort(),
78421
78868
  appIconName: settings("ASSETCATALOG_COMPILER_APPICON_NAME"),
78422
- infoPlist: infoPlistPending ? null : import_plist5.default.build(info),
78869
+ infoPlist: infoPlistPending ? null : buildPlist(info),
78423
78870
  infoPlistFile,
78424
78871
  ...keychainAccessGroups === void 0 ? {} : { keychainAccessGroups },
78425
78872
  siriEntitled: readSiriEntitlement(entitlements),
@@ -78442,7 +78889,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
78442
78889
  cocoapods
78443
78890
  };
78444
78891
  }
78445
- var import_node_child_process45, import_node_crypto58, import_node_fs98, import_node_module9, import_node_path102, import_plist5, XCODE_DEFAULT_IOS_DEPLOYMENT_TARGET, runScriptTimeoutMs, CXX_STANDARD_ALIASES, PRE_CXX20_STANDARDS, APPLICATION, APP_EXTENSION, RESOURCE_BUNDLE, PRODUCT_MACH_O_TYPES, FRAMEWORK_PRODUCTS, HEADER_FILE, MODULE_PRODUCTS, CONDITIONS, isDirectory3, loaded3, developerDir, preparedSourcePhases, isPodsProject, targetRefs, NativeAppTargetSelectionError, workspaceResolvedFile, SwiftPackageResolutionRequired;
78892
+ var import_node_child_process45, import_node_crypto58, import_node_fs98, import_node_module9, import_node_path102, XCODE_DEFAULT_IOS_DEPLOYMENT_TARGET, runScriptTimeoutMs, CXX_STANDARD_ALIASES, PRE_CXX20_STANDARDS, APPLICATION, APP_EXTENSION, RESOURCE_BUNDLE, PRODUCT_MACH_O_TYPES, FRAMEWORK_PRODUCTS, HEADER_FILE, MODULE_PRODUCTS, CONDITIONS, isDirectory3, loaded3, developerDir, preparedSourcePhases, isPodsProject, targetRefs, NativeAppTargetSelectionError, workspaceResolvedFile, SwiftPackageResolutionRequired;
78446
78893
  var init_xcode_project = __esm({
78447
78894
  "src/xcode-project.ts"() {
78448
78895
  "use strict";
@@ -78451,11 +78898,11 @@ var init_xcode_project = __esm({
78451
78898
  import_node_fs98 = __toESM(require("node:fs"), 1);
78452
78899
  import_node_module9 = require("node:module");
78453
78900
  import_node_path102 = __toESM(require("node:path"), 1);
78454
- import_plist5 = __toESM(require("peachsim/vendor/plist"), 1);
78455
78901
  init_bazel_project();
78456
78902
  init_ios_sdk_frameworks();
78457
78903
  init_is_record();
78458
78904
  init_native_app_identity();
78905
+ init_plist();
78459
78906
  init_pod_graph_specifications();
78460
78907
  init_swift_binary_modules();
78461
78908
  init_xcode_assets();
@@ -80407,14 +80854,14 @@ function isPlistValue(value) {
80407
80854
  return isRecord(value) && Object.values(value).every(isPlistValue);
80408
80855
  }
80409
80856
  function parsePlistDictionary(source) {
80410
- const parsed2 = import_plist8.default.parse(source);
80857
+ const parsed2 = parsePlist(source);
80411
80858
  if (typeof parsed2 !== "object" || isPlistArray(parsed2) || parsed2 instanceof Date || Buffer.isBuffer(parsed2))
80412
80859
  throw new Error("Info.plist is not a dictionary");
80413
80860
  return parsed2;
80414
80861
  }
80415
80862
  function installedInfoPlist(prebuilt, additions) {
80416
80863
  const merged = { ...parsePlistDictionary(prebuilt), ...additions };
80417
- return import_plist8.default.build(
80864
+ return buildPlist(
80418
80865
  Object.fromEntries(
80419
80866
  Object.keys(merged).sort().map((key2) => [key2, merged[key2]])
80420
80867
  )
@@ -80534,7 +80981,7 @@ async function prebuiltExpoSwiftResult(appRoot, entry, signal) {
80534
80981
  await prebuiltAppTarget(appRoot, signal, "installed")
80535
80982
  );
80536
80983
  }
80537
- var import_node_crypto62, import_node_fs104, import_node_module13, import_node_path108, import_node_util13, import_plist8, EXPO_NATIVE_ENTRY_NAME, IDENTITY_SOURCE_SKIPS, expoNativeEntryUrl, isStringRecord, isPlistArray, published, lookups, answers;
80984
+ var import_node_crypto62, import_node_fs104, import_node_module13, import_node_path108, import_node_util13, EXPO_NATIVE_ENTRY_NAME, IDENTITY_SOURCE_SKIPS, expoNativeEntryUrl, isStringRecord, isPlistArray, published, lookups, answers;
80538
80985
  var init_expo_native_prebuilt = __esm({
80539
80986
  "src/expo-native-prebuilt.ts"() {
80540
80987
  "use strict";
@@ -80543,7 +80990,6 @@ var init_expo_native_prebuilt = __esm({
80543
80990
  import_node_module13 = require("node:module");
80544
80991
  import_node_path108 = __toESM(require("node:path"), 1);
80545
80992
  import_node_util13 = require("node:util");
80546
- import_plist8 = __toESM(require("peachsim/vendor/plist"), 1);
80547
80993
  init_answeredNativePackages();
80548
80994
  init_expo_native_compiler_digest();
80549
80995
  init_expo_native_workspace();
@@ -80554,6 +81000,7 @@ var init_expo_native_prebuilt = __esm({
80554
81000
  init_native_prebuilt();
80555
81001
  init_nitroContract();
80556
81002
  init_package_tree_digest();
81003
+ init_plist();
80557
81004
  init_swift_native_pin();
80558
81005
  init_xcode_project();
80559
81006
  EXPO_NATIVE_ENTRY_NAME = "ios";
@@ -91651,7 +92098,7 @@ function compileCatalogTables(source, name3) {
91651
92098
  }
91652
92099
  return output;
91653
92100
  }
91654
- function plist5(value, depth) {
92101
+ function plist(value, depth) {
91655
92102
  const indent2 = " ".repeat(depth);
91656
92103
  const escaped = (text7) => text7.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
91657
92104
  if (typeof value === "string") return `${indent2}<string>${escaped(value)}</string>
@@ -91662,7 +92109,7 @@ function plist5(value, depth) {
91662
92109
  return `${indent2}<dict>
91663
92110
  ` + keys.map(
91664
92111
  (key2) => `${indent2} <key>${escaped(key2)}</key>
91665
- ` + plist5(value[key2] ?? "", depth + 1)
92112
+ ` + plist(value[key2] ?? "", depth + 1)
91666
92113
  ).join("") + `${indent2}</dict>
91667
92114
  `;
91668
92115
  }
@@ -91670,7 +92117,7 @@ function compileStringCatalog(source, name3) {
91670
92117
  return Object.fromEntries(
91671
92118
  Object.entries(compileCatalogTables(source, name3)).map(([path162, table]) => [
91672
92119
  path162,
91673
- '<?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"
92120
+ '<?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"
91674
92121
  ])
91675
92122
  );
91676
92123
  }
@@ -94599,7 +95046,7 @@ var require_packer_async = __commonJS({
94599
95046
  var require_sync_inflate = __commonJS({
94600
95047
  "../../node_modules/pngjs/lib/sync-inflate.js"(exports2, module2) {
94601
95048
  "use strict";
94602
- var assert10 = require("assert").ok;
95049
+ var assert11 = require("assert").ok;
94603
95050
  var zlib4 = require("zlib");
94604
95051
  var util = require("util");
94605
95052
  var kMaxLength = require("buffer").kMaxLength;
@@ -94650,7 +95097,7 @@ var require_sync_inflate = __commonJS({
94650
95097
  return;
94651
95098
  }
94652
95099
  let have = availOutBefore - availOutAfter;
94653
- assert10(have >= 0, "have should not go down");
95100
+ assert11(have >= 0, "have should not go down");
94654
95101
  if (have > 0) {
94655
95102
  let out = self._buffer.slice(self._offset, self._offset + have);
94656
95103
  self._offset += have;
@@ -94676,7 +95123,7 @@ var require_sync_inflate = __commonJS({
94676
95123
  }
94677
95124
  return false;
94678
95125
  }
94679
- assert10(this._handle, "zlib binding closed");
95126
+ assert11(this._handle, "zlib binding closed");
94680
95127
  let res;
94681
95128
  do {
94682
95129
  res = this._handle.writeSync(
@@ -120990,7 +121437,7 @@ var init_nitro_superset = __esm({
120990
121437
  init_nitroContract();
120991
121438
  init_swift_standin_digest();
120992
121439
  NITRO_SUPERSET_ENTRY_NAME = "superset";
120993
- NITRO_COMPILER_DIGEST = true ? "228003f16f1b081fea0ab10bb0ba40a8192beee02eb15e1a3363090ee53f71ef" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
121440
+ NITRO_COMPILER_DIGEST = true ? "6dd1320b8d444e55b9223745c327afa3e7fe0f51fbab1f79548b3eff6612ee4c" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
120994
121441
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
120995
121442
  nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
120996
121443
  published3 = /* @__PURE__ */ new Map();
@@ -123752,14 +124199,14 @@ function stripPathFilename(path162) {
123752
124199
  return path162.slice(0, index + 1);
123753
124200
  }
123754
124201
  function mergePaths(url, base2) {
123755
- normalizePath(base2, base2.type);
124202
+ normalizePath2(base2, base2.type);
123756
124203
  if (url.path === "/") {
123757
124204
  url.path = base2.path;
123758
124205
  } else {
123759
124206
  url.path = stripPathFilename(base2.path) + url.path;
123760
124207
  }
123761
124208
  }
123762
- function normalizePath(url, type) {
124209
+ function normalizePath2(url, type) {
123763
124210
  const rel = type <= 4;
123764
124211
  const pieces = url.path.split("/");
123765
124212
  let pointer2 = 1;
@@ -123826,7 +124273,7 @@ function resolve8(input, base2) {
123826
124273
  if (baseType > inputType)
123827
124274
  inputType = baseType;
123828
124275
  }
123829
- normalizePath(url, inputType);
124276
+ normalizePath2(url, inputType);
123830
124277
  const queryHash = url.query + url.hash;
123831
124278
  switch (inputType) {
123832
124279
  // This is impossible, because of the empty checks at the start of the function.
@@ -124138,8 +124585,8 @@ function addSegmentInternal(skipable, map2, genLine, genColumn, source, sourceLi
124138
124585
  if (skipable && skipSourceless(line, index)) return;
124139
124586
  return insert(line, index, [genColumn]);
124140
124587
  }
124141
- assert9(sourceLine);
124142
- assert9(sourceColumn);
124588
+ assert10(sourceLine);
124589
+ assert10(sourceColumn);
124143
124590
  const sourcesIndex = put(sources, source);
124144
124591
  const namesIndex = name3 ? put(names, name3) : NO_NAME;
124145
124592
  if (sourcesIndex === sourcesContent.length) sourcesContent[sourcesIndex] = content != null ? content : null;
@@ -124152,7 +124599,7 @@ function addSegmentInternal(skipable, map2, genLine, genColumn, source, sourceLi
124152
124599
  name3 ? [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex] : [genColumn, sourcesIndex, sourceLine, sourceColumn]
124153
124600
  );
124154
124601
  }
124155
- function assert9(_val) {
124602
+ function assert10(_val) {
124156
124603
  }
124157
124604
  function getIndex(arr, index) {
124158
124605
  for (let i = arr.length; i <= index; i++) {
@@ -124208,7 +124655,7 @@ function addMappingInternal(skipable, map2, mapping) {
124208
124655
  null
124209
124656
  );
124210
124657
  }
124211
- assert9(original);
124658
+ assert10(original);
124212
124659
  return addSegmentInternal(
124213
124660
  skipable,
124214
124661
  map2,