@wix/himalaya-cli 0.1881.0 → 0.1883.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.
Files changed (54) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/app-info/src/index.d.ts +4 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/app-info.mjs +1 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap-checkout.mjs +1 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +1 -0
  5. package/dist/browser-plane/assets.json +5 -5
  6. package/dist/browser-plane/preview-deferred/{c0c9168ac683637ad53e3365739c050ca372b6fd84b920b90ee3050a0cafca62.bin → 5634539b1de6317bfac96d63062a0cf58803504fbb50489c6758e427a245af27.bin} +1 -1
  7. package/dist/browser-plane/sw.js +1 -1
  8. package/dist/cli.mjs +367 -271
  9. package/dist/preview-assets.generated.bin +0 -0
  10. package/package.json +2 -2
  11. package/templates/beauty-salon-owner/config.ts +22 -4
  12. package/templates/beauty-salon-owner/dev/index.ts +2 -1
  13. package/templates/beauty-salon-owner/tier5-src/_shared/owner-maestro-availability.ts +48 -0
  14. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
  15. package/templates/community-club-owner/config.ts +22 -4
  16. package/templates/community-club-owner/dev/index.ts +2 -1
  17. package/templates/community-club-owner/tier5-src/_shared/owner-maestro-availability.ts +48 -0
  18. package/templates/community-club-owner/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
  19. package/templates/events-meetups-owner/config.ts +22 -4
  20. package/templates/events-meetups-owner/dev/index.ts +2 -1
  21. package/templates/events-meetups-owner/tier5-src/_shared/owner-maestro-availability.ts +48 -0
  22. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
  23. package/templates/gym-fitness-owner/config.ts +22 -4
  24. package/templates/gym-fitness-owner/dev/index.ts +2 -1
  25. package/templates/gym-fitness-owner/tier5-src/_shared/owner-maestro-availability.ts +48 -0
  26. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
  27. package/templates/nonprofit-cause-owner/config.ts +22 -4
  28. package/templates/nonprofit-cause-owner/dev/index.ts +2 -1
  29. package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-maestro-availability.ts +48 -0
  30. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
  31. package/templates/owner-lite/config.ts +22 -4
  32. package/templates/owner-lite/dev/index.ts +2 -1
  33. package/templates/owner-lite/tier5-src/_shared/owner-maestro-availability.ts +48 -0
  34. package/templates/owner-lite/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
  35. package/templates/podcast-creator-owner/config.ts +22 -4
  36. package/templates/podcast-creator-owner/dev/index.ts +2 -1
  37. package/templates/podcast-creator-owner/tier5-src/_shared/owner-maestro-availability.ts +48 -0
  38. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
  39. package/templates/portfolio-creative-owner/config.ts +22 -4
  40. package/templates/portfolio-creative-owner/dev/index.ts +2 -1
  41. package/templates/portfolio-creative-owner/tier5-src/_shared/owner-maestro-availability.ts +48 -0
  42. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
  43. package/templates/restaurant-owner/config.ts +22 -4
  44. package/templates/restaurant-owner/dev/index.ts +2 -1
  45. package/templates/restaurant-owner/tier5-src/_shared/owner-maestro-availability.ts +48 -0
  46. package/templates/restaurant-owner/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
  47. package/templates/retail-store-owner/config.ts +22 -4
  48. package/templates/retail-store-owner/dev/index.ts +2 -1
  49. package/templates/retail-store-owner/tier5-src/_shared/owner-maestro-availability.ts +48 -0
  50. package/templates/retail-store-owner/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
  51. package/templates/yoga-studio-owner/config.ts +22 -4
  52. package/templates/yoga-studio-owner/dev/index.ts +2 -1
  53. package/templates/yoga-studio-owner/tier5-src/_shared/owner-maestro-availability.ts +48 -0
  54. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-maestro/index.ts +33 -31
package/dist/cli.mjs CHANGED
@@ -43473,6 +43473,7 @@ function shouldRevealError(args) {
43473
43473
  var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE, AUTHORED_PATTERN_LIMIT, authoredPatterns;
43474
43474
  var init_validation = __esm({
43475
43475
  "../../core/ts/src/validation.ts"() {
43476
+ "use strict";
43476
43477
  init_define_HHP_CATALOG();
43477
43478
  EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
43478
43479
  URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
@@ -50858,6 +50859,19 @@ var init_runtimeCopy_generated = __esm({
50858
50859
  "../../core/web-renderer/src/runtimeCopy.generated.ts"() {
50859
50860
  init_define_HHP_CATALOG();
50860
50861
  RUNTIME_COPY_DEFAULTS = {
50862
+ "runtime.a11y.checked": "checked",
50863
+ "runtime.a11y.collapsed": "collapsed",
50864
+ "runtime.a11y.error": "Error",
50865
+ "runtime.a11y.expanded": "expanded",
50866
+ "runtime.a11y.mixed": "mixed",
50867
+ "runtime.a11y.more": "{count} more",
50868
+ "runtime.a11y.page": "page {index} of {count}",
50869
+ "runtime.a11y.people": "{count, plural, one {# person} other {# people}}",
50870
+ "runtime.a11y.position": "{index} of {count}",
50871
+ "runtime.a11y.rating": "{value} of {max}",
50872
+ "runtime.a11y.step": "step {index} of {count}",
50873
+ "runtime.a11y.stepLabeled": "step {index} of {count}, {label}",
50874
+ "runtime.a11y.unchecked": "not checked",
50861
50875
  "runtime.auth.signOutFailed": "Couldn\u2019t sign out. Check your connection and try again.",
50862
50876
  "runtime.auth.signOutPurgeFailed": "Signed out, but this device\u2019s data couldn\u2019t be cleared. Try again.",
50863
50877
  "runtime.boot.failed": "The app couldn't start. Please try again.",
@@ -50993,6 +51007,7 @@ var init_runtimeCopy_generated = __esm({
50993
51007
  "runtime.component.webview.loading": "Loading",
50994
51008
  "runtime.component.webview.openInTab": "Open in a new tab",
50995
51009
  "runtime.component.wheel.label": "Wheel selection",
51010
+ "runtime.dialog.biometricReason": "Confirm your identity",
50996
51011
  "runtime.dialog.cancel": "Cancel",
50997
51012
  "runtime.dialog.confirm": "Confirm",
50998
51013
  "runtime.dialog.delete": "Delete",
@@ -51002,22 +51017,31 @@ var init_runtimeCopy_generated = __esm({
51002
51017
  "runtime.dialog.discard.title": "Discard changes?",
51003
51018
  "runtime.dialog.ok": "OK",
51004
51019
  "runtime.lightbox.close": "Close",
51020
+ "runtime.lightbox.export.denied": "Photo access was not granted",
51005
51021
  "runtime.lightbox.export.failed": "Couldn't save this image",
51022
+ "runtime.lightbox.export.macFailed": "Unable to export this image",
51023
+ "runtime.lightbox.export.openSettings": "Open Settings",
51006
51024
  "runtime.lightbox.export.permission": "Allow photo access in Settings to save images",
51025
+ "runtime.lightbox.export.permissionTitle": "Photo access",
51007
51026
  "runtime.lightbox.export.saved": "Saved to your photos",
51027
+ "runtime.lightbox.export.shareFailed": "Couldn't share image",
51008
51028
  "runtime.lightbox.more": "More",
51009
51029
  "runtime.lightbox.next": "Next image",
51010
51030
  "runtime.lightbox.position": "Image {index} of {count}",
51031
+ "runtime.lightbox.previewFailed": "Unable to open image preview",
51011
51032
  "runtime.lightbox.previous": "Previous image",
51012
51033
  "runtime.lightbox.save": "Save",
51013
51034
  "runtime.lightbox.share": "Share",
51014
51035
  "runtime.lightbox.viewer": "Image viewer",
51015
51036
  "runtime.nav.actionUnavailable": "Action unavailable. Please try again.",
51037
+ "runtime.nav.apps": "Apps",
51016
51038
  "runtime.nav.back": "Back",
51039
+ "runtime.nav.backToApps": "Back to apps",
51017
51040
  "runtime.nav.cancel": "Cancel",
51018
51041
  "runtime.nav.cancelSearch": "Cancel search",
51019
51042
  "runtime.nav.clearSearch": "Clear search",
51020
51043
  "runtime.nav.close": "Close",
51044
+ "runtime.nav.closeNavigation": "Close navigation",
51021
51045
  "runtime.nav.disabledSuffix": "{name}, disabled",
51022
51046
  "runtime.nav.dismiss": "Dismiss",
51023
51047
  "runtime.nav.dismissMenu": "Dismiss menu",
@@ -51025,6 +51049,7 @@ var init_runtimeCopy_generated = __esm({
51025
51049
  "runtime.nav.done": "Done",
51026
51050
  "runtime.nav.drawer": "Navigation",
51027
51051
  "runtime.nav.edit": "Edit",
51052
+ "runtime.nav.fillWindow": "Fill window",
51028
51053
  "runtime.nav.hostedAppFailed": "Couldn't open {title}.",
51029
51054
  "runtime.nav.jumpToLatest": "Jump to latest",
51030
51055
  "runtime.nav.menu": "Menu",
@@ -51043,7 +51068,9 @@ var init_runtimeCopy_generated = __esm({
51043
51068
  "runtime.nav.searchTryAgain": "Try Again",
51044
51069
  "runtime.nav.selectionCount": "{count} selected",
51045
51070
  "runtime.nav.showActions": "Show actions",
51071
+ "runtime.nav.showAsPhone": "Show as phone",
51046
51072
  "runtime.nav.stillSaving": "Still saving\u2026",
51073
+ "runtime.nav.switchApp": "Switch app",
51047
51074
  "runtime.nav.thisApp": "this app",
51048
51075
  "runtime.nav.toggleSidebar": "Toggle sidebar",
51049
51076
  "runtime.nav.voiceSearch": "Voice search",
@@ -51081,6 +51108,7 @@ var init_runtimeCopy_generated = __esm({
51081
51108
  "runtime.webview.offline.title": "You're offline",
51082
51109
  "runtime.webview.pageError": "This page couldn't be loaded",
51083
51110
  "runtime.worker.actionFailed": "That didn't work. Please try again.",
51111
+ "runtime.worker.bundleUnavailable": "This screen couldn\u2019t finish loading. Check your connection and try again.",
51084
51112
  "runtime.worker.failed": "Something went wrong while loading this screen."
51085
51113
  };
51086
51114
  RUNTIME_RENDERER_COPY = {
@@ -51113,6 +51141,7 @@ var init_runtimeCopy_generated = __esm({
51113
51141
  "runtime.component.form.loading": "Loading form\u2026",
51114
51142
  "runtime.component.form.refreshing": "Refreshing form\u2026",
51115
51143
  "runtime.component.form.unavailable": "Form unavailable. Please try again.",
51144
+ "runtime.component.image.label": "Image",
51116
51145
  "runtime.component.list.pullToRefresh": "Pull to refresh",
51117
51146
  "runtime.component.list.refreshing": "Refreshing",
51118
51147
  "runtime.component.media.audio": "Audio",
@@ -144222,7 +144251,7 @@ var init_renderNode = __esm({
144222
144251
  const boundAlt = useResolvedScalar(contentDescription, ctx);
144223
144252
  const previewTile = !!ctx.imagePreview && !ctx.imagePreviewBlocked && previewEligible({ body: { type: "Image", props: props2 } });
144224
144253
  const ownAlt = asFinalTextL10n(boundAlt, ctx);
144225
- const altText = previewTile && !String(ownAlt ?? "").trim() ? "Image" : ownAlt;
144254
+ const altText = previewTile && !String(ownAlt ?? "").trim() ? rcopy(ctx, "runtime.component.image.label") : ownAlt;
144226
144255
  const fadeIn = motionDefaultsAnimate(ctx);
144227
144256
  const [shownSrc, setShownSrc] = React22.useState(null);
144228
144257
  const imgRef = React22.useRef(null);
@@ -189727,11 +189756,49 @@ var init_prebuild = __esm({
189727
189756
  }
189728
189757
  });
189729
189758
 
189759
+ // ../native-config/jvm-source.ts
189760
+ function stripJvmComments(text32) {
189761
+ let out2 = "";
189762
+ let i2 = 0;
189763
+ while (i2 < text32.length) {
189764
+ const c2 = text32[i2];
189765
+ const next = text32[i2 + 1];
189766
+ if (c2 === "/" && next === "/") {
189767
+ while (i2 < text32.length && text32[i2] !== "\n") i2++;
189768
+ } else if (c2 === "/" && next === "*") {
189769
+ const end2 = text32.indexOf("*/", i2 + 2);
189770
+ i2 = end2 < 0 ? text32.length : end2 + 2;
189771
+ out2 += " ";
189772
+ } else if (c2 === "`") {
189773
+ const end2 = text32.indexOf("`", i2 + 1);
189774
+ const j2 = end2 < 0 || text32.slice(i2, end2).includes("\n") ? i2 + 1 : end2 + 1;
189775
+ out2 += text32.slice(i2, j2);
189776
+ i2 = j2;
189777
+ } else if (c2 === '"' || c2 === "'") {
189778
+ const quote = text32.startsWith('"""', i2) ? '"""' : c2;
189779
+ let j2 = i2 + quote.length;
189780
+ while (j2 < text32.length && !text32.startsWith(quote, j2)) j2 += text32[j2] === "\\" && quote !== '"""' ? 2 : 1;
189781
+ j2 = Math.min(text32.length, j2 + quote.length);
189782
+ out2 += text32.slice(i2, j2);
189783
+ i2 = j2;
189784
+ } else {
189785
+ out2 += c2;
189786
+ i2++;
189787
+ }
189788
+ }
189789
+ return out2;
189790
+ }
189791
+ var init_jvm_source = __esm({
189792
+ "../native-config/jvm-source.ts"() {
189793
+ init_define_HHP_CATALOG();
189794
+ }
189795
+ });
189796
+
189730
189797
  // ../native-config/native-core.ts
189731
189798
  import { execFileSync as execFileSync4 } from "node:child_process";
189732
189799
  import { existsSync as existsSync77, mkdtempSync as mkdtempSync3, readFileSync as readFileSync84, rmSync as rmSync21, writeFileSync as writeFileSync31 } from "node:fs";
189733
189800
  import { tmpdir as tmpdir4 } from "node:os";
189734
- import { isAbsolute as isAbsolute9, join as join75, relative as relative17, resolve as resolve54, sep as sep22 } from "node:path";
189801
+ import { dirname as dirname43, isAbsolute as isAbsolute9, join as join75, relative as relative17, resolve as resolve54, sep as sep22 } from "node:path";
189735
189802
  function carrierGeneratedRoot(root, carrierInstallDir) {
189736
189803
  return resolve54(root, carrierInstallDir, "generated");
189737
189804
  }
@@ -189831,13 +189898,25 @@ function renderCompat(carrier, selection) {
189831
189898
  return JSON.parse(renderCompatText(carrier, selection));
189832
189899
  }
189833
189900
  function gradleProjectReferences(gradleText) {
189834
- const text32 = gradleText.replace(/\/\*[\s\S]*?\*\//g, "").replace(/\/\/[^\n]*/g, "");
189901
+ const text32 = stripJvmComments(gradleText);
189835
189902
  return [...text32.matchAll(/\bproject\s*\(\s*(?:path\s*[=:]\s*)?["'](:[^"']+)["'][^)]*\)/g)].map((m2) => {
189836
189903
  const wrapper = /\b(\w+)\s*\(\s*$/.exec(text32.slice(Math.max(0, m2.index - 200), m2.index));
189837
189904
  const closed = /^\s*\)/.test(text32.slice(m2.index + m2[0].length));
189838
189905
  return { config: wrapper && closed ? wrapper[1] : null, project: m2[1] };
189839
189906
  });
189840
189907
  }
189908
+ function assertTestkitDependenciesWired(testkits, closure, graph) {
189909
+ for (const id of testkits) {
189910
+ for (const dep of graph[id]?.platforms.android?.dependencies ?? []) {
189911
+ if (!closure.includes(dep.id)) {
189912
+ throw new Error(`native-core: testkit ${id} depends on Core module ${dep.id}, which is not in the selection's Android closure [${closure.join(", ")}]; add ${dep.id} to the selection, or drop the testkit`);
189913
+ }
189914
+ }
189915
+ }
189916
+ }
189917
+ function referencesTestingLibrary(gradleText) {
189918
+ return gradleProjectReferences(gradleText).some((r3) => r3.project === TESTING_ANDROID_PROJECT);
189919
+ }
189841
189920
  function satelliteAndroidApiProjects(gradleText) {
189842
189921
  return gradleProjectReferences(gradleText).filter((r3) => r3.config === "api").map((r3) => r3.project);
189843
189922
  }
@@ -189854,10 +189933,12 @@ function planNativeCore(adoption, opts = {}) {
189854
189933
  const graph = readGraph(carrier);
189855
189934
  const base2 = readSatelliteSelection(root, sat);
189856
189935
  const effective = deriveEffectiveSelection(base2, adoption, adapters, graph);
189857
- const closure = renderCompat(carrier, effective).selectedModules;
189936
+ const rendered = renderCompat(carrier, effective);
189937
+ const closure = rendered.selectedModules;
189858
189938
  const gradlePath = join75(root, sat.android.dir, "build.gradle.kts");
189859
189939
  if (!existsSync77(gradlePath)) throw new Error(`native-core: the satellite's Android build file ${sat.android.dir}/build.gradle.kts does not exist`);
189860
- const referenced = satelliteAndroidApiProjects(readFileSync84(gradlePath, "utf8")).map((p2) => p2.replace(/^:/, ""));
189940
+ const satelliteGradle = readFileSync84(gradlePath, "utf8");
189941
+ const referenced = satelliteAndroidApiProjects(satelliteGradle).map((p2) => p2.replace(/^:/, ""));
189861
189942
  const satelliteClosure = referenced.length ? renderCompat(carrier, { ...base2, selectedModules: { ios: [], android: referenced } }).selectedModules.android : [];
189862
189943
  const diff = equalSets(satelliteClosure, closure.android);
189863
189944
  if (diff.missing.length || diff.extra.length) {
@@ -189866,7 +189947,12 @@ function planNativeCore(adoption, opts = {}) {
189866
189947
  );
189867
189948
  }
189868
189949
  const androidIncludes = [{ project: sat.android.project, dir: sat.android.dir, origin: "satellite" }];
189869
- for (const id of closure.android) {
189950
+ if (referencesTestingLibrary(satelliteGradle)) {
189951
+ androidIncludes.push({ project: TESTING_ANDROID_PROJECT, dir: `${dirname43(sat.android.dir)}/${TESTING_ANDROID_DIR_NAME}`, origin: "satellite" });
189952
+ }
189953
+ const testkits = rendered.testkitModules?.android ?? [];
189954
+ assertTestkitDependenciesWired(testkits, closure.android, graph);
189955
+ for (const id of [...closure.android, ...testkits]) {
189870
189956
  const carrierPath = graph[id]?.platforms.android?.carrierPath;
189871
189957
  if (!carrierPath) throw new Error(`native-core: the carrier's dependency graph has no Android carrierPath for ${JSON.stringify(id)}`);
189872
189958
  androidIncludes.push({ project: `:${id}`, dir: `${sat.carrierInstallDir}/generated/${carrierPath}`, origin: "core" });
@@ -189920,13 +190006,16 @@ function assertNoSettingsCollision(plan, settingsWithoutBlock, where) {
189920
190006
  throw new Error(`native-core: ${where}: ${problems.join("; ")}. A Core project id is a root-level Gradle path; rename or remove the colliding entry.`);
189921
190007
  }
189922
190008
  }
189923
- var CARRIER_GENERATED_SEGMENT, compatCache, sorted2;
190009
+ var CARRIER_GENERATED_SEGMENT, TESTING_ANDROID_PROJECT, TESTING_ANDROID_DIR_NAME, compatCache, sorted2;
189924
190010
  var init_native_core2 = __esm({
189925
190011
  "../native-config/native-core.ts"() {
189926
190012
  init_define_HHP_CATALOG();
189927
190013
  init_src2();
189928
190014
  init_paths();
190015
+ init_jvm_source();
189929
190016
  CARRIER_GENERATED_SEGMENT = "/node_modules/@wix/mobile-native-core/generated/";
190017
+ TESTING_ANDROID_PROJECT = ":himalaya-wix-native-core-testing";
190018
+ TESTING_ANDROID_DIR_NAME = "himalaya-wix-native-core-testing";
189930
190019
  compatCache = /* @__PURE__ */ new Map();
189931
190020
  sorted2 = (xs2) => [...new Set(xs2)].sort();
189932
190021
  }
@@ -190187,7 +190276,7 @@ var init_swiftpm_manifest = __esm({
190187
190276
  import { execFileSync as execFileSync5 } from "node:child_process";
190188
190277
  import { existsSync as existsSync79, readdirSync as readdirSync39, readFileSync as readFileSync86 } from "node:fs";
190189
190278
  import { createRequire as createRequire6 } from "node:module";
190190
- import { basename as basename20, dirname as dirname43, join as join77, resolve as resolve56 } from "node:path";
190279
+ import { basename as basename20, dirname as dirname44, join as join77, resolve as resolve56 } from "node:path";
190191
190280
  function loadYaml(text32) {
190192
190281
  yamlLoad ??= createRequire6(import.meta.url)("js-yaml").load;
190193
190282
  return yamlLoad(text32);
@@ -190232,37 +190321,6 @@ function coreIosModules(graph) {
190232
190321
  function coreAndroidProjects(graph) {
190233
190322
  return new Set(Object.entries(graph).filter(([, m2]) => m2.platforms.android?.carrierPath).map(([id]) => id));
190234
190323
  }
190235
- function stripJvmComments(text32) {
190236
- let out2 = "";
190237
- let i2 = 0;
190238
- while (i2 < text32.length) {
190239
- const c2 = text32[i2];
190240
- const next = text32[i2 + 1];
190241
- if (c2 === "/" && next === "/") {
190242
- while (i2 < text32.length && text32[i2] !== "\n") i2++;
190243
- } else if (c2 === "/" && next === "*") {
190244
- const end2 = text32.indexOf("*/", i2 + 2);
190245
- i2 = end2 < 0 ? text32.length : end2 + 2;
190246
- out2 += " ";
190247
- } else if (c2 === "`") {
190248
- const end2 = text32.indexOf("`", i2 + 1);
190249
- const j2 = end2 < 0 || text32.slice(i2, end2).includes("\n") ? i2 + 1 : end2 + 1;
190250
- out2 += text32.slice(i2, j2);
190251
- i2 = j2;
190252
- } else if (c2 === '"' || c2 === "'") {
190253
- const quote = text32.startsWith('"""', i2) ? '"""' : c2;
190254
- let j2 = i2 + quote.length;
190255
- while (j2 < text32.length && !text32.startsWith(quote, j2)) j2 += text32[j2] === "\\" && quote !== '"""' ? 2 : 1;
190256
- j2 = Math.min(text32.length, j2 + quote.length);
190257
- out2 += text32.slice(i2, j2);
190258
- i2 = j2;
190259
- } else {
190260
- out2 += c2;
190261
- i2++;
190262
- }
190263
- }
190264
- return out2;
190265
- }
190266
190324
  function stripSwiftComments(text32) {
190267
190325
  let out2 = "";
190268
190326
  let i2 = 0;
@@ -190368,38 +190426,38 @@ function xcodegenTargets(text32) {
190368
190426
  return doc && typeof doc === "object" && doc.targets && typeof doc.targets === "object" ? doc.targets : {};
190369
190427
  }
190370
190428
  function testSupportProblems(files) {
190371
- const problems = [];
190372
- for (const f2 of files) {
190373
- if (!f2.text.includes(TEST_SUPPORT_PRODUCT)) continue;
190374
- if (isProjectYml(f2.path)) {
190375
- let targets;
190376
- try {
190377
- targets = xcodegenTargets(f2.text);
190378
- } catch (e2) {
190379
- problems.push(`${f2.path}: names ${TEST_SUPPORT_PRODUCT} but cannot be parsed as YAML (${e2.message}), so the test-only rule cannot be proven`);
190380
- continue;
190381
- }
190382
- for (const [name, t2] of Object.entries(targets)) {
190383
- const links = (t2.dependencies ?? []).some((d2) => d2 && (d2.product === TEST_SUPPORT_PRODUCT || d2.package === TEST_SUPPORT_PRODUCT));
190384
- if (links && !TEST_TARGET_TYPE.test(t2.type ?? "")) {
190385
- problems.push(`${f2.path}: target ${name} (type ${t2.type ?? "unset"}) links ${TEST_SUPPORT_PRODUCT}; only test targets (bundle.unit-test, bundle.ui-testing) may \u2014 a production target would ship test doubles`);
190386
- }
190387
- }
190388
- } else if (isPackageSwift(f2.path)) {
190389
- try {
190390
- const m2 = manifestFromSource(f2.text, dirname43(f2.path));
190391
- for (const t2 of m2.targets) {
190392
- const links = t2.dependencies.some((d2) => "product" in d2 && d2.product[0] === TEST_SUPPORT_PRODUCT);
190393
- if (links && t2.type !== "test") {
190394
- problems.push(`${f2.path}: target ${t2.name} (${t2.type}) depends on the ${TEST_SUPPORT_PRODUCT} product; only .testTarget may`);
190395
- }
190396
- }
190397
- } catch (e2) {
190398
- problems.push(`${f2.path}: names ${TEST_SUPPORT_PRODUCT} but its manifest cannot be read (${e2.message}), so the test-only rule cannot be proven`);
190399
- }
190400
- }
190429
+ return files.flatMap((f2) => [
190430
+ ...TEST_SUPPORT_PRODUCTS.flatMap((product2) => f2.text.includes(product2) ? productLinkProblems(f2, product2) : []),
190431
+ ...isGradleBuild(f2.path) ? testingLibraryReferenceProblems(f2) : []
190432
+ ]);
190433
+ }
190434
+ function productLinkProblems(f2, product2) {
190435
+ if (isProjectYml(f2.path)) return projectYmlLinkProblems(f2, product2);
190436
+ if (isPackageSwift(f2.path)) return packageSwiftLinkProblems(f2, product2);
190437
+ return [];
190438
+ }
190439
+ function projectYmlLinkProblems(f2, product2) {
190440
+ let targets;
190441
+ try {
190442
+ targets = xcodegenTargets(f2.text);
190443
+ } catch (e2) {
190444
+ return [`${f2.path}: names ${product2} but cannot be parsed as YAML (${e2.message}), so the test-only rule cannot be proven`];
190401
190445
  }
190402
- return problems;
190446
+ return Object.entries(targets).filter(([, t2]) => (t2.dependencies ?? []).some((d2) => d2 && (d2.product === product2 || d2.package === product2)) && !TEST_TARGET_TYPE.test(t2.type ?? "")).map(([name, t2]) => `${f2.path}: target ${name} (type ${t2.type ?? "unset"}) links ${product2}; only test targets (bundle.unit-test, bundle.ui-testing) may \u2014 a production target would ship test doubles`);
190447
+ }
190448
+ function packageSwiftLinkProblems(f2, product2) {
190449
+ try {
190450
+ return manifestFromSource(f2.text, dirname44(f2.path)).targets.filter((t2) => t2.type !== "test" && t2.dependencies.some((d2) => "product" in d2 && d2.product[0] === product2)).map((t2) => `${f2.path}: target ${t2.name} (${t2.type}) depends on the ${product2} product; only .testTarget may`);
190451
+ } catch (e2) {
190452
+ return [`${f2.path}: names ${product2} but its manifest cannot be read (${e2.message}), so the test-only rule cannot be proven`];
190453
+ }
190454
+ }
190455
+ function testingLibraryReferenceProblems(f2) {
190456
+ return testingLibraryConfigurations(f2.text).filter((config) => !(config && TEST_CONFIGURATION.test(config))).map((config) => `${f2.path}: ${config ?? ""}(project("${TESTING_ANDROID_PROJECT}")): the testing library may be referenced only from a test configuration (testImplementation, androidTestImplementation); a production configuration would ship test doubles`);
190457
+ }
190458
+ function testingLibraryConfigurations(text32) {
190459
+ const unwrapped = [...stripJvmComments(text32).matchAll(UNWRAPPED_TESTING_REFERENCE)].map((m2) => m2[1] ?? m2[2]);
190460
+ return gradleProjectReferences(text32).filter((r3) => r3.project === TESTING_ANDROID_PROJECT).map((r3) => r3.config && r3.config !== "add" ? r3.config : unwrapped.shift() ?? null);
190403
190461
  }
190404
190462
  function xcodegenProject(text32) {
190405
190463
  const doc = loadYaml(text32);
@@ -190449,12 +190507,17 @@ function directCoreProblems(file2, pods) {
190449
190507
  }
190450
190508
  return problems;
190451
190509
  }
190452
- var yamlLoad, TEST_SUPPORT_PRODUCT, SATELLITE_WORKSPACE_PREFIX, SKIP_DIRS, isProjectYml, isPackageSwift, isSwift, isGradleBuild, isJvmSource, CORE_ANDROID_PACKAGE, wordAround, GRADLE_PROJECT_REF, CORE_PACKAGE_WORD, JVM_CORE_IMPORT, JVM_CORE_REFERENCE, SWIFT_IMPORT, TEST_TARGET_TYPE;
190510
+ var yamlLoad, TEST_SUPPORT_PRODUCT, TESTING_PRODUCT, TEST_SUPPORT_PRODUCTS, SATELLITE_WORKSPACE_PREFIX, SKIP_DIRS, isProjectYml, isPackageSwift, isSwift, isGradleBuild, isJvmSource, CORE_ANDROID_PACKAGE, wordAround, GRADLE_PROJECT_REF, CORE_PACKAGE_WORD, JVM_CORE_IMPORT, JVM_CORE_REFERENCE, SWIFT_IMPORT, TEST_TARGET_TYPE, TEST_CONFIGURATION, UNWRAPPED_TESTING_REFERENCE;
190453
190511
  var init_native_core_guards = __esm({
190454
190512
  "../native-config/native-core-guards.ts"() {
190455
190513
  init_define_HHP_CATALOG();
190456
190514
  init_swiftpm_manifest();
190515
+ init_native_core2();
190516
+ init_jvm_source();
190517
+ init_jvm_source();
190457
190518
  TEST_SUPPORT_PRODUCT = "HimalayaWixNativeCoreTestSupport";
190519
+ TESTING_PRODUCT = "HimalayaWixNativeCoreTesting";
190520
+ TEST_SUPPORT_PRODUCTS = [TEST_SUPPORT_PRODUCT, TESTING_PRODUCT];
190458
190521
  SATELLITE_WORKSPACE_PREFIX = "stdlib/wix-native-core/";
190459
190522
  SKIP_DIRS = /* @__PURE__ */ new Set(["node_modules", ".git", "build", "Pods", "DerivedData", ".gradle", ".swiftpm", ".build"]);
190460
190523
  isProjectYml = (p2) => basename20(p2) === "project.yml";
@@ -190470,6 +190533,11 @@ var init_native_core_guards = __esm({
190470
190533
  JVM_CORE_REFERENCE = new RegExp(`(?<![A-Za-z0-9_.])(${CORE_PACKAGE_WORD}(?![A-Za-z0-9_])(?:\\.[A-Za-z_][A-Za-z0-9_]*)*)`);
190471
190534
  SWIFT_IMPORT = /^[ \t]*(?:@[A-Za-z_][A-Za-z0-9_]*(?:\([^)\n]*\))?\s+)*(?:(?:public|package|internal|fileprivate|private)\s+)?import\s+(?:(?:struct|class|enum|protocol|func|var|let|typealias)\s+)?([A-Za-z_][A-Za-z0-9_]*)/gm;
190472
190535
  TEST_TARGET_TYPE = /^bundle\.(?:unit-test|ui-testing)$/;
190536
+ TEST_CONFIGURATION = /^(?:test|androidTest)(?!Fixtures)(?:[A-Z][A-Za-z0-9]*)?(?:Implementation|CompileOnly|RuntimeOnly)$/;
190537
+ UNWRAPPED_TESTING_REFERENCE = new RegExp(
190538
+ `(?:\\badd\\s*\\(\\s*["'](\\w+)["']\\s*,\\s*|\\b(\\w+)\\s+)project\\s*\\(\\s*(?:path\\s*[:=]\\s*)?["']${TESTING_ANDROID_PROJECT}["']`,
190539
+ "g"
190540
+ );
190473
190541
  }
190474
190542
  });
190475
190543
 
@@ -190477,7 +190545,7 @@ var init_native_core_guards = __esm({
190477
190545
  import { spawnSync as spawnSync8 } from "node:child_process";
190478
190546
  import { existsSync as existsSync80, mkdtempSync as mkdtempSync4, readFileSync as readFileSync87, rmSync as rmSync22, writeFileSync as writeFileSync32 } from "node:fs";
190479
190547
  import { tmpdir as tmpdir5 } from "node:os";
190480
- import { basename as basename21, dirname as dirname44, join as join78 } from "node:path";
190548
+ import { basename as basename21, dirname as dirname45, join as join78 } from "node:path";
190481
190549
  function blank2(app2) {
190482
190550
  return {
190483
190551
  app: app2,
@@ -190508,16 +190576,17 @@ function readIosSatellite(root, dirRel, pods, testkitPods, carrierInstallDir) {
190508
190576
  out2.problems.push(`${dirRel}/Package.swift cannot be read statically (${message2(e2)}); the satellite manifest must stay in the simple subset the shared parser reads, so its products can be proven`);
190509
190577
  return out2;
190510
190578
  }
190579
+ const testOnly = testOnlyTargets(manifest2);
190511
190580
  const local = manifest2.dependencies.flatMap((d2) => "fileSystem" in d2 ? d2.fileSystem : []);
190512
190581
  const generated = carrierGeneratedRoot(root, carrierInstallDir);
190513
190582
  const corePackage = join78(generated, "ios");
190514
190583
  const adapterRoot = join78(generated, "ios-adapters");
190515
- const adapters = new Set(local.filter((p2) => dirname44(p2.path) === adapterRoot).map((p2) => basename21(p2.path).toLowerCase()));
190584
+ const adapters = new Set(local.filter((p2) => dirname45(p2.path) === adapterRoot).map((p2) => basename21(p2.path).toLowerCase()));
190516
190585
  for (const p2 of local) {
190517
190586
  const atCore = p2.path === corePackage;
190518
190587
  if (p2.identity === "ios" && !atCore) {
190519
190588
  out2.problems.push(`${dirRel}/Package.swift: local package ${p2.path} has the SwiftPM identity "ios", which belongs to the carrier's core package (${corePackage})`);
190520
- } else if (!atCore && dirname44(p2.path) !== adapterRoot && (p2.path.includes("mobile-native-core/generated") || isInside(generated, p2.path))) {
190589
+ } else if (!atCore && dirname45(p2.path) !== adapterRoot && (p2.path.includes("mobile-native-core/generated") || isInside(generated, p2.path))) {
190521
190590
  out2.problems.push(`${dirRel}/Package.swift: local package ${p2.path} points into a Native Core carrier but is neither ${corePackage} nor a package directly under ${adapterRoot}`);
190522
190591
  }
190523
190592
  }
@@ -190530,8 +190599,9 @@ function readIosSatellite(root, dirRel, pods, testkitPods, carrierInstallDir) {
190530
190599
  if (pods.has(name)) out2.problems.push(`${dirRel}/Package.swift: target ${t2.name} links Core product ${name} through package ${JSON.stringify(pkg)}, which is neither WixNativeCore nor an ios-adapters package`);
190531
190600
  continue;
190532
190601
  }
190602
+ const isTestOnly = t2.type === "test" || testOnly.has(t2.name);
190533
190603
  if (testkitPods.has(name)) {
190534
- if (t2.type === "test") out2.testkits.push(name);
190604
+ if (isTestOnly) out2.testkits.push(name);
190535
190605
  else out2.problems.push(`${dirRel}/Package.swift: non-test target ${t2.name} links testkit product ${name}; testkits may only be linked by a .testTarget`);
190536
190606
  continue;
190537
190607
  }
@@ -190539,7 +190609,7 @@ function readIosSatellite(root, dirRel, pods, testkitPods, carrierInstallDir) {
190539
190609
  out2.problems.push(`${dirRel}/Package.swift: target ${t2.name} links ${name} from the Core package, which is not a product in the carrier's dependency graph (podModuleName)`);
190540
190610
  continue;
190541
190611
  }
190542
- if (t2.type !== "test") out2.products.push(name);
190612
+ if (!isTestOnly) out2.products.push(name);
190543
190613
  }
190544
190614
  }
190545
190615
  return out2;
@@ -190561,6 +190631,31 @@ function satelliteAndroidRuleProblems(gradleText, graph, androidTestkits) {
190561
190631
  }
190562
190632
  return problems;
190563
190633
  }
190634
+ function testOnlyTargets(manifest2) {
190635
+ const names2 = new Set(manifest2.targets.map((t2) => t2.name));
190636
+ const depsOf = new Map(manifest2.targets.map((t2) => [t2.name, t2.dependencies.flatMap((d2) => "byName" in d2 ? [d2.byName[0]] : "target" in d2 ? [d2.target[0]] : []).filter((n2) => names2.has(n2))]));
190637
+ const production = /* @__PURE__ */ new Set();
190638
+ const visit = (t2) => {
190639
+ if (production.has(t2)) return;
190640
+ production.add(t2);
190641
+ for (const d2 of depsOf.get(t2) ?? []) visit(d2);
190642
+ };
190643
+ manifest2.products.filter((p2) => p2.name !== TESTING_PRODUCT).forEach((p2) => p2.targets.forEach(visit));
190644
+ return new Set(manifest2.products.filter((p2) => p2.name === TESTING_PRODUCT).flatMap((p2) => p2.targets).filter((t2) => !production.has(t2)));
190645
+ }
190646
+ function testingAndroidRuleProblems(root, sat, graph, androidTestkits) {
190647
+ const rel2 = `${dirname45(sat.android.dir)}/${TESTING_ANDROID_DIR_NAME}/build.gradle.kts`;
190648
+ const file2 = join78(root, rel2);
190649
+ if (!existsSync80(file2)) return [];
190650
+ return gradleProjectReferences(readFileSync87(file2, "utf8")).flatMap((ref) => {
190651
+ const id = ref.project.replace(/^:/, "");
190652
+ const mod = graph[id];
190653
+ const at2 = `${rel2}: ${ref.config ?? ""}(project("${ref.project}"))`;
190654
+ if (!mod) return [];
190655
+ if (!mod.testkit) return [`${at2}: the testing library reaches production Core only through the satellite (${sat.android.project})`];
190656
+ return androidTestkits.includes(id) ? [] : [`${rel2}: testkit ${id} is not declared in the selection's testkitModules.android`];
190657
+ });
190658
+ }
190564
190659
  function firstDifference(expected, actual) {
190565
190660
  const e2 = expected.split("\n");
190566
190661
  const a3 = actual.split("\n");
@@ -190664,6 +190759,7 @@ function checkNativeCoreSatellite(opts = {}) {
190664
190759
  if (diff.missing.length || diff.extra.length) r3.ios.ok = false;
190665
190760
  }
190666
190761
  problems.push(...satelliteAndroidRuleProblems(gradleText, graph, expected.testkit.android));
190762
+ problems.push(...testingAndroidRuleProblems(root, sat, graph, expected.testkit.android));
190667
190763
  runGuards(r3, root, opts.files, pods, problems, coreAndroidProjects(graph));
190668
190764
  return r3;
190669
190765
  }
@@ -190759,7 +190855,7 @@ function checkNativeCore(app2, opts = {}) {
190759
190855
  r3.android = runCarrierAndroidCheck(carrier, effective, settingsPath);
190760
190856
  problems.push(
190761
190857
  ...settingsCoreIdProblems(readFileSync87(settingsPath, "utf8"), graph, `apps/${app2}/android/settings.gradle.kts`, {
190762
- settingsDir: dirname44(settingsPath),
190858
+ settingsDir: dirname45(settingsPath),
190763
190859
  root,
190764
190860
  carrierInstallDir: sat.carrierInstallDir
190765
190861
  })
@@ -191371,7 +191467,7 @@ __export(gen_native_config_exports, {
191371
191467
  yamlScalar: () => yamlScalar
191372
191468
  });
191373
191469
  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";
191374
- import { dirname as dirname45, join as join79 } from "node:path";
191470
+ import { dirname as dirname46, join as join79 } from "node:path";
191375
191471
  import { fileURLToPath as fileURLToPath30 } from "node:url";
191376
191472
  import ts18 from "typescript";
191377
191473
  function withoutComments(src) {
@@ -192023,7 +192119,7 @@ function androidSettingsGradle(app2) {
192023
192119
  return join79(appDir(app2), "android", "settings.gradle.kts");
192024
192120
  }
192025
192121
  function androidAppGradle(app2) {
192026
- return join79(dirname45(androidManifestPath2(app2)), "..", "..", "build.gradle.kts");
192122
+ return join79(dirname46(androidManifestPath2(app2)), "..", "..", "build.gradle.kts");
192027
192123
  }
192028
192124
  function androidManifestPath2(app2) {
192029
192125
  const androidDir = join79(appDir(app2), "android");
@@ -192033,7 +192129,7 @@ function androidManifestPath2(app2) {
192033
192129
  return candidates.length === 1 ? candidates[0] : preferred;
192034
192130
  }
192035
192131
  function automotiveAppDescPath(app2) {
192036
- return join79(dirname45(androidManifestPath2(app2)), "res", "xml", "automotive_app_desc.xml");
192132
+ return join79(dirname46(androidManifestPath2(app2)), "res", "xml", "automotive_app_desc.xml");
192037
192133
  }
192038
192134
  function applyToFile(path2, kind, label4, render3, check) {
192039
192135
  if (!existsSync81(path2)) return { path: path2, outcome: "skipped" };
@@ -192063,7 +192159,7 @@ function applyWholeFile(path2, content, check) {
192063
192159
  const current = existsSync81(path2) ? readFileSync89(path2, "utf8") : null;
192064
192160
  if (current === content) return { path: path2, outcome: "unchanged" };
192065
192161
  if (check) return { path: path2, outcome: "drift" };
192066
- mkdirSync34(dirname45(path2), { recursive: true });
192162
+ mkdirSync34(dirname46(path2), { recursive: true });
192067
192163
  writeFileSync34(path2, content);
192068
192164
  return { path: path2, outcome: "written" };
192069
192165
  }
@@ -192082,8 +192178,8 @@ function storeAdoptPaths(app2) {
192082
192178
  iosYml: iosProjectYml(app2),
192083
192179
  storeSpec: iosStoreSpec(app2),
192084
192180
  manifest: manifest2,
192085
- storeManifest: join79(dirname45(manifest2), "..", "..", STORE_MANIFEST_REL),
192086
- legacyReleaseManifest: join79(dirname45(manifest2), "..", "release", "AndroidManifest.xml"),
192181
+ storeManifest: join79(dirname46(manifest2), "..", "..", STORE_MANIFEST_REL),
192182
+ legacyReleaseManifest: join79(dirname46(manifest2), "..", "release", "AndroidManifest.xml"),
192087
192183
  gradle: androidAppGradle(app2)
192088
192184
  };
192089
192185
  }
@@ -192257,19 +192353,19 @@ function appSourceRoot(projectYmlPath, platform) {
192257
192353
  if (!existsSync81(projectYmlPath)) return void 0;
192258
192354
  const project = load5(readFileSync89(projectYmlPath, "utf8"));
192259
192355
  const main4 = Object.values(project.targets ?? {}).find((t2) => t2.type === "application" && t2.platform === platform);
192260
- const iosDir = dirname45(projectYmlPath);
192356
+ const iosDir = dirname46(projectYmlPath);
192261
192357
  const root = main4?.sources?.map((s5) => typeof s5 === "string" ? s5 : s5.path).find((p2) => p2 && existsSync81(join79(iosDir, p2, "Info.plist")));
192262
192358
  return root ? join79(iosDir, root) : void 0;
192263
192359
  }
192264
192360
  function coreExtensionSourceRoots(projectYmlPath) {
192265
192361
  if (!existsSync81(projectYmlPath)) return [];
192266
192362
  const project = load5(readFileSync89(projectYmlPath, "utf8"));
192267
- const dir = dirname45(projectYmlPath);
192363
+ const dir = dirname46(projectYmlPath);
192268
192364
  const roots2 = [];
192269
192365
  for (const t2 of Object.values(project.targets ?? {})) {
192270
192366
  if (t2.type !== "app-extension" || !(t2.dependencies ?? []).some((d2) => /^HimalayaCore/.test(d2.product ?? d2.package ?? ""))) continue;
192271
192367
  const paths2 = (t2.sources ?? []).map((s5) => typeof s5 === "string" ? s5 : s5.path).filter((p2) => !!p2);
192272
- const infoDir = t2.info?.path ? dirname45(t2.info.path) : void 0;
192368
+ const infoDir = t2.info?.path ? dirname46(t2.info.path) : void 0;
192273
192369
  const root = paths2.find((p2) => p2 === infoDir) ?? paths2.find((p2) => existsSync81(join79(dir, p2)) && statSync23(join79(dir, p2)).isDirectory());
192274
192370
  if (!root) throw new Error(`${projectYmlPath}: app extension linking HimalayaCore has no source directory to bundle its privacy manifest from`);
192275
192371
  roots2.push(join79(dir, root));
@@ -192442,7 +192538,7 @@ function genNativeConfig(app2, opts = {}) {
192442
192538
  applyModuleFlags(iosProjectYml(app2), moduleLinks.iosLinked(), check),
192443
192539
  // Model B, `url:` form: the trait selector package that enables the linked satellites' traits
192444
192540
  // in the published package (#4129). Removed when the app links none, or is not in that form.
192445
- applyTraitSelector(join79(dirname45(iosProjectYml(app2)), BINARY_CORE_IOS_TRAIT_SELECTOR, "Package.swift"), moduleLinks.iosTraitSelector(), check),
192541
+ applyTraitSelector(join79(dirname46(iosProjectYml(app2)), BINARY_CORE_IOS_TRAIT_SELECTOR, "Package.swift"), moduleLinks.iosTraitSelector(), check),
192446
192542
  // macOS (RFC 0046) reuses the iOS boot, so it links the same macOS-capable modules.
192447
192543
  applyToFile(macosProjectYml(app2), "yaml", LABEL_MODULES_IOS_PACKAGE, (i2) => renderModulesIosPackage(modules.macos, i2), check),
192448
192544
  applyToFile(macosProjectYml(app2), "yaml", LABEL_MODULES_IOS_LINK, (i2) => renderModulesIosLink(modules.macos, i2), check),
@@ -192534,9 +192630,9 @@ function genNativeConfig(app2, opts = {}) {
192534
192630
  const plan = live4;
192535
192631
  files.push(applyToFile(iosYml, "yaml", LABEL_LIVE_TARGET, (i2) => plan.target.map((line) => i2 + line), check));
192536
192632
  files.push(applyToFile(iosYml, "yaml", LABEL_LIVE_EMBED, (i2) => plan.embed.map((line) => i2 + line), check));
192537
- const source2 = join79(dirname45(iosYml), LIVE_SOURCE_PATH);
192633
+ const source2 = join79(dirname46(iosYml), LIVE_SOURCE_PATH);
192538
192634
  files.push(plan.source ? applyWholeFile(source2, plan.source, check) : removeWholeFile(source2, check));
192539
- const entitlements = join79(dirname45(iosYml), LIVE_ENTITLEMENTS_PATH);
192635
+ const entitlements = join79(dirname46(iosYml), LIVE_ENTITLEMENTS_PATH);
192540
192636
  files.push(plan.entitlements ? applyWholeFile(entitlements, plan.entitlements, check) : removeWholeFile(entitlements, check));
192541
192637
  }
192542
192638
  const iosSplashManaged = existsSync81(iosYml) && hasMarkers(readFileSync89(iosYml, "utf8"), "yaml", LABEL_IOS_SPLASH);
@@ -192555,10 +192651,10 @@ function genNativeConfig(app2, opts = {}) {
192555
192651
  for (const root of sourceRoots) files.push(applyWholeFile(join79(root, "PrivacyInfo.xcprivacy"), renderPrivacyManifest(root === iosRoot ? iosPlan : plan), check));
192556
192652
  }
192557
192653
  if (targetManaged) {
192558
- const manifest3 = join79(dirname45(iosYml), LIVE_PRIVACY_MANIFEST_PATH);
192654
+ const manifest3 = join79(dirname46(iosYml), LIVE_PRIVACY_MANIFEST_PATH);
192559
192655
  files.push(live4.source ? applyWholeFile(manifest3, renderPrivacyManifest(privacyPlanFor([])), check) : removeWholeFile(manifest3, check));
192560
192656
  }
192561
- const liveRoot = join79(dirname45(iosYml), dirname45(LIVE_PRIVACY_MANIFEST_PATH));
192657
+ const liveRoot = join79(dirname46(iosYml), dirname46(LIVE_PRIVACY_MANIFEST_PATH));
192562
192658
  for (const yml of [iosYml, macosProjectYml(app2)]) {
192563
192659
  for (const root of coreExtensionSourceRoots(yml)) {
192564
192660
  if (targetManaged && root === liveRoot) continue;
@@ -192632,7 +192728,7 @@ var init_gen_native_config = __esm({
192632
192728
  FROM_APP_PLATFORM_DIR = "../../../";
192633
192729
  linkedFlag = (product2) => `HIMALAYA_LINKED_${product2}`;
192634
192730
  CORE_ANDROID_CAPABILITY_MODULES = join79(
192635
- dirname45(fileURLToPath30(import.meta.url)),
192731
+ dirname46(fileURLToPath30(import.meta.url)),
192636
192732
  "../../core/runtime/android/io/himalaya/core/src/main/kotlin/io/himalaya/core/CapabilityModules.kt"
192637
192733
  );
192638
192734
  ANDROID_MAX_DEPTH = 16;
@@ -193911,7 +194007,7 @@ __export(base44_types_exports, {
193911
194007
  writeBase44Types: () => writeBase44Types
193912
194008
  });
193913
194009
  import { existsSync as existsSync83, mkdirSync as mkdirSync35, readFileSync as readFileSync91, writeFileSync as writeFileSync35 } from "node:fs";
193914
- import { dirname as dirname46, join as join81 } from "node:path";
194010
+ import { dirname as dirname47, join as join81 } from "node:path";
193915
194011
  function logicalName(spec) {
193916
194012
  return (isAdoptedEntity(spec) ? spec.base44Name : spec.name) ?? "";
193917
194013
  }
@@ -193992,7 +194088,7 @@ async function writeBase44Types(dir, app2) {
193992
194088
  const path2 = join81(dir, BASE44_TYPES_PATH);
193993
194089
  const changed = !existsSync83(path2) || readFileSync91(path2, "utf8") !== text32;
193994
194090
  if (changed) {
193995
- mkdirSync35(dirname46(path2), { recursive: true });
194091
+ mkdirSync35(dirname47(path2), { recursive: true });
193996
194092
  writeFileSync35(path2, text32);
193997
194093
  }
193998
194094
  return { path: path2, changed, entities: text32.split("\nexport const ").length - 1 };
@@ -194508,7 +194604,7 @@ __export(eject_exports, {
194508
194604
  ejectModule: () => ejectModule
194509
194605
  });
194510
194606
  import { existsSync as existsSync85, mkdirSync as mkdirSync36, readFileSync as readFileSync93, writeFileSync as writeFileSync36 } from "node:fs";
194511
- import { dirname as dirname47, join as join83, relative as relative18, resolve as resolve58, sep as sep23 } from "node:path";
194607
+ import { dirname as dirname48, join as join83, relative as relative18, resolve as resolve58, sep as sep23 } from "node:path";
194512
194608
  function locate(repoRootOrCwd, mod) {
194513
194609
  const inRepo = resolve58(repoRootOrCwd, `stdlib/flows/${mod}/src/index.ts`);
194514
194610
  if (existsSync85(inRepo)) return { path: inRepo, form: "source" };
@@ -194538,7 +194634,7 @@ function ejectModule(opts) {
194538
194634
  }
194539
194635
  const ext = found.form === "source" ? "ts" : "mjs";
194540
194636
  const target = join83(contentDir2, "tier5-src", "_ejected", `${mod}.${ext}`);
194541
- mkdirSync36(dirname47(target), { recursive: true });
194637
+ mkdirSync36(dirname48(target), { recursive: true });
194542
194638
  const banner = `// EJECTED from @wix/himalaya/${mod}. This app owns this file now.
194543
194639
  //
194544
194640
  // Central fixes to @wix/himalaya/${mod} NO LONGER REACH THIS APP \u2014 including any
@@ -194561,7 +194657,7 @@ function ejectModule(opts) {
194561
194657
  if (!existsSync85(f2)) continue;
194562
194658
  const before = readFileSync93(f2, "utf8");
194563
194659
  let after = before;
194564
- let rel2 = relative18(dirname47(f2), target).split(sep23).join("/").replace(/\.tsx?$/, ".js");
194660
+ let rel2 = relative18(dirname48(f2), target).split(sep23).join("/").replace(/\.tsx?$/, ".js");
194565
194661
  if (!rel2.startsWith(".")) rel2 = `./${rel2}`;
194566
194662
  for (const spec of specifiersFor(mod)) {
194567
194663
  const q4 = spec.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
@@ -194607,7 +194703,7 @@ __export(crawl_layers_exports, {
194607
194703
  tabRootScreens: () => tabRootScreens
194608
194704
  });
194609
194705
  import { existsSync as existsSync87, readFileSync as readFileSync94, realpathSync as realpathSync10 } from "node:fs";
194610
- import { dirname as dirname48, join as join85, resolve as resolve59, sep as sep24 } from "node:path";
194706
+ import { dirname as dirname49, join as join85, resolve as resolve59, sep as sep24 } from "node:path";
194611
194707
  async function loadContentConfigQuietly(dir) {
194612
194708
  try {
194613
194709
  return await loadAppConfigModule(dir);
@@ -194696,7 +194792,7 @@ async function l10nSourceCatalogFile(dir) {
194696
194792
  try {
194697
194793
  const realDir = realpathSync10(l10nDir);
194698
194794
  const realFile = realpathSync10(file2);
194699
- if (!realDir.startsWith(realpathSync10(dir) + sep24) || dirname48(realFile) !== realDir) return null;
194795
+ if (!realDir.startsWith(realpathSync10(dir) + sep24) || dirname49(realFile) !== realDir) return null;
194700
194796
  return { tag, text: readFileSync94(realFile, "utf8") };
194701
194797
  } catch {
194702
194798
  return null;
@@ -195849,13 +195945,13 @@ var init_test = __esm({
195849
195945
  });
195850
195946
 
195851
195947
  // ../ai-review-gate/paths.mjs
195852
- import { resolve as resolve61, dirname as dirname49 } from "node:path";
195948
+ import { resolve as resolve61, dirname as dirname50 } from "node:path";
195853
195949
  import { fileURLToPath as fileURLToPath31 } from "node:url";
195854
195950
  var REPO_ROOT6;
195855
195951
  var init_paths3 = __esm({
195856
195952
  "../ai-review-gate/paths.mjs"() {
195857
195953
  init_define_HHP_CATALOG();
195858
- REPO_ROOT6 = resolve61(dirname49(fileURLToPath31(import.meta.url)), "../..");
195954
+ REPO_ROOT6 = resolve61(dirname50(fileURLToPath31(import.meta.url)), "../..");
195859
195955
  }
195860
195956
  });
195861
195957
 
@@ -195887,7 +195983,7 @@ var init_policy = __esm({
195887
195983
  // ../pre-pr-review/scope.mjs
195888
195984
  import { execFileSync as execFileSync6 } from "node:child_process";
195889
195985
  import { createHash as createHash38 } from "node:crypto";
195890
- import { resolve as resolve62, dirname as dirname50, isAbsolute as isAbsolute10, join as join88 } from "node:path";
195986
+ import { resolve as resolve62, dirname as dirname51, isAbsolute as isAbsolute10, join as join88 } from "node:path";
195891
195987
  import { fileURLToPath as fileURLToPath32 } from "node:url";
195892
195988
  function resolveRepoRoot2(cwd = process.cwd()) {
195893
195989
  let top;
@@ -195925,7 +196021,7 @@ var init_scope = __esm({
195925
196021
  init_command();
195926
196022
  init_policy();
195927
196023
  init_paths3();
195928
- REPO_ROOT7 = resolve62(dirname50(fileURLToPath32(import.meta.url)), "../..");
196024
+ REPO_ROOT7 = resolve62(dirname51(fileURLToPath32(import.meta.url)), "../..");
195929
196025
  BASE_REF = process.env.PRE_PR_REVIEW_BASE || "origin/master";
195930
196026
  }
195931
196027
  });
@@ -195942,7 +196038,7 @@ import {
195942
196038
  } from "node:fs";
195943
196039
  import { createHash as createHash39 } from "node:crypto";
195944
196040
  import { tmpdir as tmpdir7 } from "node:os";
195945
- import { basename as basename23, dirname as dirname51, join as join89, resolve as resolve63 } from "node:path";
196041
+ import { basename as basename23, dirname as dirname52, join as join89, resolve as resolve63 } from "node:path";
195946
196042
  import { pathToFileURL as pathToFileURL7 } from "node:url";
195947
196043
  function isValidationMetadata(path2) {
195948
196044
  return VALIDATION_METADATA.has(path2) || /(^|[\\/])\.himi([\\/]|$)/.test(path2);
@@ -196108,7 +196204,7 @@ function seed(repo, commands) {
196108
196204
  }
196109
196205
  function write(repo, rel2, body) {
196110
196206
  const absolute2 = resolve63(repo, rel2);
196111
- mkdirSync38(dirname51(absolute2), { recursive: true });
196207
+ mkdirSync38(dirname52(absolute2), { recursive: true });
196112
196208
  writeFileSync38(absolute2, body);
196113
196209
  }
196114
196210
  function selfTestRepo({ withBase }) {
@@ -196800,7 +196896,7 @@ var init_attestation = __esm({
196800
196896
 
196801
196897
  // src/ux-evidence.ts
196802
196898
  import { existsSync as existsSync91, mkdirSync as mkdirSync40, readFileSync as readFileSync100, writeFileSync as writeFileSync40 } from "node:fs";
196803
- import { dirname as dirname52, isAbsolute as isAbsolute11, join as join92, relative as relative20, resolve as resolve65 } from "node:path";
196899
+ import { dirname as dirname53, isAbsolute as isAbsolute11, join as join92, relative as relative20, resolve as resolve65 } from "node:path";
196804
196900
  function isNativePlatform(value2) {
196805
196901
  return typeof value2 === "string" && NATIVE_PLATFORMS.includes(value2);
196806
196902
  }
@@ -196844,7 +196940,7 @@ function recordedRenderWidths(content) {
196844
196940
  return renderEvidenceEntries(evidence).map((entry) => entry.width);
196845
196941
  }
196846
196942
  function writeEvidence(path2, evidence) {
196847
- mkdirSync40(dirname52(path2), { recursive: true });
196943
+ mkdirSync40(dirname53(path2), { recursive: true });
196848
196944
  writeFileSync40(path2, JSON.stringify(evidence, null, 2) + "\n");
196849
196945
  }
196850
196946
  function recordedFilePath(dir, file2) {
@@ -199119,7 +199215,7 @@ var init_cli_bridge = __esm({
199119
199215
  // src/mcp/file-tools.ts
199120
199216
  import { closeSync as closeSync8, constants as constants6, lstatSync as lstatSync29, mkdirSync as mkdirSync41, openSync as openSync7, readdirSync as readdirSync42, readFileSync as readFileSync108, realpathSync as realpathSync12, renameSync as renameSync15, rmSync as rmSync26, statSync as statSync26, writeSync as writeSync2, existsSync as existsSync97 } from "node:fs";
199121
199217
  import { randomBytes as randomBytes4 } from "node:crypto";
199122
- import { dirname as dirname53, isAbsolute as isAbsolute13, join as join98, relative as relative21, resolve as resolve68, sep as sep26 } from "node:path";
199218
+ import { dirname as dirname54, isAbsolute as isAbsolute13, join as join98, relative as relative21, resolve as resolve68, sep as sep26 } from "node:path";
199123
199219
  import * as z2 from "zod";
199124
199220
  function within(root, p2) {
199125
199221
  return p2 === root || p2.startsWith(root.endsWith(sep26) ? root : root + sep26);
@@ -199128,7 +199224,7 @@ function realish(p2) {
199128
199224
  let cur = p2;
199129
199225
  const tail = [];
199130
199226
  while (!existsSync97(cur)) {
199131
- const up2 = dirname53(cur);
199227
+ const up2 = dirname54(cur);
199132
199228
  if (up2 === cur) break;
199133
199229
  tail.unshift(cur.slice(up2.length + (up2.endsWith(sep26) ? 0 : 1)));
199134
199230
  cur = up2;
@@ -199174,7 +199270,7 @@ function onDiskSpelling(abs) {
199174
199270
  let cur = abs;
199175
199271
  const tail = [];
199176
199272
  while (!existsSync97(cur)) {
199177
- const up2 = dirname53(cur);
199273
+ const up2 = dirname54(cur);
199178
199274
  if (up2 === cur) break;
199179
199275
  tail.unshift(cur.slice(up2.length + (up2.endsWith(sep26) ? 0 : 1)));
199180
199276
  cur = up2;
@@ -199205,10 +199301,10 @@ function confinedPath(appDir3, rel2) {
199205
199301
  return abs;
199206
199302
  }
199207
199303
  function writeNoFollow2(appDir3, abs, content) {
199208
- mkdirSync41(dirname53(abs), { recursive: true });
199304
+ mkdirSync41(dirname54(abs), { recursive: true });
199209
199305
  const before = symlinkComponent(appDir3, abs);
199210
199306
  if (before) throw new Error(`"${before}" became a symlink`);
199211
- const tmp = join98(dirname53(abs), `.himi-write-${process.pid}-${randomBytes4(6).toString("hex")}.tmp`);
199307
+ const tmp = join98(dirname54(abs), `.himi-write-${process.pid}-${randomBytes4(6).toString("hex")}.tmp`);
199212
199308
  const fd = openSync7(tmp, constants6.O_WRONLY | constants6.O_CREAT | constants6.O_EXCL | (constants6.O_NOFOLLOW ?? 0), 420);
199213
199309
  try {
199214
199310
  writeSync2(fd, content);
@@ -199216,9 +199312,9 @@ function writeNoFollow2(appDir3, abs, content) {
199216
199312
  closeSync8(fd);
199217
199313
  }
199218
199314
  const link4 = symlinkComponent(appDir3, abs);
199219
- if (link4 || !within(realpathSync12(appDir3), realpathSync12(dirname53(abs)))) {
199315
+ if (link4 || !within(realpathSync12(appDir3), realpathSync12(dirname54(abs)))) {
199220
199316
  rmSync26(tmp, { force: true });
199221
- throw new Error(`"${link4 ?? relative21(appDir3, dirname53(abs))}" changed into a link while writing`);
199317
+ throw new Error(`"${link4 ?? relative21(appDir3, dirname54(abs))}" changed into a link while writing`);
199222
199318
  }
199223
199319
  renameSync15(tmp, abs);
199224
199320
  }
@@ -199379,7 +199475,7 @@ var init_file_tools = __esm({
199379
199475
 
199380
199476
  // src/mcp/iap-tools.ts
199381
199477
  import * as z3 from "zod";
199382
- import { dirname as dirname54, relative as relative22, resolve as resolve69 } from "node:path";
199478
+ import { dirname as dirname55, relative as relative22, resolve as resolve69 } from "node:path";
199383
199479
  async function paths(args, deps) {
199384
199480
  const base2 = await deps.defaultDir();
199385
199481
  const result = { ...args, workspaceDir: base2 };
@@ -199403,7 +199499,7 @@ function workspaceInputRefusal(args, deps, context) {
199403
199499
  if (typeof file2 !== "string") return null;
199404
199500
  const doc = JSON.parse(deps.readFile(file2).toString("utf8"));
199405
199501
  const manifest2 = args.plan ? doc.manifest : doc;
199406
- const base2 = args.plan ? resolve69(typeof doc.manifestDir === "string" ? doc.manifestDir : process.cwd()) : dirname54(file2);
199502
+ const base2 = args.plan ? resolve69(typeof doc.manifestDir === "string" ? doc.manifestDir : process.cwd()) : dirname55(file2);
199407
199503
  for (const item2 of manifest2?.items ?? []) {
199408
199504
  if (typeof item2.reviewScreenshot !== "string") continue;
199409
199505
  const why = workspaceRefusal(context.boundary, resolve69(base2, item2.reviewScreenshot));
@@ -200687,13 +200783,13 @@ import * as __ascBuiltin1 from "node:path";
200687
200783
  function scrubEvent(event) {
200688
200784
  return JSON.parse(JSON.stringify(event), (_key, value2) => typeof value2 === "string" ? scrubSecrets(value2) : value2);
200689
200785
  }
200690
- var appendFile, mkdir, readFile2, dirname55, MemoryAuditSink, JsonlAuditSink;
200786
+ var appendFile, mkdir, readFile2, dirname56, MemoryAuditSink, JsonlAuditSink;
200691
200787
  var init_audit = __esm({
200692
200788
  "../../node_modules/@wix/asc-core/dist/ports/audit.js"() {
200693
200789
  init_define_HHP_CATALOG();
200694
200790
  init_scrub();
200695
200791
  ({ appendFile, mkdir, readFile: readFile2 } = __ascBuiltin02);
200696
- ({ dirname: dirname55 } = __ascBuiltin1);
200792
+ ({ dirname: dirname56 } = __ascBuiltin1);
200697
200793
  MemoryAuditSink = class {
200698
200794
  events = [];
200699
200795
  async append(event) {
@@ -200707,7 +200803,7 @@ var init_audit = __esm({
200707
200803
  this.path = path2;
200708
200804
  }
200709
200805
  async append(event) {
200710
- this.ready ??= mkdir(dirname55(this.path), { recursive: true });
200806
+ this.ready ??= mkdir(dirname56(this.path), { recursive: true });
200711
200807
  await this.ready;
200712
200808
  await appendFile(this.path, `${JSON.stringify(scrubEvent(event))}
200713
200809
  `, { flag: "a" });
@@ -201931,7 +202027,7 @@ function parseStored(text32, where) {
201931
202027
  throw new AuthError(`the sign-in stored in ${where} is incomplete`);
201932
202028
  return user;
201933
202029
  }
201934
- var spawn7, createHash47, randomBytes5, chmod, mkdir4, readFile4, rename2, rm3, writeFile3, createServer4, homedir10, dirname56, join102, PLAY_SCOPES, TOKEN_URI, RefreshTokenAuth, execCommand, GOOGLE_OAUTH_HOSTS, FileCredentialStore, SECURITY_NOT_FOUND, KeychainCredentialStore;
202030
+ var spawn7, createHash47, randomBytes5, chmod, mkdir4, readFile4, rename2, rm3, writeFile3, createServer4, homedir10, dirname57, join102, PLAY_SCOPES, TOKEN_URI, RefreshTokenAuth, execCommand, GOOGLE_OAUTH_HOSTS, FileCredentialStore, SECURITY_NOT_FOUND, KeychainCredentialStore;
201935
202031
  var init_auth2 = __esm({
201936
202032
  "../../node_modules/@wix/gplay-api/dist/auth.js"() {
201937
202033
  init_define_HHP_CATALOG();
@@ -201943,7 +202039,7 @@ var init_auth2 = __esm({
201943
202039
  ({ chmod, mkdir: mkdir4, readFile: readFile4, rename: rename2, rm: rm3, writeFile: writeFile3 } = __ascBuiltin24);
201944
202040
  ({ createServer: createServer4 } = __ascBuiltin3);
201945
202041
  ({ homedir: homedir10 } = __ascBuiltin4);
201946
- ({ dirname: dirname56, join: join102 } = __ascBuiltin5);
202042
+ ({ dirname: dirname57, join: join102 } = __ascBuiltin5);
201947
202043
  PLAY_SCOPES = ["https://www.googleapis.com/auth/androidpublisher", "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/firebase"];
201948
202044
  TOKEN_URI = `https://${HOSTS.oauth}/token`;
201949
202045
  RefreshTokenAuth = class {
@@ -201999,7 +202095,7 @@ var init_auth2 = __esm({
201999
202095
  return parseStored(text32, this.path);
202000
202096
  }
202001
202097
  async save(user) {
202002
- await mkdir4(dirname56(this.path), { recursive: true, mode: 448 });
202098
+ await mkdir4(dirname57(this.path), { recursive: true, mode: 448 });
202003
202099
  const temp = `${this.path}.${process.pid}.tmp`;
202004
202100
  await writeFile3(temp, JSON.stringify(user), { mode: 384 });
202005
202101
  await chmod(temp, 384);
@@ -202182,7 +202278,7 @@ async function readClosedTestRecord(stateDir2, packageName) {
202182
202278
  }
202183
202279
  async function writeClosedTestRecord(stateDir2, packageName, record6) {
202184
202280
  const path2 = recordPath(stateDir2, packageName);
202185
- await mkdir5(dirname57(path2), { recursive: true, mode: 448 });
202281
+ await mkdir5(dirname58(path2), { recursive: true, mode: 448 });
202186
202282
  await writeFile4(path2, `${JSON.stringify(record6, null, 2)}
202187
202283
  `);
202188
202284
  }
@@ -202224,14 +202320,14 @@ async function setUpClosedTest(edit, setup) {
202224
202320
  }
202225
202321
  return { createdTrack: !existing, replaced };
202226
202322
  }
202227
- var mkdir5, readFile5, writeFile4, dirname57, join103, REQUIRED_TESTERS, REQUIRED_DAYS, CLOSED_TEST_RULE, DAY_MS, LATEST_LOCAL_OFFSET_MS, DATE, recordPath, toDay;
202323
+ var mkdir5, readFile5, writeFile4, dirname58, join103, REQUIRED_TESTERS, REQUIRED_DAYS, CLOSED_TEST_RULE, DAY_MS, LATEST_LOCAL_OFFSET_MS, DATE, recordPath, toDay;
202228
202324
  var init_closedtest = __esm({
202229
202325
  "../../node_modules/@wix/gplay-api/dist/closedtest.js"() {
202230
202326
  init_define_HHP_CATALOG();
202231
202327
  init_errors3();
202232
202328
  init_rollout();
202233
202329
  ({ mkdir: mkdir5, readFile: readFile5, writeFile: writeFile4 } = __ascBuiltin07);
202234
- ({ dirname: dirname57, join: join103 } = __ascBuiltin16);
202330
+ ({ dirname: dirname58, join: join103 } = __ascBuiltin16);
202235
202331
  REQUIRED_TESTERS = 12;
202236
202332
  REQUIRED_DAYS = 14;
202237
202333
  CLOSED_TEST_RULE = `${REQUIRED_TESTERS} testers opted in for ${REQUIRED_DAYS} consecutive days; opting out restarts the count. Google's API can't report any of it, so check Play Console before applying.`;
@@ -206571,9 +206667,9 @@ import * as __ascBuiltin32 from "node:util";
206571
206667
  async function realPathOf(path2) {
206572
206668
  const rest = [];
206573
206669
  let dir = resolve72(path2);
206574
- while (!await exists(dir) && dirname58(dir) !== dir) {
206670
+ while (!await exists(dir) && dirname59(dir) !== dir) {
206575
206671
  rest.unshift(basename26(dir));
206576
- dir = dirname58(dir);
206672
+ dir = dirname59(dir);
206577
206673
  }
206578
206674
  try {
206579
206675
  return join106(await realpath(dir), ...rest);
@@ -206582,10 +206678,10 @@ async function realPathOf(path2) {
206582
206678
  }
206583
206679
  }
206584
206680
  async function insideGitRepository(path2) {
206585
- for (let dir = dirname58(await realPathOf(path2)); ; dir = dirname58(dir)) {
206681
+ for (let dir = dirname59(await realPathOf(path2)); ; dir = dirname59(dir)) {
206586
206682
  if (await exists(join106(dir, ".git")))
206587
206683
  return true;
206588
- if (dirname58(dir) === dir)
206684
+ if (dirname59(dir) === dir)
206589
206685
  return false;
206590
206686
  }
206591
206687
  }
@@ -206609,7 +206705,7 @@ async function generateUploadKey(options2) {
206609
206705
  throw new GplayError("refused", `${file2} already exists; move it first`);
206610
206706
  if (await insideGitRepository(keystore))
206611
206707
  throw new GplayError("refused", `${keystore} is inside a Git repository, where a commit could publish it. Choose a path outside any repository.`);
206612
- await mkdir7(dirname58(keystore), { recursive: true, mode: 448 });
206708
+ await mkdir7(dirname59(keystore), { recursive: true, mode: 448 });
206613
206709
  if (await insideGitRepository(keystore))
206614
206710
  throw new GplayError("refused", `${keystore} is inside a Git repository, where a commit could publish it. Choose a path outside any repository.`);
206615
206711
  const password = randomBytes8(32).toString("base64url");
@@ -206634,7 +206730,7 @@ async function generateUploadKey(options2) {
206634
206730
  throw e2;
206635
206731
  }
206636
206732
  }
206637
- var generateKeyPair, randomBytes8, mkdir7, realpath, rm5, stat4, writeFile5, basename26, dirname58, join106, resolve72, promisify, VALIDITY_DAYS, DAY_MS2, generate, exists;
206733
+ var generateKeyPair, randomBytes8, mkdir7, realpath, rm5, stat4, writeFile5, basename26, dirname59, join106, resolve72, promisify, VALIDITY_DAYS, DAY_MS2, generate, exists;
206638
206734
  var init_keygen = __esm({
206639
206735
  "../../node_modules/@wix/gplay-api/dist/keygen.js"() {
206640
206736
  init_define_HHP_CATALOG();
@@ -206644,7 +206740,7 @@ var init_keygen = __esm({
206644
206740
  init_x509();
206645
206741
  ({ generateKeyPair, randomBytes: randomBytes8 } = __ascBuiltin014);
206646
206742
  ({ mkdir: mkdir7, realpath, rm: rm5, stat: stat4, writeFile: writeFile5 } = __ascBuiltin110);
206647
- ({ basename: basename26, dirname: dirname58, join: join106, resolve: resolve72 } = __ascBuiltin25);
206743
+ ({ basename: basename26, dirname: dirname59, join: join106, resolve: resolve72 } = __ascBuiltin25);
206648
206744
  ({ promisify } = __ascBuiltin32);
206649
206745
  VALIDITY_DAYS = 1e4;
206650
206746
  DAY_MS2 = 864e5;
@@ -207467,7 +207563,7 @@ async function readPlanRecord(stateDir2, packageName) {
207467
207563
  }
207468
207564
  async function writePlanRecord(stateDir2, packageName, record6) {
207469
207565
  const path2 = planPath(stateDir2, packageName);
207470
- await mkdir10(dirname59(path2), { recursive: true, mode: 448 });
207566
+ await mkdir10(dirname60(path2), { recursive: true, mode: 448 });
207471
207567
  await writeFile8(path2, `${JSON.stringify(record6, null, 2)}
207472
207568
  `);
207473
207569
  }
@@ -207509,7 +207605,7 @@ function buildPlan(context, record6, observed) {
207509
207605
  };
207510
207606
  });
207511
207607
  }
207512
- var mkdir10, readdir4, readFile9, writeFile8, dirname59, join109, CONSOLE, q3, yesNo2, ids, declareCmd, known, signer, wixSigned, yesNo, ask2, appContent, account, home, STEPS, STANDARD_OPEN_TRACKS, planPath, PLAN_STEP_IDS, DECLARE_FORM_PLAN_STEP, DECLARATION_TITLE_PLAN_STEP;
207608
+ var mkdir10, readdir4, readFile9, writeFile8, dirname60, join109, CONSOLE, q3, yesNo2, ids, declareCmd, known, signer, wixSigned, yesNo, ask2, appContent, account, home, STEPS, STANDARD_OPEN_TRACKS, planPath, PLAN_STEP_IDS, DECLARE_FORM_PLAN_STEP, DECLARATION_TITLE_PLAN_STEP;
207513
207609
  var init_plan4 = __esm({
207514
207610
  "../../node_modules/@wix/gplay-api/dist/plan.js"() {
207515
207611
  init_define_HHP_CATALOG();
@@ -207517,7 +207613,7 @@ var init_plan4 = __esm({
207517
207613
  init_owner_key();
207518
207614
  init_data_safety_generate();
207519
207615
  ({ mkdir: mkdir10, readdir: readdir4, readFile: readFile9, writeFile: writeFile8 } = __ascBuiltin018);
207520
- ({ dirname: dirname59, join: join109 } = __ascBuiltin113);
207616
+ ({ dirname: dirname60, join: join109 } = __ascBuiltin113);
207521
207617
  CONSOLE = "https://play.google.com/console/u/0/developers";
207522
207618
  q3 = (value2, placeholder3) => value2 ? /^[\w@./:+-]+$/.test(value2) ? value2 : `"${value2.replace(/(["\\$`])/g, "\\$1")}"` : `<${placeholder3}>`;
207523
207619
  yesNo2 = (value2) => value2 === void 0 ? "<no|yes>" : value2 ? "yes" : "no";
@@ -210343,7 +210439,7 @@ async function syncDir(dir) {
210343
210439
  }
210344
210440
  }
210345
210441
  async function atomicWrite(file2, content) {
210346
- const dir = dirname60(file2);
210442
+ const dir = dirname61(file2);
210347
210443
  await mkdir12(dir, { recursive: true, mode: 448 });
210348
210444
  const tmp = join113(dir, `.${randomBytes9(6).toString("hex")}.tmp`);
210349
210445
  try {
@@ -210363,13 +210459,13 @@ async function atomicWrite(file2, content) {
210363
210459
  }
210364
210460
  await syncDir(dir);
210365
210461
  }
210366
- var randomBytes9, mkdir12, open3, rename4, unlink2, dirname60, join113, RETRY_CODES, RENAME_TRIES, sleep, errCode;
210462
+ var randomBytes9, mkdir12, open3, rename4, unlink2, dirname61, join113, RETRY_CODES, RENAME_TRIES, sleep, errCode;
210367
210463
  var init_atomic = __esm({
210368
210464
  "../../node_modules/@wix/asc-core/dist/store-record/atomic.js"() {
210369
210465
  init_define_HHP_CATALOG();
210370
210466
  ({ randomBytes: randomBytes9 } = __ascBuiltin026);
210371
210467
  ({ mkdir: mkdir12, open: open3, rename: rename4, unlink: unlink2 } = __ascBuiltin119);
210372
- ({ dirname: dirname60, join: join113 } = __ascBuiltin29);
210468
+ ({ dirname: dirname61, join: join113 } = __ascBuiltin29);
210373
210469
  RETRY_CODES = /* @__PURE__ */ new Set(["EPERM", "EBUSY", "EACCES"]);
210374
210470
  RENAME_TRIES = 5;
210375
210471
  sleep = (ms2) => new Promise((r3) => setTimeout(r3, ms2));
@@ -210413,7 +210509,7 @@ async function withFileLock(file2, fn2, opts = {}) {
210413
210509
  }
210414
210510
  async function acquire(lock, waitMs, staleMs) {
210415
210511
  const deadline = Date.now() + waitMs;
210416
- await mkdir13(dirname61(lock), { recursive: true, mode: 448 });
210512
+ await mkdir13(dirname62(lock), { recursive: true, mode: 448 });
210417
210513
  const me2 = newOwner();
210418
210514
  for (let delay = 1; ; delay = Math.min(delay * 2, 16)) {
210419
210515
  if (await createExclusive(lock, me2))
@@ -210557,7 +210653,7 @@ async function removeIfId(path2, id, staleMs, mustBeStale, depth) {
210557
210653
  }
210558
210654
  return false;
210559
210655
  }
210560
- var randomBytes10, link2, mkdir13, open4, unlink3, utimes, writeFile11, hostname3, dirname61, resolve75, WAIT_MS, STALE_MS, MAX_CLAIM_DEPTH, HOST2, sleep2, newOwner, queues;
210656
+ var randomBytes10, link2, mkdir13, open4, unlink3, utimes, writeFile11, hostname3, dirname62, resolve75, WAIT_MS, STALE_MS, MAX_CLAIM_DEPTH, HOST2, sleep2, newOwner, queues;
210561
210657
  var init_lock2 = __esm({
210562
210658
  "../../node_modules/@wix/asc-core/dist/store-record/lock.js"() {
210563
210659
  init_define_HHP_CATALOG();
@@ -210565,7 +210661,7 @@ var init_lock2 = __esm({
210565
210661
  ({ randomBytes: randomBytes10 } = __ascBuiltin027);
210566
210662
  ({ link: link2, mkdir: mkdir13, open: open4, unlink: unlink3, utimes, writeFile: writeFile11 } = __ascBuiltin120);
210567
210663
  ({ hostname: hostname3 } = __ascBuiltin210);
210568
- ({ dirname: dirname61, resolve: resolve75 } = __ascBuiltin33);
210664
+ ({ dirname: dirname62, resolve: resolve75 } = __ascBuiltin33);
210569
210665
  WAIT_MS = 6e4;
210570
210666
  STALE_MS = 3e4;
210571
210667
  MAX_CLAIM_DEPTH = 3;
@@ -210795,7 +210891,7 @@ var init_envelope = __esm({
210795
210891
  import * as __ascBuiltin028 from "node:fs/promises";
210796
210892
  import * as __ascBuiltin121 from "node:path";
210797
210893
  async function appendLine(file2, line) {
210798
- await mkdir14(dirname62(file2), { recursive: true, mode: 448 });
210894
+ await mkdir14(dirname63(file2), { recursive: true, mode: 448 });
210799
210895
  const fh = await open5(file2, "a+", 384);
210800
210896
  try {
210801
210897
  const { size } = await fh.stat();
@@ -210834,12 +210930,12 @@ async function readLines(file2) {
210834
210930
  }
210835
210931
  return out2;
210836
210932
  }
210837
- var mkdir14, open5, readFile13, dirname62;
210933
+ var mkdir14, open5, readFile13, dirname63;
210838
210934
  var init_logs = __esm({
210839
210935
  "../../node_modules/@wix/asc-core/dist/store-record/logs.js"() {
210840
210936
  init_define_HHP_CATALOG();
210841
210937
  ({ mkdir: mkdir14, open: open5, readFile: readFile13 } = __ascBuiltin028);
210842
- ({ dirname: dirname62 } = __ascBuiltin121);
210938
+ ({ dirname: dirname63 } = __ascBuiltin121);
210843
210939
  }
210844
210940
  });
210845
210941
 
@@ -215585,10 +215681,10 @@ import * as __ascBuiltin34 from "node:path";
215585
215681
  function assertOutsideRepo(what, path2, fs2 = nodeFs) {
215586
215682
  if (!isAbsolute14(path2))
215587
215683
  throw new CredentialError(`${what} must be an absolute path outside any repository`);
215588
- for (let dir = dirname63(resolve77(path2)); ; dir = dirname63(dir)) {
215684
+ for (let dir = dirname64(resolve77(path2)); ; dir = dirname64(dir)) {
215589
215685
  if (fs2.exists(join117(dir, ".git")))
215590
215686
  throw new CredentialError(`${what} is inside the git work tree at ${dir}; keep credentials outside every repository`);
215591
- if (dirname63(dir) === dir)
215687
+ if (dirname64(dir) === dir)
215592
215688
  return;
215593
215689
  }
215594
215690
  }
@@ -215636,7 +215732,7 @@ function readKey(fs2, path2, what, providerId) {
215636
215732
  throw new CredentialError(`${what} could not be read`, providerId, "unavailable");
215637
215733
  }
215638
215734
  }
215639
- var chmodSync3, existsSync100, mkdirSync43, readdirSync45, readFileSync112, unlinkSync6, writeFileSync42, randomBytes11, homedir13, dirname63, isAbsolute14, join117, resolve77, nodeFs, TRUTHY2, EnvCredentialProvider, PROFILE_FIELDS, FileCredentialProvider;
215735
+ var chmodSync3, existsSync100, mkdirSync43, readdirSync45, readFileSync112, unlinkSync6, writeFileSync42, randomBytes11, homedir13, dirname64, isAbsolute14, join117, resolve77, nodeFs, TRUTHY2, EnvCredentialProvider, PROFILE_FIELDS, FileCredentialProvider;
215640
215736
  var init_local = __esm({
215641
215737
  "../../node_modules/@wix/asc-core/dist/providers/local.js"() {
215642
215738
  init_define_HHP_CATALOG();
@@ -215646,7 +215742,7 @@ var init_local = __esm({
215646
215742
  ({ chmodSync: chmodSync3, existsSync: existsSync100, mkdirSync: mkdirSync43, readdirSync: readdirSync45, readFileSync: readFileSync112, unlinkSync: unlinkSync6, writeFileSync: writeFileSync42 } = __ascBuiltin038);
215647
215743
  ({ randomBytes: randomBytes11 } = __ascBuiltin125);
215648
215744
  ({ homedir: homedir13 } = __ascBuiltin212);
215649
- ({ dirname: dirname63, isAbsolute: isAbsolute14, join: join117, resolve: resolve77 } = __ascBuiltin34);
215745
+ ({ dirname: dirname64, isAbsolute: isAbsolute14, join: join117, resolve: resolve77 } = __ascBuiltin34);
215650
215746
  nodeFs = {
215651
215747
  readFile: (p2) => readFileSync112(p2, "utf8"),
215652
215748
  exists: existsSync100,
@@ -215900,7 +215996,7 @@ var init_local = __esm({
215900
215996
  } catch {
215901
215997
  }
215902
215998
  this.fs.remove?.(jsonPath);
215903
- if (keyPath && dirname63(resolve77(keyPath)) === resolve77(this.dir) && /\.p8(\.dpapi)?$/.test(keyPath))
215999
+ if (keyPath && dirname64(resolve77(keyPath)) === resolve77(this.dir) && /\.p8(\.dpapi)?$/.test(keyPath))
215904
216000
  this.fs.remove?.(keyPath);
215905
216001
  return true;
215906
216002
  }
@@ -231002,9 +231098,9 @@ function checkedPem(pem) {
231002
231098
  function realPathOf2(path2) {
231003
231099
  const rest = [];
231004
231100
  let d2 = resolve78(path2);
231005
- while (!existsSync101(d2) && dirname64(d2) !== d2) {
231101
+ while (!existsSync101(d2) && dirname65(d2) !== d2) {
231006
231102
  rest.unshift(basename29(d2));
231007
- d2 = dirname64(d2);
231103
+ d2 = dirname65(d2);
231008
231104
  }
231009
231105
  try {
231010
231106
  return join123(realpathSync14(d2), ...rest);
@@ -231013,10 +231109,10 @@ function realPathOf2(path2) {
231013
231109
  }
231014
231110
  }
231015
231111
  function gitCheckoutOf(path2) {
231016
- for (let d2 = realPathOf2(path2); ; d2 = dirname64(d2)) {
231112
+ for (let d2 = realPathOf2(path2); ; d2 = dirname65(d2)) {
231017
231113
  if (existsSync101(join123(d2, ".git")))
231018
231114
  return d2;
231019
- if (dirname64(d2) === d2)
231115
+ if (dirname65(d2) === d2)
231020
231116
  return void 0;
231021
231117
  }
231022
231118
  }
@@ -231070,14 +231166,14 @@ function reserveKeyFile(dir, keyId) {
231070
231166
  }
231071
231167
  };
231072
231168
  }
231073
- var createPrivateKey6, closeSync9, existsSync101, mkdirSync44, openSync8, realpathSync14, statSync30, unlinkSync7, writeSync3, basename29, dirname64, isAbsolute15, join123, resolve78, TEAM_KEY_ROLES, DOWNLOAD_ATTEMPTS, ApiKeysApi;
231169
+ var createPrivateKey6, closeSync9, existsSync101, mkdirSync44, openSync8, realpathSync14, statSync30, unlinkSync7, writeSync3, basename29, dirname65, isAbsolute15, join123, resolve78, TEAM_KEY_ROLES, DOWNLOAD_ATTEMPTS, ApiKeysApi;
231074
231170
  var init_api_keys = __esm({
231075
231171
  "../../node_modules/@wix/asc-web/dist/api-keys.js"() {
231076
231172
  init_define_HHP_CATALOG();
231077
231173
  init_dist3();
231078
231174
  ({ createPrivateKey: createPrivateKey6 } = __ascBuiltin051);
231079
231175
  ({ closeSync: closeSync9, existsSync: existsSync101, mkdirSync: mkdirSync44, openSync: openSync8, realpathSync: realpathSync14, statSync: statSync30, unlinkSync: unlinkSync7, writeSync: writeSync3 } = __ascBuiltin133);
231080
- ({ basename: basename29, dirname: dirname64, isAbsolute: isAbsolute15, join: join123, resolve: resolve78 } = __ascBuiltin217);
231176
+ ({ basename: basename29, dirname: dirname65, isAbsolute: isAbsolute15, join: join123, resolve: resolve78 } = __ascBuiltin217);
231081
231177
  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"];
231082
231178
  DOWNLOAD_ATTEMPTS = 3;
231083
231179
  ApiKeysApi = class {
@@ -233554,7 +233650,7 @@ function writeSessionBundle(path2, bundle, overwrite) {
233554
233650
  }
233555
233651
  if (exists2 && !overwrite)
233556
233652
  throw new SessionBundleError(`${path2} already exists; pass --overwrite to replace it`);
233557
- const staging = join128(dirname65(path2), `.asc-node-session-${randomBytes16(6).toString("hex")}`);
233653
+ const staging = join128(dirname66(path2), `.asc-node-session-${randomBytes16(6).toString("hex")}`);
233558
233654
  const fd = openSync10(staging, constants9.O_WRONLY | constants9.O_CREAT | constants9.O_EXCL | constants9.O_NOFOLLOW, 384);
233559
233655
  try {
233560
233656
  writeSync5(fd, `${JSON.stringify(bundle, null, 2)}
@@ -233580,7 +233676,7 @@ function readSessionBundle(path2) {
233580
233676
  throw new SessionBundleError(`the session bundle is larger than ${MAX_SESSION_BUNDLE_BYTES} bytes`);
233581
233677
  return readFileSync116(path2, "utf8");
233582
233678
  }
233583
- var chmodSync4, closeSync11, constants9, fstatSync3, lstatSync33, mkdirSync47, openSync10, readFileSync116, renameSync17, rmSync28, statSync35, writeSync5, createHash68, randomBytes16, dirname65, isAbsolute16, join128, resolve80, SESSION_BUNDLE_KIND, SESSION_BUNDLE_VERSION, MAX_SESSION_BUNDLE_BYTES, SessionBundleError, isAppleDomain, SESSION_FILE_VERSION, FileSessionStore, KEYRING_HINT, SecretServiceSessionStore;
233679
+ var chmodSync4, closeSync11, constants9, fstatSync3, lstatSync33, mkdirSync47, openSync10, readFileSync116, renameSync17, rmSync28, statSync35, writeSync5, createHash68, randomBytes16, dirname66, isAbsolute16, join128, resolve80, SESSION_BUNDLE_KIND, SESSION_BUNDLE_VERSION, MAX_SESSION_BUNDLE_BYTES, SessionBundleError, isAppleDomain, SESSION_FILE_VERSION, FileSessionStore, KEYRING_HINT, SecretServiceSessionStore;
233584
233680
  var init_session_transfer = __esm({
233585
233681
  "../../node_modules/@wix/asc-web/dist/session-transfer.js"() {
233586
233682
  init_define_HHP_CATALOG();
@@ -233590,7 +233686,7 @@ var init_session_transfer = __esm({
233590
233686
  init_session();
233591
233687
  ({ chmodSync: chmodSync4, closeSync: closeSync11, constants: constants9, fstatSync: fstatSync3, lstatSync: lstatSync33, mkdirSync: mkdirSync47, openSync: openSync10, readFileSync: readFileSync116, renameSync: renameSync17, rmSync: rmSync28, statSync: statSync35, writeSync: writeSync5 } = __ascBuiltin058);
233592
233688
  ({ createHash: createHash68, randomBytes: randomBytes16 } = __ascBuiltin139);
233593
- ({ dirname: dirname65, isAbsolute: isAbsolute16, join: join128, resolve: resolve80 } = __ascBuiltin220);
233689
+ ({ dirname: dirname66, isAbsolute: isAbsolute16, join: join128, resolve: resolve80 } = __ascBuiltin220);
233594
233690
  SESSION_BUNDLE_KIND = "asc-node-web-session";
233595
233691
  SESSION_BUNDLE_VERSION = 1;
233596
233692
  MAX_SESSION_BUNDLE_BYTES = 1 << 20;
@@ -233608,7 +233704,7 @@ var init_session_transfer = __esm({
233608
233704
  lockOptions;
233609
233705
  box;
233610
233706
  persistent = true;
233611
- constructor(dir, lockDir = join128(dirname65(dir), "web-session-locks"), lockOptions, box) {
233707
+ constructor(dir, lockDir = join128(dirname66(dir), "web-session-locks"), lockOptions, box) {
233612
233708
  this.dir = dir;
233613
233709
  this.lockDir = lockDir;
233614
233710
  this.lockOptions = lockOptions;
@@ -245888,7 +245984,7 @@ __export(store_host_exports, {
245888
245984
  import { spawn as spawn8 } from "node:child_process";
245889
245985
  import { existsSync as existsSync104, lstatSync as lstatSync34, readFileSync as readFileSync126, readdirSync as readdirSync49, realpathSync as realpathSync17 } from "node:fs";
245890
245986
  import { homedir as homedir16, hostname as hostname6, userInfo as userInfo3 } from "node:os";
245891
- import { delimiter as delimiter4, dirname as dirname66, isAbsolute as isAbsolute18, join as join135, relative as relative26, resolve as resolve87, sep as sep30 } from "node:path";
245987
+ import { delimiter as delimiter4, dirname as dirname67, isAbsolute as isAbsolute18, join as join135, relative as relative26, resolve as resolve87, sep as sep30 } from "node:path";
245892
245988
  function storeNodeRefusal(version5 = process.versions.node) {
245893
245989
  const major = Number(version5.split(".")[0]);
245894
245990
  return Number.isFinite(major) && major >= STORE_MIN_NODE_MAJOR ? void 0 : `App Store submission needs Node ${STORE_MIN_NODE_MAJOR} or newer (this is Node ${version5}). Install a current Node, then run the command again.`;
@@ -246063,7 +246159,7 @@ function factPathIn(dir, realDir, key4, p2, file2 = STORE_FACTS_FILE) {
246063
246159
  const path2 = resolve87(base2, p2);
246064
246160
  if (path2 === base2 || !path2.startsWith(base2 + sep30)) throw refuse10();
246065
246161
  let probe2 = path2;
246066
- while (!existsSync104(probe2) && probe2 !== base2) probe2 = dirname66(probe2);
246162
+ while (!existsSync104(probe2) && probe2 !== base2) probe2 = dirname67(probe2);
246067
246163
  let real;
246068
246164
  try {
246069
246165
  real = realpathSync17(probe2);
@@ -248063,7 +248159,7 @@ __export(input_evidence_isolation_exports, {
248063
248159
  });
248064
248160
  async function installInputEvidenceIsolation(dir) {
248065
248161
  const { lstatSync: lstatSync44, readdirSync: readdirSync68, readlinkSync: readlinkSync4, realpathSync: realpathSync27 } = await import("node:fs");
248066
- const { dirname: dirname93, isAbsolute: isAbsolute25, join: join223, relative: relative41, resolve: resolve139, sep: sep37 } = await import("node:path");
248162
+ const { dirname: dirname94, isAbsolute: isAbsolute25, join: join223, relative: relative41, resolve: resolve139, sep: sep37 } = await import("node:path");
248067
248163
  const root = resolve139(dir);
248068
248164
  const privateDir = join223(root, ".himi");
248069
248165
  const privateReal = join223(realpathSync27(root), ".himi") + sep37;
@@ -248077,7 +248173,7 @@ async function installInputEvidenceIsolation(dir) {
248077
248173
  if (path2 === recording) {
248078
248174
  const link4 = readlinkSync4(path2);
248079
248175
  if (isAbsolute25(link4)) return false;
248080
- const target = resolve139(dirname93(path2), link4);
248176
+ const target = resolve139(dirname94(path2), link4);
248081
248177
  if (!within2(privateDir, target)) return false;
248082
248178
  if (realpathSync27(path2) !== join223(realpathSync27(root), relative41(root, target))) return false;
248083
248179
  return lstatSync44(target).isFile();
@@ -249283,7 +249379,7 @@ import { spawnSync as spawnSync11 } from "node:child_process";
249283
249379
  import { createHash as createHash76 } from "node:crypto";
249284
249380
  import { copyFileSync as copyFileSync3, existsSync as existsSync111, mkdirSync as mkdirSync55, mkdtempSync as mkdtempSync9, readFileSync as readFileSync132, rmSync as rmSync31, writeFileSync as writeFileSync52 } from "node:fs";
249285
249381
  import { tmpdir as tmpdir10 } from "node:os";
249286
- import { dirname as dirname69, isAbsolute as isAbsolute19, join as join144, resolve as resolve93 } from "node:path";
249382
+ import { dirname as dirname70, isAbsolute as isAbsolute19, join as join144, resolve as resolve93 } from "node:path";
249287
249383
  import { pathToFileURL as pathToFileURL9 } from "node:url";
249288
249384
  import * as cheerio4 from "cheerio";
249289
249385
  function junitOutcome(xml2) {
@@ -249371,8 +249467,8 @@ function eventsOutcome(jsonl) {
249371
249467
  }
249372
249468
  function invokeNodeTests(o2) {
249373
249469
  const content = resolve93(o2.contentDir);
249374
- const reporter = join144(dirname69(o2.reportPath), "himi-widget-events-reporter.mjs");
249375
- const eventsPath = join144(dirname69(o2.reportPath), "events.jsonl");
249470
+ const reporter = join144(dirname70(o2.reportPath), "himi-widget-events-reporter.mjs");
249471
+ const eventsPath = join144(dirname70(o2.reportPath), "events.jsonl");
249376
249472
  writeFileSync52(reporter, EVENT_REPORTER_SOURCE);
249377
249473
  const args = [
249378
249474
  ...o2.imports.flatMap((i2) => ["--import", i2]),
@@ -249447,7 +249543,7 @@ function executeWidgetTests(contentDir2, evidenceDir, runPaths, now = () => (/*
249447
249543
  copyFileSync3(reportPath, join144(content, VERIFY_RUNS, stamp, "junit.xml"));
249448
249544
  report9 = join144(VERIFY_RUNS, stamp, "junit.xml");
249449
249545
  }
249450
- if (run4.events && report9) copyFileSync3(run4.eventsPath, join144(content, dirname69(report9), "events.jsonl"));
249546
+ if (run4.events && report9) copyFileSync3(run4.eventsPath, join144(content, dirname70(report9), "events.jsonl"));
249451
249547
  const outcome = eventsOutcome(run4.events);
249452
249548
  return { exitCode: run4.exitCode, ...outcome ? { cases: outcome.cases, unowned: outcome.unowned, failures: outcome.failures } : {}, files, ...report9 ? { report: report9 } : {} };
249453
249549
  } finally {
@@ -256881,10 +256977,10 @@ __export(shot_files_exports, {
256881
256977
  });
256882
256978
  import { createHash as createHash83 } from "node:crypto";
256883
256979
  import { mkdirSync as mkdirSync56, readdirSync as readdirSync54, readFileSync as readFileSync144, rmSync as rmSync35, statSync as statSync43 } from "node:fs";
256884
- import { basename as basename35, dirname as dirname70, join as join156, relative as relative30, resolve as resolve99, sep as sep32 } from "node:path";
256980
+ import { basename as basename35, dirname as dirname71, join as join156, relative as relative30, resolve as resolve99, sep as sep32 } from "node:path";
256885
256981
  function writeAtomic2(file2, bytes2) {
256886
256982
  for (let attempt2 = 0; ; attempt2++) {
256887
- mkdirSync56(dirname70(file2), { recursive: true });
256983
+ mkdirSync56(dirname71(file2), { recursive: true });
256888
256984
  try {
256889
256985
  writeFileAtomic(file2, bytes2);
256890
256986
  return;
@@ -256924,8 +257020,8 @@ function pruneRenders(dir, opts = {}) {
256924
257020
  if (now - mtime >= STALE_TMP_MS) rmSync35(f2, { force: true });
256925
257021
  continue;
256926
257022
  }
256927
- let files = byScreen.get(dirname70(f2));
256928
- if (!files) byScreen.set(dirname70(f2), files = []);
257023
+ let files = byScreen.get(dirname71(f2));
257024
+ if (!files) byScreen.set(dirname71(f2), files = []);
256929
257025
  files.push({ f: f2, mtime });
256930
257026
  }
256931
257027
  for (const files of byScreen.values()) {
@@ -257018,7 +257114,7 @@ __export(coverage_exports2, {
257018
257114
  trendAndStore: () => trendAndStore
257019
257115
  });
257020
257116
  import { existsSync as existsSync123, mkdirSync as mkdirSync57, readFileSync as readFileSync145, writeFileSync as writeFileSync58 } from "node:fs";
257021
- import { dirname as dirname71, join as join157 } from "node:path";
257117
+ import { dirname as dirname72, join as join157 } from "node:path";
257022
257118
  function suppressedNativeKeys(oracle) {
257023
257119
  return [...oracle.ios ? [] : ["native-decode|ios"], ...oracle.android ? [] : ["native-decode|android"]];
257024
257120
  }
@@ -257210,7 +257306,7 @@ function trendAndStore(dir, entries, suppressed) {
257210
257306
  const current = entries.map((e2) => e2.key);
257211
257307
  const stored = [.../* @__PURE__ */ new Set([...current, ...(previous ?? []).filter((key4) => (suppressed ?? []).includes(key4))])];
257212
257308
  try {
257213
- mkdirSync57(dirname71(p2), { recursive: true });
257309
+ mkdirSync57(dirname72(p2), { recursive: true });
257214
257310
  writeFileSync58(p2, JSON.stringify({ keys: stored, ts: (/* @__PURE__ */ new Date()).toISOString() }, null, 2));
257215
257311
  } catch {
257216
257312
  return null;
@@ -257255,7 +257351,7 @@ function diffAndStoreObservations(dir, current) {
257255
257351
  } catch {
257256
257352
  }
257257
257353
  try {
257258
- mkdirSync57(dirname71(p2), { recursive: true });
257354
+ mkdirSync57(dirname72(p2), { recursive: true });
257259
257355
  writeFileSync58(p2, JSON.stringify({ screens: current, ts: (/* @__PURE__ */ new Date()).toISOString() }, null, 2));
257260
257356
  } catch {
257261
257357
  return null;
@@ -257644,7 +257740,7 @@ var init_render_cache = __esm({
257644
257740
 
257645
257741
  // src/commands/render.ts
257646
257742
  import { readFileSync as readFileSync148 } from "node:fs";
257647
- import { dirname as dirname72, join as join160, resolve as resolve101 } from "node:path";
257743
+ import { dirname as dirname73, join as join160, resolve as resolve101 } from "node:path";
257648
257744
  import { fileURLToPath as fileURLToPath36 } from "node:url";
257649
257745
  function renderDeviceWidths() {
257650
257746
  return {
@@ -257782,7 +257878,7 @@ function renderBatchRefusal(flags) {
257782
257878
  async function renderBuild(dir, app2, a3, opts) {
257783
257879
  const { cliFingerprint: cliFingerprint2, dropBuildDir: dropBuildDir2, envUnchanged: envUnchanged2, keepBuild: keepBuild2, newBuildDir: newBuildDir2, outsideEnvRecording: outsideEnvRecording2, readKeptBuild: readKeptBuild2, recordingEnvReads: recordingEnvReads2, renderCacheKey: renderCacheKey2 } = await Promise.resolve().then(() => (init_render_cache(), render_cache_exports));
257784
257880
  const head2 = a3.gitSha();
257785
- const monorepo = head2 === "dev" ? null : { head: head2, diff: currentGitDiffHash(dirname72(fileURLToPath36(import.meta.url))) };
257881
+ const monorepo = head2 === "dev" ? null : { head: head2, diff: currentGitDiffHash(dirname73(fileURLToPath36(import.meta.url))) };
257786
257882
  const inputs = {
257787
257883
  cli: cliFingerprint2(cliVersion(), monorepo),
257788
257884
  sdk: JSON.stringify({ resolution: opts.resolution ?? "default", umbrella: a3.umbrellaVersion(dir) }),
@@ -258773,7 +258869,7 @@ __export(validate_design_exports, {
258773
258869
  });
258774
258870
  import { randomBytes as randomBytes21 } from "node:crypto";
258775
258871
  import { closeSync as closeSync12, constants as constants10, existsSync as existsSync129, lstatSync as lstatSync37, openSync as openSync11, readFileSync as readFileSync152, realpathSync as realpathSync20, renameSync as renameSync21, unlinkSync as unlinkSync9, writeFileSync as writeFileSync61 } from "node:fs";
258776
- import { dirname as dirname73, isAbsolute as isAbsolute21, join as join164, relative as relative31, resolve as resolve103, sep as sep33, win32 } from "node:path";
258872
+ import { dirname as dirname74, isAbsolute as isAbsolute21, join as join164, relative as relative31, resolve as resolve103, sep as sep33, win32 } from "node:path";
258777
258873
  import ts30 from "typescript";
258778
258874
  function readColorToken(tokens2, name) {
258779
258875
  const entry = obj23(tokens2.colors)?.[name];
@@ -259017,7 +259113,7 @@ function writableTokensPath(contentDir2, location) {
259017
259113
  return path2;
259018
259114
  }
259019
259115
  function writeFixedTokens(contentDir2, location, path2, tokens2) {
259020
- const temp = join164(dirname73(path2), `.himi-design-${process.pid}-${randomBytes21(6).toString("hex")}.tmp`);
259116
+ const temp = join164(dirname74(path2), `.himi-design-${process.pid}-${randomBytes21(6).toString("hex")}.tmp`);
259021
259117
  const mode = lstatSync37(path2).mode & 511;
259022
259118
  const fd = openSync11(temp, constants10.O_WRONLY | constants10.O_CREAT | constants10.O_EXCL | (constants10.O_NOFOLLOW ?? 0), mode);
259023
259119
  try {
@@ -259221,7 +259317,7 @@ function safeEvidencePath(contentDir2, name) {
259221
259317
  }
259222
259318
  function writeEvidenceFile(contentDir2, name, contents) {
259223
259319
  const path2 = safeEvidencePath(contentDir2, name);
259224
- const temp = join164(dirname73(path2), `.himi-design-${process.pid}-${randomBytes21(6).toString("hex")}.tmp`);
259320
+ const temp = join164(dirname74(path2), `.himi-design-${process.pid}-${randomBytes21(6).toString("hex")}.tmp`);
259225
259321
  const fd = openSync11(temp, constants10.O_WRONLY | constants10.O_CREAT | constants10.O_EXCL | (constants10.O_NOFOLLOW ?? 0), 384);
259226
259322
  try {
259227
259323
  try {
@@ -263083,12 +263179,12 @@ var init_wix_client_id = __esm({
263083
263179
 
263084
263180
  // src/run-godot-web.ts
263085
263181
  import { existsSync as existsSync133, readFileSync as readFileSync155, statSync as statSync48 } from "node:fs";
263086
- import { dirname as dirname74, join as join168, resolve as resolve107 } from "node:path";
263182
+ import { dirname as dirname75, join as join168, resolve as resolve107 } from "node:path";
263087
263183
  import { fileURLToPath as fileURLToPath38 } from "node:url";
263088
263184
  function localGodotWebDir(env = process.env) {
263089
263185
  const explicit3 = env.HIMI_GODOT_WEB_DIR?.trim();
263090
263186
  if (explicit3) return existsSync133(join168(explicit3, "godot.js")) ? resolve107(explicit3) : null;
263091
- const here = dirname74(fileURLToPath38(import.meta.url));
263187
+ const here = dirname75(fileURLToPath38(import.meta.url));
263092
263188
  const checkout = resolve107(here, "../../../packages/himi-game-web/dist/statics/game");
263093
263189
  return existsSync133(join168(checkout, "godot.js")) ? checkout : null;
263094
263190
  }
@@ -263161,53 +263257,53 @@ var init_preview_assets_generated = __esm({
263161
263257
  init_define_HHP_CATALOG();
263162
263258
  init_preview_assets_format();
263163
263259
  PREVIEW_ASSET_MANIFEST = [
263164
- { key: "assets/DashboardHost-CRN-Mh34.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "c32a145029601a9c7b40350c9396c815da9d13cbcc78278da788201e4df254a9" },
263165
- { key: "assets/DevDrawer-CB1y16ph.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "560ac81fce9f34065a137e2ae88cd52a40e2f0db712ce1bed6281ac2f2ce7375" },
263166
- { key: "assets/IdiomCompare-BPTHuiK8.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "b02779ab4950a8a57b81cd6954c6a42b09f7fced18eabea0703d4557bec93770" },
263167
- { key: "assets/LightboxViewer-BGxwpOaJ.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 15926, sha256: "44a4fb4a8008eb87e5a7b81277daf0086bc3d7cb3cad81df31bc294d59dba6af" },
263168
- { key: "assets/OfflineReadingBar-DkK3AErs.js", contentType: "application/javascript; charset=utf-8", offset: 37628, length: 1695, sha256: "4bd5a328b5668e0e9bb3aad7b8b7a39b164a71d10b13807821a452639d2aaf7a" },
263169
- { key: "assets/PhonePreviewControl-DUTlFYxj.js", contentType: "application/javascript; charset=utf-8", offset: 39323, length: 37851, sha256: "d89a968bab5e9149f396a08414c8b699e9e9a79d10363efd71c4fda1c13b4b63" },
263170
- { key: "assets/SchemeCompare-C2yPPC02.js", contentType: "application/javascript; charset=utf-8", offset: 77174, length: 1858, sha256: "4d18176073467b6745c10cffe673dfce40fbe1439f2c772d39cfd0952b68935b" },
263171
- { key: "assets/TopBarSearchStates-BKgTaNtm.js", contentType: "application/javascript; charset=utf-8", offset: 79032, length: 4068, sha256: "df16bd4348eff3c9b87092065e84dfd4ed7c122a030dded9839efd424b3cfbd7" },
263172
- { key: "assets/WixFrogTelemetrySink-B1Fcf2ff.js", contentType: "application/javascript; charset=utf-8", offset: 83100, length: 3515, sha256: "19bf23d5d0dd39f26536814eed1255335f935cd81ff14268d6518715a23d3e7a" },
263260
+ { key: "assets/DashboardHost-BT8DkmlA.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "9ba3c31af6ef84f7db83fff2516fbe6a4773d79ad13ad4d47c82e1fc3097a08e" },
263261
+ { key: "assets/DevDrawer-COoSKeZP.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "07067d5550ffe4f4eaeabeaa8210a9dfaa041bf9d1c1275ca653ea4758e1f903" },
263262
+ { key: "assets/IdiomCompare-h-BEaDAl.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "a1e727635c2efffcee03a589c198c2196142ecf265f117d5915d45318f8e8fab" },
263263
+ { key: "assets/LightboxViewer-BEPuqwkk.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 15926, sha256: "73220b0f092b0cae02946b723121c7bb61dfcb150edfbdf52a43a36204e43239" },
263264
+ { key: "assets/OfflineReadingBar-BpOgSsQ3.js", contentType: "application/javascript; charset=utf-8", offset: 37628, length: 1695, sha256: "c8a3bff03237a036d8938bdcae524ec679815ad78bf56b88cc753f02e25948de" },
263265
+ { key: "assets/PhonePreviewControl-Dgk5c1VY.js", contentType: "application/javascript; charset=utf-8", offset: 39323, length: 37851, sha256: "53d2e35de64fefd8d6ea6968882ef1c89155c8a8f9045542ccd1aac6cf9f9dba" },
263266
+ { key: "assets/SchemeCompare-DbA3uSUa.js", contentType: "application/javascript; charset=utf-8", offset: 77174, length: 1858, sha256: "55852ef93fdea23e0b17737a7e7a8900d3870a465852970a20c3d31be5b21dd7" },
263267
+ { key: "assets/TopBarSearchStates-CoX_tpCx.js", contentType: "application/javascript; charset=utf-8", offset: 79032, length: 4068, sha256: "bef5f89920dc34a23427d8e80a3267e10fb3519e6253f60c87a1e629128826b8" },
263268
+ { key: "assets/WixFrogTelemetrySink-BDwXu5uB.js", contentType: "application/javascript; charset=utf-8", offset: 83100, length: 3515, sha256: "6c182cd757b10e8760b1a9ba76059a64e94ee031e4e473ef88a70e9fce5df663" },
263173
263269
  { key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 86615, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
263174
263270
  { key: "assets/catalog-B4UJpy5D.js", contentType: "application/javascript; charset=utf-8", offset: 88807, length: 35626, sha256: "90111ffcf2d13eff399836acafd1f2b387859440a29dcd4a0afd8370915992cb" },
263175
- { key: "assets/catalogFontFaces-1lURaVaO.js", contentType: "application/javascript; charset=utf-8", offset: 124433, length: 1111, sha256: "4e007993bcea8eddafbd068cd039896568a03365218d53a9a7211ac8aa68cb54" },
263271
+ { key: "assets/catalogFontFaces-C1hTI5lA.js", contentType: "application/javascript; charset=utf-8", offset: 124433, length: 1111, sha256: "95664932cfc29545ddd73d08e039006c1f0dd14b1e5b3690194f6effb7dac44b" },
263176
263272
  { key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 125544, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
263177
- { key: "assets/files-transfer-COd_y45q.js", contentType: "application/javascript; charset=utf-8", offset: 128111, length: 6446, sha256: "9a620b7c5956ab80787f92910648ea60d913bfddcbba55ea021d833646d89ae8" },
263273
+ { key: "assets/files-transfer-BMWE5CWZ.js", contentType: "application/javascript; charset=utf-8", offset: 128111, length: 6446, sha256: "b2f7b9827741a8bf0a63bccf18075a387652a0bc1dacccc12db3466a4f23b174" },
263178
263274
  { key: "assets/frogActionMap-CTMe3Bz1.js", contentType: "application/javascript; charset=utf-8", offset: 134557, length: 1172, sha256: "9f1ce4c70a680dfb902949e1f482c7e47500b69c3350cd091b1b51d674032d53" },
263179
- { key: "assets/frogApiRules-CvXFxHcD.js", contentType: "application/javascript; charset=utf-8", offset: 135729, length: 2207, sha256: "f6fa68f162b871cecde3c065f584edd2b50f3fc511aea1023a2e4228617d08a9" },
263275
+ { key: "assets/frogApiRules-CUYMIDZv.js", contentType: "application/javascript; charset=utf-8", offset: 135729, length: 2207, sha256: "30f30ea4bdf79a424b592fc4db38efd0fa501dc14ccd7b439aeaf54a30c9c95b" },
263180
263276
  { key: "assets/frogScreenMap-S_IRnz20.js", contentType: "application/javascript; charset=utf-8", offset: 137936, length: 1067, sha256: "22b2f71e1b06df8f1e79b890d47fe42e983d37865c2cc9be753e4121764c91e1" },
263181
263277
  { key: "assets/glassPreviewBrowser-DONaOehd.js", contentType: "application/javascript; charset=utf-8", offset: 139003, length: 6578, sha256: "4402c4cddd2a564e7466cdf1e12a0e0277c0400b288e1e5eda1d23e797599d31" },
263182
263278
  { key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 145581, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
263183
- { key: "assets/index-Ba0zCUvn.js", contentType: "application/javascript; charset=utf-8", offset: 148285, length: 1703087, sha256: "3df827f639054956bb4a5afb6f2eae0a63b683ae359080c5115383c60bfbd00d" },
263184
- { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1851372, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
263185
- { key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1859123, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
263186
- { key: "assets/pdf-BRHvTKyX.js", contentType: "application/javascript; charset=utf-8", offset: 1869654, length: 488215, sha256: "c0c9168ac683637ad53e3365739c050ca372b6fd84b920b90ee3050a0cafca62" },
263187
- { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2357869, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
263188
- { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2357959, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
263189
- { key: "assets/pdfDocument-DOMS9qXO.js", contentType: "application/javascript; charset=utf-8", offset: 3674993, length: 3836, sha256: "01cf4ade685b73344ce3e42ac1cd2de277bd3a75d2ada113129df466b12a8948" },
263190
- { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3678829, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
263191
- { key: "assets/scrollLinkedRuntime-f0QP02-y.js", contentType: "application/javascript; charset=utf-8", offset: 3681095, length: 2278, sha256: "52d04a7b395992455df86d31b65ab051d2b9555a727504263ba6f434f5cc7f92" },
263192
- { key: "assets/webviewBridgeHost-Cdq03xi9.js", contentType: "application/javascript; charset=utf-8", offset: 3683373, length: 9889, sha256: "3e18357b7bf7e185d4b25472004d3cd794cd4e978cfbf0363118ca8565254798" },
263193
- { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3693262, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
263194
- { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3697872, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
263195
- { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4186456, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
263196
- { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4277380, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
263197
- { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4368364, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
263198
- { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4459344, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
263199
- { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4550216, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
263200
- { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4641196, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
263201
- { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4749832, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
263202
- { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4858916, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
263203
- { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4967964, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
263204
- { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 5075664, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
263205
- { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5163772, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
263206
- { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5170590, length: 4924, sha256: "ca88454bc062a355be1529bf7dfd5fc6d66884bb132b2d394aaf15de66207af4" },
263207
- { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5175514, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
263208
- { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5186971, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
263209
- { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5188142, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
263210
- { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5212445, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
263279
+ { key: "assets/index-C7vRYjIa.js", contentType: "application/javascript; charset=utf-8", offset: 148285, length: 1703756, sha256: "cdcf41940ad0232cec4f9798d4fe203ef0450694d0d5acabe3bc5ce7fb37ada3" },
263280
+ { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1852041, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
263281
+ { key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1859792, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
263282
+ { key: "assets/pdf-BporS3Tg.js", contentType: "application/javascript; charset=utf-8", offset: 1870323, length: 488215, sha256: "5634539b1de6317bfac96d63062a0cf58803504fbb50489c6758e427a245af27" },
263283
+ { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2358538, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
263284
+ { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2358628, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
263285
+ { key: "assets/pdfDocument-lp5cy7Ss.js", contentType: "application/javascript; charset=utf-8", offset: 3675662, length: 3836, sha256: "380d61c9ca43c08a875a31ee191519bdea459f1ddbf3c476738d29ceba701321" },
263286
+ { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3679498, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
263287
+ { key: "assets/scrollLinkedRuntime-BSIOrFH2.js", contentType: "application/javascript; charset=utf-8", offset: 3681764, length: 2278, sha256: "064a7e665325880b251d109554f5825cebf463e5b947ce4e3e2a4d15900ac404" },
263288
+ { key: "assets/webviewBridgeHost-D9HltZpr.js", contentType: "application/javascript; charset=utf-8", offset: 3684042, length: 9889, sha256: "be3bfd23892c8d56cfd13d2743aca87d8a7e99ada7b4369fa3172a2b8ae929ca" },
263289
+ { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3693931, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
263290
+ { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3698541, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
263291
+ { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4187125, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
263292
+ { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4278049, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
263293
+ { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4369033, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
263294
+ { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4460013, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
263295
+ { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4550885, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
263296
+ { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4641865, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
263297
+ { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4750501, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
263298
+ { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4859585, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
263299
+ { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4968633, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
263300
+ { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 5076333, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
263301
+ { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5164441, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
263302
+ { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5171259, length: 4924, sha256: "999cd0100c76753cbd057a9e12e32b1ece9f35805ccc0168d39dbda2ac8dd56d" },
263303
+ { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5176183, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
263304
+ { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5187640, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
263305
+ { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5188811, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
263306
+ { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5213114, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
263211
263307
  ];
263212
263308
  }
263213
263309
  });
@@ -263229,7 +263325,7 @@ __export(run_exports, {
263229
263325
  });
263230
263326
  import { cpSync as cpSync2, existsSync as existsSync134, lstatSync as lstatSync38, mkdirSync as mkdirSync60, mkdtempSync as mkdtempSync12, readdirSync as readdirSync60, readFileSync as readFileSync156, rmSync as rmSync40, statSync as statSync49 } from "node:fs";
263231
263327
  import { networkInterfaces as osNetworkInterfaces, tmpdir as tmpdir13 } from "node:os";
263232
- import { dirname as dirname75, join as join169 } from "node:path";
263328
+ import { dirname as dirname76, join as join169 } from "node:path";
263233
263329
  import { fileURLToPath as fileURLToPath39 } from "node:url";
263234
263330
  function makePackageRunHandler(opts) {
263235
263331
  const store = new FileReleaseStore(opts.releaseRoot);
@@ -263326,7 +263422,7 @@ async function resolvePackage(source2, workDir) {
263326
263422
  }
263327
263423
  async function loadPreviewAssets(deps = {}) {
263328
263424
  try {
263329
- const here = dirname75(fileURLToPath39(import.meta.url));
263425
+ const here = dirname76(fileURLToPath39(import.meta.url));
263330
263426
  const published = join169(here, "preview-assets.generated.bin");
263331
263427
  const repoRoot2 = join169(here, "../../..");
263332
263428
  if (!existsSync134(published) && existsSync134(join169(repoRoot2, "packages/serve/scripts/preview-embed-fresh.mjs"))) {
@@ -263485,7 +263581,7 @@ __export(run_browser_exports, {
263485
263581
  import { createServer as createServer8 } from "node:http";
263486
263582
  import { existsSync as existsSync135, readFileSync as readFileSync157 } from "node:fs";
263487
263583
  import { spawnSync as spawnSync13 } from "node:child_process";
263488
- import { dirname as dirname76, resolve as resolve108 } from "node:path";
263584
+ import { dirname as dirname77, resolve as resolve108 } from "node:path";
263489
263585
  import { fileURLToPath as fileURLToPath40 } from "node:url";
263490
263586
  function stagedDir() {
263491
263587
  return browserPlaneDir({ repo: REPO5, here: HERE4, out: process.env.HIMI_BROWSER_PLANE_OUT });
@@ -263657,7 +263753,7 @@ var init_run_browser = __esm({
263657
263753
  init_open_url();
263658
263754
  init_file_store();
263659
263755
  init_wix_client_id();
263660
- HERE4 = dirname76(fileURLToPath40(import.meta.url));
263756
+ HERE4 = dirname77(fileURLToPath40(import.meta.url));
263661
263757
  REPO5 = resolve108(HERE4, "..", "..", "..");
263662
263758
  STAGE_SCRIPT = ["core", "serve", "scripts", "stage-browser-plane.mjs"];
263663
263759
  SERVED = /* @__PURE__ */ new Set(["host.html", "sw.js", "package-reader.js"]);
@@ -270063,7 +270159,7 @@ var init_store_iap_connect = __esm({
270063
270159
  });
270064
270160
 
270065
270161
  // src/store-iap-screenshots.ts
270066
- import { dirname as dirname77, join as join179, relative as relative33 } from "node:path";
270162
+ import { dirname as dirname78, join as join179, relative as relative33 } from "node:path";
270067
270163
  function purchaseScreensFor(item2) {
270068
270164
  const screen = item2.wix && PURCHASE_SCREENS[item2.wix.entityType];
270069
270165
  if (!screen || !item2.wix) return [];
@@ -270191,7 +270287,7 @@ async function shoot(selected, run4, outDir) {
270191
270287
  } catch (e2) {
270192
270288
  return { ...report9, skipped: `could not save the screenshot: ${e2.message}` };
270193
270289
  }
270194
- return { ...report9, screenshot: relative33(dirname77(run4.manifestPath), path2) };
270290
+ return { ...report9, screenshot: relative33(dirname78(run4.manifestPath), path2) };
270195
270291
  }
270196
270292
  function visibleText2(html) {
270197
270293
  return html.replace(/&nbsp;|&#160;|&#xa0;/gi, "\xA0").replace(/&amp;/g, "&");
@@ -270203,7 +270299,7 @@ function manifestWithScreenshots(text32, shot) {
270203
270299
  `;
270204
270300
  }
270205
270301
  async function takeReviewScreenshots(run4) {
270206
- const outDir = run4.outDir ?? join179(dirname77(run4.manifestPath), DEFAULT_OUT_DIR);
270302
+ const outDir = run4.outDir ?? join179(dirname78(run4.manifestPath), DEFAULT_OUT_DIR);
270207
270303
  const items = unknownOnlyIds(run4);
270208
270304
  const shot = /* @__PURE__ */ new Map();
270209
270305
  try {
@@ -270391,7 +270487,7 @@ import { execFileSync as execFileSync10 } from "node:child_process";
270391
270487
  import { randomUUID as randomUUID17 } from "node:crypto";
270392
270488
  import { appendFileSync as appendFileSync2, mkdirSync as mkdirSync61, readFileSync as readFileSync168, realpathSync as realpathSync22, renameSync as renameSync25, rmSync as rmSync44, writeFileSync as writeFileSync64 } from "node:fs";
270393
270489
  import { homedir as homedir20, hostname as hostname7 } from "node:os";
270394
- import { dirname as dirname78, join as join181, resolve as resolve115 } from "node:path";
270490
+ import { dirname as dirname79, join as join181, resolve as resolve115 } from "node:path";
270395
270491
  function scrubDeep(value2, scrub) {
270396
270492
  if (typeof value2 === "string") return scrub(value2);
270397
270493
  if (Array.isArray(value2)) return value2.map((v2) => scrubDeep(v2, scrub));
@@ -270426,7 +270522,7 @@ function readManifest3(deps, path2) {
270426
270522
  return parseIapManifest(readInput2(deps, path2, "manifest"), path2);
270427
270523
  }
270428
270524
  function manifestDirOf(manifestPath) {
270429
- return dirname78(resolve115(manifestPath));
270525
+ return dirname79(resolve115(manifestPath));
270430
270526
  }
270431
270527
  function readPlan2(deps, path2) {
270432
270528
  const text32 = readInput2(deps, path2, "plan");
@@ -271056,7 +271152,7 @@ async function screenshotsCommand(flags, deps, out2) {
271056
271152
  return report9.complete ? 0 : 1;
271057
271153
  }
271058
271154
  function writeBinaryFile(path2, bytes2) {
271059
- mkdirSync61(dirname78(path2), { recursive: true });
271155
+ mkdirSync61(dirname79(path2), { recursive: true });
271060
271156
  const partial = `${path2}.${process.pid}.partial`;
271061
271157
  writeFileSync64(partial, bytes2);
271062
271158
  renameSync25(partial, path2);
@@ -271646,7 +271742,7 @@ __export(preflight_app_exports, {
271646
271742
  });
271647
271743
  import { readFileSync as readFileSync169, existsSync as existsSync143, readdirSync as readdirSync62, statSync as statSync50 } from "node:fs";
271648
271744
  import { createHash as createHash93 } from "node:crypto";
271649
- import { dirname as dirname79, join as join182 } from "node:path";
271745
+ import { dirname as dirname80, join as join182 } from "node:path";
271650
271746
  function analyze(projectYml, storeConfig, icon, account2, adopted) {
271651
271747
  const f2 = [];
271652
271748
  const has = (re2, s5) => re2.test(s5);
@@ -271792,7 +271888,7 @@ function readXcconfigVars(iosDir, projectYml) {
271792
271888
  for (const raw of readFileSync169(path2, "utf8").split("\n")) {
271793
271889
  const inc = /^\s*#include\??\s+"([^"]+)"/.exec(raw);
271794
271890
  if (inc) {
271795
- read2(join182(dirname79(path2), inc[1]));
271891
+ read2(join182(dirname80(path2), inc[1]));
271796
271892
  continue;
271797
271893
  }
271798
271894
  const line = raw.replace(/\/\/.*$/, "");
@@ -272656,7 +272752,7 @@ var init_component_lookup = __esm({
272656
272752
  // ../../core/functions-secrets/src/vault.ts
272657
272753
  import { createCipheriv as createCipheriv2, createDecipheriv as createDecipheriv3, randomBytes as randomBytes24 } from "node:crypto";
272658
272754
  import { mkdir as mkdir21, readFile as readFile25, rename as rename9, writeFile as writeFile17 } from "node:fs/promises";
272659
- import { dirname as dirname80 } from "node:path";
272755
+ import { dirname as dirname81 } from "node:path";
272660
272756
  function createJsonSecretStore(filePath) {
272661
272757
  const read2 = async () => {
272662
272758
  try {
@@ -272669,7 +272765,7 @@ function createJsonSecretStore(filePath) {
272669
272765
  }
272670
272766
  };
272671
272767
  const write3 = async (records) => {
272672
- await mkdir21(dirname80(filePath), { recursive: true });
272768
+ await mkdir21(dirname81(filePath), { recursive: true });
272673
272769
  const temporary = `${filePath}.${process.pid}.tmp`;
272674
272770
  await writeFile17(temporary, `${JSON.stringify(records, null, 2)}
272675
272771
  `, { mode: 384 });
@@ -273333,7 +273429,7 @@ __export(notify_exports, {
273333
273429
  });
273334
273430
  import { chmodSync as chmodSync6, mkdirSync as mkdirSync62, readFileSync as readFileSync176, writeFileSync as writeFileSync66 } from "node:fs";
273335
273431
  import { homedir as homedir21 } from "node:os";
273336
- import { dirname as dirname81, join as join187 } from "node:path";
273432
+ import { dirname as dirname82, join as join187 } from "node:path";
273337
273433
  function defaultSessionsPath() {
273338
273434
  return process.env.HIMI_ADMIN_SESSIONS_FILE ?? join187(homedir21(), ".himalaya", "admin-sessions.json");
273339
273435
  }
@@ -273347,10 +273443,10 @@ function loadSessionsFile(path2 = defaultSessionsPath()) {
273347
273443
  function saveAdminSession(adminUrl, session, path2 = defaultSessionsPath()) {
273348
273444
  const file2 = loadSessionsFile(path2);
273349
273445
  file2.sessions = { ...file2.sessions, [adminUrl]: session };
273350
- mkdirSync62(dirname81(path2), { recursive: true, mode: 448 });
273446
+ mkdirSync62(dirname82(path2), { recursive: true, mode: 448 });
273351
273447
  writeFileSync66(path2, JSON.stringify(file2, null, 2) + "\n", { mode: 384 });
273352
273448
  try {
273353
- chmodSync6(dirname81(path2), 448);
273449
+ chmodSync6(dirname82(path2), 448);
273354
273450
  chmodSync6(path2, 384);
273355
273451
  } catch {
273356
273452
  }
@@ -274396,7 +274492,7 @@ __export(runtime_copy_exports, {
274396
274492
  import { createHash as createHash96 } from "node:crypto";
274397
274493
  import { existsSync as existsSync147, readFileSync as readFileSync178, writeFileSync as writeFileSync67 } from "node:fs";
274398
274494
  import { readdirSync as readdirSync63 } from "node:fs";
274399
- import { dirname as dirname82, join as join188, relative as relative34, resolve as resolve119 } from "node:path";
274495
+ import { dirname as dirname83, join as join188, relative as relative34, resolve as resolve119 } from "node:path";
274400
274496
  import { fileURLToPath as fileURLToPath41 } from "node:url";
274401
274497
  function appSourceCatalogs() {
274402
274498
  const appsDir = join188(REPO_ROOT8, "apps");
@@ -274499,7 +274595,7 @@ var REPO_ROOT8, TABLE_PATH, SWIFT_OUT, KOTLIN_OUT, TS_OUT, HEADER3, RENDERER_PRE
274499
274595
  var init_runtime_copy = __esm({
274500
274596
  "../l10n/runtime-copy.ts"() {
274501
274597
  init_define_HHP_CATALOG();
274502
- REPO_ROOT8 = resolve119(dirname82(fileURLToPath41(import.meta.url)), "../..");
274598
+ REPO_ROOT8 = resolve119(dirname83(fileURLToPath41(import.meta.url)), "../..");
274503
274599
  TABLE_PATH = join188(REPO_ROOT8, "core/runtime/l10n/runtime/en.json");
274504
274600
  SWIFT_OUT = join188(REPO_ROOT8, "core/runtime/ios/HimalayaCore/Sources/HimalayaCore/RuntimeCopyDefaults.generated.swift");
274505
274601
  KOTLIN_OUT = join188(REPO_ROOT8, "core/runtime/android/io/himalaya/core/src/main/kotlin/io/himalaya/core/RuntimeCopyDefaults.generated.kt");
@@ -274509,7 +274605,7 @@ var init_runtime_copy = __esm({
274509
274605
  // the app's served \`$t:\` catalog wins over every value here.
274510
274606
  `;
274511
274607
  RENDERER_PREFIXES = ["runtime.component.", "runtime.state.retry", "runtime.state.takeAction", "runtime.state.server.", "runtime.state.offline.", "runtime.state.permission.", "runtime.state.signIn.", "runtime.nav.resizeSheet", "runtime.nav.dismiss", "runtime.dialog.cancel", "runtime.dialog.confirm", "runtime.dialog.delete", "runtime.webview.pageError"];
274512
- RENDERER_EXCLUDE = /* @__PURE__ */ new Set(["runtime.component.image.label", "runtime.component.image.openPreview", "runtime.component.region.failed", "runtime.component.list.empty"]);
274608
+ RENDERER_EXCLUDE = /* @__PURE__ */ new Set(["runtime.component.image.openPreview", "runtime.component.region.failed", "runtime.component.list.empty"]);
274513
274609
  RUNTIME_KIND = "Runtime.native";
274514
274610
  if (false) main();
274515
274611
  }
@@ -274553,7 +274649,7 @@ __export(auth_gate_copy_exports, {
274553
274649
  });
274554
274650
  import { createHash as createHash97 } from "node:crypto";
274555
274651
  import { existsSync as existsSync148, readdirSync as readdirSync64, readFileSync as readFileSync179, writeFileSync as writeFileSync68 } from "node:fs";
274556
- import { dirname as dirname83, join as join189, relative as relative35, resolve as resolve120 } from "node:path";
274652
+ import { dirname as dirname84, join as join189, relative as relative35, resolve as resolve120 } from "node:path";
274557
274653
  import { fileURLToPath as fileURLToPath42 } from "node:url";
274558
274654
  function discoverMessageSources() {
274559
274655
  const roots2 = [
@@ -274767,7 +274863,7 @@ function expectedOutputs2(table = loadTable2()) {
274767
274863
  ];
274768
274864
  for (const p2 of appSourceCatalogs2()) {
274769
274865
  const committed = JSON.parse(readFileSync179(p2, "utf8"));
274770
- out2.push({ path: p2, content: serializeCatalog(injectAllNativeRows(committed, dirname83(dirname83(p2)), table)) });
274866
+ out2.push({ path: p2, content: serializeCatalog(injectAllNativeRows(committed, dirname84(dirname84(p2)), table)) });
274771
274867
  }
274772
274868
  return out2;
274773
274869
  }
@@ -274794,7 +274890,7 @@ var init_auth_gate_copy = __esm({
274794
274890
  init_rules();
274795
274891
  init_governs();
274796
274892
  init_runtime_copy();
274797
- HERE5 = dirname83(fileURLToPath42(import.meta.url));
274893
+ HERE5 = dirname84(fileURLToPath42(import.meta.url));
274798
274894
  REPO_ROOT9 = resolve120(HERE5, "../..");
274799
274895
  TABLE_PATH2 = join189(REPO_ROOT9, "core/runtime/l10n/auth-gate/en.json");
274800
274896
  SWIFT_OUT2 = join189(
@@ -274856,7 +274952,7 @@ var init_auth_gate_copy = __esm({
274856
274952
  });
274857
274953
 
274858
274954
  // ../l10n/extract.ts
274859
- import { resolve as resolve121, join as join190, relative as relative36, dirname as dirname84 } from "node:path";
274955
+ import { resolve as resolve121, join as join190, relative as relative36, dirname as dirname85 } from "node:path";
274860
274956
  import { createHash as createHash98 } from "node:crypto";
274861
274957
  import { fileURLToPath as fileURLToPath43 } from "node:url";
274862
274958
  function keyOf3(source2) {
@@ -275603,7 +275699,7 @@ __export(generate_exports, {
275603
275699
  });
275604
275700
  import { createHash as createHash99 } from "node:crypto";
275605
275701
  import { existsSync as existsSync151, mkdirSync as mkdirSync64, readdirSync as readdirSync66, readFileSync as readFileSync182, writeFileSync as writeFileSync71 } from "node:fs";
275606
- import { dirname as dirname86, join as join193 } from "node:path";
275702
+ import { dirname as dirname87, join as join193 } from "node:path";
275607
275703
  function withHeader(body) {
275608
275704
  return `${GENERATED_HEADER}${sha2568(body)}
275609
275705
  ${body}`;
@@ -275737,7 +275833,7 @@ function writeGenerated2(dir, files, opts = {}) {
275737
275833
  else outcome = "written";
275738
275834
  }
275739
275835
  if (outcome === "written" && !opts.dryRun) {
275740
- mkdirSync64(dirname86(abs), { recursive: true });
275836
+ mkdirSync64(dirname87(abs), { recursive: true });
275741
275837
  writeFileSync71(abs, next);
275742
275838
  }
275743
275839
  out2.push({ path: f2.path, outcome });
@@ -275797,7 +275893,7 @@ __export(base44_auth_exports, {
275797
275893
  });
275798
275894
  import { chmodSync as chmodSync7, existsSync as existsSync152, mkdirSync as mkdirSync65, readFileSync as readFileSync183, rmSync as rmSync46, writeFileSync as writeFileSync72 } from "node:fs";
275799
275895
  import { homedir as homedir22 } from "node:os";
275800
- import { dirname as dirname87, join as join194 } from "node:path";
275896
+ import { dirname as dirname88, join as join194 } from "node:path";
275801
275897
  function base44ApiBase(env = process.env) {
275802
275898
  return (env.BASE44_API_URL?.trim() || "https://app.base44.com").replace(/\/+$/, "");
275803
275899
  }
@@ -275816,7 +275912,7 @@ function readBase44Session(home2) {
275816
275912
  }
275817
275913
  function writeBase44Session(session, home2) {
275818
275914
  const p2 = base44SessionPath(home2);
275819
- mkdirSync65(dirname87(p2), { recursive: true, mode: 448 });
275915
+ mkdirSync65(dirname88(p2), { recursive: true, mode: 448 });
275820
275916
  writeFileSync72(p2, `${JSON.stringify(session, null, 2)}
275821
275917
  `, { mode: 384 });
275822
275918
  chmodSync7(p2, 384);
@@ -277559,7 +277655,7 @@ var init_analyze = __esm({
277559
277655
 
277560
277656
  // src/base44-analyze/write-artifacts.ts
277561
277657
  import { existsSync as existsSync156, mkdirSync as mkdirSync66, readFileSync as readFileSync186, rmSync as rmSync47, writeFileSync as writeFileSync75 } from "node:fs";
277562
- import { dirname as dirname88, join as join198, resolve as resolve124, sep as sep34 } from "node:path";
277658
+ import { dirname as dirname89, join as join198, resolve as resolve124, sep as sep34 } from "node:path";
277563
277659
  function isBookFolder(dir) {
277564
277660
  try {
277565
277661
  return JSON.parse(readFileSync186(join198(dir, "book.json"), "utf8")).kind === "base44-app-book";
@@ -277668,7 +277764,7 @@ function writeBase44Book(result, outDir, opts = {}) {
277668
277764
  if (!safeRel(f2.path)) continue;
277669
277765
  const dest = join198(sourceRoot, ...f2.path.split("/"));
277670
277766
  if (!dest.startsWith(sourceRoot + sep34)) continue;
277671
- mkdirSync66(dirname88(dest), { recursive: true });
277767
+ mkdirSync66(dirname89(dest), { recursive: true });
277672
277768
  writeFileSync75(dest, f2.bytes);
277673
277769
  }
277674
277770
  if (result.sourceFiles.length) files.push(`source/ (${result.sourceFiles.length} files)`);
@@ -283653,7 +283749,7 @@ var init_widgets_plan = __esm({
283653
283749
 
283654
283750
  // src/one-app/generate-cli.ts
283655
283751
  import { existsSync as existsSync163, mkdirSync as mkdirSync68, readdirSync as readdirSync67, readFileSync as readFileSync192, rmSync as rmSync50, writeFileSync as writeFileSync79 } from "node:fs";
283656
- import { dirname as dirname89, join as join206, resolve as resolve129 } from "node:path";
283752
+ import { dirname as dirname90, join as join206, resolve as resolve129 } from "node:path";
283657
283753
  function removeStaleGeneratedWorkers(contentDir2, current) {
283658
283754
  const root = join206(contentDir2, "tier5-src");
283659
283755
  if (!existsSync163(root)) return;
@@ -283799,7 +283895,7 @@ async function runOneAppGenerate(args, io2) {
283799
283895
  return report8(io2, false, { code: "content_invalid", error: error instanceof Error ? error.message : String(error) });
283800
283896
  }
283801
283897
  try {
283802
- mkdirSync68(dirname89(options2.out), { recursive: true });
283898
+ mkdirSync68(dirname90(options2.out), { recursive: true });
283803
283899
  writeFileSync79(options2.out, JSON.stringify(result.screens, null, 2) + "\n", "utf8");
283804
283900
  writeFileSync79(idsFile(options2.out), JSON.stringify([.../* @__PURE__ */ new Set([...previousIds, ...Object.keys(result.screens)])].sort()) + "\n", "utf8");
283805
283901
  if (homeScreenId) writeFileSync79(homeFile(options2.out), JSON.stringify({ homeScreenId }) + "\n", "utf8");
@@ -285381,7 +285477,7 @@ __export(cli_exports2, {
285381
285477
  import { closeSync as closeSync15, constants as constants13, lstatSync as lstatSync43, mkdirSync as mkdirSync71, openSync as openSync14, readFileSync as readFileSync197, realpathSync as realpathSync24, writeFileSync as writeFileSync82 } from "node:fs";
285382
285478
  import { createHash as createHash104 } from "node:crypto";
285383
285479
  import { isIP as isIP2 } from "node:net";
285384
- import { dirname as dirname90, join as join211, parse as parse12, resolve as resolve133 } from "node:path";
285480
+ import { dirname as dirname91, join as join211, parse as parse12, resolve as resolve133 } from "node:path";
285385
285481
  function nativeSiteHost(host) {
285386
285482
  if (isIP2(host.startsWith("[") ? host.slice(1, -1) : host)) return true;
285387
285483
  const labels = host.replace(/\.$/, "").split(".");
@@ -285497,7 +285593,7 @@ function assertSafeParents(path2) {
285497
285593
  throw new OneAppError("invalid_output_path", "The output parent cannot be inspected.");
285498
285594
  }
285499
285595
  }
285500
- current = dirname90(current);
285596
+ current = dirname91(current);
285501
285597
  }
285502
285598
  }
285503
285599
  function writePrivate(path2, contents, append) {
@@ -287891,7 +287987,7 @@ var init_customer_build = __esm({
287891
287987
 
287892
287988
  // src/site-analyze/apply.ts
287893
287989
  import { existsSync as existsSync168, readFileSync as readFileSync199, writeFileSync as writeFileSync83, copyFileSync as copyFileSync4, mkdirSync as mkdirSync72, realpathSync as realpathSync25, statSync as statSync54 } from "node:fs";
287894
- import { dirname as dirname91, isAbsolute as isAbsolute23, join as join213, resolve as resolve134, sep as sep35 } from "node:path";
287990
+ import { dirname as dirname92, isAbsolute as isAbsolute23, join as join213, resolve as resolve134, sep as sep35 } from "node:path";
287895
287991
  import { spawnSync as spawnSync14 } from "node:child_process";
287896
287992
  function inRepoBakeRefusal(repoRoot2, shell) {
287897
287993
  if (isBrandable(repoRoot2, shell)) return null;
@@ -288251,7 +288347,7 @@ function buildMergedContract(options2) {
288251
288347
  if (!real.startsWith(realRoot + sep35)) return void 0;
288252
288348
  try {
288253
288349
  if (!statSync54(real).isFile()) return void 0;
288254
- mkdirSync72(dirname91(to2), { recursive: true });
288350
+ mkdirSync72(dirname92(to2), { recursive: true });
288255
288351
  copyFileSync4(real, to2);
288256
288352
  } catch {
288257
288353
  return void 0;
@@ -288289,7 +288385,7 @@ function buildMergedContract(options2) {
288289
288385
  const path2 = join213(packageDir, "provisioning.contract.json");
288290
288386
  writeFileSync83(path2, body);
288291
288387
  const localPath2 = join213(appDir3, LOCAL_CONTRACT_REL);
288292
- mkdirSync72(dirname91(localPath2), { recursive: true });
288388
+ mkdirSync72(dirname92(localPath2), { recursive: true });
288293
288389
  writeFileSync83(localPath2, body);
288294
288390
  staged.push(localPath2);
288295
288391
  return { path: path2, staged };
@@ -288323,7 +288419,7 @@ function catalogTypography(overlay, template) {
288323
288419
  function staticFaqFor(overlay, overlayPath) {
288324
288420
  const own6 = overlay.faq;
288325
288421
  if (own6 !== void 0) return deriveStaticFaq(own6);
288326
- const bookPath = join213(dirname91(resolve134(overlayPath)), "book.json");
288422
+ const bookPath = join213(dirname92(resolve134(overlayPath)), "book.json");
288327
288423
  if (!existsSync168(bookPath)) return void 0;
288328
288424
  try {
288329
288425
  const book = JSON.parse(readFileSync199(bookPath, "utf8"));
@@ -288340,7 +288436,7 @@ function staticGalleriesFor(overlay, overlayPath) {
288340
288436
  if (overlay.galleries !== void 0) return deriveStaticGalleries(
288341
288437
  overlay.galleries.map((gallery) => ({ role: "gallery", title: gallery.title, galleryImageUrls: gallery.photos }))
288342
288438
  );
288343
- const bookPath = join213(dirname91(resolve134(overlayPath)), "book.json");
288439
+ const bookPath = join213(dirname92(resolve134(overlayPath)), "book.json");
288344
288440
  if (!existsSync168(bookPath)) return void 0;
288345
288441
  try {
288346
288442
  const book = JSON.parse(readFileSync199(bookPath, "utf8"));
@@ -288378,7 +288474,7 @@ async function applyOverlays(input) {
288378
288474
  if (bakeRefusal) throw Object.assign(new Error(bakeRefusal), { exit: 2, code: APPLY_SHELL_CANNOT_BAKE });
288379
288475
  const appDir3 = join213(repoRoot2, shellAppDir(shell));
288380
288476
  assertOverlayNamesSite(join213(appDir3, "provisioning.json"), overlay, `shell "${shell}"`, ` --shell ${shell}`);
288381
- const packageDir = dirname91(resolve134(input.overlayPath));
288477
+ const packageDir = dirname92(resolve134(input.overlayPath));
288382
288478
  if (input.dryRun) {
288383
288479
  return {
288384
288480
  mode: "dry",
@@ -288556,7 +288652,7 @@ async function applyOverlays(input) {
288556
288652
  else pageScreens = { added: pages2.added, replaced: pages2.replaced, removed: pages2.removed, rows: pages2.rows };
288557
288653
  }
288558
288654
  if (!input.iconPath || !existsSync168(input.iconPath)) {
288559
- const book = input.iconPath ? dirname91(dirname91(resolve134(input.iconPath))) : void 0;
288655
+ const book = input.iconPath ? dirname92(dirname92(resolve134(input.iconPath))) : void 0;
288560
288656
  notes.push(
288561
288657
  book ? `no icon installed \u2014 ${siteLogoAbsence(book).hint}` : "no icon installed and no business book to say why \u2014 `himi icon generate` draws one from the accent, or `himi icon set <file.png>` installs the customer's own mark"
288562
288658
  );
@@ -291134,7 +291230,7 @@ var init_capture = __esm({
291134
291230
  import { spawn as spawn10 } from "node:child_process";
291135
291231
  import { copyFileSync as copyFileSync5, mkdtempSync as mkdtempSync17, readFileSync as readFileSync202, rmSync as rmSync53 } from "node:fs";
291136
291232
  import { tmpdir as tmpdir18 } from "node:os";
291137
- import { basename as basename42, dirname as dirname92, join as join215, resolve as resolve137 } from "node:path";
291233
+ import { basename as basename42, dirname as dirname93, join as join215, resolve as resolve137 } from "node:path";
291138
291234
  import { fileURLToPath as fileURLToPath44 } from "node:url";
291139
291235
  function parseVerdict(value2, captured) {
291140
291236
  const v2 = value2;
@@ -291210,7 +291306,7 @@ var SOURCE_JUDGE_DIR, JUDGE_MODEL, spawnProcess, cannotTell, SEVERITY, worse, VE
291210
291306
  var init_judge = __esm({
291211
291307
  "src/fidelity/judge.ts"() {
291212
291308
  init_define_HHP_CATALOG();
291213
- SOURCE_JUDGE_DIR = resolve137(dirname92(fileURLToPath44(import.meta.url)), "../../../judges/fidelity");
291309
+ SOURCE_JUDGE_DIR = resolve137(dirname93(fileURLToPath44(import.meta.url)), "../../../judges/fidelity");
291214
291310
  JUDGE_MODEL = "claude-sonnet-5-5";
291215
291311
  spawnProcess = (cmd, args, { cwd, input, timeoutMs }) => new Promise((done) => {
291216
291312
  let stdout = "", stderr = "", timedOut = false;
@@ -295532,7 +295628,7 @@ async function functionsCommand(ctx) {
295532
295628
  init_define_HHP_CATALOG();
295533
295629
  init_guides();
295534
295630
  import { mkdirSync as mkdirSync52, writeFileSync as writeFileSync49 } from "node:fs";
295535
- import { join as join137, resolve as resolve90, dirname as dirname67 } from "node:path";
295631
+ import { join as join137, resolve as resolve90, dirname as dirname68 } from "node:path";
295536
295632
  init_cli_shared();
295537
295633
  async function mcpCommand(ctx) {
295538
295634
  const { io: io2, pos, flags, print } = ctx;
@@ -295548,7 +295644,7 @@ async function mcpCommand(ctx) {
295548
295644
  const dir2 = resolve90(out2);
295549
295645
  const files2 = himiStudioPluginFiles2();
295550
295646
  for (const f2 of files2) {
295551
- mkdirSync52(dirname67(join137(dir2, f2.path)), { recursive: true });
295647
+ mkdirSync52(dirname68(join137(dir2, f2.path)), { recursive: true });
295552
295648
  writeFileSync49(join137(dir2, f2.path), f2.text);
295553
295649
  }
295554
295650
  print({ ok: true, dir: dir2, files: files2.map((f2) => f2.path), next: [`claude plugin validate ${dir2}`, `claude --plugin-dir ${dir2}`] });
@@ -295564,7 +295660,7 @@ async function mcpCommand(ctx) {
295564
295660
  const dir = resolve90(out2);
295565
295661
  const files = himiPluginFiles2(skills.skillMd);
295566
295662
  for (const f2 of files) {
295567
- mkdirSync52(dirname67(join137(dir, f2.path)), { recursive: true });
295663
+ mkdirSync52(dirname68(join137(dir, f2.path)), { recursive: true });
295568
295664
  writeFileSync49(join137(dir, f2.path), f2.text);
295569
295665
  }
295570
295666
  print({ ok: true, dir, files: files.map((f2) => f2.path), next: [`claude plugin validate ${dir}`, `claude --plugin-dir ${dir}`] });
@@ -295584,7 +295680,7 @@ async function mcpCommand(ctx) {
295584
295680
  init_define_HHP_CATALOG();
295585
295681
  init_cli_shared();
295586
295682
  import { mkdirSync as mkdirSync53, writeFileSync as writeFileSync50, existsSync as existsSync106 } from "node:fs";
295587
- import { join as join138, resolve as resolve91, basename as basename34, dirname as dirname68 } from "node:path";
295683
+ import { join as join138, resolve as resolve91, basename as basename34, dirname as dirname69 } from "node:path";
295588
295684
  async function studioCommand(ctx) {
295589
295685
  const { io: io2, pos, flags, print } = ctx;
295590
295686
  const { openStudio: openStudio2 } = await Promise.resolve().then(() => (init_studio(), studio_exports));
@@ -295597,7 +295693,7 @@ async function studioCommand(ctx) {
295597
295693
  const { buildReel: buildReel2 } = await Promise.resolve().then(() => (init_studio_reel(), studio_reel_exports));
295598
295694
  const out2 = resolve91(str3(flags.out) ?? join138(dir, ".himi", "making-of.html"));
295599
295695
  const { html, plan } = buildReel2(dir);
295600
- mkdirSync53(dirname68(out2), { recursive: true });
295696
+ mkdirSync53(dirname69(out2), { recursive: true });
295601
295697
  writeFileSync50(out2, html);
295602
295698
  const { pathToFileURL: pathToFileURL15 } = await import("node:url");
295603
295699
  const url2 = pathToFileURL15(out2).href;
@@ -303156,7 +303252,7 @@ import {
303156
303252
  statSync as statSync52,
303157
303253
  writeFileSync as writeFileSync69
303158
303254
  } from "node:fs";
303159
- import { basename as basename41, dirname as dirname85, join as join191, relative as relative37, resolve as resolve122 } from "node:path";
303255
+ import { basename as basename41, dirname as dirname86, join as join191, relative as relative37, resolve as resolve122 } from "node:path";
303160
303256
  var L10N_USAGE = "usage: himi l10n import --format oneapp <dir> (--app <slug> | --content <app dir>) [--locales en,he] [--source en] [--overwrite] [--json]";
303161
303257
  var MESSAGES_FILE = /^messages_(.+)\.json$/;
303162
303258
  var UnsafePath = class extends Error {
@@ -303187,7 +303283,7 @@ function unsafeDestination(appDir3, tags) {
303187
303283
  return void 0;
303188
303284
  }
303189
303285
  function writeCatalog(path2, text32) {
303190
- const tmp = join191(dirname85(path2), `.${basename41(path2)}.${process.pid}.${randomBytes25(4).toString("hex")}.tmp`);
303286
+ const tmp = join191(dirname86(path2), `.${basename41(path2)}.${process.pid}.${randomBytes25(4).toString("hex")}.tmp`);
303191
303287
  try {
303192
303288
  writeFileSync69(tmp, text32, { encoding: "utf8", flag: "wx" });
303193
303289
  renameSync26(tmp, path2);