@wix/himalaya-cli 0.1910.0 → 0.1912.0

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.
package/dist/cli.mjs CHANGED
@@ -18829,9 +18829,10 @@ function screenBundleAppServiceIssues(input) {
18829
18829
  }
18830
18830
  }
18831
18831
  const sameBundle2 = input.ctx?.appBundleName !== void 0 && input.bundleName === input.ctx.appBundleName || input.ctx?.appBundleJs !== void 0 && input.bundleJs === input.ctx.appBundleJs;
18832
- if (verdict.ok && input.appActions && input.screenServices && !sameBundle2) {
18832
+ const appServiceDefined = (svc) => own(input.appActions, svc) !== void 0 || own(input.ctx?.appState, svc) !== void 0;
18833
+ if (verdict.ok && (input.appActions || input.ctx?.appState) && input.screenServices && !sameBundle2) {
18833
18834
  for (const svc of input.screenServices) {
18834
- if (own(input.appActions, svc) !== void 0) {
18835
+ if (appServiceDefined(svc)) {
18835
18836
  issues.push({
18836
18837
  severity: "error",
18837
18838
  pass: "bindings",
@@ -26639,7 +26640,7 @@ function validateScreenDescriptor(screenId, served, opts = {}) {
26639
26640
  }));
26640
26641
  const screenServicesForCollision = () => {
26641
26642
  if (Object.keys(services2).length > 0) return Object.keys(services2);
26642
- if (!opts.bundleJs || !opts.appWorkerActions || opts.services !== void 0) return void 0;
26643
+ if (!opts.bundleJs || !(opts.appWorkerActions || opts.appServices?.appState) || opts.services !== void 0) return void 0;
26643
26644
  try {
26644
26645
  const names2 = Object.keys(extractBundleContract(opts.bundleJs, inspectL10n).services);
26645
26646
  return names2.length > 0 ? names2 : void 0;
@@ -31828,7 +31829,7 @@ __export(validate_descriptor_exports, {
31828
31829
  withoutBootState: () => withoutBootState,
31829
31830
  workerSubtreeAllowed: () => workerSubtreeAllowed
31830
31831
  });
31831
- import { readFileSync as readFileSync21, existsSync as existsSync20, readdirSync as readdirSync15 } from "node:fs";
31832
+ import { readFileSync as readFileSync21, existsSync as existsSync20, readdirSync as readdirSync15, statSync as statSync6 } from "node:fs";
31832
31833
  import { resolve as resolve20 } from "node:path";
31833
31834
  import { createContext, runInContext } from "node:vm";
31834
31835
  import { createRequire } from "node:module";
@@ -31875,6 +31876,17 @@ function appWorkerContractFor(config, tier5Root) {
31875
31876
  }
31876
31877
  }
31877
31878
  function appServicesContextFor(appDir3, config, tier5Root) {
31879
+ const ref = appLogicBundleRef(config) ?? config?.navLogicBundle;
31880
+ const appBundleName = bundleNameFromUrl(ref?.url) ?? void 0;
31881
+ const key4 = JSON.stringify([
31882
+ appDir3 ?? null,
31883
+ tier5Root ?? null,
31884
+ config?.app ?? null,
31885
+ ref ?? null,
31886
+ fileSignature(appDir3 ? resolve20(appDir3, "rollout.yaml") : void 0),
31887
+ fileSignature(appBundleName && tier5Root ? resolve20(tier5Root, `${appBundleName}.bundle.js`) : void 0)
31888
+ ]);
31889
+ if (appServicesContextMemo?.key === key4) return appServicesContextMemo.ctx;
31878
31890
  let rollout = null;
31879
31891
  if (appDir3) {
31880
31892
  const p2 = resolve20(appDir3, "rollout.yaml");
@@ -31884,16 +31896,25 @@ function appServicesContextFor(appDir3, config, tier5Root) {
31884
31896
  rollout = null;
31885
31897
  }
31886
31898
  }
31887
- const ref = appLogicBundleRef(config) ?? config?.navLogicBundle;
31888
- const appBundleName = bundleNameFromUrl(ref?.url) ?? void 0;
31889
31899
  const contract = tier5Root ? appWorkerContractFor(config, tier5Root) : void 0;
31890
- return {
31900
+ const ctx = {
31891
31901
  verdict: appServicesAllowed(config, rollout),
31892
31902
  appBundleDeclared: ref !== void 0,
31893
31903
  appBundleName,
31894
31904
  appBundleJs: appBundleName && tier5Root ? readBuiltBundle(tier5Root, appBundleName) : void 0,
31895
31905
  appState: contract?.services
31896
31906
  };
31907
+ appServicesContextMemo = { key: key4, ctx };
31908
+ return ctx;
31909
+ }
31910
+ function fileSignature(path2) {
31911
+ if (!path2) return "none";
31912
+ try {
31913
+ const st2 = statSync6(path2);
31914
+ return `${st2.mtimeMs}:${st2.size}`;
31915
+ } catch {
31916
+ return "absent";
31917
+ }
31897
31918
  }
31898
31919
  function readBuiltBundleMap(tier5Root, bundleName) {
31899
31920
  const p2 = resolve20(tier5Root, `${bundleName}.bundle.js.map`);
@@ -31940,7 +31961,7 @@ function discoverNativeActions(appDir3) {
31940
31961
  searched: roots2.map(({ searched }) => searched)
31941
31962
  };
31942
31963
  }
31943
- var navigationCompiler, nodeVmEvaluator, navContractMemo, NATIVE_SCRATCH_DIRS, BUILD_OUTPUT_DIR, VANISHED, vanished, NATIVE_SOURCE_ROOTS, PLAYER_HOST_SEARCHED;
31964
+ var navigationCompiler, nodeVmEvaluator, navContractMemo, appServicesContextMemo, NATIVE_SCRATCH_DIRS, BUILD_OUTPUT_DIR, VANISHED, vanished, NATIVE_SOURCE_ROOTS, PLAYER_HOST_SEARCHED;
31944
31965
  var init_validate_descriptor = __esm({
31945
31966
  "../../core/dev-server/src/validate-descriptor.ts"() {
31946
31967
  init_define_HHP_CATALOG();
@@ -31972,6 +31993,7 @@ var init_validate_descriptor = __esm({
31972
31993
  };
31973
31994
  setDefaultEvaluator(nodeVmEvaluator);
31974
31995
  navContractMemo = null;
31996
+ appServicesContextMemo = null;
31975
31997
  NATIVE_SCRATCH_DIRS = /* @__PURE__ */ new Set([
31976
31998
  ".build",
31977
31999
  "build-sim",
@@ -34823,7 +34845,7 @@ __export(extensions_exports, {
34823
34845
  extensionUploads: () => extensionUploads,
34824
34846
  prepareExtensions: () => prepareExtensions
34825
34847
  });
34826
- import { existsSync as existsSync27, readFileSync as readFileSync27, readdirSync as readdirSync20, statSync as statSync6 } from "node:fs";
34848
+ import { existsSync as existsSync27, readFileSync as readFileSync27, readdirSync as readdirSync20, statSync as statSync7 } from "node:fs";
34827
34849
  import { join as join24 } from "node:path";
34828
34850
  import ts7 from "typescript";
34829
34851
  function declaredExtensionsOf(source2, fileName = "config.ts") {
@@ -34845,7 +34867,7 @@ function declaredExtensions(contentDir2) {
34845
34867
  function extensionDirs(contentDir2) {
34846
34868
  const root = join24(contentDir2, EXTENSIONS_DIR);
34847
34869
  if (!existsSync27(root)) return [];
34848
- return readdirSync20(root).filter((n2) => !n2.startsWith(".") && statSync6(join24(root, n2)).isDirectory()).sort();
34870
+ return readdirSync20(root).filter((n2) => !n2.startsWith(".") && statSync7(join24(root, n2)).isDirectory()).sort();
34849
34871
  }
34850
34872
  function contentPlatforms(contentDir2) {
34851
34873
  try {
@@ -37445,7 +37467,7 @@ __export(build_exports, {
37445
37467
  umbrellaVersion: () => umbrellaVersion,
37446
37468
  umbrellaVersionIssue: () => umbrellaVersionIssue
37447
37469
  });
37448
- import { existsSync as existsSync29, readdirSync as readdirSync21, mkdirSync as mkdirSync17, statSync as statSync7, symlinkSync, readFileSync as readFileSync29 } from "node:fs";
37470
+ import { existsSync as existsSync29, readdirSync as readdirSync21, mkdirSync as mkdirSync17, statSync as statSync8, symlinkSync, readFileSync as readFileSync29 } from "node:fs";
37449
37471
  import { resolve as resolve24, join as join26, dirname as dirname21 } from "node:path";
37450
37472
  import { fileURLToPath as fileURLToPath16 } from "node:url";
37451
37473
  import { execFileSync } from "node:child_process";
@@ -37614,7 +37636,7 @@ async function buildContentBundles(contentDir2, opts = {}) {
37614
37636
  mkdirSync17(outDir, { recursive: true });
37615
37637
  for (const name of readdirSync21(srcDir).sort()) {
37616
37638
  const entry = join26(srcDir, name, "index.ts");
37617
- if (!statSync7(join26(srcDir, name)).isDirectory() || !existsSync29(entry)) continue;
37639
+ if (!statSync8(join26(srcDir, name)).isDirectory() || !existsSync29(entry)) continue;
37618
37640
  try {
37619
37641
  await buildBundleFromEntry(entry, join26(outDir, `${name}.bundle.js`), {
37620
37642
  resolution,
@@ -40675,6 +40697,112 @@ var init_screen_map = __esm({
40675
40697
  rn: null,
40676
40698
  why: "Spaces account-level What's New (bundle wix-spaces-whats-new); no RN member/branded equivalent (owners.new-releases.screen is owner-only app release notes)"
40677
40699
  }
40700
+ },
40701
+ nano: {
40702
+ nano_create: {
40703
+ screenName: "nano.create",
40704
+ module: "nano",
40705
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")',
40706
+ note: "Create tab"
40707
+ },
40708
+ nano_my_widgets: {
40709
+ screenName: "nano.myWidgets",
40710
+ module: "nano",
40711
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")',
40712
+ note: "My Widgets tab"
40713
+ },
40714
+ nano_explore: {
40715
+ screenName: "nano.explore",
40716
+ module: "nano",
40717
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
40718
+ },
40719
+ nano_explore_carousel: {
40720
+ screenName: "nano.exploreCarousel",
40721
+ module: "nano",
40722
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
40723
+ },
40724
+ nano_view_widget: {
40725
+ screenName: "nano.viewWidget",
40726
+ module: "nano",
40727
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")',
40728
+ note: "Widget viewer. RN's 191:207 open/view_screen is sent once per mount; a screen-map view fires per appearance, so it is a follow-up (#6442)."
40729
+ },
40730
+ nano_edit_widget: {
40731
+ screenName: "nano.editWidget",
40732
+ module: "nano",
40733
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
40734
+ },
40735
+ nano_shared_widget: {
40736
+ screenName: "nano.sharedWidget",
40737
+ module: "nano",
40738
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
40739
+ },
40740
+ nano_widget_members: {
40741
+ rn: null,
40742
+ why: "RN shows the members list as an overlay on My Widgets, not a screen (its 191:204 nano.myWidgets.memberList cannot ride a screen-map view without an RN screen name; see #6442)"
40743
+ },
40744
+ nano_edit_widget_info: {
40745
+ screenName: "nano.editWidgetInfo",
40746
+ module: "nano",
40747
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
40748
+ },
40749
+ nano_report_nano: {
40750
+ screenName: "nano.reportNano",
40751
+ module: "nano",
40752
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
40753
+ },
40754
+ nano_edit_user_profile: {
40755
+ screenName: "nano.editUserProfile",
40756
+ module: "nano",
40757
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
40758
+ },
40759
+ nano_public_user_profile: {
40760
+ screenName: "nano.publicUserProfile",
40761
+ module: "nano",
40762
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
40763
+ },
40764
+ nano_logger: {
40765
+ screenName: "nano.loggerView",
40766
+ module: "nano",
40767
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
40768
+ },
40769
+ nano_widget_code: {
40770
+ rn: null,
40771
+ why: "Himi's widget source viewer; RN Nano has no such screen"
40772
+ },
40773
+ nano_duplicated_widget_preview: {
40774
+ screenName: "nano.duplicatedWidgetPreview",
40775
+ module: "nano",
40776
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
40777
+ },
40778
+ nano_share_creation_to_explore: {
40779
+ screenName: "nano.shareCreationToExplore",
40780
+ module: "nano",
40781
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
40782
+ },
40783
+ nano_account: {
40784
+ screenName: "nano.account",
40785
+ module: "nano",
40786
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
40787
+ },
40788
+ nano_language: {
40789
+ rn: null,
40790
+ why: "Himi's language picker; RN Nano has no such screen"
40791
+ },
40792
+ nano_about: {
40793
+ screenName: "nano.aboutScreen",
40794
+ module: "nano",
40795
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
40796
+ },
40797
+ nano_about_nano_modal: {
40798
+ screenName: "nano.aboutNanoModal",
40799
+ module: "nano",
40800
+ rn: 'wix-private/nano packages/mobile-apps-nano-platform src/moduleAPI/screens.ts (SCREENS, src/constants/screens.ts; PREFIX "nano")'
40801
+ },
40802
+ nano_welcome: {
40803
+ rn: null,
40804
+ why: "Himi's first-launch welcome; RN's nearest is the creationFTE modal, which is a different flow, so it is sent unmapped rather than guessed"
40805
+ }
40678
40806
  }
40679
40807
  }
40680
40808
  };
@@ -44117,6 +44245,18 @@ function adoptedIdentity(config) {
44117
44245
  }
44118
44246
  androidSigning = adopt.androidSigning;
44119
44247
  }
44248
+ let androidUploadKeySha256;
44249
+ if (adopt.androidUploadKeySha256 !== void 0) {
44250
+ const raw2 = adopt.androidUploadKeySha256;
44251
+ const hex2 = typeof raw2 === "string" ? raw2.replace(/:/g, "").toLowerCase() : "";
44252
+ if (typeof raw2 !== "string" || !/^[0-9a-f]{64}$/.test(hex2) || raw2.includes(":") && !/^([0-9A-Fa-f]{2}:){31}[0-9A-Fa-f]{2}$/.test(raw2)) {
44253
+ fail2("androidUploadKeySha256", "must be a SHA-256 certificate fingerprint: 64 hex digits, optionally colon-separated.");
44254
+ }
44255
+ androidUploadKeySha256 = hex2;
44256
+ }
44257
+ if (androidSigning === "upload-keystore" && androidUploadKeySha256 === void 0) {
44258
+ fail2("androidUploadKeySha256", 'is required with androidSigning "upload-keystore": the store build cannot otherwise prove its key is the one Play expects.');
44259
+ }
44120
44260
  const iosAppGroups = stringList(adopt, "iosAppGroups");
44121
44261
  const seenGroups = /* @__PURE__ */ new Set();
44122
44262
  for (const g2 of iosAppGroups) {
@@ -44169,6 +44309,7 @@ function adoptedIdentity(config) {
44169
44309
  ...appStoreId !== void 0 ? { appStoreId } : {},
44170
44310
  androidApplicationId,
44171
44311
  ...androidSigning !== void 0 ? { androidSigning } : {},
44312
+ ...androidUploadKeySha256 !== void 0 ? { androidUploadKeySha256 } : {},
44172
44313
  iosAppGroups,
44173
44314
  urlSchemes,
44174
44315
  associatedDomains,
@@ -44195,6 +44336,7 @@ var init_store_adopt = __esm({
44195
44336
  "associatedDomains",
44196
44337
  "iosExtensionBundleIds",
44197
44338
  "androidSigning",
44339
+ "androidUploadKeySha256",
44198
44340
  "dropExtensions"
44199
44341
  ]);
44200
44342
  IOS_BUNDLE_ID = /^[A-Za-z0-9-]+(?:\.[A-Za-z0-9-]+)+$/;
@@ -47357,7 +47499,7 @@ var init_stable_ids = __esm({
47357
47499
  // ../../core/dev-server/src/preview.ts
47358
47500
  import { spawn as spawn2 } from "node:child_process";
47359
47501
  import { createHash as createHash17 } from "node:crypto";
47360
- import { existsSync as existsSync37, createReadStream, statSync as statSync8, readFileSync as readFileSync37, renameSync as renameSync8, unlinkSync } from "node:fs";
47502
+ import { existsSync as existsSync37, createReadStream, statSync as statSync9, readFileSync as readFileSync37, renameSync as renameSync8, unlinkSync } from "node:fs";
47361
47503
  import { homedir as homedir6, tmpdir } from "node:os";
47362
47504
  import { resolve as resolvePath, dirname as dirname25 } from "node:path";
47363
47505
  import { fileURLToPath as fileURLToPath23 } from "node:url";
@@ -48055,7 +48197,7 @@ function finalizeRecording(key4, rec) {
48055
48197
  } catch {
48056
48198
  }
48057
48199
  }
48058
- const sizeBytes = existsSync37(rec.localPath) ? statSync8(rec.localPath).size : 0;
48200
+ const sizeBytes = existsSync37(rec.localPath) ? statSync9(rec.localPath).size : 0;
48059
48201
  clips.set(rec.id, { path: rec.localPath, mime: rec.mime });
48060
48202
  recordings.delete(key4);
48061
48203
  return { sizeBytes };
@@ -48132,7 +48274,7 @@ async function handlePreviewClip(res, url) {
48132
48274
  res.setHeader("content-type", "application/json");
48133
48275
  return void res.end(JSON.stringify({ error: "clip_not_found", id }));
48134
48276
  }
48135
- const size = statSync8(clip3.path).size;
48277
+ const size = statSync9(clip3.path).size;
48136
48278
  res.statusCode = 200;
48137
48279
  res.setHeader("content-type", clip3.mime);
48138
48280
  res.setHeader("content-length", String(size));
@@ -151766,7 +151908,7 @@ __export(widgets_exports, {
151766
151908
  widgetScanRunCount: () => widgetScanRunCount
151767
151909
  });
151768
151910
  import { createHash as createHash19 } from "node:crypto";
151769
- import { lstatSync as lstatSync16, readdirSync as readdirSync24, statSync as statSync9 } from "node:fs";
151911
+ import { lstatSync as lstatSync16, readdirSync as readdirSync24, statSync as statSync10 } from "node:fs";
151770
151912
  import { join as join34 } from "node:path";
151771
151913
  import { inspect } from "node:util";
151772
151914
  async function widgetRealm() {
@@ -151889,7 +152031,7 @@ function bundleDirFingerprint(roots2) {
151889
152031
  const path2 = join34(root, entry);
151890
152032
  let st2;
151891
152033
  try {
151892
- st2 = statSync9(path2, { bigint: true });
152034
+ st2 = statSync10(path2, { bigint: true });
151893
152035
  } catch (err) {
151894
152036
  const code3 = err.code;
151895
152037
  if (code3 !== "ENOENT" && code3 !== "ENOTDIR" && code3 !== "ELOOP") throw err;
@@ -156332,7 +156474,7 @@ var init_src6 = __esm({
156332
156474
  });
156333
156475
 
156334
156476
  // ../../core/serve-storage/src/file-store.ts
156335
- import { mkdirSync as mkdirSync22, readFileSync as readFileSync44, rmSync as rmSync12, writeFileSync as writeFileSync17, readdirSync as readdirSync25, existsSync as existsSync41, statSync as statSync10 } from "node:fs";
156477
+ import { mkdirSync as mkdirSync22, readFileSync as readFileSync44, rmSync as rmSync12, writeFileSync as writeFileSync17, readdirSync as readdirSync25, existsSync as existsSync41, statSync as statSync11 } from "node:fs";
156336
156478
  import { join as join36, resolve as resolve35, sep as sep12 } from "node:path";
156337
156479
  var FileReleaseStore;
156338
156480
  var init_file_store = __esm({
@@ -156507,14 +156649,14 @@ var init_file_store = __esm({
156507
156649
  async getAsset(app2, sha2569, maxBytes) {
156508
156650
  if (maxBytes !== void 0) {
156509
156651
  const path2 = join36(this.appDir(app2), "assets", this.safe(sha2569));
156510
- if (existsSync41(path2) && statSync10(path2).size > maxBytes) return null;
156652
+ if (existsSync41(path2) && statSync11(path2).size > maxBytes) return null;
156511
156653
  }
156512
156654
  return this.read(app2, "assets", this.safe(sha2569));
156513
156655
  }
156514
156656
  async hasAsset(app2, sha2569, bytes2) {
156515
156657
  const path2 = join36(this.appDir(app2), "assets", this.safe(sha2569));
156516
156658
  if (!existsSync41(path2)) return false;
156517
- return bytes2 === void 0 || statSync10(path2).size === bytes2;
156659
+ return bytes2 === void 0 || statSync11(path2).size === bytes2;
156518
156660
  }
156519
156661
  async listApps() {
156520
156662
  try {
@@ -163007,6 +163149,11 @@ async function buildFromLoaded(preloaded, dest, opts = {}) {
163007
163149
  const content = {
163008
163150
  app: app2,
163009
163151
  minBinaryVersion,
163152
+ // RFC 0074 §4 — the authored gate facts the baked app config drops; read by the serve preview.
163153
+ ...((newApp, rolloutFloor2) => newApp || rolloutFloor2 ? { appServicesGate: { ...newApp ? { newApp: true } : {}, rolloutFloor: rolloutFloor2 } } : {})(
163154
+ preloaded.module.config.app?.newApp === true,
163155
+ appServices.verdict?.floor ?? null
163156
+ ),
163010
163157
  // Carry seed policy with the release: serve-backed dist never reads the app's source.
163011
163158
  ...preloaded.module.seed.excludeScreens?.length ? { seedExcludeScreens: [...new Set(preloaded.module.seed.excludeScreens)].sort() } : {},
163012
163159
  screens,
@@ -164402,7 +164549,7 @@ __export(studio_exports, {
164402
164549
  writeStudioRecord: () => writeStudioRecord
164403
164550
  });
164404
164551
  import { createHash as createHash26 } from "node:crypto";
164405
- import { existsSync as existsSync46, readdirSync as readdirSync28, readFileSync as readFileSync49, realpathSync as realpathSync7, statSync as statSync11 } from "node:fs";
164552
+ import { existsSync as existsSync46, readdirSync as readdirSync28, readFileSync as readFileSync49, realpathSync as realpathSync7, statSync as statSync12 } from "node:fs";
164406
164553
  import { basename as basename12, extname as extname3, join as join41, relative as relative11, resolve as resolve37, sep as sep14 } from "node:path";
164407
164554
  import { pathToFileURL as pathToFileURL6 } from "node:url";
164408
164555
  function realInside(dir, abs) {
@@ -164421,7 +164568,7 @@ function archiveFile(dir, memory2, abs) {
164421
164568
  let mtimeMs;
164422
164569
  let ino;
164423
164570
  try {
164424
- ({ size, mtimeMs, ino } = statSync11(real));
164571
+ ({ size, mtimeMs, ino } = statSync12(real));
164425
164572
  } catch {
164426
164573
  return null;
164427
164574
  }
@@ -164489,7 +164636,7 @@ function appIdentity(dir) {
164489
164636
  const icon = text2(manifest2?.icon)?.trim();
164490
164637
  const iconPath = icon ? resolve37(dir, icon) : null;
164491
164638
  const real = iconPath ? realInside(dir, iconPath) : null;
164492
- return { name, iconFile: real && statSync11(real).isFile() ? iconPath : null };
164639
+ return { name, iconFile: real && statSync12(real).isFile() ? iconPath : null };
164493
164640
  }
164494
164641
  function testRuns(dir) {
164495
164642
  const att = join41(dir, ".himi", "attestations");
@@ -166526,7 +166673,7 @@ Guides: ${DEVELOPER_PORTAL_URL}`;
166526
166673
  });
166527
166674
 
166528
166675
  // src/self-update.ts
166529
- import { readFileSync as readFileSync51, mkdirSync as mkdirSync24, writeFileSync as writeFileSync19, existsSync as existsSync48, rmSync as rmSync14, statSync as statSync12, accessSync, constants as constants2 } from "node:fs";
166676
+ import { readFileSync as readFileSync51, mkdirSync as mkdirSync24, writeFileSync as writeFileSync19, existsSync as existsSync48, rmSync as rmSync14, statSync as statSync13, accessSync, constants as constants2 } from "node:fs";
166530
166677
  import { execFile, execFileSync as execFileSync3, spawnSync as spawnSync6 } from "node:child_process";
166531
166678
  import { randomUUID as randomUUID7 } from "node:crypto";
166532
166679
  import { homedir as homedir8, hostname } from "node:os";
@@ -166831,7 +166978,7 @@ function staleUpdateLockFile(cachePath, now) {
166831
166978
  let since = stamped;
166832
166979
  if (!Number.isFinite(since)) {
166833
166980
  try {
166834
- since = statSync12(path2).mtimeMs;
166981
+ since = statSync13(path2).mtimeMs;
166835
166982
  } catch {
166836
166983
  continue;
166837
166984
  }
@@ -167168,7 +167315,7 @@ __export(wix_owner_exports, {
167168
167315
  });
167169
167316
  import { spawn as spawn3 } from "node:child_process";
167170
167317
  import { createHash as createHash27 } from "node:crypto";
167171
- import { accessSync as accessSync2, constants as fsConstants, statSync as statSync13 } from "node:fs";
167318
+ import { accessSync as accessSync2, constants as fsConstants, statSync as statSync14 } from "node:fs";
167172
167319
  import { delimiter, join as join44 } from "node:path";
167173
167320
  function resolveSiteId(flag3) {
167174
167321
  const id = flag3?.trim() || process.env.WIX_SITE_ID?.trim();
@@ -167304,7 +167451,7 @@ function wixCliOnPath(env = process.env) {
167304
167451
  for (const ext of exts) {
167305
167452
  try {
167306
167453
  const candidate = join44(dir, `wix${ext}`);
167307
- if (!statSync13(candidate).isFile()) continue;
167454
+ if (!statSync14(candidate).isFile()) continue;
167308
167455
  if (process.platform !== "win32") accessSync2(candidate, fsConstants.X_OK);
167309
167456
  return true;
167310
167457
  } catch {
@@ -168323,7 +168470,7 @@ function withAdoptedIdentity(cfg, adopted, app2 = "<app>") {
168323
168470
  if (want === void 0) continue;
168324
168471
  const have = out2[section3][key4];
168325
168472
  if (isSet(have) && have.trim() !== want) {
168326
- throw new Error(
168473
+ throw new AdoptedConfigConflictError(
168327
168474
  `apps/${app2}/store/store.config.yaml ${section3}.${key4} "${have.trim()}" disagrees with config.ts store.adopt.${field} "${want}" \u2014 make them equal, or drop ${section3}.${key4} so it defaults from store.adopt`
168328
168475
  );
168329
168476
  }
@@ -168338,7 +168485,7 @@ function assertTeamMatchesAdopted(adopted, candidates, app2 = "<app>") {
168338
168485
  if (team2 && team2.trim() && team2.trim() !== want) throw new AdoptedTeamConflictError(app2, source2, team2.trim(), want);
168339
168486
  }
168340
168487
  }
168341
- var isSet, PAIRS, AdoptedTeamConflictError;
168488
+ var isSet, PAIRS, AdoptedConfigConflictError, AdoptedTeamConflictError;
168342
168489
  var init_adopted_identity = __esm({
168343
168490
  "../store-release/adopted-identity.ts"() {
168344
168491
  init_define_HHP_CATALOG();
@@ -168351,6 +168498,13 @@ var init_adopted_identity = __esm({
168351
168498
  ["ios", "appStoreId", "appStoreId"],
168352
168499
  ["android", "packageName", "androidApplicationId"]
168353
168500
  ];
168501
+ AdoptedConfigConflictError = class extends Error {
168502
+ code = "adopted_config_conflict";
168503
+ constructor(message5) {
168504
+ super(message5);
168505
+ this.name = "AdoptedConfigConflictError";
168506
+ }
168507
+ };
168354
168508
  AdoptedTeamConflictError = class extends Error {
168355
168509
  constructor(app2, source2, team2, adoptedTeam) {
168356
168510
  super(
@@ -175211,7 +175365,7 @@ var init_customer_signing_inspect = __esm({
175211
175365
  });
175212
175366
 
175213
175367
  // src/push-onboarding.ts
175214
- import { existsSync as existsSync52, mkdirSync as mkdirSync25, readFileSync as readFileSync55, statSync as statSync14, writeFileSync as writeFileSync20, chmodSync as chmodSync2 } from "node:fs";
175368
+ import { existsSync as existsSync52, mkdirSync as mkdirSync25, readFileSync as readFileSync55, statSync as statSync15, writeFileSync as writeFileSync20, chmodSync as chmodSync2 } from "node:fs";
175215
175369
  import { basename as basename14, dirname as dirname31, join as join45, resolve as resolve42 } from "node:path";
175216
175370
  function parsePushPlatforms(v2) {
175217
175371
  if (v2 === void 0) return { ok: true };
@@ -175316,7 +175470,7 @@ function localIdentityRefusal(i2) {
175316
175470
  function readKeyFile(path2) {
175317
175471
  let size;
175318
175472
  try {
175319
- size = statSync14(path2).size;
175473
+ size = statSync15(path2).size;
175320
175474
  } catch {
175321
175475
  return { ok: false, code: "key_file_unreadable", reason: "cannot read the selected key file; check its path and file permissions" };
175322
175476
  }
@@ -175513,7 +175667,7 @@ var signing_inspect_exports = {};
175513
175667
  __export(signing_inspect_exports, {
175514
175668
  runSigningInspect: () => runSigningInspect
175515
175669
  });
175516
- import { existsSync as existsSync53, readFileSync as readFileSync56, statSync as statSync15 } from "node:fs";
175670
+ import { existsSync as existsSync53, readFileSync as readFileSync56, statSync as statSync16 } from "node:fs";
175517
175671
  import { isAbsolute as isAbsolute6, resolve as resolve43 } from "node:path";
175518
175672
  function fail5(io2, code3, fields2 = {}) {
175519
175673
  io2.error(JSON.stringify({ ok: false, code: code3, ...fields2 }));
@@ -175606,7 +175760,7 @@ async function runSigningInspect(pos, flags, io2, deps = {}) {
175606
175760
  if (!existsSync53(certPath) || !existsSync53(profilePath2)) {
175607
175761
  return fail5(io2, "signing_inspect_local_assets_unreadable", { error: "cannot read --cert-file or --profile-file" });
175608
175762
  }
175609
- if (statSync15(certPath).size > 1048576 || statSync15(profilePath2).size > 1048576) {
175763
+ if (statSync16(certPath).size > 1048576 || statSync16(profilePath2).size > 1048576) {
175610
175764
  return fail5(io2, "signing_inspect_local_assets_unreadable", { error: "cert or profile file is unexpectedly large" });
175611
175765
  }
175612
175766
  assets = {
@@ -176210,7 +176364,7 @@ __export(template_trim_exports, {
176210
176364
  trimCapabilities: () => trimCapabilities,
176211
176365
  workersInUse: () => workersInUse
176212
176366
  });
176213
- import { cpSync, existsSync as existsSync54, mkdirSync as mkdirSync26, readdirSync as readdirSync30, readFileSync as readFileSync58, renameSync as renameSync10, rmSync as rmSync15, statSync as statSync16, writeFileSync as writeFileSync22 } from "node:fs";
176367
+ import { cpSync, existsSync as existsSync54, mkdirSync as mkdirSync26, readdirSync as readdirSync30, readFileSync as readFileSync58, renameSync as renameSync10, rmSync as rmSync15, statSync as statSync17, writeFileSync as writeFileSync22 } from "node:fs";
176214
176368
  import { dirname as dirname32, join as join47 } from "node:path";
176215
176369
  import ts9 from "typescript";
176216
176370
  function routeMatcher(pattern) {
@@ -177138,14 +177292,14 @@ function homeModulesPass(app2, kept, edited) {
177138
177292
  function listWorkers(dir) {
177139
177293
  const root = join47(dir, "tier5-src");
177140
177294
  if (!existsSync54(root)) return { dirs: [], files: {} };
177141
- const dirs = readdirSync30(root).filter((n2) => statSync16(join47(root, n2)).isDirectory()).sort();
177295
+ const dirs = readdirSync30(root).filter((n2) => statSync17(join47(root, n2)).isDirectory()).sort();
177142
177296
  const files = {};
177143
177297
  const walk6 = (abs, rel2) => {
177144
177298
  for (const name of readdirSync30(abs)) {
177145
177299
  if (name === "node_modules") continue;
177146
177300
  const p2 = join47(abs, name);
177147
177301
  const r3 = `${rel2}/${name}`;
177148
- if (statSync16(p2).isDirectory()) walk6(p2, r3);
177302
+ if (statSync17(p2).isDirectory()) walk6(p2, r3);
177149
177303
  else if (/\.(?:[cm]?[jt]sx?|json)$/.test(name)) files[r3] = readFileSync58(p2, "utf8");
177150
177304
  }
177151
177305
  };
@@ -177582,7 +177736,7 @@ __export(template_adopt_exports, {
177582
177736
  writeInventory: () => writeInventory,
177583
177737
  writeNoFollow: () => writeNoFollow
177584
177738
  });
177585
- import { existsSync as existsSync55, lstatSync as lstatSync19, mkdirSync as mkdirSync27, readdirSync as readdirSync31, readFileSync as readFileSync59, renameSync as renameSync11, statSync as statSync17, writeFileSync as writeFileSync23 } from "node:fs";
177739
+ import { existsSync as existsSync55, lstatSync as lstatSync19, mkdirSync as mkdirSync27, readdirSync as readdirSync31, readFileSync as readFileSync59, renameSync as renameSync11, statSync as statSync18, writeFileSync as writeFileSync23 } from "node:fs";
177586
177740
  import { dirname as dirname33, join as join48, posix as posix2, relative as relative13 } from "node:path";
177587
177741
  import ts10 from "typescript";
177588
177742
  function readAppSources(dir) {
@@ -177596,14 +177750,14 @@ function readAppSources(dir) {
177596
177750
  if (existsSync55(root)) {
177597
177751
  for (const name of readdirSync31(root).sort()) {
177598
177752
  const abs = join48(root, name);
177599
- if (!statSync17(abs).isDirectory()) continue;
177753
+ if (!statSync18(abs).isDirectory()) continue;
177600
177754
  const files = {};
177601
177755
  const walk6 = (a3, rel2) => {
177602
177756
  for (const n2 of readdirSync31(a3).sort()) {
177603
177757
  if (n2 === "node_modules") continue;
177604
177758
  const p2 = join48(a3, n2);
177605
177759
  const r3 = `${rel2}/${n2}`;
177606
- if (statSync17(p2).isDirectory()) walk6(p2, r3);
177760
+ if (statSync18(p2).isDirectory()) walk6(p2, r3);
177607
177761
  else if (/\.(?:[cm]?[jt]sx?)$/.test(n2)) files[r3] = readFileSync59(p2, "utf8");
177608
177762
  }
177609
177763
  };
@@ -177756,7 +177910,7 @@ function walkPackage(dir, rel2 = "") {
177756
177910
  if (IGNORED.has(n2)) continue;
177757
177911
  const r3 = rel2 ? `${rel2}/${n2}` : n2;
177758
177912
  const abs = join48(dir, r3);
177759
- if (statSync17(abs).isDirectory()) out2.push(...walkPackage(dir, r3));
177913
+ if (statSync18(abs).isDirectory()) out2.push(...walkPackage(dir, r3));
177760
177914
  else if (/\.(?:tsx?|jsx?|json)$/.test(n2)) out2.push(r3);
177761
177915
  }
177762
177916
  return out2;
@@ -179423,7 +179577,7 @@ __export(icon_exports, {
179423
179577
  writePreparedIcon: () => writePreparedIcon
179424
179578
  });
179425
179579
  import { createHash as createHash30 } from "node:crypto";
179426
- import { accessSync as accessSync3, constants as constants4, existsSync as existsSync57, mkdirSync as mkdirSync28, readFileSync as readFileSync61, statSync as statSync18, writeFileSync as writeFileSync24 } from "node:fs";
179580
+ import { accessSync as accessSync3, constants as constants4, existsSync as existsSync57, mkdirSync as mkdirSync28, readFileSync as readFileSync61, statSync as statSync19, writeFileSync as writeFileSync24 } from "node:fs";
179427
179581
  import { basename as basename15, dirname as dirname35, join as join49, resolve as resolve45, sep as sep16 } from "node:path";
179428
179582
  function readManifest(dir) {
179429
179583
  try {
@@ -179453,7 +179607,7 @@ function templateIconMatch(png) {
179453
179607
  for (const template of availableTemplates()) {
179454
179608
  const candidate = join49(templateSourceDir(template), DEFAULT_CONTENT_ICON);
179455
179609
  try {
179456
- if (statSync18(candidate).size !== png.length) continue;
179610
+ if (statSync19(candidate).size !== png.length) continue;
179457
179611
  if (readFileSync61(candidate).equals(png)) return template;
179458
179612
  } catch {
179459
179613
  }
@@ -179464,7 +179618,7 @@ function playState(dir) {
179464
179618
  const p2 = join49(resolve45(dir), PLAY_LISTING_ICON);
179465
179619
  if (!existsSync57(p2)) return null;
179466
179620
  try {
179467
- if (!statSync18(p2).isFile()) return { path: p2, issues: ["is a directory, not a PNG file"] };
179621
+ if (!statSync19(p2).isFile()) return { path: p2, issues: ["is a directory, not a PNG file"] };
179468
179622
  return { path: p2, issues: playListingIconIssues(readFileSync61(p2)) };
179469
179623
  } catch (err) {
179470
179624
  return { path: p2, issues: [`could not be read (${err.message.split("\n")[0]})`] };
@@ -179491,7 +179645,7 @@ async function iconStatus(dir) {
179491
179645
  if (!path2 || !existsSync57(path2)) return base2;
179492
179646
  let png;
179493
179647
  try {
179494
- if (!statSync18(path2).isFile()) {
179648
+ if (!statSync19(path2).isFile()) {
179495
179649
  return {
179496
179650
  ...base2,
179497
179651
  byteIssues: [`at ${path2} is a directory, not a PNG file`],
@@ -179616,7 +179770,7 @@ function writePreparedIcon(dir, master, play) {
179616
179770
  ];
179617
179771
  for (const path2 of targets) {
179618
179772
  if (existsSync57(path2)) {
179619
- if (!statSync18(path2).isFile()) throw new Error(`himi icon: destination is not a regular file: ${path2}`);
179773
+ if (!statSync19(path2).isFile()) throw new Error(`himi icon: destination is not a regular file: ${path2}`);
179620
179774
  accessSync3(path2, constants4.W_OK);
179621
179775
  } else accessSync3(dirname35(path2), constants4.W_OK);
179622
179776
  }
@@ -184212,7 +184366,7 @@ __export(pack_exports, {
184212
184366
  });
184213
184367
  import { createHash as createHash31 } from "node:crypto";
184214
184368
  import { deflateRawSync, inflateRawSync } from "node:zlib";
184215
- import { existsSync as existsSync62, mkdirSync as mkdirSync31, readFileSync as readFileSync66, readdirSync as readdirSync32, rmSync as rmSync18, statSync as statSync19, writeFileSync as writeFileSync27 } from "node:fs";
184369
+ import { existsSync as existsSync62, mkdirSync as mkdirSync31, readFileSync as readFileSync66, readdirSync as readdirSync32, rmSync as rmSync18, statSync as statSync20, writeFileSync as writeFileSync27 } from "node:fs";
184216
184370
  import { dirname as dirname38, join as join55, resolve as resolve47 } from "node:path";
184217
184371
  function writeZip(entries) {
184218
184372
  const sorted3 = entries.slice().sort((a3, b3) => a3.path < b3.path ? -1 : a3.path > b3.path ? 1 : 0);
@@ -184307,10 +184461,10 @@ function inflateEntry(buf, entry) {
184307
184461
  return bytes2;
184308
184462
  }
184309
184463
  function readIf(path2) {
184310
- return existsSync62(path2) && statSync19(path2).isFile() ? readFileSync66(path2) : null;
184464
+ return existsSync62(path2) && statSync20(path2).isFile() ? readFileSync66(path2) : null;
184311
184465
  }
184312
184466
  function listDir(dir) {
184313
- return existsSync62(dir) ? readdirSync32(dir).filter((f2) => statSync19(join55(dir, f2)).isFile()) : [];
184467
+ return existsSync62(dir) ? readdirSync32(dir).filter((f2) => statSync20(join55(dir, f2)).isFile()) : [];
184314
184468
  }
184315
184469
  function gatherReleaseEntries(appDir3) {
184316
184470
  const manifestPath = join55(appDir3, HIMI_PACKAGE_MANIFEST_PATH);
@@ -184389,7 +184543,7 @@ function packRelease(releaseRoot, app2, out2, opts = {}) {
184389
184543
  const appDir3 = join55(resolve47(releaseRoot), app2);
184390
184544
  const { all, header: header2, skipped } = buildEntries(appDir3, app2, opts);
184391
184545
  const buf = writeZip(all);
184392
- const isDir3 = existsSync62(out2) && statSync19(out2).isDirectory();
184546
+ const isDir3 = existsSync62(out2) && statSync20(out2).isDirectory();
184393
184547
  const outFile = isDir3 ? join55(resolve47(out2), packageFileName(app2, header2.releaseId)) : resolve47(out2);
184394
184548
  mkdirSync31(dirname38(outFile), { recursive: true });
184395
184549
  writeFileSync27(outFile, buf);
@@ -184407,10 +184561,10 @@ function resolvePackageDirDest(outDir, app2, releaseId) {
184407
184561
  };
184408
184562
  const replaceable = (dir) => {
184409
184563
  if (!existsSync62(dir)) return true;
184410
- if (!statSync19(dir).isDirectory()) return false;
184564
+ if (!statSync20(dir).isDirectory()) return false;
184411
184565
  return readdirSync32(dir).length === 0 || packagedApp(dir) === app2;
184412
184566
  };
184413
- if (existsSync62(outDir) && !statSync19(outDir).isDirectory()) {
184567
+ if (existsSync62(outDir) && !statSync20(outDir).isDirectory()) {
184414
184568
  throw new Error(`refusing to write a package tree over ${outDir} \u2014 it is a file, not a directory`);
184415
184569
  }
184416
184570
  if (replaceable(outDir)) return outDir;
@@ -184467,7 +184621,7 @@ function openPackageDir(dir) {
184467
184621
  for (const name of readdirSync32(abs)) {
184468
184622
  const childRel = rel2 ? `${rel2}/${name}` : name;
184469
184623
  const childAbs = join55(abs, name);
184470
- if (statSync19(childAbs).isDirectory()) walk6(childRel);
184624
+ if (statSync20(childAbs).isDirectory()) walk6(childRel);
184471
184625
  else if (isSafeEntryName(childRel)) entries.set(childRel, readFileSync66(childAbs));
184472
184626
  }
184473
184627
  };
@@ -184852,7 +185006,7 @@ __export(run_watch_exports, {
184852
185006
  watchedContentDir: () => watchedContentDir,
184853
185007
  writeRunRecord: () => writeRunRecord
184854
185008
  });
184855
- import { closeSync as closeSync5, constants as constants5, existsSync as existsSync64, fstatSync as fstatSync2, lstatSync as lstatSync21, statSync as statSync20, readdirSync as readdirSync34, mkdirSync as mkdirSync33, openSync as openSync5, readFileSync as readFileSync68, realpathSync as realpathSync9, renameSync as renameSync12, rmSync as rmSync20, writeFileSync as writeFileSync29, watch as fsWatch } from "node:fs";
185009
+ import { closeSync as closeSync5, constants as constants5, existsSync as existsSync64, fstatSync as fstatSync2, lstatSync as lstatSync21, statSync as statSync21, readdirSync as readdirSync34, mkdirSync as mkdirSync33, openSync as openSync5, readFileSync as readFileSync68, realpathSync as realpathSync9, renameSync as renameSync12, rmSync as rmSync20, writeFileSync as writeFileSync29, watch as fsWatch } from "node:fs";
184856
185010
  import { randomUUID as randomUUID9 } from "node:crypto";
184857
185011
  import { extname as extname4, join as join57, relative as relative14, resolve as resolve49, sep as sep19 } from "node:path";
184858
185012
  function diffReleases(prev, next) {
@@ -184971,7 +185125,7 @@ function watchedContentDir(source2) {
184971
185125
  if (!source2 || /^https?:\/\//i.test(source2)) return null;
184972
185126
  const dir = resolve49(source2);
184973
185127
  try {
184974
- return statSync20(dir).isDirectory() && existsSync64(join57(dir, "himalaya.content.json")) ? dir : null;
185128
+ return statSync21(dir).isDirectory() && existsSync64(join57(dir, "himalaya.content.json")) ? dir : null;
184975
185129
  } catch {
184976
185130
  return null;
184977
185131
  }
@@ -185153,7 +185307,7 @@ var init_run_watch = __esm({
185153
185307
  };
185154
185308
  isDir = (path2) => {
185155
185309
  try {
185156
- return statSync20(path2).isDirectory();
185310
+ return statSync21(path2).isDirectory();
185157
185311
  } catch {
185158
185312
  return false;
185159
185313
  }
@@ -185636,7 +185790,7 @@ __export(milestones_exports, {
185636
185790
  });
185637
185791
  import { createHash as createHash35, randomUUID as randomUUID10 } from "node:crypto";
185638
185792
  import { spawn as spawn4 } from "node:child_process";
185639
- import { closeSync as closeSync6, existsSync as existsSync65, lstatSync as lstatSync24, readFileSync as readFileSync72, statSync as statSync21 } from "node:fs";
185793
+ import { closeSync as closeSync6, existsSync as existsSync65, lstatSync as lstatSync24, readFileSync as readFileSync72, statSync as statSync22 } from "node:fs";
185640
185794
  import { createServer as createServer3 } from "node:net";
185641
185795
  import { basename as basename18, dirname as dirname39, isAbsolute as isAbsolute8, join as join61, relative as relative15, resolve as resolve50, sep as sep20 } from "node:path";
185642
185796
  function homeShotPath(dir, home2) {
@@ -185715,7 +185869,7 @@ async function renderHomeInChild(dir, home2, opts) {
185715
185869
  }
185716
185870
  let fresh = false;
185717
185871
  try {
185718
- fresh = statSync21(shot).mtimeMs >= started - 1e3;
185872
+ fresh = statSync22(shot).mtimeMs >= started - 1e3;
185719
185873
  } catch {
185720
185874
  }
185721
185875
  if (code3 === 0 && fresh) {
@@ -185924,7 +186078,7 @@ function afterBrowserTestRun(dir, input) {
185924
186078
  function shotIsCurrent(shot, sourceChangedAtMs) {
185925
186079
  if (sourceChangedAtMs === void 0) return false;
185926
186080
  try {
185927
- return statSync21(shot).mtimeMs >= sourceChangedAtMs;
186081
+ return statSync22(shot).mtimeMs >= sourceChangedAtMs;
185928
186082
  } catch {
185929
186083
  return false;
185930
186084
  }
@@ -186299,7 +186453,7 @@ function afterHandoverPostcard(dir, opts = {}) {
186299
186453
  let fresh = false;
186300
186454
  try {
186301
186455
  const st2 = lstatSync24(file2);
186302
- fresh = st2.isFile() && !st2.isSymbolicLink() && st2.mtimeMs >= statSync21(join61(dir, ".himi", "progress.jsonl")).mtimeMs;
186456
+ fresh = st2.isFile() && !st2.isSymbolicLink() && st2.mtimeMs >= statSync22(join61(dir, ".himi", "progress.jsonl")).mtimeMs;
186303
186457
  } catch {
186304
186458
  fresh = false;
186305
186459
  }
@@ -192932,7 +193086,7 @@ var init_localweb = __esm({
192932
193086
  });
192933
193087
 
192934
193088
  // ../native-config/capability-registrations.ts
192935
- import { existsSync as existsSync76, readdirSync as readdirSync38, readFileSync as readFileSync83, statSync as statSync22 } from "node:fs";
193089
+ import { existsSync as existsSync76, readdirSync as readdirSync38, readFileSync as readFileSync83, statSync as statSync23 } from "node:fs";
192936
193090
  import { dirname as dirname42, join as join74, resolve as resolve53 } from "node:path";
192937
193091
  import { fileURLToPath as fileURLToPath29 } from "node:url";
192938
193092
  function registrarClasses(path2, re2) {
@@ -192997,7 +193151,7 @@ function filesWithRegisterMarkers(root, ext) {
192997
193151
  } else {
192998
193152
  stack.push([path2, depth + 1, "main"]);
192999
193153
  }
193000
- } else if (where === "main" && entry.isFile() && entry.name.endsWith(ext) && statSync22(path2).size <= 1 << 20) {
193154
+ } else if (where === "main" && entry.isFile() && entry.name.endsWith(ext) && statSync23(path2).size <= 1 << 20) {
193001
193155
  if (readFileSync83(path2, "utf8").includes(`>>> ${LABEL_CAPABILITIES_REGISTER} `)) out2.push(path2);
193002
193156
  }
193003
193157
  }
@@ -194521,7 +194675,7 @@ var init_embedded_bundles = __esm({
194521
194675
  function resolveStoreBundleId(devBundleId, opts = {}) {
194522
194676
  if (opts.adopted) {
194523
194677
  if (opts.toBundleId && opts.toBundleId !== opts.adopted.iosBundleId) {
194524
- throw new Error(
194678
+ throw new AdoptedConfigConflictError(
194525
194679
  `store-spec: store.config.yaml ios.bundleId "${opts.toBundleId}" disagrees with config.ts store.adopt.iosBundleId "${opts.adopted.iosBundleId}" \u2014 make them equal (or drop ios.bundleId, which defaults from store.adopt)`
194526
194680
  );
194527
194681
  }
@@ -194649,6 +194803,7 @@ var init_store_spec = __esm({
194649
194803
  init_version();
194650
194804
  init_binary_core();
194651
194805
  init_embedded_bundles();
194806
+ init_adopted_identity();
194652
194807
  init_store_adopt2();
194653
194808
  init_embedded_bundles();
194654
194809
  HEADER2 = "# GENERATED by tools/store-release/store-spec.ts \u2014 do not edit by hand.\n# A store-distribution override of project.yml (prod bundle id, production APNs,\n# real associated-domains, code signing enabled). Regenerate, don't hand-tune.\n";
@@ -194797,7 +194952,7 @@ __export(gen_native_config_exports, {
194797
194952
  xmlAttr: () => xmlAttr2,
194798
194953
  yamlScalar: () => yamlScalar
194799
194954
  });
194800
- import { existsSync as existsSync81, mkdirSync as mkdirSync34, readFileSync as readFileSync89, readdirSync as readdirSync40, rmSync as rmSync23, statSync as statSync23, writeFileSync as writeFileSync34 } from "node:fs";
194955
+ import { existsSync as existsSync81, mkdirSync as mkdirSync34, readFileSync as readFileSync89, readdirSync as readdirSync40, rmSync as rmSync23, statSync as statSync24, writeFileSync as writeFileSync34 } from "node:fs";
194801
194956
  import { dirname as dirname46, join as join79 } from "node:path";
194802
194957
  import { fileURLToPath as fileURLToPath30 } from "node:url";
194803
194958
  import ts18 from "typescript";
@@ -195357,7 +195512,7 @@ function kotlinBootSourcesUnder(root) {
195357
195512
  } else {
195358
195513
  stack.push([path2, depth + 1, "main"]);
195359
195514
  }
195360
- } else if (where === "main" && entry.isFile() && entry.name.endsWith("Application.kt") && statSync23(path2).size <= BOOT_SOURCE_MAX_BYTES && readFileSync89(path2, "utf8").includes("installLinkedModules")) {
195515
+ } else if (where === "main" && entry.isFile() && entry.name.endsWith("Application.kt") && statSync24(path2).size <= BOOT_SOURCE_MAX_BYTES && readFileSync89(path2, "utf8").includes("installLinkedModules")) {
195361
195516
  out2.push(path2);
195362
195517
  }
195363
195518
  }
@@ -195755,7 +195910,7 @@ function coreExtensionSourceRoots(projectYmlPath) {
195755
195910
  if (t2.type !== "app-extension" || !(t2.dependencies ?? []).some((d2) => /^HimalayaCore/.test(d2.product ?? d2.package ?? ""))) continue;
195756
195911
  const paths2 = (t2.sources ?? []).map((s5) => typeof s5 === "string" ? s5 : s5.path).filter((p2) => !!p2);
195757
195912
  const infoDir = t2.info?.path ? dirname46(t2.info.path) : void 0;
195758
- const root = paths2.find((p2) => p2 === infoDir) ?? paths2.find((p2) => existsSync81(join79(dir, p2)) && statSync23(join79(dir, p2)).isDirectory());
195913
+ const root = paths2.find((p2) => p2 === infoDir) ?? paths2.find((p2) => existsSync81(join79(dir, p2)) && statSync24(join79(dir, p2)).isDirectory());
195759
195914
  if (!root) throw new Error(`${projectYmlPath}: app extension linking HimalayaCore has no source directory to bundle its privacy manifest from`);
195760
195915
  roots2.push(join79(dir, root));
195761
195916
  }
@@ -196884,7 +197039,7 @@ function adaptWixLink(raw) {
196884
197039
  if (!host || !WIX_UNIVERSAL_HOST.test(host)) return void 0;
196885
197040
  rest = raw.slice(raw.toLowerCase().indexOf(host) + host.length);
196886
197041
  }
196887
- const [pathPart, queryPart = ""] = splitOnce(stripLeadingSlashes(rest), "?");
197042
+ const [pathPart, queryPart = ""] = splitOnce(stripLeadingSlashes(splitOnce(rest, "#")[0]), "?");
196888
197043
  const kept = [];
196889
197044
  let metaSiteId;
196890
197045
  for (const pair of queryPart.split("&")) {
@@ -200571,7 +200726,7 @@ var init_diff_hash = __esm({
200571
200726
 
200572
200727
  // src/attestation-lock.ts
200573
200728
  import { randomBytes as randomBytes2 } from "node:crypto";
200574
- import { closeSync as closeSync7, linkSync, openSync as openSync6, readFileSync as readFileSync98, renameSync as renameSync13, statSync as statSync24, unlinkSync as unlinkSync4, writeSync } from "node:fs";
200729
+ import { closeSync as closeSync7, linkSync, openSync as openSync6, readFileSync as readFileSync98, renameSync as renameSync13, statSync as statSync25, unlinkSync as unlinkSync4, writeSync } from "node:fs";
200575
200730
  import { hostname as hostname2 } from "node:os";
200576
200731
  import { join as join90 } from "node:path";
200577
200732
  function sleepSync2(ms2) {
@@ -200599,7 +200754,7 @@ function processAlive3(pid) {
200599
200754
  function isStale(path2, owner, staleMs, now) {
200600
200755
  if (!owner) {
200601
200756
  try {
200602
- return now - statSync24(path2).mtimeMs > UNREADABLE_STALE_MS;
200757
+ return now - statSync25(path2).mtimeMs > UNREADABLE_STALE_MS;
200603
200758
  } catch {
200604
200759
  return false;
200605
200760
  }
@@ -201806,7 +201961,7 @@ __export(desktop_measure_lint_exports, {
201806
201961
  listRoot: () => listRoot,
201807
201962
  readMeasures: () => readMeasures
201808
201963
  });
201809
- import { readFileSync as readFileSync105, statSync as statSync25 } from "node:fs";
201964
+ import { readFileSync as readFileSync105, statSync as statSync26 } from "node:fs";
201810
201965
  import { isAbsolute as isAbsolute12, resolve as resolve66, sep as sep25 } from "node:path";
201811
201966
  function nodes2(root, at2) {
201812
201967
  const out2 = [];
@@ -201877,7 +202032,7 @@ function readMeasures(dir, config, opts = {}) {
201877
202032
  }
201878
202033
  let size;
201879
202034
  try {
201880
- const st2 = statSync25(file2);
202035
+ const st2 = statSync26(file2);
201881
202036
  if (!st2.isFile()) return DEFAULT_MEASURES;
201882
202037
  size = st2.size;
201883
202038
  } catch {
@@ -205608,7 +205763,7 @@ ${indent}`);
205608
205763
 
205609
205764
  // src/one-app/access-cli.ts
205610
205765
  import { createHash as createHash48 } from "node:crypto";
205611
- import { existsSync as existsSync100, readFileSync as readFileSync111, rmSync as rmSync28, statSync as statSync26, writeFileSync as writeFileSync44 } from "node:fs";
205766
+ import { existsSync as existsSync100, readFileSync as readFileSync111, rmSync as rmSync28, statSync as statSync27, writeFileSync as writeFileSync44 } from "node:fs";
205612
205767
  import { join as join100, resolve as resolve70 } from "node:path";
205613
205768
  function parseArgs(args) {
205614
205769
  let evidenceDir;
@@ -205792,7 +205947,7 @@ async function runOneAppAccess(args, io2) {
205792
205947
  let configText;
205793
205948
  let screensText;
205794
205949
  try {
205795
- for (const path2 of [configPath, screensPath]) if (!statSync26(path2).isFile()) throw new Error(`${path2} is not a file.`);
205950
+ for (const path2 of [configPath, screensPath]) if (!statSync27(path2).isFile()) throw new Error(`${path2} is not a file.`);
205796
205951
  configText = readFileSync111(configPath, "utf8");
205797
205952
  screensText = readFileSync111(screensPath, "utf8");
205798
205953
  } catch (error) {
@@ -209202,7 +209357,7 @@ __export(validate_topbar_exports, {
209202
209357
  screenActions: () => screenActions2
209203
209358
  });
209204
209359
  import { createHash as createHash49 } from "node:crypto";
209205
- import { existsSync as existsSync105, readFileSync as readFileSync116, statSync as statSync27 } from "node:fs";
209360
+ import { existsSync as existsSync105, readFileSync as readFileSync116, statSync as statSync28 } from "node:fs";
209206
209361
  import { resolve as resolve72, join as join105 } from "node:path";
209207
209362
  import ts29 from "typescript";
209208
209363
  function enrichedControls(raw, views2, omit) {
@@ -209756,7 +209911,7 @@ function validate3(evidenceDir, contentDir2) {
209756
209911
  let homeInviteFor = () => false;
209757
209912
  try {
209758
209913
  configPath = join105(contentDir2, "config.ts");
209759
- if (!statSync27(configPath).isFile()) throw new Error("config.ts is not a file.");
209914
+ if (!statSync28(configPath).isFile()) throw new Error("config.ts is not a file.");
209760
209915
  target = configActions(configPath);
209761
209916
  drawerInvite = drawerOffersInvite(readFileSync116(configPath, "utf8"), profileOffersInvite(contentDir2));
209762
209917
  try {
@@ -212325,7 +212480,7 @@ var init_cli_bridge = __esm({
212325
212480
  });
212326
212481
 
212327
212482
  // src/mcp/file-tools.ts
212328
- import { closeSync as closeSync8, constants as constants6, lstatSync as lstatSync30, mkdirSync as mkdirSync42, openSync as openSync7, readdirSync as readdirSync44, readFileSync as readFileSync122, realpathSync as realpathSync12, renameSync as renameSync15, rmSync as rmSync30, statSync as statSync28, writeSync as writeSync2, existsSync as existsSync110 } from "node:fs";
212483
+ import { closeSync as closeSync8, constants as constants6, lstatSync as lstatSync30, mkdirSync as mkdirSync42, openSync as openSync7, readdirSync as readdirSync44, readFileSync as readFileSync122, realpathSync as realpathSync12, renameSync as renameSync15, rmSync as rmSync30, statSync as statSync29, writeSync as writeSync2, existsSync as existsSync110 } from "node:fs";
212329
212484
  import { randomBytes as randomBytes4 } from "node:crypto";
212330
212485
  import { dirname as dirname55, isAbsolute as isAbsolute15, join as join110, relative as relative21, resolve as resolve74, sep as sep26 } from "node:path";
212331
212486
  import * as z2 from "zod";
@@ -212444,7 +212599,7 @@ function listFiles2(appDir3) {
212444
212599
  const rel2 = relative21(appDir3, p2);
212445
212600
  if (isDeniedSourcePath(rel2) || isDeniedSourcePath(rel2.toLowerCase())) continue;
212446
212601
  if (files.length >= MAX_LISTED) return false;
212447
- files.push({ path: rel2.split(sep26).join("/"), bytes: statSync28(p2).size });
212602
+ files.push({ path: rel2.split(sep26).join("/"), bytes: statSync29(p2).size });
212448
212603
  }
212449
212604
  }
212450
212605
  return true;
@@ -212480,7 +212635,7 @@ function fileTools() {
212480
212635
  handler: async (a3, d2) => {
212481
212636
  const app2 = await confinedAppDir(a3, d2);
212482
212637
  if (typeof app2 !== "string") return app2;
212483
- if (!existsSync110(app2) || !statSync28(app2).isDirectory()) return refuse5("no_app", `no folder at ${app2}`);
212638
+ if (!existsSync110(app2) || !statSync29(app2).isDirectory()) return refuse5("no_app", `no folder at ${app2}`);
212484
212639
  return ok({ ok: true, dir: app2, ...listFiles2(app2) });
212485
212640
  }
212486
212641
  },
@@ -212496,7 +212651,7 @@ function fileTools() {
212496
212651
  const p2 = confinedPath(app2, a3.path);
212497
212652
  if (typeof p2 !== "string") return refuse5("bad_path", p2.error);
212498
212653
  if (!existsSync110(p2) || !lstatSync30(p2).isFile()) return refuse5("not_found", `no file "${String(a3.path)}"`);
212499
- const size = statSync28(p2).size;
212654
+ const size = statSync29(p2).size;
212500
212655
  if (size > MAX_FILE_BYTES2) return refuse5("too_large", `"${String(a3.path)}" is ${size} bytes \u2014 over the ${MAX_FILE_BYTES2}-byte read limit`);
212501
212656
  return ok({ ok: true, path: a3.path, bytes: size, content: readFileSync122(p2, "utf8") });
212502
212657
  }
@@ -213424,7 +213579,7 @@ var init_open_url = __esm({
213424
213579
  });
213425
213580
 
213426
213581
  // src/store-build-lookup.ts
213427
- import { existsSync as existsSync111, lstatSync as lstatSync31, readFileSync as readFileSync123, readdirSync as readdirSync45, statSync as statSync29 } from "node:fs";
213582
+ import { existsSync as existsSync111, lstatSync as lstatSync31, readFileSync as readFileSync123, readdirSync as readdirSync45, statSync as statSync30 } from "node:fs";
213428
213583
  import { basename as basename27, join as join111, resolve as resolve77 } from "node:path";
213429
213584
  function readUploadFacts(dir) {
213430
213585
  const path2 = join111(dir, LAST_DIST_PATH);
@@ -213451,7 +213606,7 @@ function newestLocalIpa(dir) {
213451
213606
  const folder = join111(dir, LOCAL_IPA_DIR);
213452
213607
  try {
213453
213608
  if (!existsSync111(folder) || lstatSync31(folder).isSymbolicLink() || !lstatSync31(folder).isDirectory()) return void 0;
213454
- const ipas = readdirSync45(folder).filter((n2) => n2.toLowerCase().endsWith(".ipa")).map((n2) => join111(folder, n2)).filter((p2) => lstatSync31(p2).isFile()).sort((a3, b3) => statSync29(b3).mtimeMs - statSync29(a3).mtimeMs);
213609
+ const ipas = readdirSync45(folder).filter((n2) => n2.toLowerCase().endsWith(".ipa")).map((n2) => join111(folder, n2)).filter((p2) => lstatSync31(p2).isFile()).sort((a3, b3) => statSync30(b3).mtimeMs - statSync30(a3).mtimeMs);
213455
213610
  return ipas[0];
213456
213611
  } catch {
213457
213612
  return void 0;
@@ -226926,7 +227081,7 @@ __export(store_google_host_exports, {
226926
227081
  signingFor: () => signingFor
226927
227082
  });
226928
227083
  import { createHash as createHash67, randomUUID as randomUUID14 } from "node:crypto";
226929
- import { existsSync as existsSync112, lstatSync as lstatSync32, mkdirSync as mkdirSync43, readFileSync as readFileSync125, readdirSync as readdirSync46, realpathSync as realpathSync13, renameSync as renameSync16, rmSync as rmSync31, statSync as statSync30, writeFileSync as writeFileSync47 } from "node:fs";
227084
+ import { existsSync as existsSync112, lstatSync as lstatSync32, mkdirSync as mkdirSync43, readFileSync as readFileSync125, readdirSync as readdirSync46, realpathSync as realpathSync13, renameSync as renameSync16, rmSync as rmSync31, statSync as statSync31, writeFileSync as writeFileSync47 } from "node:fs";
226930
227085
  import { join as join128, relative as relative24 } from "node:path";
226931
227086
  function readGooglePlayFacts(dir) {
226932
227087
  const path2 = join128(dir, GOOGLE_FACTS_FILE);
@@ -227010,7 +227165,7 @@ function newestAab(dir) {
227010
227165
  } catch {
227011
227166
  return false;
227012
227167
  }
227013
- }).sort((a3, b3) => statSync30(b3).mtimeMs - statSync30(a3).mtimeMs);
227168
+ }).sort((a3, b3) => statSync31(b3).mtimeMs - statSync31(a3).mtimeMs);
227014
227169
  return found[0];
227015
227170
  } catch {
227016
227171
  return void 0;
@@ -242470,7 +242625,7 @@ import * as __ascBuiltin049 from "node:fs";
242470
242625
  import * as __ascBuiltin131 from "node:path";
242471
242626
  function screenshotRefsFrom(dir) {
242472
242627
  const out2 = {};
242473
- const dirs = (d2) => readdirSync48(d2).filter((x2) => statSync31(join134(d2, x2)).isDirectory());
242628
+ const dirs = (d2) => readdirSync48(d2).filter((x2) => statSync32(join134(d2, x2)).isDirectory());
242474
242629
  for (const locale of dirs(dir)) {
242475
242630
  for (const type2 of dirs(join134(dir, locale))) {
242476
242631
  const files = readdirSync48(join134(dir, locale, type2)).filter((f2) => /\.(png|jpe?g)$/i.test(f2)).sort();
@@ -242589,14 +242744,14 @@ function finish(bundleId, appId3, lines2, steps) {
242589
242744
  const next = lines2.length && deferred ? `Apply this batch (one approval), then plan again: ${deferred} step(s) wait for it.${stuck.length ? ` Still open: ${stuck.join(", ")}.` : ""}` : lines2.length ? `Applying this batch (one approval) ${submits ? "submits the app for App Review" : "finishes what can be planned"}.${stuck.length ? ` Still open: ${stuck.join(", ")}.` : ""}` : stuck.length ? `Nothing to apply until ${stuck.join(", ")} ${stuck.length === 1 ? "is" : "are"} resolved.` : deferred ? "Nothing to apply yet: plan again once the deferred steps can be planned." : "Nothing to apply: every step is in place.";
242590
242745
  return { bundleId, appId: appId3, lines: lines2, steps, complete: deferred === 0 && !stuck.length, next };
242591
242746
  }
242592
- var readFileSync129, readdirSync48, statSync31, join134, STORE_STEPS, readJson11, storePrice;
242747
+ var readFileSync129, readdirSync48, statSync32, join134, STORE_STEPS, readJson11, storePrice;
242593
242748
  var init_store_plan = __esm({
242594
242749
  "../../node_modules/@wix/asc-jobs/dist/store-plan.js"() {
242595
242750
  init_define_HHP_CATALOG();
242596
242751
  init_dist3();
242597
242752
  init_actions_release();
242598
242753
  init_dist5();
242599
- ({ readFileSync: readFileSync129, readdirSync: readdirSync48, statSync: statSync31 } = __ascBuiltin049);
242754
+ ({ readFileSync: readFileSync129, readdirSync: readdirSync48, statSync: statSync32 } = __ascBuiltin049);
242600
242755
  ({ join: join134 } = __ascBuiltin131);
242601
242756
  STORE_STEPS = ["appRecord", "bundleId", "category", "price", "privacy", "medicalDevice", "privacyPublish", "publish", "submit"];
242602
242757
  readJson11 = (path2, fact) => {
@@ -244370,7 +244525,7 @@ function checkKeyDirectory(dir) {
244370
244525
  const checkout = gitCheckoutOf(dir);
244371
244526
  if (checkout)
244372
244527
  throw new AscError("refused", `${dir} is inside the git checkout ${checkout}; a private key never goes into a repository \u2014 name a directory outside it (e.g. ~/.asc-node/keys)`);
244373
- if (existsSync114(dir) && !statSync32(dir).isDirectory())
244528
+ if (existsSync114(dir) && !statSync33(dir).isDirectory())
244374
244529
  throw new AscError("invalid", `${dir} is not a directory`);
244375
244530
  return resolve84(dir);
244376
244531
  }
@@ -244414,13 +244569,13 @@ function reserveKeyFile(dir, keyId) {
244414
244569
  }
244415
244570
  };
244416
244571
  }
244417
- var createPrivateKey6, closeSync9, existsSync114, mkdirSync45, openSync8, realpathSync14, statSync32, unlinkSync7, writeSync3, basename31, dirname66, isAbsolute17, join135, resolve84, TEAM_KEY_ROLES, DOWNLOAD_ATTEMPTS, ApiKeysApi;
244572
+ var createPrivateKey6, closeSync9, existsSync114, mkdirSync45, openSync8, realpathSync14, statSync33, unlinkSync7, writeSync3, basename31, dirname66, isAbsolute17, join135, resolve84, TEAM_KEY_ROLES, DOWNLOAD_ATTEMPTS, ApiKeysApi;
244418
244573
  var init_api_keys = __esm({
244419
244574
  "../../node_modules/@wix/asc-web/dist/api-keys.js"() {
244420
244575
  init_define_HHP_CATALOG();
244421
244576
  init_dist3();
244422
244577
  ({ createPrivateKey: createPrivateKey6 } = __ascBuiltin051);
244423
- ({ closeSync: closeSync9, existsSync: existsSync114, mkdirSync: mkdirSync45, openSync: openSync8, realpathSync: realpathSync14, statSync: statSync32, unlinkSync: unlinkSync7, writeSync: writeSync3 } = __ascBuiltin133);
244578
+ ({ closeSync: closeSync9, existsSync: existsSync114, mkdirSync: mkdirSync45, openSync: openSync8, realpathSync: realpathSync14, statSync: statSync33, unlinkSync: unlinkSync7, writeSync: writeSync3 } = __ascBuiltin133);
244424
244579
  ({ basename: basename31, dirname: dirname66, isAbsolute: isAbsolute17, join: join135, resolve: resolve84 } = __ascBuiltin217);
244425
244580
  TEAM_KEY_ROLES = ["ADMIN", "APP_MANAGER", "DEVELOPER", "FINANCE", "SALES", "MARKETING", "ACCESS_TO_REPORTS", "CUSTOMER_SUPPORT", "CREATE_APPS", "CLOUD_MANAGED_APP_DISTRIBUTION", "CLOUD_MANAGED_DEVELOPER_ID"];
244426
244581
  DOWNLOAD_ATTEMPTS = 3;
@@ -244504,13 +244659,13 @@ function scrubKeyText(text32, privateKey2) {
244504
244659
  const lines2 = privateKey2.split(/\r?\n/).map((l3) => l3.trim()).filter((l3) => l3.length > 16 && !l3.startsWith("-----"));
244505
244660
  return scrubSecrets(text32, [privateKey2, privateKey2.trim(), ...lines2]).replace(/-----BEGIN [A-Z ]*-----[\s\S]*?(-----END [A-Z ]*-----|$)/g, "[private key removed]");
244506
244661
  }
244507
- var statSync33, join136, keys, destinations, savesKey, createApiKey, revokeApiKey, API_KEY_ACTIONS;
244662
+ var statSync34, join136, keys, destinations, savesKey, createApiKey, revokeApiKey, API_KEY_ACTIONS;
244508
244663
  var init_api_key_actions = __esm({
244509
244664
  "../../node_modules/@wix/asc-web/dist/api-key-actions.js"() {
244510
244665
  init_define_HHP_CATALOG();
244511
244666
  init_dist3();
244512
244667
  init_api_keys();
244513
- ({ statSync: statSync33 } = __ascBuiltin052);
244668
+ ({ statSync: statSync34 } = __ascBuiltin052);
244514
244669
  ({ join: join136 } = __ascBuiltin134);
244515
244670
  keys = (ctx) => {
244516
244671
  if (!ctx.web)
@@ -244640,7 +244795,7 @@ var init_api_key_actions = __esm({
244640
244795
  }
244641
244796
  let mode = 0;
244642
244797
  try {
244643
- mode = statSync33(join136(p2.outputDir, `AuthKey_${key4.keyId}.p8`)).mode & 511;
244798
+ mode = statSync34(join136(p2.outputDir, `AuthKey_${key4.keyId}.p8`)).mode & 511;
244644
244799
  } catch {
244645
244800
  return { ok: false, detail: `key ${key4.keyId} is active, but its private key file is missing` };
244646
244801
  }
@@ -245110,7 +245265,7 @@ async function takeDownload(keys2, target, recovery, said) {
245110
245265
  recovery.discard();
245111
245266
  return file2.path;
245112
245267
  }
245113
- var randomUUID16, closeSync10, existsSync115, fsyncSync, mkdirSync46, openSync9, readdirSync49, statSync34, unlinkSync8, writeSync4, join137, KEYS_PAGE, api, services, named3, revokeCommand, downloadCommand, createApnsKey, revokePortalKey, downloadPortalKey, PORTAL_KEY_ACTIONS;
245268
+ var randomUUID16, closeSync10, existsSync115, fsyncSync, mkdirSync46, openSync9, readdirSync49, statSync35, unlinkSync8, writeSync4, join137, KEYS_PAGE, api, services, named3, revokeCommand, downloadCommand, createApnsKey, revokePortalKey, downloadPortalKey, PORTAL_KEY_ACTIONS;
245114
245269
  var init_portal_key_actions = __esm({
245115
245270
  "../../node_modules/@wix/asc-web/dist/portal-key-actions.js"() {
245116
245271
  init_define_HHP_CATALOG();
@@ -245119,7 +245274,7 @@ var init_portal_key_actions = __esm({
245119
245274
  init_session();
245120
245275
  init_portal_keys();
245121
245276
  ({ randomUUID: randomUUID16 } = __ascBuiltin054);
245122
- ({ closeSync: closeSync10, existsSync: existsSync115, fsyncSync, mkdirSync: mkdirSync46, openSync: openSync9, readdirSync: readdirSync49, statSync: statSync34, unlinkSync: unlinkSync8, writeSync: writeSync4 } = __ascBuiltin135);
245277
+ ({ closeSync: closeSync10, existsSync: existsSync115, fsyncSync, mkdirSync: mkdirSync46, openSync: openSync9, readdirSync: readdirSync49, statSync: statSync35, unlinkSync: unlinkSync8, writeSync: writeSync4 } = __ascBuiltin135);
245123
245278
  ({ join: join137 } = __ascBuiltin218);
245124
245279
  KEYS_PAGE = "https://developer.apple.com/account/resources/authkeys/list";
245125
245280
  api = (ctx, developerTeam) => {
@@ -245217,7 +245372,7 @@ var init_portal_key_actions = __esm({
245217
245372
  return { ok: false, detail: `key ${keyId} reads back as ${services(key4)}, not APNs` };
245218
245373
  let mode = 0;
245219
245374
  try {
245220
- mode = statSync34(join137(p2.outputDir, `AuthKey_${keyId}.p8`)).mode & 511;
245375
+ mode = statSync35(join137(p2.outputDir, `AuthKey_${keyId}.p8`)).mode & 511;
245221
245376
  } catch {
245222
245377
  return { ok: false, detail: `key ${keyId} is an APNs key, but its private key file is missing` };
245223
245378
  }
@@ -245308,7 +245463,7 @@ var init_portal_key_actions = __esm({
245308
245463
  if (applied) {
245309
245464
  let mode = 0;
245310
245465
  try {
245311
- mode = statSync34(join137(p2.outputDir, `AuthKey_${p2.keyId}.p8`)).mode & 511;
245466
+ mode = statSync35(join137(p2.outputDir, `AuthKey_${p2.keyId}.p8`)).mode & 511;
245312
245467
  } catch {
245313
245468
  return { ok: false, detail: `key ${p2.keyId}'s private key file is missing` };
245314
245469
  }
@@ -246517,7 +246672,7 @@ function preparePrivateDirectory(dir) {
246517
246672
  return path2;
246518
246673
  }
246519
246674
  mkdirSync47(path2, { recursive: true, mode: 448 });
246520
- if (statSync35(path2).mode & 63)
246675
+ if (statSync36(path2).mode & 63)
246521
246676
  throw new AscError("refused", `${path2} is not private after creating it`);
246522
246677
  return path2;
246523
246678
  }
@@ -246573,13 +246728,13 @@ async function downloadThreadAttachments(client4, threadId, outDir) {
246573
246728
  }
246574
246729
  return result;
246575
246730
  }
246576
- var lstatSync33, mkdirSync47, statSync35, writeFileSync49, basename33, join138, resolve85, MAX_NAME_ATTEMPTS, refreshKey;
246731
+ var lstatSync33, mkdirSync47, statSync36, writeFileSync49, basename33, join138, resolve85, MAX_NAME_ATTEMPTS, refreshKey;
246577
246732
  var init_review_attachments = __esm({
246578
246733
  "../../node_modules/@wix/asc-web/dist/review-attachments.js"() {
246579
246734
  init_define_HHP_CATALOG();
246580
246735
  init_dist3();
246581
246736
  init_api_keys();
246582
- ({ lstatSync: lstatSync33, mkdirSync: mkdirSync47, statSync: statSync35, writeFileSync: writeFileSync49 } = __ascBuiltin056);
246737
+ ({ lstatSync: lstatSync33, mkdirSync: mkdirSync47, statSync: statSync36, writeFileSync: writeFileSync49 } = __ascBuiltin056);
246583
246738
  ({ basename: basename33, join: join138, resolve: resolve85 } = __ascBuiltin137);
246584
246739
  MAX_NAME_ATTEMPTS = 1e4;
246585
246740
  refreshKey = (a3) => [a3.sourceType, a3.id, a3.threadId, a3.messageId ?? "", a3.reviewRejectionId ?? ""].join("|");
@@ -246744,7 +246899,7 @@ function resolveMessagesDb(raw, home2 = homedir14()) {
246744
246899
  const given = raw?.trim();
246745
246900
  const path2 = !given ? join139(home2, "Library", "Messages", "chat.db") : resolvePath2(given === "~" || given.startsWith("~/") ? join139(home2, given.slice(1)) : given);
246746
246901
  try {
246747
- if (statSync36(path2).isDirectory())
246902
+ if (statSync37(path2).isDirectory())
246748
246903
  throw new MessagesCodeError(`the Messages database path ${path2} is a directory; --db must point at chat.db`);
246749
246904
  } catch (e2) {
246750
246905
  if (e2 instanceof MessagesCodeError)
@@ -246794,14 +246949,14 @@ function parseDuration(text32) {
246794
246949
  total += Number(n2) * unit[u2];
246795
246950
  return total > 0 ? total : void 0;
246796
246951
  }
246797
- var execFile5, homedir14, join139, resolvePath2, statSync36, pathToFileURL9, MESSAGES_DEFAULT_SINCE_MS, MESSAGES_MAX_SINCE_MS, MESSAGES_DEFAULT_TIMEOUT_MS, REQUEST_SKEW_MS, ROW_LIMIT, SECONDS_THRESHOLD, APPLE_EPOCH_MS, SYSTEM_SQLITE, MessagesCodeError, isPrivacyError, systemSqliteQuery;
246952
+ var execFile5, homedir14, join139, resolvePath2, statSync37, pathToFileURL9, MESSAGES_DEFAULT_SINCE_MS, MESSAGES_MAX_SINCE_MS, MESSAGES_DEFAULT_TIMEOUT_MS, REQUEST_SKEW_MS, ROW_LIMIT, SECONDS_THRESHOLD, APPLE_EPOCH_MS, SYSTEM_SQLITE, MessagesCodeError, isPrivacyError, systemSqliteQuery;
246798
246953
  var init_messages_code = __esm({
246799
246954
  "../../node_modules/@wix/asc-web/dist/messages-code.js"() {
246800
246955
  init_define_HHP_CATALOG();
246801
246956
  ({ execFile: execFile5 } = __ascBuiltin057);
246802
246957
  ({ homedir: homedir14 } = __ascBuiltin138);
246803
246958
  ({ join: join139, resolve: resolvePath2 } = __ascBuiltin219);
246804
- ({ statSync: statSync36 } = __ascBuiltin37);
246959
+ ({ statSync: statSync37 } = __ascBuiltin37);
246805
246960
  ({ pathToFileURL: pathToFileURL9 } = __ascBuiltin42);
246806
246961
  MESSAGES_DEFAULT_SINCE_MS = 6e4;
246807
246962
  MESSAGES_MAX_SINCE_MS = 10 * 6e4;
@@ -246924,7 +247079,7 @@ function readSessionBundle(path2) {
246924
247079
  throw new SessionBundleError(`the session bundle is larger than ${MAX_SESSION_BUNDLE_BYTES} bytes`);
246925
247080
  return readFileSync130(path2, "utf8");
246926
247081
  }
246927
- var chmodSync4, closeSync11, constants9, fstatSync3, lstatSync34, mkdirSync48, openSync10, readFileSync130, renameSync17, rmSync32, statSync37, writeSync5, createHash76, randomBytes16, dirname67, isAbsolute18, join140, resolve86, SESSION_BUNDLE_KIND, SESSION_BUNDLE_VERSION, MAX_SESSION_BUNDLE_BYTES, SessionBundleError, isAppleDomain, SESSION_FILE_VERSION, FileSessionStore, KEYRING_HINT, SecretServiceSessionStore;
247082
+ var chmodSync4, closeSync11, constants9, fstatSync3, lstatSync34, mkdirSync48, openSync10, readFileSync130, renameSync17, rmSync32, statSync38, writeSync5, createHash76, randomBytes16, dirname67, isAbsolute18, join140, resolve86, SESSION_BUNDLE_KIND, SESSION_BUNDLE_VERSION, MAX_SESSION_BUNDLE_BYTES, SessionBundleError, isAppleDomain, SESSION_FILE_VERSION, FileSessionStore, KEYRING_HINT, SecretServiceSessionStore;
246928
247083
  var init_session_transfer = __esm({
246929
247084
  "../../node_modules/@wix/asc-web/dist/session-transfer.js"() {
246930
247085
  init_define_HHP_CATALOG();
@@ -246932,7 +247087,7 @@ var init_session_transfer = __esm({
246932
247087
  init_api_keys();
246933
247088
  init_session_lock();
246934
247089
  init_session();
246935
- ({ chmodSync: chmodSync4, closeSync: closeSync11, constants: constants9, fstatSync: fstatSync3, lstatSync: lstatSync34, mkdirSync: mkdirSync48, openSync: openSync10, readFileSync: readFileSync130, renameSync: renameSync17, rmSync: rmSync32, statSync: statSync37, writeSync: writeSync5 } = __ascBuiltin058);
247090
+ ({ chmodSync: chmodSync4, closeSync: closeSync11, constants: constants9, fstatSync: fstatSync3, lstatSync: lstatSync34, mkdirSync: mkdirSync48, openSync: openSync10, readFileSync: readFileSync130, renameSync: renameSync17, rmSync: rmSync32, statSync: statSync38, writeSync: writeSync5 } = __ascBuiltin058);
246936
247091
  ({ createHash: createHash76, randomBytes: randomBytes16 } = __ascBuiltin139);
246937
247092
  ({ dirname: dirname67, isAbsolute: isAbsolute18, join: join140, resolve: resolve86 } = __ascBuiltin220);
246938
247093
  SESSION_BUNDLE_KIND = "asc-node-web-session";
@@ -246998,7 +247153,7 @@ var init_session_transfer = __esm({
246998
247153
  }
246999
247154
  prepareDir() {
247000
247155
  mkdirSync48(this.dir, { recursive: true, mode: 448 });
247001
- if (!statSync37(this.dir).isDirectory())
247156
+ if (!statSync38(this.dir).isDirectory())
247002
247157
  throw Object.assign(new Error("not a directory"), { code: "ENOTDIR" });
247003
247158
  chmodSync4(this.dir, 448);
247004
247159
  }
@@ -249254,8 +249409,8 @@ function localFiles(inv) {
249254
249409
  }
249255
249410
  function screenshotsFrom(dir) {
249256
249411
  const out2 = {};
249257
- for (const locale of readdirSync50(dir).filter((d2) => statSync38(join142(dir, d2)).isDirectory())) {
249258
- for (const type2 of readdirSync50(join142(dir, locale)).filter((d2) => statSync38(join142(dir, locale, d2)).isDirectory())) {
249412
+ for (const locale of readdirSync50(dir).filter((d2) => statSync39(join142(dir, d2)).isDirectory())) {
249413
+ for (const type2 of readdirSync50(join142(dir, locale)).filter((d2) => statSync39(join142(dir, locale, d2)).isDirectory())) {
249259
249414
  const files = readdirSync50(join142(dir, locale, type2)).filter((f2) => /\.(png|jpe?g)$/i.test(f2)).sort();
249260
249415
  if (files.length)
249261
249416
  (out2[locale] ??= {})[type2] = files.map((f2) => ({ fileName: f2, ...fileRef(join142(dir, locale, type2, f2)) }));
@@ -249267,8 +249422,8 @@ function screenshotsFrom(dir) {
249267
249422
  }
249268
249423
  function previewsFrom(dir) {
249269
249424
  const out2 = {};
249270
- for (const locale of readdirSync50(dir).filter((d2) => statSync38(join142(dir, d2)).isDirectory())) {
249271
- for (const type2 of readdirSync50(join142(dir, locale)).filter((d2) => statSync38(join142(dir, locale, d2)).isDirectory())) {
249425
+ for (const locale of readdirSync50(dir).filter((d2) => statSync39(join142(dir, d2)).isDirectory())) {
249426
+ for (const type2 of readdirSync50(join142(dir, locale)).filter((d2) => statSync39(join142(dir, locale, d2)).isDirectory())) {
249272
249427
  const files = readdirSync50(join142(dir, locale, type2)).filter((f2) => /\.(mov|m4v|mp4)$/i.test(f2)).sort();
249273
249428
  if (files.length)
249274
249429
  (out2[locale] ??= {})[type2] = files.map((f2) => ({ fileName: f2, ...fileRef(join142(dir, locale, type2, f2)) }));
@@ -249313,7 +249468,7 @@ function batchView(b3) {
249313
249468
  const r3 = batchReport(b3);
249314
249469
  return { batch: b3.id, status: b3.status, planHash: b3.planHash.slice(0, 16), approvals: b3.approvals.map((a3) => a3.approver), decision: b3.decision, summary: r3.summary, lines: r3.items.map((i2) => `${i2.status} ${i2.action} ${i2.key}${i2.error ? ` \u2014 ${i2.error.split("\n")[0]}` : ""}`) };
249315
249470
  }
249316
- var readdirSync50, readFileSync132, statSync38, writeFileSync50, join142, sizeText2, VERSION_FLAGS, APP_INFO_FLAGS, stringFlags, REVIEW_DETAIL_OPTIONS, batchExit, RELEASE_COMMANDS;
249471
+ var readdirSync50, readFileSync132, statSync39, writeFileSync50, join142, sizeText2, VERSION_FLAGS, APP_INFO_FLAGS, stringFlags, REVIEW_DETAIL_OPTIONS, batchExit, RELEASE_COMMANDS;
249317
249472
  var init_commands_release = __esm({
249318
249473
  "../../node_modules/@wix/asc/dist/commands-release.js"() {
249319
249474
  init_define_HHP_CATALOG();
@@ -249323,7 +249478,7 @@ var init_commands_release = __esm({
249323
249478
  init_commands();
249324
249479
  init_output2();
249325
249480
  init_commands_record();
249326
- ({ readdirSync: readdirSync50, readFileSync: readFileSync132, statSync: statSync38, writeFileSync: writeFileSync50 } = __ascBuiltin064);
249481
+ ({ readdirSync: readdirSync50, readFileSync: readFileSync132, statSync: statSync39, writeFileSync: writeFileSync50 } = __ascBuiltin064);
249327
249482
  ({ join: join142 } = __ascBuiltin141);
249328
249483
  sizeText2 = ([w2, h2]) => `${w2}x${h2}`;
249329
249484
  VERSION_FLAGS = { description: "description", keywords: "keywords", "whats-new": "whatsNew", "promotional-text": "promotionalText", "marketing-url": "marketingUrl", "support-url": "supportUrl" };
@@ -250801,9 +250956,9 @@ function draftBody(inv) {
250801
250956
  }
250802
250957
  let bytes2;
250803
250958
  try {
250804
- if (!statSync39(file2).isFile())
250959
+ if (!statSync40(file2).isFile())
250805
250960
  throw new Error("not a regular file");
250806
- if (statSync39(file2).size > BODY_LIMIT)
250961
+ if (statSync40(file2).size > BODY_LIMIT)
250807
250962
  throw new UsageError(`--body-file is over the ${BODY_LIMIT}-byte limit`);
250808
250963
  bytes2 = readFileSync134(file2);
250809
250964
  } catch (e2) {
@@ -250821,7 +250976,7 @@ function draftBody(inv) {
250821
250976
  throw new UsageError("--body-file must hold a message");
250822
250977
  return body;
250823
250978
  }
250824
- var readFileSync134, statSync39, resolve90, appleIdOption2, appOptions, BODY_LIMIT, webJob, draftOptions, subscriptionColumns, WEB_REVIEW_COMMANDS;
250979
+ var readFileSync134, statSync40, resolve90, appleIdOption2, appOptions, BODY_LIMIT, webJob, draftOptions, subscriptionColumns, WEB_REVIEW_COMMANDS;
250825
250980
  var init_commands_web_review = __esm({
250826
250981
  "../../node_modules/@wix/asc/dist/commands-web-review.js"() {
250827
250982
  init_define_HHP_CATALOG();
@@ -250830,7 +250985,7 @@ var init_commands_web_review = __esm({
250830
250985
  init_commands();
250831
250986
  init_commands_web();
250832
250987
  init_output2();
250833
- ({ readFileSync: readFileSync134, statSync: statSync39 } = __ascBuiltin067);
250988
+ ({ readFileSync: readFileSync134, statSync: statSync40 } = __ascBuiltin067);
250834
250989
  ({ resolve: resolve90 } = __ascBuiltin143);
250835
250990
  appleIdOption2 = { "apple-id": { type: "string" } };
250836
250991
  appOptions = { ...appleIdOption2, app: { type: "string" } };
@@ -256607,7 +256762,7 @@ function checkJobFile(path2, param, ctx, o2 = {}) {
256607
256762
  } catch (e2) {
256608
256763
  throw new AscError("invalid", `${param}: cannot read ${path2} (${e2.code ?? "unreadable"})`);
256609
256764
  }
256610
- const stat10 = statSync40(real);
256765
+ const stat10 = statSync41(real);
256611
256766
  if (o2.directory ? !stat10.isDirectory() : !stat10.isFile())
256612
256767
  throw new AscError("invalid", `${param}: ${path2} is not a ${o2.directory ? "directory" : "regular file"}`);
256613
256768
  let state;
@@ -256811,7 +256966,7 @@ ${o2.detail}` : ""}` };
256811
256966
  function enabledTools(env, o2 = {}) {
256812
256967
  return TOOLS.filter((t2) => !t2.write || env.ASC_MCP_WRITE === "1" || o2.approvals === true);
256813
256968
  }
256814
- var mkdirSync50, readFileSync138, realpathSync15, statSync40, writeFileSync53, delimiter3, isAbsolute19, join145, relative25, resolve92, sep29, READ, PLAN, APPLY, BATCH_SUMMARY_LINES, BATCH_CHANGES_PER_LINE, BATCH_CHANGE_LINES, ok2, app, reads, jobView2, noAppleId, EXIT_KINDS, notesOf2, cliResult, flag2, ACTIONS, FAMILIES, inside2, identityFile, appleIdParam, TOOLS;
256969
+ var mkdirSync50, readFileSync138, realpathSync15, statSync41, writeFileSync53, delimiter3, isAbsolute19, join145, relative25, resolve92, sep29, READ, PLAN, APPLY, BATCH_SUMMARY_LINES, BATCH_CHANGES_PER_LINE, BATCH_CHANGE_LINES, ok2, app, reads, jobView2, noAppleId, EXIT_KINDS, notesOf2, cliResult, flag2, ACTIONS, FAMILIES, inside2, identityFile, appleIdParam, TOOLS;
256815
256970
  var init_tools2 = __esm({
256816
256971
  "../../node_modules/@wix/asc-mcp/dist/tools.js"() {
256817
256972
  init_define_HHP_CATALOG();
@@ -256821,7 +256976,7 @@ var init_tools2 = __esm({
256821
256976
  init_dist6();
256822
256977
  init_dist7();
256823
256978
  init_action_catalog_generated();
256824
- ({ mkdirSync: mkdirSync50, readFileSync: readFileSync138, realpathSync: realpathSync15, statSync: statSync40, writeFileSync: writeFileSync53 } = __ascBuiltin075);
256979
+ ({ mkdirSync: mkdirSync50, readFileSync: readFileSync138, realpathSync: realpathSync15, statSync: statSync41, writeFileSync: writeFileSync53 } = __ascBuiltin075);
256825
256980
  ({ delimiter: delimiter3, isAbsolute: isAbsolute19, join: join145, relative: relative25, resolve: resolve92, sep: sep29 } = __ascBuiltin148);
256826
256981
  READ = { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true };
256827
256982
  PLAN = { readOnlyHint: true, destructiveHint: false, idempotentHint: false, openWorldHint: true };
@@ -259039,7 +259194,7 @@ __export(apple_keys_exports, {
259039
259194
  runAppleKeys: () => runAppleKeys
259040
259195
  });
259041
259196
  import { createPublicKey as createPublicKey5 } from "node:crypto";
259042
- import { readFileSync as readFileSync139, realpathSync as realpathSync16, statSync as statSync41 } from "node:fs";
259197
+ import { readFileSync as readFileSync139, realpathSync as realpathSync16, statSync as statSync42 } from "node:fs";
259043
259198
  function readKey2(flags, kind) {
259044
259199
  const names2 = kind === "asc" ? ["asc-key-file", "asc-key-id", "asc-issuer-id"] : ["iap-key", "iap-key-id", "iap-issuer-id"];
259045
259200
  if (names2.every((name) => flags[name] === void 0)) return void 0;
@@ -259048,7 +259203,7 @@ function readKey2(flags, kind) {
259048
259203
  try {
259049
259204
  const path2 = realpathSync16(file2);
259050
259205
  assertCredentialOutsideRepo(names2[0], path2);
259051
- if (statSync41(path2).size > 16384) throw new Error("oversized");
259206
+ if (statSync42(path2).size > 16384) throw new Error("oversized");
259052
259207
  const key4 = { keyId, issuerId, key: readFileSync139(path2, "utf8") };
259053
259208
  if (!isAppStoreConnectKey(key4)) throw new Error("invalid key");
259054
259209
  return key4;
@@ -262246,7 +262401,7 @@ __export(browser_authoring_exports, {
262246
262401
  });
262247
262402
  import { createServer as createServer6 } from "node:http";
262248
262403
  import { createHash as createHash82, randomBytes as randomBytes19 } from "node:crypto";
262249
- import { existsSync as existsSync123, readdirSync as readdirSync53, readFileSync as readFileSync145, realpathSync as realpathSync18, statSync as statSync42 } from "node:fs";
262404
+ import { existsSync as existsSync123, readdirSync as readdirSync53, readFileSync as readFileSync145, realpathSync as realpathSync18, statSync as statSync43 } from "node:fs";
262250
262405
  import { join as join155, posix as posix3, relative as relative29, sep as sep31 } from "node:path";
262251
262406
  function humanMs(ms2) {
262252
262407
  return ms2 < 1e3 ? `${ms2}ms` : `${Math.round(ms2 / 1e3)}s`;
@@ -262262,7 +262417,7 @@ function collectWorkerSources(tier5SrcDir, bundleName) {
262262
262417
  for (const name of readdirSync53(abs).sort()) {
262263
262418
  const childAbs = join155(abs, name);
262264
262419
  const childRel = posix3.join(rel2, name);
262265
- if (statSync42(childAbs).isDirectory()) {
262420
+ if (statSync43(childAbs).isDirectory()) {
262266
262421
  walk6(childAbs, childRel);
262267
262422
  } else if (/\.(ts|tsx|js|mjs|json)$/.test(name)) {
262268
262423
  files[childRel] = readFileSync145(childAbs, "utf8");
@@ -262296,7 +262451,7 @@ function collectRelativeSiblings(files, tier5SrcDir) {
262296
262451
  join155(onDisk, "index.js")
262297
262452
  ];
262298
262453
  for (const abs of candidates) {
262299
- if (!existsSync123(abs) || statSync42(abs).isDirectory()) continue;
262454
+ if (!existsSync123(abs) || statSync43(abs).isDirectory()) continue;
262300
262455
  const key4 = `/tier5-src/${relative29(tier5SrcDir, abs).split(sep31).join(posix3.sep)}`;
262301
262456
  if (key4 in files) break;
262302
262457
  files[key4] = readFileSync145(abs, "utf8");
@@ -262553,7 +262708,7 @@ __export(shot_files_exports, {
262553
262708
  writeScreenShot: () => writeScreenShot
262554
262709
  });
262555
262710
  import { createHash as createHash83 } from "node:crypto";
262556
- import { mkdirSync as mkdirSync56, readdirSync as readdirSync54, readFileSync as readFileSync147, rmSync as rmSync35, statSync as statSync43 } from "node:fs";
262711
+ import { mkdirSync as mkdirSync56, readdirSync as readdirSync54, readFileSync as readFileSync147, rmSync as rmSync35, statSync as statSync44 } from "node:fs";
262557
262712
  import { basename as basename37, dirname as dirname71, join as join157, relative as relative30, resolve as resolve99, sep as sep32 } from "node:path";
262558
262713
  function writeAtomic2(file2, bytes2) {
262559
262714
  for (let attempt2 = 0; ; attempt2++) {
@@ -262661,7 +262816,7 @@ function listFiles4(root, keep) {
262661
262816
  }
262662
262817
  function mtimeOf(file2) {
262663
262818
  try {
262664
- return statSync43(file2).mtimeMs;
262819
+ return statSync44(file2).mtimeMs;
262665
262820
  } catch {
262666
262821
  return null;
262667
262822
  }
@@ -264063,7 +264218,7 @@ var PAGE_CLIENT_SOURCE;
264063
264218
  var init_page_client_generated = __esm({
264064
264219
  "../../core/sdk/webview-page/src/page-client.generated.ts"() {
264065
264220
  init_define_HHP_CATALOG();
264066
- PAGE_CLIENT_SOURCE = '(function () {\nvar __himalayaPageClientModule = (() => {\n var __defProp = Object.defineProperty;\n var __getOwnPropDesc = Object.getOwnPropertyDescriptor;\n var __getOwnPropNames = Object.getOwnPropertyNames;\n var __hasOwnProp = Object.prototype.hasOwnProperty;\n var __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n };\n var __copyProps = (to, from, except, desc) => {\n if (from && typeof from === "object" || typeof from === "function") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n };\n var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);\n\n // src/client.ts\n var client_exports = {};\n __export(client_exports, {\n createPageClient: () => createPageClient\n });\n var TIMEOUT_PREFIX = "Himalaya capability call timed out";\n function pageError(error) {\n const out = new Error(error?.message ?? "Himalaya capability call failed");\n if (error?.code) Object.assign(out, { code: error.code });\n return out;\n }\n function createPageClient(getBridge) {\n const pending = /* @__PURE__ */ new Map();\n const abandoned = /* @__PURE__ */ new Set();\n const streams = /* @__PURE__ */ new Map();\n const listeners = /* @__PURE__ */ new Map();\n let installedOn;\n let nextId = 1;\n const clientTag = Math.random().toString(36).slice(2, 10) || "0";\n function workerBridge() {\n const bridge = getBridge();\n if (!bridge || typeof bridge.post !== "function" || typeof bridge.onMessage !== "function") {\n throw new Error(\n "@himalaya/webview-page: this page is not inside a worker-backed Himalaya WebView."\n );\n }\n if (installedOn !== bridge) {\n bridge.onMessage(receive);\n installedOn = bridge;\n }\n return bridge;\n }\n function receive(message) {\n if (!message || typeof message !== "object" || message.v !== 1) return;\n const m = message;\n if (typeof m.id === "string" && typeof m.ok === "boolean") return respond(m);\n if (typeof m.ev === "string" && typeof m.ns === "string") return emit(m);\n if (typeof m.sid === "string") return feed(m);\n }\n function respond(message) {\n const call2 = pending.get(message.id);\n if (!call2) {\n if (abandoned.delete(message.id) && message.ok && message.stream === true) cancelStream(message.id);\n return;\n }\n pending.delete(message.id);\n clearTimeout(call2.timeout);\n if (!message.ok) return call2.reject(pageError(message.error));\n if (message.stream === true) return call2.resolve(openStream(message.id));\n call2.resolve(message.result);\n }\n function emit(event) {\n const handlers = listeners.get(event.ns)?.get(event.ev);\n if (!handlers) return;\n for (const handler of [...handlers]) {\n try {\n handler(event.data);\n } catch {\n }\n }\n }\n function feed(envelope) {\n const state = streams.get(envelope.sid);\n if (!state) return;\n if (!("chunk" in envelope) && !("end" in envelope && envelope.end === true) && !("error" in envelope && envelope.error)) return;\n if ("chunk" in envelope) {\n const waiter = state.waiters.shift();\n if (waiter) waiter.resolve({ value: envelope.chunk, done: false });\n else state.queue.push(envelope.chunk);\n return;\n }\n streams.delete(envelope.sid);\n if ("error" in envelope && envelope.error) {\n state.error = pageError(envelope.error);\n if (state.waiters.length > 0) {\n for (const waiter of state.waiters.splice(0)) waiter.reject(state.error);\n state.error = void 0;\n state.done = true;\n }\n } else if ("end" in envelope && envelope.end === true) {\n state.done = true;\n for (const waiter of state.waiters.splice(0)) waiter.resolve({ value: void 0, done: true });\n }\n }\n function cancelStream(sid) {\n try {\n installedOn?.post({ v: 1, sys: "cancel", sid });\n } catch {\n }\n }\n function openStream(sid) {\n const state = { queue: [], waiters: [], done: false, error: void 0 };\n streams.set(sid, state);\n const iterator = {\n next() {\n if (state.queue.length > 0) return Promise.resolve({ value: state.queue.shift(), done: false });\n if (state.error) {\n const error = state.error;\n state.error = void 0;\n state.done = true;\n return Promise.reject(error);\n }\n if (state.done) return Promise.resolve({ value: void 0, done: true });\n return new Promise((resolve, reject) => state.waiters.push({ resolve, reject }));\n },\n return() {\n if (streams.get(sid) === state) {\n streams.delete(sid);\n cancelStream(sid);\n }\n state.done = true;\n state.queue.length = 0;\n for (const waiter of state.waiters.splice(0)) waiter.resolve({ value: void 0, done: true });\n return Promise.resolve({ value: void 0, done: true });\n }\n };\n return { [Symbol.asyncIterator]: () => iterator };\n }\n function call(capability, method, args = [], timeoutMs = 3e4) {\n const bridge = workerBridge();\n const id = `page-${Date.now().toString(36)}-${clientTag}-${nextId++}`;\n const request = { v: 1, id, capability, method, args };\n return new Promise((resolve, reject) => {\n const timeout = setTimeout(() => {\n pending.delete(id);\n abandoned.add(id);\n if (abandoned.size > 256) abandoned.delete(abandoned.values().next().value);\n reject(new Error(`${TIMEOUT_PREFIX}: ${capability}.${method}`));\n }, timeoutMs);\n pending.set(id, { resolve, reject, timeout });\n if (!bridge.post(request)) {\n clearTimeout(timeout);\n pending.delete(id);\n reject(new Error("@himalaya/webview-page: the native page-to-worker bridge refused the request."));\n }\n });\n }\n function on(namespace2, event, handler) {\n workerBridge();\n if (typeof handler !== "function") throw new Error("@himalaya/webview-page: on() needs a handler function");\n let byEvent = listeners.get(namespace2);\n if (!byEvent) listeners.set(namespace2, byEvent = /* @__PURE__ */ new Map());\n let handlers = byEvent.get(event);\n if (!handlers) byEvent.set(event, handlers = /* @__PURE__ */ new Set());\n const entry = (data) => handler(data);\n handlers.add(entry);\n return () => {\n handlers.delete(entry);\n };\n }\n let manifest;\n function currentBridge() {\n try {\n return workerBridge();\n } catch {\n return void 0;\n }\n }\n function timedOut(error) {\n return error instanceof Error && error.message.startsWith(TIMEOUT_PREFIX);\n }\n let asking;\n function askShared(target, budget) {\n const until = Date.now() + budget;\n if (asking?.on === target) {\n asking.until = Math.max(asking.until, until);\n return asking.answer;\n }\n const state = { on: target, until, answer: Promise.resolve(null) };\n asking = state;\n state.answer = new Promise((resolve) => {\n let done = false;\n const finish = (list) => {\n if (done) return;\n done = true;\n clearInterval(again);\n if (asking === state) asking = void 0;\n if (list) manifest = { on: target, list };\n resolve(list);\n };\n const ask = () => {\n if (done) return;\n const left = state.until - Date.now();\n if (left <= 0 || currentBridge() !== target) return finish(null);\n call("himalaya", "capabilities", [], Math.max(1, Math.min(2e3, left))).then(\n (reply) => finish(reply?.capabilities ?? null),\n // A timed-out question is not an answer; the deadline decides. Anything else is final.\n (error) => {\n if (!timedOut(error)) finish(null);\n }\n );\n };\n const again = setInterval(ask, 500);\n ask();\n });\n return state.answer;\n }\n async function enabledCapabilities(timeoutMs = 3e3) {\n const bridge = currentBridge();\n if (!bridge) return null;\n if (manifest?.on === bridge) return manifest.list;\n if (!(timeoutMs > 0)) return null;\n const budget = Math.min(timeoutMs, 2147483647);\n const answer = askShared(bridge, budget);\n return new Promise((resolve) => {\n const stop = setTimeout(() => resolve(manifest?.on === bridge ? manifest.list : null), budget);\n void answer.then((list) => {\n clearTimeout(stop);\n resolve(list);\n });\n });\n }\n async function isEnabled(capability, method, timeoutMs = 3e3) {\n const enabled = await enabledCapabilities(timeoutMs);\n return enabled?.[capability]?.includes(method) ?? false;\n }\n async function probe(capability, method, args = [], timeoutMs = 3e3) {\n if (!currentBridge()) return false;\n try {\n const result = await call(capability, method, args, timeoutMs);\n const iterate = result?.[Symbol.asyncIterator];\n if (typeof iterate === "function") void iterate.call(result).return?.();\n return true;\n } catch (error) {\n if (error.code === "unknown_method") return false;\n return !(timedOut(error) || /refused the request/.test(error.message));\n }\n }\n const members = /* @__PURE__ */ new Map();\n function pageMember(capability, path) {\n const key = `${capability}:${path.join(".")}`;\n let member = members.get(key);\n if (member) return member;\n const label = `[himalaya.${[capability, ...path].join(".")}]`;\n member = new Proxy((() => {\n }), {\n get(_target, property) {\n if (typeof property !== "string" || property === "then") return void 0;\n if (property === "toString" || property === "valueOf") return () => label;\n if (path.length === 0 && property === "on") {\n return (event, handler) => on(capability, event, handler);\n }\n return pageMember(capability, [...path, property]);\n },\n apply(_target, _thisArg, args) {\n if (path.length === 0) throw new Error(`Himalaya capability namespace is not callable: ${capability}`);\n return call(capability, path.join("."), args);\n }\n });\n members.set(key, member);\n return member;\n }\n const namespace = (capability) => pageMember(capability, []);\n const SITE_FIELDS = ["title", "route", "cart", "member"];\n const site = Object.freeze({\n report(fields) {\n const bridge = currentBridge();\n if (!bridge || !fields || typeof fields !== "object") return false;\n const data = {};\n for (const name of SITE_FIELDS) {\n if (Object.prototype.hasOwnProperty.call(fields, name)) data[name] = fields[name];\n }\n if (Object.keys(data).length === 0) return false;\n try {\n return bridge.post({ v: 1, sys: "site", ev: "report", data }) === true;\n } catch {\n return false;\n }\n }\n });\n function merge(target) {\n const own = { call, on, enabledCapabilities, isEnabled, probe, site, version: 1 };\n for (const name of Object.keys(own)) {\n if (!Object.prototype.hasOwnProperty.call(target, name)) {\n Object.defineProperty(target, name, { value: own[name], enumerable: true, writable: false, configurable: false });\n }\n }\n Object.freeze(target);\n return new Proxy(target, {\n get(t, property, receiver) {\n if (typeof property !== "string" || property in t) return Reflect.get(t, property, receiver);\n if (property === "then") return void 0;\n return namespace(property);\n }\n });\n }\n return { call, on, enabledCapabilities, isEnabled, probe, namespace, site, merge };\n }\n return __toCommonJS(client_exports);\n})();\nreturn __himalayaPageClientModule.createPageClient;\n})()';
264221
+ PAGE_CLIENT_SOURCE = '(function () {\nvar __himalayaPageClientModule = (() => {\n var __defProp = Object.defineProperty;\n var __getOwnPropDesc = Object.getOwnPropertyDescriptor;\n var __getOwnPropNames = Object.getOwnPropertyNames;\n var __hasOwnProp = Object.prototype.hasOwnProperty;\n var __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n };\n var __copyProps = (to, from, except, desc) => {\n if (from && typeof from === "object" || typeof from === "function") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n };\n var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);\n\n // src/client.ts\n var client_exports = {};\n __export(client_exports, {\n createPageClient: () => createPageClient\n });\n var TIMEOUT_PREFIX = "Himalaya capability call timed out";\n function pageError(error) {\n const out = new Error(error?.message ?? "Himalaya capability call failed");\n if (error?.code) Object.assign(out, { code: error.code });\n return out;\n }\n function createPageClient(getBridge) {\n const pending = /* @__PURE__ */ new Map();\n const abandoned = /* @__PURE__ */ new Set();\n const streams = /* @__PURE__ */ new Map();\n const listeners = /* @__PURE__ */ new Map();\n let installedOn;\n let nextId = 1;\n const clientTag = Math.random().toString(36).slice(2, 10) || "0";\n function workerBridge() {\n const bridge = getBridge();\n if (!bridge || typeof bridge.post !== "function" || typeof bridge.onMessage !== "function") {\n throw new Error(\n "@himalaya/webview-page: this page is not inside a worker-backed Himalaya WebView."\n );\n }\n if (installedOn !== bridge) {\n bridge.onMessage(receive);\n installedOn = bridge;\n }\n return bridge;\n }\n function receive(message) {\n if (!message || typeof message !== "object" || message.v !== 1) return;\n const m = message;\n if (typeof m.id === "string" && typeof m.ok === "boolean") return respond(m);\n if (typeof m.ev === "string" && typeof m.ns === "string") return emit(m);\n if (typeof m.sid === "string") return feed(m);\n }\n function respond(message) {\n const call2 = pending.get(message.id);\n if (!call2) {\n if (abandoned.delete(message.id) && message.ok && message.stream === true) cancelStream(message.id);\n return;\n }\n pending.delete(message.id);\n clearTimeout(call2.timeout);\n if (!message.ok) return call2.reject(pageError(message.error));\n if (message.stream === true) return call2.resolve(openStream(message.id));\n call2.resolve(message.result);\n }\n function emit(event) {\n const handlers = listeners.get(event.ns)?.get(event.ev);\n if (!handlers) return;\n for (const handler of [...handlers]) {\n try {\n handler(event.data);\n } catch {\n }\n }\n }\n function feed(envelope) {\n const state = streams.get(envelope.sid);\n if (!state) return;\n if (!("chunk" in envelope) && !("end" in envelope && envelope.end === true) && !("error" in envelope && envelope.error)) return;\n if ("chunk" in envelope) {\n const waiter = state.waiters.shift();\n if (waiter) waiter.resolve({ value: envelope.chunk, done: false });\n else state.queue.push(envelope.chunk);\n return;\n }\n streams.delete(envelope.sid);\n if ("error" in envelope && envelope.error) {\n state.error = pageError(envelope.error);\n if (state.waiters.length > 0) {\n for (const waiter of state.waiters.splice(0)) waiter.reject(state.error);\n state.error = void 0;\n state.done = true;\n }\n } else if ("end" in envelope && envelope.end === true) {\n state.done = true;\n for (const waiter of state.waiters.splice(0)) waiter.resolve({ value: void 0, done: true });\n }\n }\n function cancelStream(sid) {\n try {\n installedOn?.post({ v: 1, sys: "cancel", sid });\n } catch {\n }\n }\n function openStream(sid) {\n const state = { queue: [], waiters: [], done: false, error: void 0 };\n streams.set(sid, state);\n const iterator = {\n next() {\n if (state.queue.length > 0) return Promise.resolve({ value: state.queue.shift(), done: false });\n if (state.error) {\n const error = state.error;\n state.error = void 0;\n state.done = true;\n return Promise.reject(error);\n }\n if (state.done) return Promise.resolve({ value: void 0, done: true });\n return new Promise((resolve, reject) => state.waiters.push({ resolve, reject }));\n },\n return() {\n if (streams.get(sid) === state) {\n streams.delete(sid);\n cancelStream(sid);\n }\n state.done = true;\n state.queue.length = 0;\n for (const waiter of state.waiters.splice(0)) waiter.resolve({ value: void 0, done: true });\n return Promise.resolve({ value: void 0, done: true });\n }\n };\n return { [Symbol.asyncIterator]: () => iterator };\n }\n function call(capability, method, args = [], timeoutMs = 3e4) {\n const bridge = workerBridge();\n const id = `page-${Date.now().toString(36)}-${clientTag}-${nextId++}`;\n const request = { v: 1, id, capability, method, args };\n return new Promise((resolve, reject) => {\n const timeout = setTimeout(() => {\n pending.delete(id);\n abandoned.add(id);\n if (abandoned.size > 256) abandoned.delete(abandoned.values().next().value);\n reject(new Error(`${TIMEOUT_PREFIX}: ${capability}.${method}`));\n }, timeoutMs);\n pending.set(id, { resolve, reject, timeout });\n if (!bridge.post(request)) {\n clearTimeout(timeout);\n pending.delete(id);\n reject(new Error("@himalaya/webview-page: the native page-to-worker bridge refused the request."));\n }\n });\n }\n function on(namespace2, event, handler) {\n workerBridge();\n if (typeof handler !== "function") throw new Error("@himalaya/webview-page: on() needs a handler function");\n let byEvent = listeners.get(namespace2);\n if (!byEvent) listeners.set(namespace2, byEvent = /* @__PURE__ */ new Map());\n let handlers = byEvent.get(event);\n if (!handlers) byEvent.set(event, handlers = /* @__PURE__ */ new Set());\n const entry = (data) => handler(data);\n handlers.add(entry);\n return () => {\n handlers.delete(entry);\n };\n }\n const MANIFEST_TTL_MS = 1e3;\n let manifest;\n const fresh = (bridge) => manifest?.on === bridge && Date.now() - manifest.at < MANIFEST_TTL_MS;\n function currentBridge() {\n try {\n return workerBridge();\n } catch {\n return void 0;\n }\n }\n function timedOut(error) {\n return error instanceof Error && error.message.startsWith(TIMEOUT_PREFIX);\n }\n let asking;\n function askShared(target, budget) {\n const until = Date.now() + budget;\n if (asking?.on === target) {\n asking.until = Math.max(asking.until, until);\n return asking.answer;\n }\n const state = { on: target, until, answer: Promise.resolve(null) };\n asking = state;\n state.answer = new Promise((resolve) => {\n let done = false;\n const finish = (list) => {\n if (done) return;\n done = true;\n clearInterval(again);\n if (asking === state) asking = void 0;\n if (list) manifest = { on: target, list, at: Date.now() };\n resolve(list);\n };\n const ask = () => {\n if (done) return;\n const left = state.until - Date.now();\n if (left <= 0 || currentBridge() !== target) return finish(null);\n call("himalaya", "capabilities", [], Math.max(1, Math.min(2e3, left))).then(\n (reply) => finish(reply?.capabilities ?? null),\n // A timed-out question is not an answer; the deadline decides. Anything else is final.\n (error) => {\n if (!timedOut(error)) finish(null);\n }\n );\n };\n const again = setInterval(ask, 500);\n ask();\n });\n return state.answer;\n }\n async function enabledCapabilities(timeoutMs = 3e3) {\n const bridge = currentBridge();\n if (!bridge) return null;\n if (fresh(bridge)) return manifest.list;\n if (!(timeoutMs > 0)) return manifest?.on === bridge ? manifest.list : null;\n const budget = Math.min(timeoutMs, 2147483647);\n const answer = askShared(bridge, budget);\n return new Promise((resolve) => {\n const stop = setTimeout(() => resolve(manifest?.on === bridge ? manifest.list : null), budget);\n void answer.then((list) => {\n clearTimeout(stop);\n resolve(list ?? (manifest?.on === bridge ? manifest.list : null));\n });\n });\n }\n async function isEnabled(capability, method, timeoutMs = 3e3) {\n const enabled = await enabledCapabilities(timeoutMs);\n return enabled?.[capability]?.includes(method) ?? false;\n }\n async function probe(capability, method, args = [], timeoutMs = 3e3) {\n if (!currentBridge()) return false;\n try {\n const result = await call(capability, method, args, timeoutMs);\n const iterate = result?.[Symbol.asyncIterator];\n if (typeof iterate === "function") void iterate.call(result).return?.();\n return true;\n } catch (error) {\n if (error.code === "unknown_method") return false;\n return !(timedOut(error) || /refused the request/.test(error.message));\n }\n }\n const members = /* @__PURE__ */ new Map();\n function pageMember(capability, path) {\n const key = `${capability}:${path.join(".")}`;\n let member = members.get(key);\n if (member) return member;\n const label = `[himalaya.${[capability, ...path].join(".")}]`;\n member = new Proxy((() => {\n }), {\n get(_target, property) {\n if (typeof property !== "string" || property === "then") return void 0;\n if (property === "toString" || property === "valueOf") return () => label;\n if (path.length === 0 && property === "on") {\n return (event, handler) => on(capability, event, handler);\n }\n return pageMember(capability, [...path, property]);\n },\n apply(_target, _thisArg, args) {\n if (path.length === 0) throw new Error(`Himalaya capability namespace is not callable: ${capability}`);\n return call(capability, path.join("."), args);\n }\n });\n members.set(key, member);\n return member;\n }\n const namespace = (capability) => pageMember(capability, []);\n const SITE_FIELDS = ["title", "route", "cart", "member"];\n const site = Object.freeze({\n report(fields) {\n const bridge = currentBridge();\n if (!bridge || !fields || typeof fields !== "object") return false;\n const data = {};\n for (const name of SITE_FIELDS) {\n if (Object.prototype.hasOwnProperty.call(fields, name)) data[name] = fields[name];\n }\n if (Object.keys(data).length === 0) return false;\n try {\n return bridge.post({ v: 1, sys: "site", ev: "report", data }) === true;\n } catch {\n return false;\n }\n }\n });\n function merge(target) {\n const own = { call, on, enabledCapabilities, isEnabled, probe, site, version: 1 };\n for (const name of Object.keys(own)) {\n if (!Object.prototype.hasOwnProperty.call(target, name)) {\n Object.defineProperty(target, name, { value: own[name], enumerable: true, writable: false, configurable: false });\n }\n }\n Object.freeze(target);\n return new Proxy(target, {\n get(t, property, receiver) {\n if (typeof property !== "string" || property in t) return Reflect.get(t, property, receiver);\n if (property === "then") return void 0;\n return namespace(property);\n }\n });\n }\n return { call, on, enabledCapabilities, isEnabled, probe, namespace, site, merge };\n }\n return __toCommonJS(client_exports);\n})();\nreturn __himalayaPageClientModule.createPageClient;\n})()';
264067
264222
  }
264068
264223
  });
264069
264224
 
@@ -264822,7 +264977,7 @@ __export(render_cache_exports, {
264822
264977
  });
264823
264978
  import { AsyncLocalStorage as AsyncLocalStorage4 } from "node:async_hooks";
264824
264979
  import { createHash as createHash85, randomBytes as randomBytes20 } from "node:crypto";
264825
- import { existsSync as existsSync133, lstatSync as lstatSync36, mkdirSync as mkdirSync59, readdirSync as readdirSync56, readFileSync as readFileSync155, readlinkSync as readlinkSync3, realpathSync as realpathSync19, renameSync as renameSync20, rmSync as rmSync37, statSync as statSync44, writeFileSync as writeFileSync61 } from "node:fs";
264980
+ import { existsSync as existsSync133, lstatSync as lstatSync36, mkdirSync as mkdirSync59, readdirSync as readdirSync56, readFileSync as readFileSync155, readlinkSync as readlinkSync3, realpathSync as realpathSync19, renameSync as renameSync20, rmSync as rmSync37, statSync as statSync45, writeFileSync as writeFileSync61 } from "node:fs";
264826
264981
  import { join as join166, resolve as resolve102 } from "node:path";
264827
264982
  import { fileURLToPath as fileURLToPath35 } from "node:url";
264828
264983
  function renderCacheKey(contentDir2, inputs) {
@@ -264852,7 +265007,7 @@ function renderCacheKey(contentDir2, inputs) {
264852
265007
  }
264853
265008
  function statOrNull(path2) {
264854
265009
  try {
264855
- return statSync44(path2);
265010
+ return statSync45(path2);
264856
265011
  } catch {
264857
265012
  return null;
264858
265013
  }
@@ -264926,7 +265081,7 @@ function cliFingerprint(version5, monorepo) {
264926
265081
  let entry = "";
264927
265082
  try {
264928
265083
  const file2 = fileURLToPath35(import.meta.url);
264929
- const st2 = statSync44(file2);
265084
+ const st2 = statSync45(file2);
264930
265085
  entry = `${file2}:${st2.size}:${st2.mtimeMs}`;
264931
265086
  } catch {
264932
265087
  }
@@ -264960,7 +265115,7 @@ function keepBuild(contentDir2, key4, buildDir, build3) {
264960
265115
  else renameSync20(buildDir, dest);
264961
265116
  for (const name of readdirSync56(root)) {
264962
265117
  const path2 = join166(root, name);
264963
- if (name.startsWith(".build-") ? Date.now() - statSync44(path2).mtimeMs > 36e5 : name !== key4) {
265118
+ if (name.startsWith(".build-") ? Date.now() - statSync45(path2).mtimeMs > 36e5 : name !== key4) {
264964
265119
  rmSync37(path2, { recursive: true, force: true });
264965
265120
  }
264966
265121
  }
@@ -265106,13 +265261,23 @@ async function renderBuild(dir, app2, a3, opts) {
265106
265261
  };
265107
265262
  const keyBefore = keyNow();
265108
265263
  const kept = keyBefore && !opts.noCache ? readKeptBuild2(dir, keyBefore) : null;
265264
+ const trace = process.env.HIMI_RENDER_CACHE_TRACE === "1" ? (fields2) => process.stderr.write(`himi-render-cache ${JSON.stringify({ key: keyBefore, inputs, ...fields2 })}
265265
+ `) : null;
265109
265266
  if (kept && envUnchanged2(kept.build.env)) {
265110
265267
  try {
265111
265268
  const release4 = await loadReleaseFromDir(app2, kept.releaseDir);
265112
265269
  const renders = await a3.renderFromContent(dir, kept.releaseDir, { ...kept.build.ownBundles ? { tier5Dir: a3.bundleOutDir(dir) } : {}, render: opts.render, failedToBuild: failedScreenIds(kept.build.failedToBuild) });
265113
- if (renders) return { build: "reused", renders, kept: kept.build, release: release4 };
265114
- } catch {
265270
+ if (renders) {
265271
+ trace?.({ build: "reused" });
265272
+ return { build: "reused", renders, kept: kept.build, release: release4 };
265273
+ }
265274
+ trace?.({ declined: "the kept build no longer serves a screen it made" });
265275
+ } catch (e2) {
265276
+ trace?.({ declined: `reading the kept build failed: ${e2 instanceof Error ? e2.message : String(e2)}` });
265115
265277
  }
265278
+ } else if (trace) {
265279
+ const changed = kept ? Object.entries(kept.build.env ?? {}).filter(([name]) => !envUnchanged2({ [name]: kept.build.env[name] })).map(([name]) => name) : [];
265280
+ trace({ declined: opts.noCache ? "--no-cache" : !keyBefore ? "no key" : !kept ? "no build kept under this key" : `environment changed: ${changed.join(", ")}` });
265116
265281
  }
265117
265282
  const buildDir = newBuildDir2(dir);
265118
265283
  try {
@@ -265142,6 +265307,7 @@ async function renderBuild(dir, app2, a3, opts) {
265142
265307
  const key4 = bres.compileErrors.length === 0 ? keyNow() : null;
265143
265308
  if (key4 && key4 === keyBefore) keepBuild2(dir, key4, buildDir, build3);
265144
265309
  else dropBuildDir2(buildDir);
265310
+ trace?.({ build: "built", kept: Boolean(key4 && key4 === keyBefore), ...key4 === keyBefore ? {} : { keyAfter: key4, compileErrors: bres.compileErrors.length } });
265145
265311
  return { build: "built", renders: outcome.renders ?? [], kept: build3, release: release4 };
265146
265312
  } catch (e2) {
265147
265313
  dropBuildDir2(buildDir);
@@ -266370,7 +266536,7 @@ var init_icons2 = __esm({
266370
266536
  });
266371
266537
 
266372
266538
  // src/commands/pull.ts
266373
- import { existsSync as existsSync136, readdirSync as readdirSync58, statSync as statSync45 } from "node:fs";
266539
+ import { existsSync as existsSync136, readdirSync as readdirSync58, statSync as statSync46 } from "node:fs";
266374
266540
  import { join as join170, resolve as resolve104 } from "node:path";
266375
266541
  async function pullCommand(ctx) {
266376
266542
  const { io: io2, pos, flags, print, client: client4 } = ctx;
@@ -266394,7 +266560,7 @@ async function pullCommand(ctx) {
266394
266560
  return 1;
266395
266561
  }
266396
266562
  if (existsSync136(dest)) {
266397
- if (!statSync45(dest).isDirectory()) {
266563
+ if (!statSync46(dest).isDirectory()) {
266398
266564
  io2.error(JSON.stringify({
266399
266565
  error: `${dest} exists and is not a directory`,
266400
266566
  hint: "pass --out/--name to land somewhere else, or remove the file"
@@ -267942,7 +268108,7 @@ __export(login_refresh_exports, {
267942
268108
  isStoredLogin: () => isStoredLogin,
267943
268109
  refreshStoredLogin: () => refreshStoredLogin
267944
268110
  });
267945
- import { closeSync as closeSync13, openSync as openSync12, statSync as statSync46, unlinkSync as unlinkSync10 } from "node:fs";
268111
+ import { closeSync as closeSync13, openSync as openSync12, statSync as statSync47, unlinkSync as unlinkSync10 } from "node:fs";
267946
268112
  function federatedTokenNeedsRefresh(token, nowSec) {
267947
268113
  if (!token) return false;
267948
268114
  const c2 = decodeControlTokenClaims(token);
@@ -267964,7 +268130,7 @@ async function withLock2(path2, deps, fn2, onTimeout) {
267964
268130
  break;
267965
268131
  } catch {
267966
268132
  try {
267967
- if (Date.now() - statSync46(lock).mtimeMs > LOCK_STALE_MS) {
268133
+ if (Date.now() - statSync47(lock).mtimeMs > LOCK_STALE_MS) {
267968
268134
  unlinkSync10(lock);
267969
268135
  continue;
267970
268136
  }
@@ -269264,13 +269430,13 @@ var init_pack3 = __esm({
269264
269430
  });
269265
269431
 
269266
269432
  // src/commands/import.ts
269267
- import { existsSync as existsSync139, readdirSync as readdirSync59, statSync as statSync47 } from "node:fs";
269433
+ import { existsSync as existsSync139, readdirSync as readdirSync59, statSync as statSync48 } from "node:fs";
269268
269434
  import { resolve as resolve107 } from "node:path";
269269
269435
  function restoreDestinationIssue(dest, force) {
269270
269436
  const link4 = symlinkDestinationIssue(dest);
269271
269437
  if (link4) return link4;
269272
269438
  if (!existsSync139(dest)) return null;
269273
- if (!statSync47(dest).isDirectory()) {
269439
+ if (!statSync48(dest).isDirectory()) {
269274
269440
  return { error: `${dest} exists and is not a directory`, hint: "pass --out/--name to land somewhere else, or remove the file" };
269275
269441
  }
269276
269442
  if (readdirSync59(dest).length > 0 && !force) {
@@ -270841,6 +271007,41 @@ ${releaseId}`;
270841
271007
  }
270842
271008
  return m2;
270843
271009
  }
271010
+ const RECENT_LIVE_RELEASES = 5;
271011
+ const RECENT_LIVE_GRACE_MS = 24 * 60 * 60 * 1e3;
271012
+ const RECENT_LIVE_CACHE_CAP = 500;
271013
+ const recentLiveCache = /* @__PURE__ */ new Map();
271014
+ async function recentLiveAssets(app2, currentId) {
271015
+ const hit = recentLiveCache.get(app2);
271016
+ if (hit && hit.currentId === currentId && Date.now() - hit.at < manifestCacheTtlMs) return hit.bySha;
271017
+ const store = await getStore();
271018
+ const bySha = /* @__PURE__ */ new Map();
271019
+ if (!store.getWipRecord || !store.getManifestById) return bySha;
271020
+ let ids2;
271021
+ try {
271022
+ const promoted = normalizeWipRecord(await store.getWipRecord(app2)).promoted;
271023
+ const now = Date.now();
271024
+ ids2 = [];
271025
+ for (let i2 = promoted.length - 1; i2 >= 0 && ids2.length < RECENT_LIVE_RELEASES; i2--) {
271026
+ if (promoted[i2].id === currentId) continue;
271027
+ const replacedAt = i2 + 1 < promoted.length ? Date.parse(promoted[i2 + 1].at ?? "") : now;
271028
+ if (Number.isNaN(replacedAt) || now - replacedAt > RECENT_LIVE_GRACE_MS) break;
271029
+ ids2.push(promoted[i2].id);
271030
+ }
271031
+ const manifests = await Promise.all(ids2.map((id) => store.getManifestById(app2, id)));
271032
+ for (const m2 of manifests.reverse()) {
271033
+ for (const record6 of Object.values(m2?.assets ?? {})) bySha.set(record6.sha256, record6);
271034
+ }
271035
+ } catch {
271036
+ return bySha;
271037
+ }
271038
+ if (!recentLiveCache.has(app2) && recentLiveCache.size >= RECENT_LIVE_CACHE_CAP) {
271039
+ const oldest3 = recentLiveCache.keys().next().value;
271040
+ if (oldest3 !== void 0) recentLiveCache.delete(oldest3);
271041
+ }
271042
+ recentLiveCache.set(app2, { currentId, at: Date.now(), bySha });
271043
+ return bySha;
271044
+ }
270844
271045
  async function pinnedBody(app2, hash3, slot) {
270845
271046
  const store = await getStore();
270846
271047
  const doc = store.getDoc ? await store.getDoc(app2, hash3) : null;
@@ -271907,7 +272108,7 @@ ${releaseId}`;
271907
272108
  const sha7 = assetMatch[1];
271908
272109
  if (!isSafeSegment(sha7)) return json6(400, { error: "bad_asset" });
271909
272110
  const m2 = pin ? await pinnedManifest(app2, pin) : await manifest2(app2);
271910
- const record6 = Object.values(m2?.assets ?? {}).find((a3) => a3.sha256 === sha7);
272111
+ const record6 = Object.values(m2?.assets ?? {}).find((a3) => a3.sha256 === sha7) ?? (!pin && m2 ? (await recentLiveAssets(app2, m2.releaseId)).get(sha7) : void 0);
271911
272112
  if (!record6) return json6(404, { error: "asset_not_found", app: app2 });
271912
272113
  const etag = strongEtagForSha256(sha7);
271913
272114
  const media = record6.storage === "media";
@@ -272120,6 +272321,7 @@ var init_server3 = __esm({
272120
272321
  init_sha256();
272121
272322
  init_store();
272122
272323
  init_base64();
272324
+ init_wip_pointer();
272123
272325
  init_contract();
272124
272326
  init_preview_token();
272125
272327
  init_pinned_read();
@@ -272607,7 +272809,7 @@ var init_wix_client_id = __esm({
272607
272809
  });
272608
272810
 
272609
272811
  // src/run-godot-web.ts
272610
- import { existsSync as existsSync141, readFileSync as readFileSync163, statSync as statSync48 } from "node:fs";
272812
+ import { existsSync as existsSync141, readFileSync as readFileSync163, statSync as statSync49 } from "node:fs";
272611
272813
  import { dirname as dirname76, join as join175, resolve as resolve109 } from "node:path";
272612
272814
  import { fileURLToPath as fileURLToPath38 } from "node:url";
272613
272815
  function localGodotWebDir(env = process.env) {
@@ -272645,7 +272847,7 @@ function makeGodotWebRoute(opts = {}) {
272645
272847
  const name = url.pathname.slice(LOCAL2.length);
272646
272848
  if (!/^[A-Za-z0-9._-]+$/.test(name) || name.startsWith(".")) return new Response("bad name", { status: 400 });
272647
272849
  const file2 = join175(localDir, name);
272648
- if (!existsSync141(file2) || !statSync48(file2).isFile()) return new Response("not found", { status: 404 });
272850
+ if (!existsSync141(file2) || !statSync49(file2).isFile()) return new Response("not found", { status: 404 });
272649
272851
  const ext = name.slice(name.lastIndexOf(".") + 1);
272650
272852
  const body = request2.method === "HEAD" ? null : readFileSync163(file2);
272651
272853
  return new Response(body, {
@@ -272686,53 +272888,53 @@ var init_preview_assets_generated = __esm({
272686
272888
  init_define_HHP_CATALOG();
272687
272889
  init_preview_assets_format();
272688
272890
  PREVIEW_ASSET_MANIFEST = [
272689
- { key: "assets/DashboardHost-CZhZlclr.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "270096d74f1073588ec3efe9767754aefa46563fa79022f3aaef2178ad5ef1de" },
272690
- { key: "assets/DevDrawer-TuLSjKHe.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "b299d7dae1ca5ba453d009637dbca5554a509d6663e6ad03403f1b731d5b9e3f" },
272691
- { key: "assets/IdiomCompare-CVi8qvdJ.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "517a38b2038ff75751b56415ada6ab0953e6bd754310868a1cb49b57d3b02d31" },
272692
- { key: "assets/LightboxViewer-DwjGPYSL.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 15965, sha256: "f91044ad7787d3b90b50bbbba430ede2266e66c59b660e3c19829dccac7ccbc6" },
272693
- { key: "assets/OfflineReadingBar-BaUzKOTl.js", contentType: "application/javascript; charset=utf-8", offset: 37667, length: 1761, sha256: "dea5e6cce66ec5f9fca1be6f6600ab793829c3d3a21a16297e7147539068bdc6" },
272694
- { key: "assets/PhonePreviewControl-BFIMBA_S.js", contentType: "application/javascript; charset=utf-8", offset: 39428, length: 37851, sha256: "2b1d2dbb868b0239a9b6109546f9ed8edd6cca2b722bab5641f82fc08e991925" },
272695
- { key: "assets/SchemeCompare-BldKu2LM.js", contentType: "application/javascript; charset=utf-8", offset: 77279, length: 1858, sha256: "a59b5c64c3d02349c908fc260574b5c367ddeda21cce03bd08e5a88fbdb889b2" },
272696
- { key: "assets/TopBarSearchStates-CsObVXsh.js", contentType: "application/javascript; charset=utf-8", offset: 79137, length: 4068, sha256: "9217b1216b5e3171c3f87819acf1ff1c8220e0fb5b8b8a9dd9f0ee4686de1900" },
272697
- { key: "assets/WixFrogTelemetrySink-CNhaAkUB.js", contentType: "application/javascript; charset=utf-8", offset: 83205, length: 3515, sha256: "d9d23e9fc7aa3d562f6a689576170693dd668eaac8aadae1d4d0e8b264820684" },
272891
+ { key: "assets/DashboardHost-CKszTEHj.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "004968529b396e36b88229206fc24597bac06935b2a0ce1f1f7f7b964a2399f7" },
272892
+ { key: "assets/DevDrawer-C-AMZcB3.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "ef57c3722ba32ab72bc64664b8262c070c5bd4f071aaed71ad66b79fd7635077" },
272893
+ { key: "assets/IdiomCompare-B_iNkj-p.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "7c8ab479b179933f8b1b43ecf681fbaeb8748a564429f143ebebf688ff69433f" },
272894
+ { key: "assets/LightboxViewer-DFv1W4O7.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 15965, sha256: "95a93660140d331a3fcc9499b675234853609926c56bc3fb2f7f961ccde455ea" },
272895
+ { key: "assets/OfflineReadingBar-rfGABkrs.js", contentType: "application/javascript; charset=utf-8", offset: 37667, length: 1761, sha256: "2feae7a1bb65f583bee3cde03de32fb52cb381ae5358dbca228610ee95e13638" },
272896
+ { key: "assets/PhonePreviewControl-evgXoneT.js", contentType: "application/javascript; charset=utf-8", offset: 39428, length: 37851, sha256: "5c1b14777fa64a7ebb748013f482fdf8b7f2d75ec876b0c9b72c2601df1270e3" },
272897
+ { key: "assets/SchemeCompare-QZeSxvVJ.js", contentType: "application/javascript; charset=utf-8", offset: 77279, length: 1858, sha256: "cab2879699e31a24fefcb56f008804ba86abb6804aa0af1e7b1f8ea4ce2e6a4e" },
272898
+ { key: "assets/TopBarSearchStates-Dqe3WwHd.js", contentType: "application/javascript; charset=utf-8", offset: 79137, length: 4068, sha256: "21854a304c54f06b5903693e69874fc50c5389f0257441498335d212661432e7" },
272899
+ { key: "assets/WixFrogTelemetrySink-Dm5A9nFe.js", contentType: "application/javascript; charset=utf-8", offset: 83205, length: 3515, sha256: "db2fd40066fd2aa9ce72671898e866262cd9adbc7910237e43ba6b5bc6b57f5a" },
272698
272900
  { key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 86720, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
272699
272901
  { key: "assets/catalog-B4UJpy5D.js", contentType: "application/javascript; charset=utf-8", offset: 88912, length: 35626, sha256: "90111ffcf2d13eff399836acafd1f2b387859440a29dcd4a0afd8370915992cb" },
272700
- { key: "assets/catalogFontFaces-CBHbWmle.js", contentType: "application/javascript; charset=utf-8", offset: 124538, length: 1111, sha256: "9589a2ccd3f8994f891b0b090b246f4ed671726f7a2310efeba18a834ce1361f" },
272902
+ { key: "assets/catalogFontFaces-dljLgB5p.js", contentType: "application/javascript; charset=utf-8", offset: 124538, length: 1111, sha256: "0ce6783e7279067725b9cdc98f3c442a8c650e85e924aa1db3f620deba74ca0f" },
272701
272903
  { key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 125649, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
272702
- { key: "assets/files-transfer-CRZX2ve0.js", contentType: "application/javascript; charset=utf-8", offset: 128216, length: 6446, sha256: "8625ff2de6942659fa45a051999e108db2b30e91d17d6dfee4b1e8d65833c425" },
272904
+ { key: "assets/files-transfer-8ebG-qYT.js", contentType: "application/javascript; charset=utf-8", offset: 128216, length: 6446, sha256: "889eb515e51057c8dd5ba4cfe2580819376552e2bb45827bc03722a641629aed" },
272703
272905
  { key: "assets/frogActionMap-CTMe3Bz1.js", contentType: "application/javascript; charset=utf-8", offset: 134662, length: 1172, sha256: "9f1ce4c70a680dfb902949e1f482c7e47500b69c3350cd091b1b51d674032d53" },
272704
- { key: "assets/frogApiRules-DYVkWmoQ.js", contentType: "application/javascript; charset=utf-8", offset: 135834, length: 2207, sha256: "c3b13204422b5acfc198913872526b6de090c44cae4d34219e5f5c9d1d7d556a" },
272906
+ { key: "assets/frogApiRules-BtRnV_Vk.js", contentType: "application/javascript; charset=utf-8", offset: 135834, length: 2207, sha256: "5aa9f314e2cfe44b2dc0090008d99c45329540645473766c37ecf6fa59d36267" },
272705
272907
  { key: "assets/frogScreenMap-S_IRnz20.js", contentType: "application/javascript; charset=utf-8", offset: 138041, length: 1067, sha256: "22b2f71e1b06df8f1e79b890d47fe42e983d37865c2cc9be753e4121764c91e1" },
272706
272908
  { key: "assets/glassPreviewBrowser-OVmIRgHt.js", contentType: "application/javascript; charset=utf-8", offset: 139108, length: 6800, sha256: "3671697a4f66a1f5f68610fab57d590630be70be934f59675ef1bda9a96e6fe3" },
272707
272909
  { key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 145908, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
272708
- { key: "assets/index-Lin2rNuR.js", contentType: "application/javascript; charset=utf-8", offset: 148612, length: 1731356, sha256: "66ebbc44f9d3c5c8502a4c1214eb2f2d12587e9951d429cdc13a5bbf29e37445" },
272709
- { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1879968, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
272710
- { key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1887719, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
272711
- { key: "assets/pdf-B6sk-tIn.js", contentType: "application/javascript; charset=utf-8", offset: 1898250, length: 488215, sha256: "d7d3e5a20cf0acc0fb9058dba6f24d4c6646f0889e3a8cff510b29c41d3eafd4" },
272712
- { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2386465, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
272713
- { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2386555, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
272714
- { key: "assets/pdfDocument-Cn2YnDlb.js", contentType: "application/javascript; charset=utf-8", offset: 3703589, length: 3836, sha256: "a2f1c296d6bf3f653cf3ba8ec7974d61cc29e8e2155827aac2c10083033af5cd" },
272715
- { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3707425, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
272716
- { key: "assets/scrollLinkedRuntime-BIqAlUMg.js", contentType: "application/javascript; charset=utf-8", offset: 3709691, length: 2278, sha256: "57803c2fbad25e7f841de0bdbfb7d3cfb839ed116f7176404a8a3c136de37aae" },
272717
- { key: "assets/webviewBridgeHost-DkNvV82m.js", contentType: "application/javascript; charset=utf-8", offset: 3711969, length: 9890, sha256: "917709db1f41984a72cc343db569802ac8bf450ce85b48c55d42a5cde4ffd9ec" },
272718
- { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3721859, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
272719
- { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3726469, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
272720
- { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4215053, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
272721
- { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4305977, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
272722
- { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4396961, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
272723
- { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4487941, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
272724
- { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4578813, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
272725
- { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4669793, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
272726
- { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4778429, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
272727
- { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4887513, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
272728
- { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4996561, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
272729
- { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 5104261, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
272730
- { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5192369, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
272731
- { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5199187, length: 4924, sha256: "dc8e27296575c4c130643d51132bb9dca5bd4010bb6013bde2cadb66c5b39b17" },
272732
- { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5204111, length: 15585, sha256: "98ec60ef8f9568532f0746d1092b5c76f1c52d718365c586c8bade8f62c7c5eb" },
272733
- { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5219696, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
272734
- { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5220867, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
272735
- { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5245170, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
272910
+ { key: "assets/index-DJkXmetH.js", contentType: "application/javascript; charset=utf-8", offset: 148612, length: 1731606, sha256: "9b6080919ad5c0bdef29801e0df305527409667afcff3b05201c85594952404d" },
272911
+ { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1880218, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
272912
+ { key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1887969, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
272913
+ { key: "assets/pdf-IpAn7-Aa.js", contentType: "application/javascript; charset=utf-8", offset: 1898500, length: 488215, sha256: "a5d585737ec0f4d39abdf4a8e7c45350a720c45c62afbba5ae54265cd4d8ec70" },
272914
+ { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2386715, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
272915
+ { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2386805, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
272916
+ { key: "assets/pdfDocument-BaqtJl5g.js", contentType: "application/javascript; charset=utf-8", offset: 3703839, length: 3836, sha256: "bae3554254e7282256b7611145687773550c4af2e6ac56bb1b30dd42ead7ea3c" },
272917
+ { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3707675, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
272918
+ { key: "assets/scrollLinkedRuntime-Dz-MZRBS.js", contentType: "application/javascript; charset=utf-8", offset: 3709941, length: 2278, sha256: "b333ce5a5b379cbd4d0014aef82d2e4291b8afd53f2c6cdb487f579082c7fdfd" },
272919
+ { key: "assets/webviewBridgeHost-DrtJt-uo.js", contentType: "application/javascript; charset=utf-8", offset: 3712219, length: 9890, sha256: "3ef72e8c991999b550e696be34f1a4c0e2354c6dbff4b214b695c08487b73c5c" },
272920
+ { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3722109, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
272921
+ { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3726719, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
272922
+ { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4215303, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
272923
+ { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4306227, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
272924
+ { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4397211, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
272925
+ { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4488191, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
272926
+ { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4579063, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
272927
+ { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4670043, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
272928
+ { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4778679, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
272929
+ { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4887763, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
272930
+ { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4996811, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
272931
+ { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 5104511, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
272932
+ { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5192619, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
272933
+ { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5199437, length: 4924, sha256: "e6717291b534010ed0e9750d2da00f718b454c7b51d54628cdeac8d730fccb9c" },
272934
+ { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5204361, length: 15585, sha256: "98ec60ef8f9568532f0746d1092b5c76f1c52d718365c586c8bade8f62c7c5eb" },
272935
+ { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5219946, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
272936
+ { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5221117, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
272937
+ { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5245420, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
272736
272938
  ];
272737
272939
  }
272738
272940
  });
@@ -272752,7 +272954,7 @@ __export(run_exports, {
272752
272954
  runPackage: () => runPackage,
272753
272955
  withoutProdServe: () => withoutProdServe
272754
272956
  });
272755
- import { cpSync as cpSync2, existsSync as existsSync142, lstatSync as lstatSync38, mkdirSync as mkdirSync61, mkdtempSync as mkdtempSync12, readdirSync as readdirSync61, readFileSync as readFileSync164, rmSync as rmSync41, statSync as statSync49 } from "node:fs";
272957
+ import { cpSync as cpSync2, existsSync as existsSync142, lstatSync as lstatSync38, mkdirSync as mkdirSync61, mkdtempSync as mkdtempSync12, readdirSync as readdirSync61, readFileSync as readFileSync164, rmSync as rmSync41, statSync as statSync50 } from "node:fs";
272756
272958
  import { networkInterfaces as osNetworkInterfaces, tmpdir as tmpdir13 } from "node:os";
272757
272959
  import { dirname as dirname77, join as join176 } from "node:path";
272758
272960
  import { fileURLToPath as fileURLToPath39 } from "node:url";
@@ -272798,7 +273000,7 @@ async function fetchBytes(url) {
272798
273000
  }
272799
273001
  async function resolvePackage(source2, workDir) {
272800
273002
  const isUrl2 = /^https?:\/\//i.test(source2);
272801
- if (!isUrl2 && existsSync142(source2) && statSync49(source2).isDirectory()) {
273003
+ if (!isUrl2 && existsSync142(source2) && statSync50(source2).isDirectory()) {
272802
273004
  const appDirManifest = join176(source2, "release-manifest.json");
272803
273005
  if (existsSync142(appDirManifest)) {
272804
273006
  const link4 = firstSymlink(source2);
@@ -282732,7 +282934,7 @@ __export(preflight_app_exports, {
282732
282934
  profileAccount: () => profileAccount,
282733
282935
  readXcconfigVars: () => readXcconfigVars
282734
282936
  });
282735
- import { readFileSync as readFileSync177, existsSync as existsSync151, readdirSync as readdirSync63, statSync as statSync50 } from "node:fs";
282937
+ import { readFileSync as readFileSync177, existsSync as existsSync151, readdirSync as readdirSync63, statSync as statSync51 } from "node:fs";
282736
282938
  import { createHash as createHash94 } from "node:crypto";
282737
282939
  import { dirname as dirname81, join as join189 } from "node:path";
282738
282940
  function analyze(projectYml, storeConfig, icon, account2, adopted) {
@@ -283068,7 +283270,7 @@ function playListingAssets(app2, locale = "en-US") {
283068
283270
  for (const name of names2) {
283069
283271
  const p2 = join189(dir, name);
283070
283272
  try {
283071
- if (statSync50(p2).isFile()) return { name, bytes: readFileSync177(p2) };
283273
+ if (statSync51(p2).isFile()) return { name, bytes: readFileSync177(p2) };
283072
283274
  } catch {
283073
283275
  }
283074
283276
  }
@@ -283116,7 +283318,7 @@ function listScreenshots(app2, locale = "en-US") {
283116
283318
  if (existsSync151(legacy)) {
283117
283319
  for (const deviceDir of readdirSync63(legacy)) {
283118
283320
  const d2 = join189(legacy, deviceDir);
283119
- if (!statSync50(d2).isDirectory()) continue;
283321
+ if (!statSync51(d2).isDirectory()) continue;
283120
283322
  for (const png of readdirSync63(d2).filter((n2) => n2.endsWith(".png"))) {
283121
283323
  const sz = pngSize3(readFileSync177(join189(d2, png)));
283122
283324
  if (sz) out2.push({ name: `${deviceDir}/${png}`, w: sz.w, h: sz.h });
@@ -283131,7 +283333,7 @@ function placeholderHashes2() {
283131
283333
  for (const target of readdirSync63(templateIos)) {
283132
283334
  const p2 = join189(templateIos, target, "Assets.xcassets", "AppIcon.appiconset", "icon_1024.png");
283133
283335
  try {
283134
- if (!statSync50(p2).isFile()) continue;
283336
+ if (!statSync51(p2).isFile()) continue;
283135
283337
  return [LEGACY_PLACEHOLDER_SHA2562, createHash94("sha256").update(readFileSync177(p2)).digest("hex")];
283136
283338
  } catch {
283137
283339
  }
@@ -283167,7 +283369,7 @@ async function appIconState(iosDir) {
283167
283369
  for (const target of readdirSync63(iosDir)) {
283168
283370
  const p2 = join189(iosDir, target, "Assets.xcassets", "AppIcon.appiconset", "icon_1024.png");
283169
283371
  try {
283170
- if (!statSync50(p2).isFile()) continue;
283372
+ if (!statSync51(p2).isFile()) continue;
283171
283373
  const bytes2 = readFileSync177(p2);
283172
283374
  const hash3 = createHash94("sha256").update(bytes2).digest("hex");
283173
283375
  const pixels = await pixelIssues(bytes2);
@@ -285589,7 +285791,7 @@ var init_upgrade = __esm({
285589
285791
  });
285590
285792
 
285591
285793
  // src/commands/doctor.ts
285592
- import { statSync as statSync51, accessSync as accessSync5, constants as constants11 } from "node:fs";
285794
+ import { statSync as statSync52, accessSync as accessSync5, constants as constants11 } from "node:fs";
285593
285795
  import { join as join191 } from "node:path";
285594
285796
  async function probeReachable(url, opts = {}) {
285595
285797
  if (!url) return { url, reachable: false, error: "no url configured for this plane" };
@@ -285656,7 +285858,7 @@ function executableOnPath(name, env = process.env) {
285656
285858
  for (const suffix of suffixes) {
285657
285859
  const candidate = join191(dir, `${name}${suffix}`);
285658
285860
  try {
285659
- if (!statSync51(candidate).isFile()) continue;
285861
+ if (!statSync52(candidate).isFile()) continue;
285660
285862
  if (process.platform !== "win32") accessSync5(candidate, constants11.X_OK);
285661
285863
  return true;
285662
285864
  } catch {
@@ -289955,7 +290157,7 @@ import {
289955
290157
  realpathSync as realpathSync23,
289956
290158
  renameSync as renameSync26,
289957
290159
  rmSync as rmSync46,
289958
- statSync as statSync52,
290160
+ statSync as statSync53,
289959
290161
  writeFileSync as writeFileSync71
289960
290162
  } from "node:fs";
289961
290163
  import { basename as basename43, dirname as dirname87, join as join199, relative as relative37, resolve as resolve125 } from "node:path";
@@ -290036,7 +290238,7 @@ async function l10nCommand(ctx) {
290036
290238
  return fail18("invalid_usage", { error: "name the app: --app <slug> (in a checkout) or --content <app dir>" }, 2);
290037
290239
  }
290038
290240
  const messagesDir = resolve125(dirArg);
290039
- if (!existsSync158(messagesDir) || !statSync52(messagesDir).isDirectory()) {
290241
+ if (!existsSync158(messagesDir) || !statSync53(messagesDir).isDirectory()) {
290040
290242
  return fail18("messages_dir_not_found", { error: `${dirArg} is not a directory`, dir: messagesDir }, 1);
290041
290243
  }
290042
290244
  const fileByTag = /* @__PURE__ */ new Map();
@@ -298060,7 +298262,7 @@ var init_invite_plan = __esm({
298060
298262
  });
298061
298263
 
298062
298264
  // src/one-app/header-badges-cli.ts
298063
- import { existsSync as existsSync167, lstatSync as lstatSync42, readFileSync as readFileSync196, rmSync as rmSync50, statSync as statSync53, writeFileSync as writeFileSync79 } from "node:fs";
298265
+ import { existsSync as existsSync167, lstatSync as lstatSync42, readFileSync as readFileSync196, rmSync as rmSync50, statSync as statSync54, writeFileSync as writeFileSync79 } from "node:fs";
298064
298266
  import { join as join209, resolve as resolve130 } from "node:path";
298065
298267
  function guestSignInParams(contentDir2) {
298066
298268
  const profile = screenLoadParams(contentDir2, PROFILE_AVATAR_ITEM.onTap.params.screenId) ?? {};
@@ -298164,7 +298366,7 @@ async function runOneAppHeaderBadges(args, io2) {
298164
298366
  let configLinked = false;
298165
298367
  try {
298166
298368
  configLinked = lstatSync42(configPath).isSymbolicLink();
298167
- if (!configLinked && statSync53(configPath).isFile()) configText = readFileSync196(configPath, "utf8");
298369
+ if (!configLinked && statSync54(configPath).isFile()) configText = readFileSync196(configPath, "utf8");
298168
298370
  } catch {
298169
298371
  }
298170
298372
  const declaration2 = options2.notNewApp || !configText ? void 0 : declareNewApp(configText);
@@ -298189,7 +298391,7 @@ async function runOneAppHeaderBadges(args, io2) {
298189
298391
  let screens;
298190
298392
  try {
298191
298393
  if (configLinked) throw new Error("config.ts is a symlink: refusing to read or write through it.");
298192
- if (!statSync53(configPath).isFile()) throw new Error("config.ts is not a file.");
298394
+ if (!statSync54(configPath).isFile()) throw new Error("config.ts is not a file.");
298193
298395
  screens = contentScreens(options2.contentDir);
298194
298396
  } catch (error) {
298195
298397
  return report8(io2, false, { code: "config_uninspectable", error: error instanceof Error ? error.message : String(error), ...common2 });
@@ -302328,7 +302530,7 @@ var init_customer_build = __esm({
302328
302530
  });
302329
302531
 
302330
302532
  // src/site-analyze/apply.ts
302331
- import { existsSync as existsSync172, readFileSync as readFileSync203, writeFileSync as writeFileSync83, copyFileSync as copyFileSync4, mkdirSync as mkdirSync72, realpathSync as realpathSync25, statSync as statSync54 } from "node:fs";
302533
+ import { existsSync as existsSync172, readFileSync as readFileSync203, writeFileSync as writeFileSync83, copyFileSync as copyFileSync4, mkdirSync as mkdirSync72, realpathSync as realpathSync25, statSync as statSync55 } from "node:fs";
302332
302534
  import { dirname as dirname92, isAbsolute as isAbsolute23, join as join216, resolve as resolve135, sep as sep35 } from "node:path";
302333
302535
  import { spawnSync as spawnSync14 } from "node:child_process";
302334
302536
  function inRepoBakeRefusal(repoRoot2, shell) {
@@ -302688,7 +302890,7 @@ function buildMergedContract(options2) {
302688
302890
  }
302689
302891
  if (!real.startsWith(realRoot + sep35)) return void 0;
302690
302892
  try {
302691
- if (!statSync54(real).isFile()) return void 0;
302893
+ if (!statSync55(real).isFile()) return void 0;
302692
302894
  mkdirSync72(dirname92(to2), { recursive: true });
302693
302895
  copyFileSync4(real, to2);
302694
302896
  } catch {