vize 0.170.0 → 0.171.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -125,18 +125,19 @@ Use the Rust CLI when you need Corsa project diagnostics across Vue, TS, TSX, an
125
125
 
126
126
  Important shared fields:
127
127
 
128
- | Field | Used by | Purpose |
129
- | -------------------------- | ---------------------- | ------------------------------------------------------- |
130
- | `compiler.sourceMap` | Vite plugin | Enable source maps |
131
- | `compiler.ssr` | npm build, Vite plugin | Force SSR compilation |
132
- | `compiler.vapor` | npm build, Vite plugin | Enable Vapor compilation |
133
- | `compiler.customRenderer` | npm build, Vite plugin | Support custom renderer element semantics |
134
- | `compiler.vueParserQuirks` | npm build, Vite plugin | Enable Vue parser quirk compatibility |
135
- | `compiler.scriptExt` | npm build | Preserve TypeScript output or downcompile to JavaScript |
136
- | `vite.scanPatterns` | Vite plugin | Pre-compile matching Vue files |
137
- | `linter.preset` | npm lint | Select the Patina lint preset |
138
- | `typeChecker.strict` | npm check | Enable strict checks |
139
- | `formatter.printWidth` | npm fmt | Set formatting width |
128
+ | Field | Used by | Purpose |
129
+ | -------------------------- | ---------------------- | --------------------------------------------------------- |
130
+ | `compiler.sourceMap` | Vite plugin | Enable source maps |
131
+ | `compiler.ssr` | npm build, Vite plugin | Force SSR compilation |
132
+ | `compiler.vapor` | npm build, Vite plugin | Enable Vapor compilation |
133
+ | `compiler.customRenderer` | npm build, Vite plugin | Support custom renderer element semantics |
134
+ | `compiler.vueParserQuirks` | npm build, Vite plugin | Enable Vue parser quirk compatibility |
135
+ | `compiler.compatibility` | integrations | Opt into legacy Vue, Nuxt, CDN, Vapor, or Webpack bridges |
136
+ | `compiler.scriptExt` | npm build | Preserve TypeScript output or downcompile to JavaScript |
137
+ | `vite.scanPatterns` | Vite plugin | Pre-compile matching Vue files |
138
+ | `linter.preset` | npm lint | Select the Patina lint preset |
139
+ | `typeChecker.strict` | npm check | Enable strict checks |
140
+ | `formatter.printWidth` | npm fmt | Set formatting width |
140
141
 
141
142
  ### Vue parser quirks
142
143
 
@@ -7,6 +7,10 @@
7
7
  type LintPreset = "happy-path" | "opinionated" | "essential" | "incremental" | "ecosystem" | "nuxt";
8
8
  type RuleSeverity = "off" | "warn" | "error";
9
9
  type RuleCategory = "correctness" | "suspicious" | "style" | "perf" | "a11y" | "security";
10
+ /**
11
+ * Host Vue runtime version for opt-in compatibility modes
12
+ */
13
+ type VueVersion = 0.11 | 1 | 2 | 3 | "legacy";
10
14
  /**
11
15
  * Configuration file for vize - High-performance Vue.js toolchain
12
16
  */
@@ -57,6 +61,10 @@ interface CompilerConfig {
57
61
  * Enable Vapor mode compilation
58
62
  */
59
63
  vapor?: boolean;
64
+ /**
65
+ * Treat lowercase non-HTML tags as custom renderer elements
66
+ */
67
+ customRenderer?: boolean;
60
68
  /**
61
69
  * Enable SSR mode
62
70
  */
@@ -97,6 +105,33 @@ interface CompilerConfig {
97
105
  * Global variable name for runtime (IIFE builds)
98
106
  */
99
107
  runtimeGlobalName?: string;
108
+ compatibility?: CompilerCompatibilityConfig;
109
+ }
110
+ /**
111
+ * Opt-in compatibility features for unsupported host/runtime combinations
112
+ */
113
+ interface CompilerCompatibilityConfig {
114
+ vueVersion?: VueVersion;
115
+ /**
116
+ * Delegate .vue compilation to the host Vue compiler for legacy Vue runtimes
117
+ */
118
+ hostCompiler?: boolean;
119
+ /**
120
+ * Enable <script setup> when emitting function-body output for CDN/global Vue usage
121
+ */
122
+ scriptSetupInStandalone?: boolean;
123
+ /**
124
+ * Allow Vapor output for Options API SFCs when Vapor mode is enabled
125
+ */
126
+ optionsApiVapor?: boolean;
127
+ /**
128
+ * Host Nuxt major version for compatibility bridges
129
+ */
130
+ nuxtVersion?: 2 | 3 | 4;
131
+ /**
132
+ * Host Webpack major version for compatibility bridges
133
+ */
134
+ webpackVersion?: 4 | 5;
100
135
  }
101
136
  /**
102
137
  * Vite plugin options
@@ -617,5 +652,5 @@ declare function resolveConfigExport(exported: UserConfigExport, env?: ConfigEnv
617
652
  */
618
653
  declare function normalizeGlobalTypes(config: GlobalTypesConfig): Record<string, GlobalTypeDeclaration>;
619
654
  //#endregion
620
- export { TypeCheckerConfig as A, LinterConfig as C, MuseaVrtConfig as D, MuseaConfig as E, VizeConfig as M, VizeConfigEntry as N, RuleCategory as O, LintPreset as S, MuseaAutogenConfig as T, CompilerConfig as _, loadConfig as a, GlobalTypesConfig as b, LspConfig as c, MaybePromise as d, ResolvedVizeConfig as f, LintRulesConfig as g, LintRuleName as h, defineConfig as i, VitePluginConfig as j, RuleSeverity as k, ConfigEnv as l, UserConfigInput as m, VIZE_CONFIG_JSON_SCHEMA_PATH as n, normalizeGlobalTypes as o, UserConfigExport as p, VIZE_CONFIG_PKL_SCHEMA_PATH as r, resolveConfigExport as s, CONFIG_FILE_NAMES as t, LoadConfigOptions as u, FormatterConfig as v, MuseaA11yConfig as w, LanguageServerConfig as x, GlobalTypeDeclaration as y };
621
- //# sourceMappingURL=config-BPtKWQg0.d.mts.map
655
+ export { RuleSeverity as A, LintPreset as C, MuseaConfig as D, MuseaAutogenConfig as E, VueVersion as F, VitePluginConfig as M, VizeConfig as N, MuseaVrtConfig as O, VizeConfigEntry as P, LanguageServerConfig as S, MuseaA11yConfig as T, CompilerCompatibilityConfig as _, loadConfig as a, GlobalTypeDeclaration as b, LspConfig as c, MaybePromise as d, ResolvedVizeConfig as f, LintRulesConfig as g, LintRuleName as h, defineConfig as i, TypeCheckerConfig as j, RuleCategory as k, ConfigEnv as l, UserConfigInput as m, VIZE_CONFIG_JSON_SCHEMA_PATH as n, normalizeGlobalTypes as o, UserConfigExport as p, VIZE_CONFIG_PKL_SCHEMA_PATH as r, resolveConfigExport as s, CONFIG_FILE_NAMES as t, LoadConfigOptions as u, CompilerConfig as v, LinterConfig as w, GlobalTypesConfig as x, FormatterConfig as y };
656
+ //# sourceMappingURL=config-DqgVr12-.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config-DqgVr12-.d.mts","names":[],"sources":["../src/types/generated.ts","../src/types/rules.ts","../src/types/runtime.ts","../src/types/index.ts","../src/config.ts"],"mappings":";;AAOA;;;;KAAY,UAAA;AAAA,KAQA,YAAA;AAAA,KAEA,YAAA;;;;KAKA,UAAA;;;;UAKK,UAAA;EALL;;;EASV,IAAA;EAToB;AAKtB;;EAQE,QAAA;EAaW;;;EATX,KAAA;EAaY;;;EATZ,OAAA;EAac;;;EATd,OAAA;EACA,QAAA,GAAW,cAAA;EACX,IAAA,GAAO,gBAAA;EACP,MAAA,GAAS,YAAA;EACT,WAAA,GAAc,iBAAA;EACd,SAAA,GAAY,eAAA;EACZ,cAAA,GAAiB,oBAAA;EACjB,GAAA,GAAM,oBAAA;EACN,KAAA,GAAQ,WAAA;EACR,WAAA,GAAc,iBAAA;EANd;;;EAUA,OAAA,GAAU,eAAA;AAAA;;;;UAKK,cAAA;EAXT;;;EAeN,IAAA;EAbc;;;EAiBd,KAAA;EAbyB;AAK3B;;EAYE,cAAA;EAyC2C;;;EArC3C,GAAA;EAAA;;;EAIA,eAAA;EAYA;;;EARA,SAAA;EAwBA;;;EApBA,iBAAA;EAyB2C;;AAK7C;EA1BE,WAAA;;;;EAIA,aAAA;EA2BA;;;EAvBA,IAAA;EAuCA;;;EAnCA,SAAA;EAwC+B;;;EApC/B,iBAAA;EA4CmB;;;EAxCnB,iBAAA;EACA,aAAA,GAAgB,2BAAA;AAAA;;;;UAKD,2BAAA;EACf,UAAA,GAAa,UAAA;EAyCb;;;EArCA,YAAA;EA0C2B;;;EAtC3B,uBAAA;EA8CA;;;EA1CA,eAAA;EAqDE;;;EAjDF,WAAA;EAqDE;;;EAjDF,cAAA;AAAA;;;;UAKe,gBAAA;EA2Df;;;EAvDA,OAAA,YAAmB,MAAA,aAAmB,MAAA;EAuEtC;;;EAnEA,OAAA,YAAmB,MAAA,aAAmB,MAAA;EAmFtC;;;EA/EA,YAAA;EA+FA;;;EA3FA,cAAA;AAAA;;;;UAKe,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config.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as loadConfig, i as defineConfig, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES } from "./config-BPtKWQg0.mjs";
1
+ import { a as loadConfig, i as defineConfig, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES } from "./config-DqgVr12-.mjs";
2
2
  export { CONFIG_FILE_NAMES, VIZE_CONFIG_JSON_SCHEMA_PATH, VIZE_CONFIG_PKL_SCHEMA_PATH, defineConfig, loadConfig, normalizeGlobalTypes, resolveConfigExport };
package/dist/index.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { A as TypeCheckerConfig, C as LinterConfig, D as MuseaVrtConfig, E as MuseaConfig, M as VizeConfig, N as VizeConfigEntry, O as RuleCategory, S as LintPreset, T as MuseaAutogenConfig, _ as CompilerConfig, a as loadConfig, b as GlobalTypesConfig, c as LspConfig, d as MaybePromise, f as ResolvedVizeConfig, g as LintRulesConfig, h as LintRuleName, i as defineConfig, j as VitePluginConfig, k as RuleSeverity, l as ConfigEnv, m as UserConfigInput, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, p as UserConfigExport, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES, u as LoadConfigOptions, v as FormatterConfig, w as MuseaA11yConfig, x as LanguageServerConfig, y as GlobalTypeDeclaration } from "./config-BPtKWQg0.mjs";
2
- export { CONFIG_FILE_NAMES, type CompilerConfig, type ConfigEnv, type FormatterConfig, type GlobalTypeDeclaration, type GlobalTypesConfig, type LanguageServerConfig, type LintPreset, type LintRuleName, type LintRulesConfig, type LinterConfig, type LoadConfigOptions, type LspConfig, type MaybePromise, type MuseaA11yConfig, type MuseaAutogenConfig, type MuseaConfig, type MuseaVrtConfig, type ResolvedVizeConfig, type RuleCategory, type RuleSeverity, type TypeCheckerConfig, type UserConfigExport, type UserConfigInput, VIZE_CONFIG_JSON_SCHEMA_PATH, VIZE_CONFIG_PKL_SCHEMA_PATH, type VitePluginConfig, type VizeConfig, type VizeConfigEntry, defineConfig, loadConfig, normalizeGlobalTypes, resolveConfigExport };
1
+ import { A as RuleSeverity, C as LintPreset, D as MuseaConfig, E as MuseaAutogenConfig, F as VueVersion, M as VitePluginConfig, N as VizeConfig, O as MuseaVrtConfig, P as VizeConfigEntry, S as LanguageServerConfig, T as MuseaA11yConfig, _ as CompilerCompatibilityConfig, a as loadConfig, b as GlobalTypeDeclaration, c as LspConfig, d as MaybePromise, f as ResolvedVizeConfig, g as LintRulesConfig, h as LintRuleName, i as defineConfig, j as TypeCheckerConfig, k as RuleCategory, l as ConfigEnv, m as UserConfigInput, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, p as UserConfigExport, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES, u as LoadConfigOptions, v as CompilerConfig, w as LinterConfig, x as GlobalTypesConfig, y as FormatterConfig } from "./config-DqgVr12-.mjs";
2
+ export { CONFIG_FILE_NAMES, type CompilerCompatibilityConfig, type CompilerConfig, type ConfigEnv, type FormatterConfig, type GlobalTypeDeclaration, type GlobalTypesConfig, type LanguageServerConfig, type LintPreset, type LintRuleName, type LintRulesConfig, type LinterConfig, type LoadConfigOptions, type LspConfig, type MaybePromise, type MuseaA11yConfig, type MuseaAutogenConfig, type MuseaConfig, type MuseaVrtConfig, type ResolvedVizeConfig, type RuleCategory, type RuleSeverity, type TypeCheckerConfig, type UserConfigExport, type UserConfigInput, VIZE_CONFIG_JSON_SCHEMA_PATH, VIZE_CONFIG_PKL_SCHEMA_PATH, type VitePluginConfig, type VizeConfig, type VizeConfigEntry, type VueVersion, defineConfig, loadConfig, normalizeGlobalTypes, resolveConfigExport };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vize",
3
- "version": "0.170.0",
3
+ "version": "0.171.0",
4
4
  "description": "Vize - High-performance Vue.js toolchain in Rust",
5
5
  "keywords": [
6
6
  "cli",
@@ -50,7 +50,7 @@
50
50
  "access": "public"
51
51
  },
52
52
  "dependencies": {
53
- "@vizejs/native": "0.170.0",
53
+ "@vizejs/native": "0.171.0",
54
54
  "oxc-transform": "0.130.0",
55
55
  "vue": "3.5.34"
56
56
  },
@@ -1,6 +1,28 @@
1
1
  /// Compiler configuration for Vize.
2
2
  module vize.CompilerConfig
3
3
 
4
+ typealias VueVersion = Number | "legacy"
5
+
6
+ class CompilerCompatibilityConfig {
7
+ /// Host Vue runtime version for opt-in compatibility modes.
8
+ vueVersion: VueVersion? = null
9
+
10
+ /// Delegate .vue compilation to the host Vue compiler for legacy Vue runtimes.
11
+ hostCompiler: Boolean? = null
12
+
13
+ /// Enable <script setup> when emitting function-body output for CDN/global Vue usage.
14
+ scriptSetupInStandalone: Boolean = false
15
+
16
+ /// Allow Vapor output for Options API SFCs when Vapor mode is enabled.
17
+ optionsApiVapor: Boolean = false
18
+
19
+ /// Host Nuxt major version for compatibility bridges.
20
+ nuxtVersion: Number? = null
21
+
22
+ /// Host Webpack major version for compatibility bridges.
23
+ webpackVersion: Number? = null
24
+ }
25
+
4
26
  class CompilerConfig {
5
27
  /// Compilation mode.
6
28
  mode: ("module"|"function") = "module"
@@ -8,6 +30,9 @@ class CompilerConfig {
8
30
  /// Enable Vapor mode compilation.
9
31
  vapor: Boolean = false
10
32
 
33
+ /// Treat lowercase non-HTML tags as custom renderer elements.
34
+ customRenderer: Boolean = false
35
+
11
36
  /// Enable SSR mode.
12
37
  ssr: Boolean = false
13
38
 
@@ -37,4 +62,7 @@ class CompilerConfig {
37
62
 
38
63
  /// Global variable name for runtime (IIFE builds).
39
64
  runtimeGlobalName: String = "Vue"
65
+
66
+ /// Opt-in compatibility features for unsupported host/runtime combinations.
67
+ compatibility: CompilerCompatibilityConfig = new CompilerCompatibilityConfig {}
40
68
  }
@@ -16,6 +16,11 @@
16
16
  "default": false,
17
17
  "type": "boolean"
18
18
  },
19
+ "customRenderer": {
20
+ "description": "Treat lowercase non-HTML tags as custom renderer elements",
21
+ "default": false,
22
+ "type": "boolean"
23
+ },
19
24
  "ssr": {
20
25
  "description": "Enable SSR mode",
21
26
  "default": false,
@@ -65,6 +70,56 @@
65
70
  "description": "Global variable name for runtime (IIFE builds)",
66
71
  "default": "Vue",
67
72
  "type": "string"
73
+ },
74
+ "compatibility": {
75
+ "$ref": "#/definitions/CompilerCompatibilityConfig"
76
+ }
77
+ },
78
+ "additionalProperties": false
79
+ },
80
+ "VueVersion": {
81
+ "description": "Host Vue runtime version for opt-in compatibility modes",
82
+ "oneOf": [
83
+ {
84
+ "type": "number",
85
+ "enum": [0.11, 1, 2, 3]
86
+ },
87
+ {
88
+ "type": "string",
89
+ "enum": ["legacy"]
90
+ }
91
+ ]
92
+ },
93
+ "CompilerCompatibilityConfig": {
94
+ "description": "Opt-in compatibility features for unsupported host/runtime combinations",
95
+ "type": "object",
96
+ "properties": {
97
+ "vueVersion": {
98
+ "$ref": "#/definitions/VueVersion"
99
+ },
100
+ "hostCompiler": {
101
+ "description": "Delegate .vue compilation to the host Vue compiler for legacy Vue runtimes",
102
+ "type": "boolean"
103
+ },
104
+ "scriptSetupInStandalone": {
105
+ "description": "Enable <script setup> when emitting function-body output for CDN/global Vue usage",
106
+ "default": false,
107
+ "type": "boolean"
108
+ },
109
+ "optionsApiVapor": {
110
+ "description": "Allow Vapor output for Options API SFCs when Vapor mode is enabled",
111
+ "default": false,
112
+ "type": "boolean"
113
+ },
114
+ "nuxtVersion": {
115
+ "description": "Host Nuxt major version for compatibility bridges",
116
+ "type": "integer",
117
+ "enum": [2, 3, 4]
118
+ },
119
+ "webpackVersion": {
120
+ "description": "Host Webpack major version for compatibility bridges",
121
+ "type": "integer",
122
+ "enum": [4, 5]
68
123
  }
69
124
  },
70
125
  "additionalProperties": false
package/src/index.ts CHANGED
@@ -29,6 +29,8 @@ export type {
29
29
  LintPreset,
30
30
  RuleSeverity,
31
31
  RuleCategory,
32
+ VueVersion,
33
+ CompilerCompatibilityConfig,
32
34
  VizeConfigEntry,
33
35
  LintRuleName,
34
36
  LintRulesConfig,
@@ -17,6 +17,11 @@ export type RuleSeverity = "off" | "warn" | "error";
17
17
 
18
18
  export type RuleCategory = "correctness" | "suspicious" | "style" | "perf" | "a11y" | "security";
19
19
 
20
+ /**
21
+ * Host Vue runtime version for opt-in compatibility modes
22
+ */
23
+ export type VueVersion = 0.11 | 1 | 2 | 3 | "legacy";
24
+
20
25
  /**
21
26
  * Configuration file for vize - High-performance Vue.js toolchain
22
27
  */
@@ -67,6 +72,10 @@ export interface CompilerConfig {
67
72
  * Enable Vapor mode compilation
68
73
  */
69
74
  vapor?: boolean;
75
+ /**
76
+ * Treat lowercase non-HTML tags as custom renderer elements
77
+ */
78
+ customRenderer?: boolean;
70
79
  /**
71
80
  * Enable SSR mode
72
81
  */
@@ -107,6 +116,33 @@ export interface CompilerConfig {
107
116
  * Global variable name for runtime (IIFE builds)
108
117
  */
109
118
  runtimeGlobalName?: string;
119
+ compatibility?: CompilerCompatibilityConfig;
120
+ }
121
+ /**
122
+ * Opt-in compatibility features for unsupported host/runtime combinations
123
+ */
124
+ export interface CompilerCompatibilityConfig {
125
+ vueVersion?: VueVersion;
126
+ /**
127
+ * Delegate .vue compilation to the host Vue compiler for legacy Vue runtimes
128
+ */
129
+ hostCompiler?: boolean;
130
+ /**
131
+ * Enable <script setup> when emitting function-body output for CDN/global Vue usage
132
+ */
133
+ scriptSetupInStandalone?: boolean;
134
+ /**
135
+ * Allow Vapor output for Options API SFCs when Vapor mode is enabled
136
+ */
137
+ optionsApiVapor?: boolean;
138
+ /**
139
+ * Host Nuxt major version for compatibility bridges
140
+ */
141
+ nuxtVersion?: 2 | 3 | 4;
142
+ /**
143
+ * Host Webpack major version for compatibility bridges
144
+ */
145
+ webpackVersion?: 4 | 5;
110
146
  }
111
147
  /**
112
148
  * Vite plugin options
@@ -2,9 +2,11 @@ export type {
2
2
  LintPreset,
3
3
  RuleSeverity,
4
4
  RuleCategory,
5
+ VueVersion,
5
6
  VizeConfig,
6
7
  VizeConfigEntry,
7
8
  CompilerConfig,
9
+ CompilerCompatibilityConfig,
8
10
  VitePluginConfig,
9
11
  LinterConfig,
10
12
  TypeCheckerConfig,
@@ -1 +0,0 @@
1
- {"version":3,"file":"config-BPtKWQg0.d.mts","names":[],"sources":["../src/types/generated.ts","../src/types/rules.ts","../src/types/runtime.ts","../src/types/index.ts","../src/config.ts"],"mappings":";;AAOA;;;;KAAY,UAAA;AAAA,KAQA,YAAA;AAAA,KAEA,YAAA;;;;UAKK,UAAA;EALO;;;EAStB,IAAA;EAJe;;;EAQf,QAAA;EAcO;;;EAVP,KAAA;EAciB;;;EAVjB,OAAA;EAiBU;;;EAbV,OAAA;EACA,QAAA,GAAW,cAAA;EACX,IAAA,GAAO,gBAAA;EACP,MAAA,GAAS,YAAA;EACT,WAAA,GAAc,iBAAA;EACd,SAAA,GAAY,eAAA;EACZ,cAAA,GAAiB,oBAAA;EACjB,GAAA,GAAM,oBAAA;EACN,KAAA,GAAQ,WAAA;EACR,WAAA,GAAc,iBAAA;EANL;;;EAUT,OAAA,GAAU,eAAA;AAAA;;;;UAKK,cAAA;EAVf;;;EAcA,IAAA;EATA;;;EAaA,KAAA;EARe;;;EAYf,GAAA;EARA;;;EAYA,eAAA;EAIA;;;EAAA,SAAA;EAgBA;;;EAZA,iBAAA;EAwBiB;;AAKnB;EAzBE,WAAA;;;;EAIA,aAAA;EA6BsC;;;EAzBtC,IAAA;EAqBmB;;;EAjBnB,SAAA;EAqBsC;;;EAjBtC,iBAAA;EAyBc;AAKhB;;EA1BE,iBAAA;AAAA;;;;UAKe,gBAAA;EAuCf;;;EAnCA,OAAA,YAAmB,MAAA,aAAmB,MAAA;E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