eddev 2.3.31 → 2.4.0-beta.2

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 (106) hide show
  1. package/dist/app/entry/ssr-root-client.d.ts +0 -2
  2. package/dist/app/entry/ssr-root-client.d.ts.map +1 -1
  3. package/dist/app/lib/blocks/block-debugger.d.ts.map +1 -1
  4. package/dist/app/lib/blocks/block-debugger.js +19 -2
  5. package/dist/app/lib/devtools/components/panels/StructurePanel.js +1 -1
  6. package/dist/app/server/assets.d.ts +45 -0
  7. package/dist/app/server/assets.d.ts.map +1 -0
  8. package/dist/app/server/assets.js +15 -0
  9. package/dist/app/server/index.d.ts +4 -0
  10. package/dist/app/server/index.d.ts.map +1 -1
  11. package/dist/app/server/index.js +3 -0
  12. package/dist/app/server/proxy-wp-admin.d.ts +6 -2
  13. package/dist/app/server/proxy-wp-admin.d.ts.map +1 -1
  14. package/dist/app/server/proxy-wp-admin.js +29 -57
  15. package/dist/app/server/render-ssr-page.d.ts +2 -6
  16. package/dist/app/server/render-ssr-page.d.ts.map +1 -1
  17. package/dist/app/server/render-ssr-page.js +9 -8
  18. package/dist/app/server/rpc-handler.d.ts +14 -0
  19. package/dist/app/server/rpc-handler.d.ts.map +1 -0
  20. package/dist/app/server/rpc-handler.js +63 -0
  21. package/dist/app/server/server-app.d.ts +22 -0
  22. package/dist/app/server/server-app.d.ts.map +1 -0
  23. package/dist/app/server/server-app.js +186 -0
  24. package/dist/app/server/server-context.d.ts +5 -5
  25. package/dist/app/server/server-context.d.ts.map +1 -1
  26. package/dist/app/server/server-context.js +21 -13
  27. package/dist/app/server/utils/fetch-origin.d.ts +13 -0
  28. package/dist/app/server/utils/fetch-origin.d.ts.map +1 -0
  29. package/dist/app/server/utils/fetch-origin.js +21 -0
  30. package/dist/app/server/utils/request.d.ts +20 -0
  31. package/dist/app/server/utils/request.d.ts.map +1 -0
  32. package/dist/app/server/utils/request.js +60 -0
  33. package/dist/node/cli/cli-worker.d.ts +10 -6
  34. package/dist/node/cli/cli-worker.d.ts.map +1 -1
  35. package/dist/node/cli/cli-worker.js +7 -14
  36. package/dist/node/cli/cli.js +37 -43
  37. package/dist/node/cli/display/CLIApp.d.ts +2 -4
  38. package/dist/node/cli/display/CLIApp.d.ts.map +1 -1
  39. package/dist/node/cli/display/CLIApp.js +2 -3
  40. package/dist/node/cli/version.d.ts +1 -1
  41. package/dist/node/cli/version.d.ts.map +1 -1
  42. package/dist/node/cli/version.js +1 -1
  43. package/dist/node/compiler/app-codegen.d.ts +18 -0
  44. package/dist/node/compiler/app-codegen.d.ts.map +1 -0
  45. package/dist/node/compiler/app-codegen.js +473 -0
  46. package/dist/node/compiler/build-serverless.d.ts +16 -0
  47. package/dist/node/compiler/build-serverless.d.ts.map +1 -0
  48. package/dist/node/compiler/build-serverless.js +40 -0
  49. package/dist/node/compiler/bundler.spa.d.ts +33 -0
  50. package/dist/node/compiler/bundler.spa.d.ts.map +1 -0
  51. package/dist/node/compiler/bundler.spa.js +59 -0
  52. package/dist/node/compiler/dev-css-links.d.ts +25 -0
  53. package/dist/node/compiler/dev-css-links.d.ts.map +1 -0
  54. package/dist/node/compiler/dev-css-links.js +87 -0
  55. package/dist/node/compiler/dev-server.d.ts +2 -0
  56. package/dist/node/compiler/dev-server.d.ts.map +1 -1
  57. package/dist/node/compiler/dev-server.js +43 -75
  58. package/dist/node/compiler/get-vite-config.d.ts +37 -6
  59. package/dist/node/compiler/get-vite-config.d.ts.map +1 -1
  60. package/dist/node/compiler/get-vite-config.js +113 -121
  61. package/dist/node/compiler/serverless-app.d.ts +35 -0
  62. package/dist/node/compiler/serverless-app.d.ts.map +1 -0
  63. package/dist/node/compiler/serverless-app.js +332 -0
  64. package/dist/node/compiler/transforms/block-meta.d.ts +10 -0
  65. package/dist/node/compiler/transforms/block-meta.d.ts.map +1 -0
  66. package/dist/node/compiler/transforms/block-meta.js +27 -0
  67. package/dist/node/compiler/transforms/component-names.d.ts +19 -0
  68. package/dist/node/compiler/transforms/component-names.d.ts.map +1 -0
  69. package/dist/node/compiler/transforms/component-names.js +45 -0
  70. package/dist/node/compiler/transforms/index.d.ts +36 -0
  71. package/dist/node/compiler/transforms/index.d.ts.map +1 -0
  72. package/dist/node/compiler/transforms/index.js +80 -0
  73. package/dist/node/compiler/transforms/types.d.ts +48 -0
  74. package/dist/node/compiler/transforms/types.d.ts.map +1 -0
  75. package/dist/node/compiler/transforms/types.js +1 -0
  76. package/dist/node/project/config.d.ts +1 -1
  77. package/dist/node/project/config.d.ts.map +1 -1
  78. package/dist/node/project/config.js +1 -1
  79. package/dist/node/project/env.js +1 -1
  80. package/dist/node/project/project-log.d.ts +7 -0
  81. package/dist/node/project/project-log.d.ts.map +1 -0
  82. package/dist/node/project/project-log.js +6 -0
  83. package/dist/node/project/project.d.ts +2 -2
  84. package/dist/node/project/project.d.ts.map +1 -1
  85. package/dist/node/project/project.js +3 -3
  86. package/dist/node/utils/fs.d.ts +70 -69
  87. package/dist/node/utils/fs.d.ts.map +1 -1
  88. package/package.json +12 -13
  89. package/skills/eddev/docs/devtool/cli.mdx +10 -8
  90. package/tsconfig.node.json +17 -5
  91. package/types.env.d.ts +1 -1
  92. package/dist/node/compiler/build-vinxi.d.ts +0 -9
  93. package/dist/node/compiler/build-vinxi.d.ts.map +0 -1
  94. package/dist/node/compiler/build-vinxi.js +0 -39
  95. package/dist/node/compiler/bundler.admin.d.ts +0 -14
  96. package/dist/node/compiler/bundler.admin.d.ts.map +0 -1
  97. package/dist/node/compiler/bundler.admin.js +0 -37
  98. package/dist/node/compiler/bundler.frontend.d.ts +0 -15
  99. package/dist/node/compiler/bundler.frontend.d.ts.map +0 -1
  100. package/dist/node/compiler/bundler.frontend.js +0 -51
  101. package/dist/node/compiler/vinxi-app.d.ts +0 -23
  102. package/dist/node/compiler/vinxi-app.d.ts.map +0 -1
  103. package/dist/node/compiler/vinxi-app.js +0 -261
  104. package/dist/node/compiler/vinxi-codegen.d.ts +0 -13
  105. package/dist/node/compiler/vinxi-codegen.d.ts.map +0 -1
  106. package/dist/node/compiler/vinxi-codegen.js +0 -764
@@ -0,0 +1,87 @@
1
+ import { isCSSRequest } from "vite";
2
+ const DIRECT_REQUEST_RE = /[?&]direct\b/;
3
+ const SPECIAL_CSS_QUERY_RE = /[?&](url|inline|raw)(\b|=|&|$)/;
4
+ /**
5
+ * Lets stylesheets that are rendered as `<link rel="stylesheet" data-vite-dev-id>` hot reload.
6
+ *
7
+ * A `<link>` request is a separate "direct" CSS module from the copy the JS imports. Marking it as
8
+ * self-accepting makes Vite send a `css-update` when the file (or Tailwind's output) changes, and the
9
+ * client swaps the link's `href`: the new sheet loads before the old one is removed, so there's no flash.
10
+ * The JS-imported copy stays out of the page, because Vite's client skips injecting a `<style>` for an
11
+ * id that a link already owns.
12
+ *
13
+ * This is the same approach Nitro's assets plugin uses for the main dev server's client environment.
14
+ */
15
+ export function cssLinkHmrPlugin() {
16
+ return {
17
+ name: "eddev:css-link-hmr",
18
+ apply: "serve",
19
+ transform: {
20
+ order: "post",
21
+ handler(_code, id) {
22
+ if (this.environment.mode !== "dev" || !isCSSRequest(id) || !DIRECT_REQUEST_RE.test(id))
23
+ return;
24
+ const mod = this.environment.moduleGraph.getModuleById(id);
25
+ if (mod && !mod.isSelfAccepting)
26
+ mod.isSelfAccepting = true;
27
+ },
28
+ },
29
+ };
30
+ }
31
+ /**
32
+ * Finds every stylesheet imported (statically or dynamically) by an entry, in import order, by
33
+ * transforming the entry's module graph in a dev environment.
34
+ */
35
+ export async function collectDevStylesheets(environment, entryUrl) {
36
+ const isWalkable = (dep) => !!dep.id && !isCSSRequest(dep.id) && !dep.url.includes("/node_modules/.vite/");
37
+ const load = async (url) => {
38
+ let mod = await environment.moduleGraph.getModuleByUrl(url);
39
+ if (!mod?.transformResult) {
40
+ await environment.transformRequest(url).catch(() => null);
41
+ mod = await environment.moduleGraph.getModuleByUrl(url);
42
+ }
43
+ return mod;
44
+ };
45
+ // Warm the graph breadth-first, transforming each level in parallel. (Breadth-first, rather than
46
+ // awaiting each module's imports, so import cycles can't make a module wait on itself.)
47
+ const seen = new Set([entryUrl]);
48
+ let frontier = [entryUrl];
49
+ while (frontier.length) {
50
+ const next = [];
51
+ await Promise.all(frontier.map(async (url) => {
52
+ const mod = await load(url);
53
+ for (const dep of mod?.importedModules ?? []) {
54
+ if (isWalkable(dep) && !seen.has(dep.url)) {
55
+ seen.add(dep.url);
56
+ next.push(dep.url);
57
+ }
58
+ }
59
+ }));
60
+ frontier = next;
61
+ }
62
+ const entry = await environment.moduleGraph.getModuleByUrl(entryUrl);
63
+ if (!entry)
64
+ return [];
65
+ // Walk the warmed graph depth-first, so stylesheets are listed in import order.
66
+ const visited = new Set();
67
+ const stylesheets = new Map();
68
+ const walk = (mod) => {
69
+ if (visited.has(mod))
70
+ return;
71
+ visited.add(mod);
72
+ for (const dep of mod.importedModules) {
73
+ if (!dep.id)
74
+ continue;
75
+ if (isCSSRequest(dep.id)) {
76
+ if (!SPECIAL_CSS_QUERY_RE.test(dep.id) && !stylesheets.has(dep.id)) {
77
+ stylesheets.set(dep.id, { id: dep.id, url: dep.url });
78
+ }
79
+ }
80
+ else if (isWalkable(dep)) {
81
+ walk(dep);
82
+ }
83
+ }
84
+ };
85
+ walk(entry);
86
+ return [...stylesheets.values()];
87
+ }
@@ -1,3 +1,4 @@
1
+ import { type ViteDevServer } from "vite";
1
2
  import { Project } from "../project/project.js";
2
3
  export type ServerlessDevStatus = {
3
4
  serverlessUrl: string;
@@ -14,6 +15,7 @@ export declare class DevServer {
14
15
  hostname: string;
15
16
  hostOrigin: string;
16
17
  port: number;
18
+ server?: ViteDevServer;
17
19
  constructor(project: Project, opts: Options);
18
20
  start(): Promise<void>;
19
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"dev-server.d.ts","sourceRoot":"","sources":["../../../src/node/compiler/dev-server.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAO/C,MAAM,MAAM,mBAAmB,GAAG;IAChC,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,MAAM,CAAA;CACrB,CAAA;AAID,eAAO,MAAM,aAAa,qEAAU,CAAA;AAEpC,KAAK,OAAO,GAAG;IACb,KAAK,EAAE,OAAO,CAAA;CACf,CAAA;AAED,qBAAa,SAAS;IAOX,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,OAAO;IAPtB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,SAAO;gBAGF,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,OAAO;IAUhB,KAAK;CA8GZ"}
1
+ {"version":3,"file":"dev-server.d.ts","sourceRoot":"","sources":["../../../src/node/compiler/dev-server.ts"],"names":[],"mappings":"AAGA,OAAO,EAAgB,KAAK,aAAa,EAAE,MAAM,MAAM,CAAA;AAEvD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAO/C,MAAM,MAAM,mBAAmB,GAAG;IAChC,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,MAAM,CAAA;CACrB,CAAA;AAID,eAAO,MAAM,aAAa,qEAAU,CAAA;AAEpC,KAAK,OAAO,GAAG;IACb,KAAK,EAAE,OAAO,CAAA;CACf,CAAA;AAcD,qBAAa,SAAS;IAQX,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,OAAO;IARtB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,SAAO;IACX,MAAM,CAAC,EAAE,aAAa,CAAA;gBAGb,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,OAAO;IAUhB,KAAK;CAgEZ"}
@@ -1,13 +1,26 @@
1
+ import chalk from "chalk";
2
+ import { createServer as createNetServer } from "node:net";
1
3
  import { parseURL } from "ufo";
2
- import { createDevServer } from "vinxi/dev-server";
4
+ import { createServer } from "vite";
3
5
  import { ProjectEnvUtils } from "../project/env.js";
4
- import { ensureSelfSignedCert, isCertificateTrusted } from "../utils/self-signed-cert.js";
5
6
  import { listenWithHttpRedirect } from "../utils/http-to-https-redirect.js";
7
+ import { ensureSelfSignedCert, isCertificateTrusted } from "../utils/self-signed-cert.js";
6
8
  import { createConsole } from "../utils/stateful-log.js";
7
- import { createVinxiApp } from "./vinxi-app.js";
8
- import chalk from "chalk";
9
+ import { getServerlessPreset } from "./build-serverless.js";
10
+ import { getServerlessViteConfig } from "./serverless-app.js";
9
11
  const console = createConsole("Dev Server", "dev");
10
12
  export const serverlessLog = console;
13
+ /** Finds a free local port, for the internal HTTPS server behind the public redirect socket. */
14
+ function getFreePort(host) {
15
+ return new Promise((resolve, reject) => {
16
+ const server = createNetServer();
17
+ server.once("error", reject);
18
+ server.listen(0, host, () => {
19
+ const address = server.address();
20
+ server.close(() => (typeof address === "object" && address ? resolve(address.port) : reject()));
21
+ });
22
+ });
23
+ }
11
24
  export class DevServer {
12
25
  project;
13
26
  opts;
@@ -15,6 +28,7 @@ export class DevServer {
15
28
  hostname;
16
29
  hostOrigin;
17
30
  port = 8080;
31
+ server;
18
32
  constructor(project, opts) {
19
33
  this.project = project;
20
34
  this.opts = opts;
@@ -26,30 +40,20 @@ export class DevServer {
26
40
  }
27
41
  async start() {
28
42
  console.setWorking(true);
29
- const app = createVinxiApp({
43
+ const config = getServerlessViteConfig({
30
44
  mode: "development",
31
45
  origin: this.origin,
32
46
  publicUrl: this.project.publicUrl,
33
47
  rootDir: this.project.rootDir,
34
48
  log: console,
35
49
  rpcBases: (await this.project.serverRoutes.get()).bases,
50
+ preset: getServerlessPreset({ dev: true }),
36
51
  config: this.project.config,
37
52
  });
38
- const preset = process.env.TARGET ??
39
- process.env.PRESET ??
40
- process.env.SERVER_PRESET ??
41
- process.env.SERVER_TARGET ??
42
- process.env.NITRO_PRESET ??
43
- process.env.NITRO_TARGET ??
44
- (process.versions.bun !== undefined ? "bun" : "node-server");
45
- let httpsConfig;
53
+ let https;
46
54
  if (this.opts.https) {
47
55
  const keys = await ensureSelfSignedCert(this.hostname, this.project.rootDir);
48
- httpsConfig = {
49
- cert: keys.certFile,
50
- key: keys.keyFile,
51
- domains: [this.hostname, "localhost"],
52
- };
56
+ https = { cert: keys.cert, key: keys.key };
53
57
  isCertificateTrusted(keys.certFile).then((trusted) => {
54
58
  if (!trusted) {
55
59
  serverlessLog.warn(`The certificate for ${chalk.bold(this.hostname)} is not trusted.`);
@@ -57,68 +61,32 @@ export class DevServer {
57
61
  }
58
62
  });
59
63
  }
60
- else {
61
- httpsConfig = false;
62
- }
63
- let devApp = null;
64
- app.hooks.addHooks({
65
- "app:dev:start": async ({ app, serveConfig }) => {
66
- serveConfig.https = httpsConfig;
67
- serveConfig.hostname = this.opts.https ? this.hostname : undefined;
68
- serveConfig.allowedHosts = true;
69
- },
70
- "app:dev:server:created": async (args) => {
71
- devApp = args.devApp;
72
- },
73
- });
74
- // console.log("Creating dev server")
75
- await createDevServer(app, {
76
- force: false,
77
- devtools: false,
78
- // @ts-ignore
79
- hostname: this.opts.https ? this.hostname : undefined,
80
- port: this.port,
81
- // @ts-ignore
82
- preset: preset,
83
- https: httpsConfig,
84
- });
85
- // console.log("Rnning listen hook")
86
- // @ts-ignore
87
- await app.hooks.callHook("app:dev:server:listener:creating", {
88
- app,
89
- devApp,
90
- });
91
- // console.log("Creating another listener")
92
64
  // HTTPS needs an internal port so the public socket can redirect plain HTTP first.
93
- const listener = await devApp.listen(this.opts.https ? 0 : this.port, {
94
- hostname: this.opts.https ? "127.0.0.1" : undefined,
95
- port: this.opts.https ? 0 : this.port,
96
- https: httpsConfig,
97
- qr: false,
98
- showURL: false,
99
- public: !this.opts.https,
65
+ const internalHost = "127.0.0.1";
66
+ const port = this.opts.https ? await getFreePort(internalHost) : this.port;
67
+ this.server = await createServer({
68
+ ...config,
69
+ server: {
70
+ ...config.server,
71
+ host: this.opts.https ? internalHost : true,
72
+ port,
73
+ strictPort: true,
74
+ https,
75
+ },
100
76
  });
77
+ await this.server.listen();
101
78
  if (this.opts.https) {
102
- try {
103
- const redirectListener = await listenWithHttpRedirect({
104
- hostname: this.hostname,
105
- port: this.port,
106
- httpsPort: listener.address.port,
107
- httpsOrigin: this.hostOrigin,
108
- });
109
- listener.server.once("close", () => redirectListener.close());
110
- }
111
- catch (error) {
112
- await listener.close();
79
+ const redirectListener = await listenWithHttpRedirect({
80
+ hostname: this.hostname,
81
+ port: this.port,
82
+ httpsPort: port,
83
+ httpsOrigin: this.hostOrigin,
84
+ }).catch(async (error) => {
85
+ await this.server?.close();
113
86
  throw error;
114
- }
87
+ });
88
+ this.server.httpServer?.once("close", () => redirectListener.close());
115
89
  }
116
- await app.hooks.callHook("app:dev:server:listener:created", {
117
- app,
118
- devApp,
119
- listener,
120
- });
121
- // console.log("Listening")
122
90
  console.setWorking(false);
123
91
  console.setState({
124
92
  serverlessUrl: this.hostOrigin,
@@ -1,5 +1,6 @@
1
1
  import { InlineConfig, PluginOption } from "vite";
2
2
  import { StatefulLog } from "../utils/stateful-log.js";
3
+ import { type TransformsPluginOptions, type TransformTarget } from "./transforms/index.js";
3
4
  export type Args = {
4
5
  mode: "development" | "production";
5
6
  serverless: boolean;
@@ -9,24 +10,54 @@ export type Args = {
9
10
  publicUrl: string;
10
11
  console: StatefulLog<any>;
11
12
  client: boolean;
13
+ /**
14
+ * Shared build status, for when several builds report into one log (eg. the SPA client builds
15
+ * frontend and cms together). Defaults to a tracker for this build alone.
16
+ */
17
+ status?: BuildStatusTracker;
18
+ /** Prefix for log lines from this build, eg. "frontend". */
19
+ logLabel?: string;
12
20
  };
13
21
  export declare function envPlugin(args: Args): PluginOption;
14
- type ReactPluginArgs = {
15
- retainBlockMeta?: boolean;
16
- };
17
- export declare function reactPlugin(args?: ReactPluginArgs): PluginOption[];
22
+ /** Maps the bundler args to the target used by eddev's source transforms. */
23
+ export declare function getTransformTarget(args: Pick<Args, "target" | "client">): TransformTarget;
24
+ /**
25
+ * React (JSX, Fast Refresh) plus eddev's block/view source transforms.
26
+ * See `./transforms` for what the transforms do.
27
+ */
28
+ export declare function reactPlugin(args: {
29
+ target: TransformsPluginOptions["target"];
30
+ }): PluginOption[];
18
31
  /**
19
32
  * Turns on SSR module proxying,
20
33
  */
21
34
  export declare function ssrPlugin(): PluginOption;
35
+ export type BuildStatusTracker = {
36
+ start(id: string): void;
37
+ end(id: string, failed?: boolean): void;
38
+ };
39
+ /**
40
+ * Tracks one or more concurrent builds reporting into the same log. The log shows "working" until
41
+ * every build has finished, and "error" if any of them failed.
42
+ */
43
+ export declare function createBuildStatusTracker(console: StatefulLog<any>): BuildStatusTracker;
22
44
  export declare function workersPlugin(): PluginOption;
45
+ /**
46
+ * Settings shared by every eddev Vite build:
47
+ * - tsconfig `paths` (eg. `@components/*`) are resolved natively by Vite.
48
+ * - CSS minification (Lightning CSS) recovers from invalid declarations with a warning instead of
49
+ * failing the build. Browsers drop such declarations anyway, and esbuild (Vite 6) passed them through.
50
+ */
51
+ export declare function baseConfigPlugin(): PluginOption;
23
52
  export declare function corePlugins(args: Args): PluginOption[];
24
53
  export declare function storybookVitePlugins(args: Args): PluginOption[];
25
54
  export declare function ignoreRollupErrorsPlugin(): PluginOption;
26
55
  export declare function loggerPlugin(args: {
27
56
  console: StatefulLog<any>;
28
- completeOnError?: boolean;
57
+ /** Prefix added to each line, eg. "frontend" → "[frontend] ..." */
58
+ label?: string;
59
+ /** Called when Vite logs an error */
60
+ onError?: () => void;
29
61
  }): PluginOption;
30
62
  export declare function getViteConfig(args: Args): InlineConfig;
31
- export {};
32
63
  //# sourceMappingURL=get-vite-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-vite-config.d.ts","sourceRoot":"","sources":["../../../src/node/compiler/get-vite-config.ts"],"names":[],"mappings":"AAMA,OAAO,EAAgB,YAAY,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAG/D,OAAO,EAAE,WA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