preflightlaunch 0.1.0 → 0.2.1

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.
@@ -0,0 +1,595 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire } from "node:module";
3
+ const require = createRequire(import.meta.url);
4
+ var __create = Object.create;
5
+ var __defProp = Object.defineProperty;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
11
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
12
+ }) : x)(function(x) {
13
+ if (typeof require !== "undefined") return require.apply(this, arguments);
14
+ throw Error('Dynamic require of "' + x + '" is not supported');
15
+ });
16
+ var __esm = (fn, res) => function __init() {
17
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
18
+ };
19
+ var __commonJS = (cb, mod) => function __require2() {
20
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
21
+ };
22
+ var __copyProps = (to, from, except, desc) => {
23
+ if (from && typeof from === "object" || typeof from === "function") {
24
+ for (let key of __getOwnPropNames(from))
25
+ if (!__hasOwnProp.call(to, key) && key !== except)
26
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
27
+ }
28
+ return to;
29
+ };
30
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
31
+ // If the importer is in node compatibility mode or this is not an ESM
32
+ // file that has been converted to a CommonJS file using a Babel-
33
+ // compatible transform (i.e. "__esModule" has not been set), then set
34
+ // "default" to the CommonJS "module.exports" for node compatibility.
35
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
36
+ mod
37
+ ));
38
+
39
+ // node_modules/tsup/assets/esm_shims.js
40
+ import path from "path";
41
+ import { fileURLToPath } from "url";
42
+ var init_esm_shims = __esm({
43
+ "node_modules/tsup/assets/esm_shims.js"() {
44
+ "use strict";
45
+ }
46
+ });
47
+
48
+ // ../../node_modules/open/index.js
49
+ init_esm_shims();
50
+ import process6 from "process";
51
+ import { Buffer as Buffer2 } from "buffer";
52
+ import path2 from "path";
53
+ import { fileURLToPath as fileURLToPath2 } from "url";
54
+ import { promisify as promisify5 } from "util";
55
+ import childProcess from "child_process";
56
+ import fs5, { constants as fsConstants2 } from "fs/promises";
57
+
58
+ // ../../node_modules/wsl-utils/index.js
59
+ init_esm_shims();
60
+ import process2 from "process";
61
+ import fs4, { constants as fsConstants } from "fs/promises";
62
+
63
+ // ../../node_modules/is-wsl/index.js
64
+ init_esm_shims();
65
+ import process from "process";
66
+ import os from "os";
67
+ import fs3 from "fs";
68
+
69
+ // ../../node_modules/is-inside-container/index.js
70
+ init_esm_shims();
71
+ import fs2 from "fs";
72
+
73
+ // ../../node_modules/is-docker/index.js
74
+ init_esm_shims();
75
+ import fs from "fs";
76
+ var isDockerCached;
77
+ function hasDockerEnv() {
78
+ try {
79
+ fs.statSync("/.dockerenv");
80
+ return true;
81
+ } catch {
82
+ return false;
83
+ }
84
+ }
85
+ function hasDockerCGroup() {
86
+ try {
87
+ return fs.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
88
+ } catch {
89
+ return false;
90
+ }
91
+ }
92
+ function isDocker() {
93
+ if (isDockerCached === void 0) {
94
+ isDockerCached = hasDockerEnv() || hasDockerCGroup();
95
+ }
96
+ return isDockerCached;
97
+ }
98
+
99
+ // ../../node_modules/is-inside-container/index.js
100
+ var cachedResult;
101
+ var hasContainerEnv = () => {
102
+ try {
103
+ fs2.statSync("/run/.containerenv");
104
+ return true;
105
+ } catch {
106
+ return false;
107
+ }
108
+ };
109
+ function isInsideContainer() {
110
+ if (cachedResult === void 0) {
111
+ cachedResult = hasContainerEnv() || isDocker();
112
+ }
113
+ return cachedResult;
114
+ }
115
+
116
+ // ../../node_modules/is-wsl/index.js
117
+ var isWsl = () => {
118
+ if (process.platform !== "linux") {
119
+ return false;
120
+ }
121
+ if (os.release().toLowerCase().includes("microsoft")) {
122
+ if (isInsideContainer()) {
123
+ return false;
124
+ }
125
+ return true;
126
+ }
127
+ try {
128
+ return fs3.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !isInsideContainer() : false;
129
+ } catch {
130
+ return false;
131
+ }
132
+ };
133
+ var is_wsl_default = process.env.__IS_WSL_TEST__ ? isWsl : isWsl();
134
+
135
+ // ../../node_modules/wsl-utils/index.js
136
+ var wslDrivesMountPoint = /* @__PURE__ */ (() => {
137
+ const defaultMountPoint = "/mnt/";
138
+ let mountPoint;
139
+ return async function() {
140
+ if (mountPoint) {
141
+ return mountPoint;
142
+ }
143
+ const configFilePath = "/etc/wsl.conf";
144
+ let isConfigFileExists = false;
145
+ try {
146
+ await fs4.access(configFilePath, fsConstants.F_OK);
147
+ isConfigFileExists = true;
148
+ } catch {
149
+ }
150
+ if (!isConfigFileExists) {
151
+ return defaultMountPoint;
152
+ }
153
+ const configContent = await fs4.readFile(configFilePath, { encoding: "utf8" });
154
+ const configMountPoint = /(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(configContent);
155
+ if (!configMountPoint) {
156
+ return defaultMountPoint;
157
+ }
158
+ mountPoint = configMountPoint.groups.mountPoint.trim();
159
+ mountPoint = mountPoint.endsWith("/") ? mountPoint : `${mountPoint}/`;
160
+ return mountPoint;
161
+ };
162
+ })();
163
+ var powerShellPathFromWsl = async () => {
164
+ const mountPoint = await wslDrivesMountPoint();
165
+ return `${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`;
166
+ };
167
+ var powerShellPath = async () => {
168
+ if (is_wsl_default) {
169
+ return powerShellPathFromWsl();
170
+ }
171
+ return `${process2.env.SYSTEMROOT || process2.env.windir || String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`;
172
+ };
173
+
174
+ // ../../node_modules/define-lazy-prop/index.js
175
+ init_esm_shims();
176
+ function defineLazyProperty(object, propertyName, valueGetter) {
177
+ const define = (value) => Object.defineProperty(object, propertyName, { value, enumerable: true, writable: true });
178
+ Object.defineProperty(object, propertyName, {
179
+ configurable: true,
180
+ enumerable: true,
181
+ get() {
182
+ const result = valueGetter();
183
+ define(result);
184
+ return result;
185
+ },
186
+ set(value) {
187
+ define(value);
188
+ }
189
+ });
190
+ return object;
191
+ }
192
+
193
+ // ../../node_modules/default-browser/index.js
194
+ init_esm_shims();
195
+ import { promisify as promisify4 } from "util";
196
+ import process5 from "process";
197
+ import { execFile as execFile4 } from "child_process";
198
+
199
+ // ../../node_modules/default-browser-id/index.js
200
+ init_esm_shims();
201
+ import { promisify } from "util";
202
+ import process3 from "process";
203
+ import { execFile } from "child_process";
204
+ var execFileAsync = promisify(execFile);
205
+ async function defaultBrowserId() {
206
+ if (process3.platform !== "darwin") {
207
+ throw new Error("macOS only");
208
+ }
209
+ const { stdout } = await execFileAsync("defaults", ["read", "com.apple.LaunchServices/com.apple.launchservices.secure", "LSHandlers"]);
210
+ const match = /LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(stdout);
211
+ const browserId = match?.groups.id ?? "com.apple.Safari";
212
+ if (browserId === "com.apple.safari") {
213
+ return "com.apple.Safari";
214
+ }
215
+ return browserId;
216
+ }
217
+
218
+ // ../../node_modules/bundle-name/index.js
219
+ init_esm_shims();
220
+
221
+ // ../../node_modules/run-applescript/index.js
222
+ init_esm_shims();
223
+ import process4 from "process";
224
+ import { promisify as promisify2 } from "util";
225
+ import { execFile as execFile2, execFileSync } from "child_process";
226
+ var execFileAsync2 = promisify2(execFile2);
227
+ async function runAppleScript(script, { humanReadableOutput = true, signal } = {}) {
228
+ if (process4.platform !== "darwin") {
229
+ throw new Error("macOS only");
230
+ }
231
+ const outputArguments = humanReadableOutput ? [] : ["-ss"];
232
+ const execOptions = {};
233
+ if (signal) {
234
+ execOptions.signal = signal;
235
+ }
236
+ const { stdout } = await execFileAsync2("osascript", ["-e", script, outputArguments], execOptions);
237
+ return stdout.trim();
238
+ }
239
+
240
+ // ../../node_modules/bundle-name/index.js
241
+ async function bundleName(bundleId) {
242
+ return runAppleScript(`tell application "Finder" to set app_path to application file id "${bundleId}" as string
243
+ tell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`);
244
+ }
245
+
246
+ // ../../node_modules/default-browser/windows.js
247
+ init_esm_shims();
248
+ import { promisify as promisify3 } from "util";
249
+ import { execFile as execFile3 } from "child_process";
250
+ var execFileAsync3 = promisify3(execFile3);
251
+ var windowsBrowserProgIds = {
252
+ MSEdgeHTM: { name: "Edge", id: "com.microsoft.edge" },
253
+ // The missing `L` is correct.
254
+ MSEdgeBHTML: { name: "Edge Beta", id: "com.microsoft.edge.beta" },
255
+ MSEdgeDHTML: { name: "Edge Dev", id: "com.microsoft.edge.dev" },
256
+ AppXq0fevzme2pys62n3e0fbqa7peapykr8v: { name: "Edge", id: "com.microsoft.edge.old" },
257
+ ChromeHTML: { name: "Chrome", id: "com.google.chrome" },
258
+ ChromeBHTML: { name: "Chrome Beta", id: "com.google.chrome.beta" },
259
+ ChromeDHTML: { name: "Chrome Dev", id: "com.google.chrome.dev" },
260
+ ChromiumHTM: { name: "Chromium", id: "org.chromium.Chromium" },
261
+ BraveHTML: { name: "Brave", id: "com.brave.Browser" },
262
+ BraveBHTML: { name: "Brave Beta", id: "com.brave.Browser.beta" },
263
+ BraveDHTML: { name: "Brave Dev", id: "com.brave.Browser.dev" },
264
+ BraveSSHTM: { name: "Brave Nightly", id: "com.brave.Browser.nightly" },
265
+ FirefoxURL: { name: "Firefox", id: "org.mozilla.firefox" },
266
+ OperaStable: { name: "Opera", id: "com.operasoftware.Opera" },
267
+ VivaldiHTM: { name: "Vivaldi", id: "com.vivaldi.Vivaldi" },
268
+ "IE.HTTP": { name: "Internet Explorer", id: "com.microsoft.ie" }
269
+ };
270
+ var _windowsBrowserProgIdMap = new Map(Object.entries(windowsBrowserProgIds));
271
+ var UnknownBrowserError = class extends Error {
272
+ };
273
+ async function defaultBrowser(_execFileAsync = execFileAsync3) {
274
+ const { stdout } = await _execFileAsync("reg", [
275
+ "QUERY",
276
+ " HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice",
277
+ "/v",
278
+ "ProgId"
279
+ ]);
280
+ const match = /ProgId\s*REG_SZ\s*(?<id>\S+)/.exec(stdout);
281
+ if (!match) {
282
+ throw new UnknownBrowserError(`Cannot find Windows browser in stdout: ${JSON.stringify(stdout)}`);
283
+ }
284
+ const { id } = match.groups;
285
+ const browser = windowsBrowserProgIds[id];
286
+ if (!browser) {
287
+ throw new UnknownBrowserError(`Unknown browser ID: ${id}`);
288
+ }
289
+ return browser;
290
+ }
291
+
292
+ // ../../node_modules/default-browser/index.js
293
+ var execFileAsync4 = promisify4(execFile4);
294
+ var titleize = (string) => string.toLowerCase().replaceAll(/(?:^|\s|-)\S/g, (x) => x.toUpperCase());
295
+ async function defaultBrowser2() {
296
+ if (process5.platform === "darwin") {
297
+ const id = await defaultBrowserId();
298
+ const name = await bundleName(id);
299
+ return { name, id };
300
+ }
301
+ if (process5.platform === "linux") {
302
+ const { stdout } = await execFileAsync4("xdg-mime", ["query", "default", "x-scheme-handler/http"]);
303
+ const id = stdout.trim();
304
+ const name = titleize(id.replace(/.desktop$/, "").replace("-", " "));
305
+ return { name, id };
306
+ }
307
+ if (process5.platform === "win32") {
308
+ return defaultBrowser();
309
+ }
310
+ throw new Error("Only macOS, Linux, and Windows are supported");
311
+ }
312
+
313
+ // ../../node_modules/open/index.js
314
+ var execFile5 = promisify5(childProcess.execFile);
315
+ var __dirname2 = path2.dirname(fileURLToPath2(import.meta.url));
316
+ var localXdgOpenPath = path2.join(__dirname2, "xdg-open");
317
+ var { platform, arch } = process6;
318
+ async function getWindowsDefaultBrowserFromWsl() {
319
+ const powershellPath = await powerShellPath();
320
+ const rawCommand = String.raw`(Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice").ProgId`;
321
+ const encodedCommand = Buffer2.from(rawCommand, "utf16le").toString("base64");
322
+ const { stdout } = await execFile5(
323
+ powershellPath,
324
+ [
325
+ "-NoProfile",
326
+ "-NonInteractive",
327
+ "-ExecutionPolicy",
328
+ "Bypass",
329
+ "-EncodedCommand",
330
+ encodedCommand
331
+ ],
332
+ { encoding: "utf8" }
333
+ );
334
+ const progId = stdout.trim();
335
+ const browserMap = {
336
+ ChromeHTML: "com.google.chrome",
337
+ BraveHTML: "com.brave.Browser",
338
+ MSEdgeHTM: "com.microsoft.edge",
339
+ FirefoxURL: "org.mozilla.firefox"
340
+ };
341
+ return browserMap[progId] ? { id: browserMap[progId] } : {};
342
+ }
343
+ var pTryEach = async (array, mapper) => {
344
+ let latestError;
345
+ for (const item of array) {
346
+ try {
347
+ return await mapper(item);
348
+ } catch (error) {
349
+ latestError = error;
350
+ }
351
+ }
352
+ throw latestError;
353
+ };
354
+ var baseOpen = async (options) => {
355
+ options = {
356
+ wait: false,
357
+ background: false,
358
+ newInstance: false,
359
+ allowNonzeroExitCode: false,
360
+ ...options
361
+ };
362
+ if (Array.isArray(options.app)) {
363
+ return pTryEach(options.app, (singleApp) => baseOpen({
364
+ ...options,
365
+ app: singleApp
366
+ }));
367
+ }
368
+ let { name: app, arguments: appArguments = [] } = options.app ?? {};
369
+ appArguments = [...appArguments];
370
+ if (Array.isArray(app)) {
371
+ return pTryEach(app, (appName) => baseOpen({
372
+ ...options,
373
+ app: {
374
+ name: appName,
375
+ arguments: appArguments
376
+ }
377
+ }));
378
+ }
379
+ if (app === "browser" || app === "browserPrivate") {
380
+ const ids = {
381
+ "com.google.chrome": "chrome",
382
+ "google-chrome.desktop": "chrome",
383
+ "com.brave.Browser": "brave",
384
+ "org.mozilla.firefox": "firefox",
385
+ "firefox.desktop": "firefox",
386
+ "com.microsoft.msedge": "edge",
387
+ "com.microsoft.edge": "edge",
388
+ "com.microsoft.edgemac": "edge",
389
+ "microsoft-edge.desktop": "edge"
390
+ };
391
+ const flags = {
392
+ chrome: "--incognito",
393
+ brave: "--incognito",
394
+ firefox: "--private-window",
395
+ edge: "--inPrivate"
396
+ };
397
+ const browser = is_wsl_default ? await getWindowsDefaultBrowserFromWsl() : await defaultBrowser2();
398
+ if (browser.id in ids) {
399
+ const browserName = ids[browser.id];
400
+ if (app === "browserPrivate") {
401
+ appArguments.push(flags[browserName]);
402
+ }
403
+ return baseOpen({
404
+ ...options,
405
+ app: {
406
+ name: apps[browserName],
407
+ arguments: appArguments
408
+ }
409
+ });
410
+ }
411
+ throw new Error(`${browser.name} is not supported as a default browser`);
412
+ }
413
+ let command;
414
+ const cliArguments = [];
415
+ const childProcessOptions = {};
416
+ if (platform === "darwin") {
417
+ command = "open";
418
+ if (options.wait) {
419
+ cliArguments.push("--wait-apps");
420
+ }
421
+ if (options.background) {
422
+ cliArguments.push("--background");
423
+ }
424
+ if (options.newInstance) {
425
+ cliArguments.push("--new");
426
+ }
427
+ if (app) {
428
+ cliArguments.push("-a", app);
429
+ }
430
+ } else if (platform === "win32" || is_wsl_default && !isInsideContainer() && !app) {
431
+ command = await powerShellPath();
432
+ cliArguments.push(
433
+ "-NoProfile",
434
+ "-NonInteractive",
435
+ "-ExecutionPolicy",
436
+ "Bypass",
437
+ "-EncodedCommand"
438
+ );
439
+ if (!is_wsl_default) {
440
+ childProcessOptions.windowsVerbatimArguments = true;
441
+ }
442
+ const encodedArguments = ["Start"];
443
+ if (options.wait) {
444
+ encodedArguments.push("-Wait");
445
+ }
446
+ if (app) {
447
+ encodedArguments.push(`"\`"${app}\`""`);
448
+ if (options.target) {
449
+ appArguments.push(options.target);
450
+ }
451
+ } else if (options.target) {
452
+ encodedArguments.push(`"${options.target}"`);
453
+ }
454
+ if (appArguments.length > 0) {
455
+ appArguments = appArguments.map((argument) => `"\`"${argument}\`""`);
456
+ encodedArguments.push("-ArgumentList", appArguments.join(","));
457
+ }
458
+ options.target = Buffer2.from(encodedArguments.join(" "), "utf16le").toString("base64");
459
+ } else {
460
+ if (app) {
461
+ command = app;
462
+ } else {
463
+ const isBundled = !__dirname2 || __dirname2 === "/";
464
+ let exeLocalXdgOpen = false;
465
+ try {
466
+ await fs5.access(localXdgOpenPath, fsConstants2.X_OK);
467
+ exeLocalXdgOpen = true;
468
+ } catch {
469
+ }
470
+ const useSystemXdgOpen = process6.versions.electron ?? (platform === "android" || isBundled || !exeLocalXdgOpen);
471
+ command = useSystemXdgOpen ? "xdg-open" : localXdgOpenPath;
472
+ }
473
+ if (appArguments.length > 0) {
474
+ cliArguments.push(...appArguments);
475
+ }
476
+ if (!options.wait) {
477
+ childProcessOptions.stdio = "ignore";
478
+ childProcessOptions.detached = true;
479
+ }
480
+ }
481
+ if (platform === "darwin" && appArguments.length > 0) {
482
+ cliArguments.push("--args", ...appArguments);
483
+ }
484
+ if (options.target) {
485
+ cliArguments.push(options.target);
486
+ }
487
+ const subprocess = childProcess.spawn(command, cliArguments, childProcessOptions);
488
+ if (options.wait) {
489
+ return new Promise((resolve, reject) => {
490
+ subprocess.once("error", reject);
491
+ subprocess.once("close", (exitCode) => {
492
+ if (!options.allowNonzeroExitCode && exitCode > 0) {
493
+ reject(new Error(`Exited with code ${exitCode}`));
494
+ return;
495
+ }
496
+ resolve(subprocess);
497
+ });
498
+ });
499
+ }
500
+ subprocess.unref();
501
+ return subprocess;
502
+ };
503
+ var open = (target, options) => {
504
+ if (typeof target !== "string") {
505
+ throw new TypeError("Expected a `target`");
506
+ }
507
+ return baseOpen({
508
+ ...options,
509
+ target
510
+ });
511
+ };
512
+ var openApp = (name, options) => {
513
+ if (typeof name !== "string" && !Array.isArray(name)) {
514
+ throw new TypeError("Expected a valid `name`");
515
+ }
516
+ const { arguments: appArguments = [] } = options ?? {};
517
+ if (appArguments !== void 0 && appArguments !== null && !Array.isArray(appArguments)) {
518
+ throw new TypeError("Expected `appArguments` as Array type");
519
+ }
520
+ return baseOpen({
521
+ ...options,
522
+ app: {
523
+ name,
524
+ arguments: appArguments
525
+ }
526
+ });
527
+ };
528
+ function detectArchBinary(binary) {
529
+ if (typeof binary === "string" || Array.isArray(binary)) {
530
+ return binary;
531
+ }
532
+ const { [arch]: archBinary } = binary;
533
+ if (!archBinary) {
534
+ throw new Error(`${arch} is not supported`);
535
+ }
536
+ return archBinary;
537
+ }
538
+ function detectPlatformBinary({ [platform]: platformBinary }, { wsl }) {
539
+ if (wsl && is_wsl_default) {
540
+ return detectArchBinary(wsl);
541
+ }
542
+ if (!platformBinary) {
543
+ throw new Error(`${platform} is not supported`);
544
+ }
545
+ return detectArchBinary(platformBinary);
546
+ }
547
+ var apps = {};
548
+ defineLazyProperty(apps, "chrome", () => detectPlatformBinary({
549
+ darwin: "google chrome",
550
+ win32: "chrome",
551
+ linux: ["google-chrome", "google-chrome-stable", "chromium"]
552
+ }, {
553
+ wsl: {
554
+ ia32: "/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",
555
+ x64: ["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe", "/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]
556
+ }
557
+ }));
558
+ defineLazyProperty(apps, "brave", () => detectPlatformBinary({
559
+ darwin: "brave browser",
560
+ win32: "brave",
561
+ linux: ["brave-browser", "brave"]
562
+ }, {
563
+ wsl: {
564
+ ia32: "/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe",
565
+ x64: ["/mnt/c/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe", "/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe"]
566
+ }
567
+ }));
568
+ defineLazyProperty(apps, "firefox", () => detectPlatformBinary({
569
+ darwin: "firefox",
570
+ win32: String.raw`C:\Program Files\Mozilla Firefox\firefox.exe`,
571
+ linux: "firefox"
572
+ }, {
573
+ wsl: "/mnt/c/Program Files/Mozilla Firefox/firefox.exe"
574
+ }));
575
+ defineLazyProperty(apps, "edge", () => detectPlatformBinary({
576
+ darwin: "microsoft edge",
577
+ win32: "msedge",
578
+ linux: ["microsoft-edge", "microsoft-edge-dev"]
579
+ }, {
580
+ wsl: "/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"
581
+ }));
582
+ defineLazyProperty(apps, "browser", () => "browser");
583
+ defineLazyProperty(apps, "browserPrivate", () => "browserPrivate");
584
+ var open_default = open;
585
+
586
+ export {
587
+ __require,
588
+ __commonJS,
589
+ __toESM,
590
+ init_esm_shims,
591
+ openApp,
592
+ apps,
593
+ open_default
594
+ };
595
+ //# sourceMappingURL=chunk-45JYNMSU.js.map