@turntrout/subfont 1.7.0 → 1.8.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/CLAUDE.md +39 -13
- package/README.md +24 -14
- package/lib/FontTracerPool.d.ts +38 -0
- package/lib/FontTracerPool.d.ts.map +1 -0
- package/lib/FontTracerPool.js +230 -217
- package/lib/FontTracerPool.js.map +1 -0
- package/lib/HeadlessBrowser.d.ts +18 -0
- package/lib/HeadlessBrowser.d.ts.map +1 -0
- package/lib/HeadlessBrowser.js +216 -210
- package/lib/HeadlessBrowser.js.map +1 -0
- package/lib/cli.d.ts +3 -0
- package/lib/cli.d.ts.map +1 -0
- package/lib/cli.js +15 -12
- package/lib/cli.js.map +1 -0
- package/lib/codepointMaps.d.ts +4 -0
- package/lib/codepointMaps.d.ts.map +1 -0
- package/lib/codepointMaps.js +99 -0
- package/lib/codepointMaps.js.map +1 -0
- package/lib/collectFeatureGlyphIds.d.ts +3 -0
- package/lib/collectFeatureGlyphIds.d.ts.map +1 -0
- package/lib/collectFeatureGlyphIds.js +124 -138
- package/lib/collectFeatureGlyphIds.js.map +1 -0
- package/lib/collectTextsByPage.d.ts +41 -0
- package/lib/collectTextsByPage.d.ts.map +1 -0
- package/lib/collectTextsByPage.js +726 -965
- package/lib/collectTextsByPage.js.map +1 -0
- package/lib/concurrencyLimit.d.ts +3 -0
- package/lib/concurrencyLimit.d.ts.map +1 -0
- package/lib/concurrencyLimit.js +12 -11
- package/lib/concurrencyLimit.js.map +1 -0
- package/lib/escapeJsStringLiteral.d.ts +3 -0
- package/lib/escapeJsStringLiteral.d.ts.map +1 -0
- package/lib/escapeJsStringLiteral.js +7 -6
- package/lib/escapeJsStringLiteral.js.map +1 -0
- package/lib/extractReferencedCustomPropertyNames.d.ts +3 -0
- package/lib/extractReferencedCustomPropertyNames.d.ts.map +1 -0
- package/lib/extractReferencedCustomPropertyNames.js +15 -16
- package/lib/extractReferencedCustomPropertyNames.js.map +1 -0
- package/lib/extractVisibleText.d.ts +7 -0
- package/lib/extractVisibleText.d.ts.map +1 -0
- package/lib/extractVisibleText.js +110 -119
- package/lib/extractVisibleText.js.map +1 -0
- package/lib/findCustomPropertyDefinitions.d.ts +8 -0
- package/lib/findCustomPropertyDefinitions.d.ts.map +1 -0
- package/lib/findCustomPropertyDefinitions.js +41 -48
- package/lib/findCustomPropertyDefinitions.js.map +1 -0
- package/lib/fontConverter.d.ts +2 -0
- package/lib/fontConverter.d.ts.map +1 -0
- package/lib/fontConverter.js +40 -21
- package/lib/fontConverter.js.map +1 -0
- package/lib/fontConverterWorker.d.ts +2 -0
- package/lib/fontConverterWorker.d.ts.map +1 -0
- package/lib/fontConverterWorker.js +52 -15
- package/lib/fontConverterWorker.js.map +1 -0
- package/lib/fontFaceHelpers.d.ts +64 -0
- package/lib/fontFaceHelpers.d.ts.map +1 -0
- package/lib/fontFaceHelpers.js +237 -249
- package/lib/fontFaceHelpers.js.map +1 -0
- package/lib/fontFeatureHelpers.d.ts +30 -0
- package/lib/fontFeatureHelpers.d.ts.map +1 -0
- package/lib/fontFeatureHelpers.js +277 -212
- package/lib/fontFeatureHelpers.js.map +1 -0
- package/lib/fontTracerWorker.d.ts +11 -0
- package/lib/fontTracerWorker.d.ts.map +1 -0
- package/lib/fontTracerWorker.js +94 -60
- package/lib/fontTracerWorker.js.map +1 -0
- package/lib/gatherStylesheetsWithPredicates.d.ts +26 -0
- package/lib/gatherStylesheetsWithPredicates.d.ts.map +1 -0
- package/lib/gatherStylesheetsWithPredicates.js +75 -84
- package/lib/gatherStylesheetsWithPredicates.js.map +1 -0
- package/lib/getCssRulesByProperty.d.ts +29 -0
- package/lib/getCssRulesByProperty.d.ts.map +1 -0
- package/lib/getCssRulesByProperty.js +316 -316
- package/lib/getCssRulesByProperty.js.map +1 -0
- package/lib/getFontInfo.d.ts +11 -0
- package/lib/getFontInfo.d.ts.map +1 -0
- package/lib/getFontInfo.js +31 -33
- package/lib/getFontInfo.js.map +1 -0
- package/lib/initialValueByProp.d.ts +3 -0
- package/lib/initialValueByProp.d.ts.map +1 -0
- package/lib/initialValueByProp.js +20 -17
- package/lib/initialValueByProp.js.map +1 -0
- package/lib/injectSubsetDefinitions.d.ts +3 -0
- package/lib/injectSubsetDefinitions.d.ts.map +1 -0
- package/lib/injectSubsetDefinitions.js +55 -59
- package/lib/injectSubsetDefinitions.js.map +1 -0
- package/lib/normalizeFontPropertyValue.d.ts +3 -0
- package/lib/normalizeFontPropertyValue.d.ts.map +1 -0
- package/lib/normalizeFontPropertyValue.js +59 -54
- package/lib/normalizeFontPropertyValue.js.map +1 -0
- package/lib/parseCommandLineOptions.d.ts +9 -0
- package/lib/parseCommandLineOptions.d.ts.map +1 -0
- package/lib/parseCommandLineOptions.js +145 -149
- package/lib/parseCommandLineOptions.js.map +1 -0
- package/lib/parseFontVariationSettings.d.ts +3 -0
- package/lib/parseFontVariationSettings.d.ts.map +1 -0
- package/lib/parseFontVariationSettings.js +38 -36
- package/lib/parseFontVariationSettings.js.map +1 -0
- package/lib/progress.d.ts +27 -0
- package/lib/progress.d.ts.map +1 -0
- package/lib/progress.js +51 -54
- package/lib/progress.js.map +1 -0
- package/lib/sfntCache.d.ts +4 -0
- package/lib/sfntCache.d.ts.map +1 -0
- package/lib/sfntCache.js +67 -25
- package/lib/sfntCache.js.map +1 -0
- package/lib/stripLocalTokens.d.ts +3 -0
- package/lib/stripLocalTokens.d.ts.map +1 -0
- package/lib/stripLocalTokens.js +23 -21
- package/lib/stripLocalTokens.js.map +1 -0
- package/lib/subfont.d.ts +54 -0
- package/lib/subfont.d.ts.map +1 -0
- package/lib/subfont.js +531 -629
- package/lib/subfont.js.map +1 -0
- package/lib/subsetFontWithGlyphs.d.ts +21 -0
- package/lib/subsetFontWithGlyphs.d.ts.map +1 -0
- package/lib/subsetFontWithGlyphs.js +285 -259
- package/lib/subsetFontWithGlyphs.js.map +1 -0
- package/lib/subsetFonts.d.ts +55 -0
- package/lib/subsetFonts.d.ts.map +1 -0
- package/lib/subsetFonts.js +899 -1200
- package/lib/subsetFonts.js.map +1 -0
- package/lib/subsetGeneration.d.ts +36 -0
- package/lib/subsetGeneration.d.ts.map +1 -0
- package/lib/subsetGeneration.js +328 -325
- package/lib/subsetGeneration.js.map +1 -0
- package/lib/types/shared.d.ts +11 -0
- package/lib/types/shared.d.ts.map +1 -0
- package/lib/types/shared.js +3 -0
- package/lib/types/shared.js.map +1 -0
- package/lib/unicodeRange.d.ts +3 -0
- package/lib/unicodeRange.d.ts.map +1 -0
- package/lib/unicodeRange.js +17 -30
- package/lib/unicodeRange.js.map +1 -0
- package/lib/unquote.d.ts +3 -0
- package/lib/unquote.d.ts.map +1 -0
- package/lib/unquote.js +18 -25
- package/lib/unquote.js.map +1 -0
- package/lib/variationAxes.d.ts +33 -0
- package/lib/variationAxes.d.ts.map +1 -0
- package/lib/variationAxes.js +127 -157
- package/lib/variationAxes.js.map +1 -0
- package/lib/warnAboutMissingGlyphs.d.ts +43 -0
- package/lib/warnAboutMissingGlyphs.d.ts.map +1 -0
- package/lib/warnAboutMissingGlyphs.js +139 -147
- package/lib/warnAboutMissingGlyphs.js.map +1 -0
- package/lib/wasmQueue.d.ts +3 -0
- package/lib/wasmQueue.d.ts.map +1 -0
- package/lib/wasmQueue.js +13 -10
- package/lib/wasmQueue.js.map +1 -0
- package/package.json +12 -2
package/lib/sfntCache.js
CHANGED
|
@@ -1,29 +1,71 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.toSfnt = toSfnt;
|
|
37
|
+
const fontverter = __importStar(require("fontverter"));
|
|
38
|
+
const fontConverter_1 = require("./fontConverter");
|
|
4
39
|
const sfntPromiseByBuffer = new WeakMap();
|
|
5
|
-
|
|
6
40
|
function toSfnt(buffer) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
41
|
+
const cached = sfntPromiseByBuffer.get(buffer);
|
|
42
|
+
if (cached)
|
|
43
|
+
return cached;
|
|
44
|
+
let promise;
|
|
45
|
+
try {
|
|
46
|
+
const format = fontverter.detectFormat(buffer);
|
|
47
|
+
if (format === 'sfnt') {
|
|
48
|
+
promise = Promise.resolve(buffer);
|
|
49
|
+
}
|
|
50
|
+
else if (format === 'woff2') {
|
|
51
|
+
promise = (0, fontConverter_1.convert)(buffer, 'sfnt');
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
promise = fontverter.convert(buffer, 'sfnt');
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
catch {
|
|
58
|
+
promise = (0, fontConverter_1.convert)(buffer, 'sfnt');
|
|
19
59
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
60
|
+
// Evict on rejection so retries with the same buffer aren't stuck.
|
|
61
|
+
// Rethrow so callers see the original error and Node doesn't surface an
|
|
62
|
+
// unhandled rejection if this branch is the only consumer.
|
|
63
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
64
|
+
const tracked = promise.catch((err) => {
|
|
65
|
+
sfntPromiseByBuffer.delete(buffer);
|
|
66
|
+
throw err;
|
|
67
|
+
});
|
|
68
|
+
sfntPromiseByBuffer.set(buffer, tracked);
|
|
69
|
+
return tracked;
|
|
27
70
|
}
|
|
28
|
-
|
|
29
|
-
module.exports = { toSfnt };
|
|
71
|
+
//# sourceMappingURL=sfntCache.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sfntCache.js","sourceRoot":"","sources":["../src/sfntCache.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,wBA2BC;AAlCD,uDAAyC;AACzC,mDAA0C;AAI1C,MAAM,mBAAmB,GAAG,IAAI,OAAO,EAA+B,CAAC;AAEvE,SAAgB,MAAM,CAAC,MAAkB;IACvC,MAAM,MAAM,GAAG,mBAAmB,CAAC,GAAG,CAAC,MAAgB,CAAC,CAAC;IACzD,I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
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
const postcssValueParser = require("postcss-value-parser");
|
|
3
|
+
function stripLocalTokens(cssValue) {
|
|
4
|
+
const rootNode = postcssValueParser(cssValue);
|
|
5
|
+
for (let i = 0; i < rootNode.nodes.length; i += 1) {
|
|
6
|
+
const node = rootNode.nodes[i];
|
|
7
|
+
if (node.type === 'function' && node.value.toLowerCase() === 'local') {
|
|
8
|
+
let numTokensToRemove = 1;
|
|
9
|
+
if (i + 1 < rootNode.nodes.length) {
|
|
10
|
+
const nextToken = rootNode.nodes[i + 1];
|
|
11
|
+
if (nextToken.type === 'div' && nextToken.value === ',') {
|
|
12
|
+
numTokensToRemove += 1;
|
|
13
|
+
if (i + 2 < rootNode.nodes.length) {
|
|
14
|
+
rootNode.nodes[i + 2].before = node.before;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
rootNode.nodes.splice(i, numTokensToRemove);
|
|
19
|
+
i -= 1;
|
|
16
20
|
}
|
|
17
|
-
}
|
|
18
|
-
rootNode.nodes.splice(i, numTokensToRemove);
|
|
19
|
-
i -= 1;
|
|
20
21
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
return postcssValueParser.stringify(rootNode);
|
|
23
|
+
}
|
|
24
|
+
module.exports = stripLocalTokens;
|
|
25
|
+
//# sourceMappingURL=stripLocalTokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stripLocalTokens.js","sourceRoot":"","sources":["../src/stripLocalTokens.ts"],"names":[],"mappings":";AAAA,2DAA4D;AAE5D,SAAS,gBAAgB,CAAC,QAAgB;IACxC,MAAM,QAAQ,GAAG,kBAAkB,CAAC,QAAQ,CAAC,CAAC;IAC9C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;QAClD,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC/B,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU,IAAI,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,KAAK,OAAO,EAAE,CAAC;YACrE,IAAI,iBAAiB,GAAG,CAAC,CAAC;YAC1B,IAAI,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;gBAClC,MAAM,SAAS,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;gBACxC,IAAI,SAAS,CAAC,IAAI,KAAK,KAAK,IAAI,SAAS,CAAC,KAAK,KAAK,GAAG,EAAE,CAAC;oBACxD,iBAAiB,IAAI,CAAC,CAAC;oBACvB,IAAI,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;wBAClC,QAAQ,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;oBAC7C,CAAC;gBACH,CAAC;YACH,CAAC;YACD,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,iBAAiB,CAAC,CAAC;YAC5C,CAAC,IAAI,CAAC,CAAC;QACT,CAAC;IACH,CAAC;IACD,OAAO,kBAAkB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;AAChD,CAAC;AAED,iBAAS,gBAAgB,CAAC"}
|
package/lib/subfont.d.ts
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import AssetGraph = require('assetgraph');
|
|
2
|
+
declare class UsageError extends Error {
|
|
3
|
+
constructor(message: string);
|
|
4
|
+
}
|
|
5
|
+
/** Options for the subfont programmatic API. One of `output`, `inPlace`, or `dryRun` must be set. */
|
|
6
|
+
interface SubfontOptions {
|
|
7
|
+
/** Path or URL to the web root. Deduced from `inputFiles` if omitted. */
|
|
8
|
+
root?: string;
|
|
9
|
+
/** URI root where the site will be deployed (rewrites absolute URLs). */
|
|
10
|
+
canonicalRoot?: string;
|
|
11
|
+
/** Output directory. Mutually exclusive with `inPlace`. */
|
|
12
|
+
output?: string;
|
|
13
|
+
/** Emit verbose timing and glyph-detection info. */
|
|
14
|
+
debug?: boolean;
|
|
15
|
+
/** Trace and compute subsets but do not write any files. */
|
|
16
|
+
dryRun?: boolean;
|
|
17
|
+
/** Suppress all log output. */
|
|
18
|
+
silent?: boolean;
|
|
19
|
+
/** Inline the subset @font-face CSS into the HTML document. */
|
|
20
|
+
inlineCss?: boolean;
|
|
21
|
+
/** CSS font-display value: `auto`, `block`, `swap`, `fallback`, or `optional`. */
|
|
22
|
+
fontDisplay?: string;
|
|
23
|
+
/** Modify input files in-place. */
|
|
24
|
+
inPlace?: boolean;
|
|
25
|
+
/** HTML entry points (file paths or URLs). */
|
|
26
|
+
inputFiles?: Array<string | number | URL>;
|
|
27
|
+
/** Crawl linked pages starting from `inputFiles`. */
|
|
28
|
+
recursive?: boolean;
|
|
29
|
+
/** Emit relative URLs instead of root-relative. */
|
|
30
|
+
relativeUrls?: boolean;
|
|
31
|
+
/** Trace JS-rendered content in headless Chrome. */
|
|
32
|
+
dynamic?: boolean;
|
|
33
|
+
/** Async-load the full original font as a fallback for dynamic content. */
|
|
34
|
+
fallbacks?: boolean;
|
|
35
|
+
/** Extra characters to include in every subset. */
|
|
36
|
+
text?: string;
|
|
37
|
+
/** Preserve CSS source maps (slower). */
|
|
38
|
+
sourceMaps?: boolean;
|
|
39
|
+
/** Max parallel tracing workers. Defaults to CPU count, capped by available memory. */
|
|
40
|
+
concurrency?: number;
|
|
41
|
+
/** Extra Chrome flags forwarded to puppeteer when `dynamic` is set. */
|
|
42
|
+
chromeFlags?: string[];
|
|
43
|
+
/** Cache subset results. Pass a path or `true` for `.subfont-cache` inside `root`. */
|
|
44
|
+
cache?: boolean | string;
|
|
45
|
+
/** Exit non-zero if any warnings are emitted. */
|
|
46
|
+
strict?: boolean;
|
|
47
|
+
}
|
|
48
|
+
interface SubfontFn {
|
|
49
|
+
(options: SubfontOptions, console?: Console): Promise<InstanceType<typeof AssetGraph>>;
|
|
50
|
+
UsageError: typeof UsageError;
|
|
51
|
+
}
|
|
52
|
+
declare const subfont: SubfontFn;
|
|
53
|
+
export = subfont;
|
|
54
|
+
//# sourceMappingURL=subfont.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subfont.d.ts","sourceRoot":"","sources":["../src/subfont.ts"],"names":[],"mappings":"AAKA,OAAO,UAAU,GAAG,QAAQ,YAAY,CAAC,CAAC;AAQ1C,cAAM,UAAW,SAAQ,KAAK;gBAChB,OAAO,EAAE,MAAM;CAI5B;AAED,qGAAqG;AACrG,UAAU,cAAc;IACtB,yEAAyE;IACzE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2DAA2D;IAC3D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oDAAoD;IACpD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,4DAA4D;IAC5D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,+BAA+B;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kFAAkF;IAClF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mCAAmC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,8CAA8C;IAC9C,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,GAAG,CAAC,CAAC;IAC1C,qDAAqD;IACrD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mDAAmD;IACnD,YAAY,CA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