md2x 0.7.5 → 0.7.6

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
@@ -7,7 +7,7 @@ Markdown → PDF/DOCX/HTML/Image converter.
7
7
  ## Features
8
8
 
9
9
  - 📦 **Supported formats**: `pdf`, `docx`, `html`, `png`, `jpg/jpeg`, `webp`
10
- - 🔌 **MCP (Model Context Protocol)**: run `mcp/` server to expose Markdown conversion as MCP tools
10
+ - 🔌 **MCP (Model Context Protocol)**: built-in MCP server
11
11
  - 🧠 **Skills**: includes an agent skill at `skills/md2x/SKILL.md` for repeatable conversions/workflows
12
12
  - 🧩 **Custom templates**: render `md2x` blocks with **Vue SFC** (`.vue`) and **Svelte 5** (`.svelte`) templates (plus plain HTML)
13
13
 
@@ -284,34 +284,66 @@ or
284
284
  npx add-skill larchliu/md2x
285
285
  ```
286
286
 
287
- ## MCP server (Model Context Protocol)
287
+ ## MCP Server (Model Context Protocol)
288
288
 
289
- This repo includes an Express-based MCP server that exposes `md2x` as MCP tools over HTTP, so MCP clients can convert Markdown and download the generated HTML/PDF/DOCX from `/resources`.
289
+ The md2x CLI includes a built-in MCP server that exposes markdown conversion as MCP tools via stdio transport.
290
290
 
291
- Run:
291
+ ### Starting the MCP Server
292
292
 
293
293
  ```bash
294
- pnpm -C mcp install
295
- pnpm -C mcp start
294
+ npx md2x --mcp
295
+ ```
296
+
297
+ Or if installed globally:
298
+
299
+ ```bash
300
+ md2x --mcp
301
+ ```
302
+
303
+ ### Available Tools
304
+
305
+ - **`convert_markdown`**: Convert markdown files to PDF, DOCX, HTML, or Image formats
306
+ - Takes a `markdownFilePath` parameter
307
+ - Saves output to the same directory as the source file (or custom `outputPath`)
308
+ - Returns the file path to the converted document
309
+
310
+ - **`list_themes`**: List all available themes with their categories and featured status
311
+
312
+ ### Integration with Claude Desktop
313
+
314
+ Add to your Claude Desktop configuration (`~/Library/Application Support/Claude/claude_desktop_config.json` on macOS):
315
+
316
+ ```json
317
+ {
318
+ "mcpServers": {
319
+ "md2x": {
320
+ "command": "node",
321
+ "args": ["/path/to/markdown-viewer-extension/node/dist/md2x.js", "--mcp"]
322
+ }
323
+ }
324
+ }
325
+ ```
326
+
327
+ ### Testing
328
+
329
+ ```bash
330
+ node --test test/mcp-server.test.mjs
296
331
  ```
297
332
 
298
- Endpoints:
333
+ See [MCP-SERVER.md](MCP-SERVER.md) for detailed documentation.
299
334
 
300
- - Streamable HTTP (recommended): `POST/GET/DELETE /mcp`
301
- - Legacy HTTP+SSE: `GET /sse` and `POST /messages?sessionId=...`
302
- - Resources (static files): `GET /resources/*`
335
+ ---
303
336
 
304
- Tools:
337
+ ## HTTP-based MCP Server (Separate Package)
305
338
 
306
- - `markdown_to_html` / `markdown_to_pdf` / `markdown_to_docx` - Convert Markdown to HTML/PDF/DOCX
307
- - `markdown_to_image` - Convert Markdown to an image (`png`/`jpg`/`jpeg`/`webp`), may return multiple parts for very tall pages
308
- - `markdown_convert` - Auto convert via `md2x.convert()` (front matter supported; includes image formats)
309
- - `resources_upload` - Upload a file to `/resources` (e.g. images referenced by Markdown)
339
+ There's also a separate Express-based MCP server in the `mcp/` directory that exposes `md2x` as MCP tools over HTTP:
310
340
 
311
- Notes:
341
+ ```bash
342
+ pnpm -C mcp install
343
+ pnpm -C mcp start
344
+ ```
312
345
 
313
- - The conversion tools return an MCP `resource_link` pointing to the generated file URL.
314
- - Config: `PORT` (default `3000`) and `MD2X_BASE_URL` (used to build the public `/resources` URL). See `mcp/README.md`.
346
+ See `mcp/README.md` for details.
315
347
 
316
348
  ## Puppeteer / Chrome install
317
349
 
@@ -1,4 +1,4 @@
1
- import{a as pr,b as Kn,c as Xn,d as Jn,e as Qn,f as Zn,g as et,j as nt,k as tt,l as rt,m as it,n as ot}from"./chunk-US45GBOT.js";var _e={};pr(_e,{code_themes_business_contrast:()=>zr,code_themes_colorful:()=>$r,code_themes_cool_modern:()=>Ur,code_themes_high_contrast:()=>qr,code_themes_light_clean:()=>Gr,code_themes_warm_book:()=>Vr,color_schemes_candy:()=>Wr,color_schemes_cool:()=>Yr,color_schemes_coral:()=>Kr,color_schemes_dino:()=>Xr,color_schemes_forest:()=>Jr,color_schemes_garden:()=>Qr,color_schemes_neutral:()=>Zr,color_schemes_ocean:()=>ei,color_schemes_rainbow:()=>ni,color_schemes_sakura:()=>ti,color_schemes_sepia:()=>ri,color_schemes_space:()=>ii,color_schemes_starry:()=>oi,color_schemes_sunset:()=>ai,color_schemes_warm:()=>li,fontConfig:()=>_n,layout_schemes_academic:()=>si,layout_schemes_book:()=>ci,layout_schemes_document:()=>di,layout_schemes_magazine:()=>pi,layout_schemes_student:()=>fi,layout_schemes_technical:()=>mi,presets_academic:()=>fr,presets_business:()=>mr,presets_candy:()=>ur,presets_century:()=>hr,presets_coral:()=>gr,presets_default:()=>yr,presets_dinosaur:()=>br,presets_elegant:()=>wr,presets_forest:()=>xr,presets_garamond:()=>vr,presets_garden:()=>Sr,presets_handwritten:()=>kr,presets_heiti:()=>_r,presets_magazine:()=>Tr,presets_manuscript:()=>Ar,presets_minimal:()=>Fr,presets_mixed:()=>Cr,presets_newspaper:()=>Mr,presets_ocean:()=>Br,presets_palatino:()=>Pr,presets_rainbow:()=>Er,presets_space:()=>Rr,presets_starry:()=>Lr,presets_sunset:()=>Ir,presets_swiss:()=>Or,presets_technical:()=>Nr,presets_typewriter:()=>jr,presets_verdana:()=>Hr,presets_water:()=>Dr,registry:()=>ki,table_styles_academic:()=>ui,table_styles_borderless:()=>hi,table_styles_compact:()=>gi,table_styles_grid:()=>yi,table_styles_high_contrast:()=>bi,table_styles_minimal_gray:()=>wi,table_styles_modern_tech:()=>xi,table_styles_professional:()=>vi,table_styles_zebra:()=>Si});var fr={id:"academic",name:"\u5B66\u672F\u8BBA\u6587",name_en:"Academic",description:"\u5B8B\u4F53\u6B63\u6587\u914D\u9ED1\u4F53\u6807\u9898\uFF0C\u4E2D\u6587\u5B66\u672F\u89C4\u8303",description_en:"Song body with Hei headings, Chinese academic standard",author:"Markdown Viewer Extension",version:"1.0.0",fontScheme:{body:{fontFamily:"SimSun"},headings:{fontFamily:"SimHei"},code:{fontFamily:"Monaco"}},layoutScheme:"academic",colorScheme:"neutral",tableStyle:"academic",codeTheme:"light-clean"},mr={id:"business",name:"\u5546\u52A1\u62A5\u544A",name_en:"Business",description:"Calibri \u5B57\u4F53\uFF0C\u73B0\u4EE3\u5546\u52A1\u98CE\u683C\uFF0C\u5C42\u6B21\u6E05\u6670",description_en:"Calibri font with modern business style and clear hierarchy",author:"Markdown Viewer Extension",version:"1.0.0",fontScheme:{body:{fontFamily:"Arial"},headings:{},code:{fontFamily:"Monaco"}},layoutScheme:"document",colorScheme:"neutral",tableStyle:"professional",codeTheme:"business-contrast"},ur={id:"candy",name:"\u7CD6\u679C\u751C\u5FC3",name_en:"Candy",description:"\u7CD6\u679C\u751C\u5FC3\uFF0C\u751C\u7F8E\u53EF\u7231\u98CE\u683C",description_en:"Sweet and adorable candy style",author:"Theme System",version:"1.0.0",fontScheme:{body:{fontFamily:"Trebuchet MS"},headings:{},code:{fontFamily:"Consolas"}},layoutScheme:"student",colorScheme:"candy",tableStyle:"zebra",codeTheme:"colorful",diagramStyle:"handDrawn"},hr={id:"century",name:"\u6F14\u793A\u6587\u7A3F",name_en:"Presentation",description:"Trebuchet MS \u5B57\u4F53\uFF0C\u7B80\u6D01\u7684\u6F14\u793A\u98CE\u683C\uFF0C\u6807\u9898\u7A81\u51FA",description_en:"Trebuchet MS font with clean presentation style, prominent headings",author:"Markdown Viewer Extension",version:"1.0.0",fontScheme:{body:{fontFamily:"Century Gothic"},headings:{},code:{fontFamily:"Monaco"}},layoutScheme:"magazine",colorScheme:"cool",tableStyle:"minimal-gray",codeTheme:"cool-modern"},gr={id:"coral",name:"\u73CA\u745A\u6D3B\u529B",name_en:"Coral Vibrant",description:"\u6E29\u6696\u6A59\u7C89\u8272\u7CFB\uFF0C\u53CB\u597D\u4EB2\u548C\u7684\u6D3B\u529B\u98CE\u683C",description_en:"Warm coral-pink for friendly and vibrant style",author:"Theme System",version:"1.0.0",fontScheme:{body:{fontFamily:"Verdana"},headings:{},code:{fontFamily:"Consolas"}},layoutScheme:"book",colorScheme:"coral",tableStyle:"minimal-gray",codeTheme:"colorful"},yr={id:"default",name:"\u6807\u51C6\u6587\u6863",name_en:"Standard",description:"Times New Roman \u5B57\u4F53\uFF0C\u9002\u5408\u6B63\u5F0F\u6587\u6863\u548C\u8BBA\u6587",description_en:"Times New Roman font for formal documents and papers",author:"Markdown Viewer Extension",version:"1.0.0",fontScheme:{body:{fontFamily:"Times New Roman"},headings:{},code:{fontFamily:"Monaco"}},layoutScheme:"document",colorScheme:"neutral",tableStyle:"grid",codeTheme:"light-clean"},br={id:"dinosaur",name:"\u6050\u9F99\u63A2\u9669",name_en:"Dinosaur",description:"\u7EFF\u6A59\u63A2\u9669\uFF0C\u6D3B\u529B\u6050\u9F99\u98CE\u683C",description_en:"Green-orange adventurous dinosaur style",author:"Theme System",version:"1.0.0",fontScheme:{body:{fontFamily:"Arial"},headings:{},code:{fontFamily:"Consolas"}},layoutScheme:"student",colorScheme:"dino",tableStyle:"grid",codeTheme:"colorful",diagramStyle:"handDrawn"},wr={id:"elegant",name:"\u4F18\u96C5\u6587\u827A",name_en:"Elegant Literary",description:"Georgia \u5B57\u4F53\uFF0C\u4F18\u96C5\u7684\u6587\u5B66\u98CE\u683C",description_en:"Georgia font with elegant literary style",author:"Markdown Viewer Extension",version:"1.0.0",fontScheme:{body:{fontFamily:"Georgia"},headings:{},code:{fontFamily:"Monaco"}},layoutScheme:"book",colorScheme:"sakura",tableStyle:"borderless",codeTheme:"colorful"},xr={id:"forest",name:"\u68EE\u6797\u81EA\u7136",name_en:"Forest Natural",description:"\u7EFF\u8272\u7CFB\uFF0C\u81EA\u7136\u73AF\u4FDD\u7684\u68EE\u6797\u98CE\u683C",description_en:"Green for natural and eco-friendly forest style",author:"Theme System",version:"1.0.0",fontScheme:{body:{fontFamily:"Verdana"},headings:{},code:{fontFamily:"Consolas"}},layoutScheme:"book",colorScheme:"forest",tableStyle:"minimal-gray",codeTheme:"light-clean"},vr={id:"garamond",name:"\u957F\u6587\u9605\u8BFB",name_en:"Long Reading",description:"Georgia \u5B57\u4F53\uFF0C\u8212\u9002\u7684\u957F\u6587\u9605\u8BFB\u4F53\u9A8C",description_en:"Georgia font for comfortable long-form reading",author:"Markdown Viewer Extension",version:"1.0.0",fontScheme:{body:{fontFamily:"Garamond"},headings:{},code:{fontFamily:"Monaco"}},layoutScheme:"book",colorScheme:"warm",tableStyle:"borderless",codeTheme:"warm-book"},Sr={id:"garden",name:"\u82B1\u56ED\u6E05\u65B0",name_en:"Garden",description:"\u7C89\u7EFF\u6E05\u65B0\uFF0C\u53EF\u7231\u82B1\u56ED\u98CE\u683C",description_en:"Pink-green fresh garden style",author:"Theme System",version:"1.0.0",fontScheme:{body:{fontFamily:"Verdana"},headings:{},code:{fontFamily:"Consolas"}},layoutScheme:"student",colorScheme:"garden",tableStyle:"minimal-gray",codeTheme:"light-clean",diagramStyle:"handDrawn"},kr={id:"handwritten",name:"\u624B\u5199\u98CE\u683C",name_en:"Handwritten",description:"\u624B\u5199\u4F53\u6807\u9898\uFF0C\u4E2A\u4EBA\u5316\u611F\u89C9\uFF0C\u9002\u5408\u65E5\u8BB0\u548C\u968F\u7B14",description_en:"Handwriting style titles for personal notes and journals",author:"Markdown Viewer Extension",version:"2.0.0",fontScheme:{body:{fontFamily:"Comic Sans MS"},headings:{},code:{fontFamily:"Consolas"}},layoutScheme:"book",colorScheme:"warm",tableStyle:"borderless",codeTheme:"warm-book",diagramStyle:"handDrawn"},_r={id:"heiti",name:"\u73B0\u4EE3\u9ED1\u4F53",name_en:"Hei Style",description:"\u9ED1\u4F53\u5B57\u4F53\uFF0C\u73B0\u4EE3\u7B80\u7EA6\u98CE\u683C",description_en:"Hei font with modern minimal style",author:"Markdown Viewer Extension",version:"1.0.0",fontScheme:{body:{fontFamily:"SimHei"},headings:{},code:{fontFamily:"Monaco"}},layoutScheme:"document",colorScheme:"neutral",tableStyle:"grid",codeTheme:"light-clean"},Tr={id:"magazine",name:"\u6742\u5FD7\u6392\u7248",name_en:"Magazine",description:"\u5927\u6807\u9898\u5DEE\u5F02\uFF0C\u89C6\u89C9\u51B2\u51FB\uFF0C\u9002\u5408\u521B\u610F\u5185\u5BB9\u5C55\u793A",description_en:"Large title contrast with visual impact for creative content",author:"Markdown Viewer Extension",version:"2.0.0",fontScheme:{body:{fontFamily:"Georgia"},headings:{fontFamily:"Helvetica Neue"},code:{fontFamily:"Monaco"}},layoutScheme:"magazine",colorScheme:"cool",tableStyle:"minimal-gray",codeTheme:"cool-modern"},Ar={id:"manuscript",name:"\u624B\u7A3F\u98CE\u683C",name_en:"Manuscript",description:"\u5B66\u672F\u624B\u7A3F\u611F\uFF0C\u9002\u5408\u8BBA\u6587\u8349\u7A3F\u548C\u7814\u7A76\u7B14\u8BB0",description_en:"Academic manuscript style for paper drafts and research notes",author:"Markdown Viewer Extension",version:"2.0.0",fontScheme:{body:{fontFamily:"Palatino Linotype"},headings:{},code:{fontFamily:"Consolas"}},layoutScheme:"academic",colorScheme:"sepia",tableStyle:"borderless",codeTheme:"warm-book"},Fr={id:"minimal",name:"\u6781\u7B80\u4E3B\u4E49",name_en:"Minimal",description:"\u7CFB\u7EDF\u5B57\u4F53\uFF0C\u6700\u7B80\u6D01\u7684\u6392\u7248\u98CE\u683C\uFF0C\u4E13\u6CE8\u5185\u5BB9\u672C\u8EAB",description_en:"System font with minimal styling, focus on content itself",author:"Markdown Viewer Extension",version:"1.0.0",fontScheme:{body:{fontFamily:"Arial"},headings:{},code:{fontFamily:"Monaco"}},layoutScheme:"document",colorScheme:"neutral",tableStyle:"borderless",codeTheme:"light-clean"},Cr={id:"mixed",name:"\u4E2D\u82F1\u6DF7\u6392",name_en:"Mixed Languages",description:"\u5B8B\u4F53\u6B63\u6587\u914D Georgia \u6807\u9898\uFF0C\u4E2D\u82F1\u6587\u6DF7\u6392\u4F18\u5316",description_en:"Song body with Georgia headings for mixed content",author:"Markdown Viewer Extension",version:"1.0.0",fontScheme:{body:{fontFamily:"SimSun"},headings:{fontFamily:"Georgia"},code:{fontFamily:"Monaco"}},layoutScheme:"book",colorScheme:"warm",tableStyle:"grid",codeTheme:"warm-book"},Mr={id:"newspaper",name:"\u62A5\u7EB8\u98CE\u683C",name_en:"Newspaper",description:"\u4F20\u7EDF\u65B0\u95FB\u6392\u7248\u98CE\u683C\uFF0C\u6B63\u5F0F\u4E25\u8083",description_en:"Traditional newspaper typography, formal and serious",author:"Markdown Viewer Extension",version:"2.0.0",fontScheme:{body:{fontFamily:"Times New Roman"},headings:{fontFamily:"Georgia"},code:{fontFamily:"Consolas"}},layoutScheme:"magazine",colorScheme:"sepia",tableStyle:"grid",codeTheme:"warm-book"},Br={id:"ocean",name:"\u6D77\u6D0B\u6E05\u65B0",name_en:"Ocean Fresh",description:"\u84DD\u7EFF\u8272\u7CFB\uFF0C\u6E05\u723D\u81EA\u7136\u7684\u6D77\u6D0B\u98CE\u683C",description_en:"Blue-green for fresh and natural ocean style",author:"Theme System",version:"1.0.0",fontScheme:{body:{fontFamily:"Trebuchet MS"},headings:{},code:{fontFamily:"Consolas"}},layoutScheme:"document",colorScheme:"ocean",tableStyle:"minimal-gray",codeTheme:"cool-modern"},Pr={id:"palatino",name:"\u4E66\u7C4D\u51FA\u7248",name_en:"Book Publishing",description:"Palatino \u5B57\u4F53\uFF0C\u4F18\u96C5\u7684\u4E66\u7C4D\u51FA\u7248\u98CE\u683C",description_en:"Palatino font with elegant book publishing style",author:"Markdown Viewer Extension",version:"1.0.0",fontScheme:{body:{fontFamily:"Palatino"},headings:{},code:{fontFamily:"Monaco"}},layoutScheme:"book",colorScheme:"sepia",tableStyle:"minimal-gray",codeTheme:"warm-book"},Er={id:"rainbow",name:"\u5F69\u8679\u7F24\u7EB7",name_en:"Rainbow",description:"\u591A\u5F69\u6807\u9898\uFF0C\u6D3B\u6CFC\u7AE5\u8DA3\u7684\u5F69\u8679\u98CE\u683C",description_en:"Multi-colored headings for vibrant rainbow style",author:"Theme System",version:"1.0.0",fontScheme:{body:{fontFamily:"Arial"},headings:{},code:{fontFamily:"Consolas"}},layoutScheme:"student",colorScheme:"rainbow",tableStyle:"zebra",codeTheme:"colorful",diagramStyle:"handDrawn"},Rr={id:"space",name:"\u592A\u7A7A\u63A2\u7D22",name_en:"Space",description:"\u84DD\u6A59\u79D1\u5E7B\uFF0C\u592A\u7A7A\u63A2\u7D22\u98CE\u683C",description_en:"Blue-orange sci-fi space exploration style",author:"Theme System",version:"1.0.0",fontScheme:{body:{fontFamily:"Arial"},headings:{},code:{fontFamily:"Consolas"}},layoutScheme:"student",colorScheme:"space",tableStyle:"modern-tech",codeTheme:"cool-modern",diagramStyle:"handDrawn"},Lr={id:"starry",name:"\u661F\u7A7A\u68A6\u5E7B",name_en:"Starry",description:"\u84DD\u7D2B\u68A6\u5E7B\uFF0C\u7AE5\u8DA3\u661F\u7A7A\u98CE\u683C",description_en:"Blue-purple dreamy starry style",author:"Theme System",version:"1.0.0",fontScheme:{body:{fontFamily:"Century Gothic"},headings:{},code:{fontFamily:"Consolas"}},layoutScheme:"student",colorScheme:"starry",tableStyle:"minimal-gray",codeTheme:"cool-modern",diagramStyle:"handDrawn"},Ir={id:"sunset",name:"\u65E5\u843D\u6696\u9633",name_en:"Sunset Warm",description:"\u6A59\u9EC4\u8272\u7CFB\uFF0C\u6E29\u6696\u8212\u9002\u7684\u65E5\u843D\u98CE\u683C",description_en:"Orange-yellow for warm and cozy sunset style",author:"Theme System",version:"1.0.0",fontScheme:{body:{fontFamily:"Georgia"},headings:{},code:{fontFamily:"Consolas"}},layoutScheme:"book",colorScheme:"sunset",tableStyle:"minimal-gray",codeTheme:"warm-book"},Or={id:"swiss",name:"\u745E\u58EB\u6781\u7B80",name_en:"Swiss Minimal",description:"Helvetica \u98CE\u683C\uFF0C\u7F51\u683C\u7CFB\u7EDF\uFF0C\u6781\u81F4\u7B80\u6D01",description_en:"Helvetica style with grid system, ultimate simplicity",author:"Theme System",version:"1.0.0",fontScheme:{body:{fontFamily:"Helvetica Neue"},headings:{},code:{fontFamily:"Monaco"}},layoutScheme:"document",colorScheme:"neutral",tableStyle:"borderless",codeTheme:"light-clean"},Nr={id:"technical",name:"\u6280\u672F\u6587\u6863",name_en:"Technical",description:"\u4E13\u4E3A\u6280\u672F\u6587\u6863\u8BBE\u8BA1\uFF0C\u6E05\u6670\u7B80\u6D01\u7684\u6781\u7B80\u98CE\u683C",description_en:"Designed for technical documentation with clean minimalist style",author:"Markdown Viewer Extension",version:"1.0.0",fontScheme:{body:{fontFamily:"Arial"},headings:{},code:{fontFamily:"Monaco"}},layoutScheme:"technical",colorScheme:"cool",tableStyle:"modern-tech",codeTheme:"cool-modern"},jr={id:"typewriter",name:"\u590D\u53E4\u6253\u5B57",name_en:"Typewriter",description:"Courier New \u5B57\u4F53\uFF0C\u590D\u53E4\u6253\u5B57\u673A\u98CE\u683C",description_en:"Courier New font with retro typewriter style",author:"Markdown Viewer Extension",version:"1.0.0",fontScheme:{body:{fontFamily:"Courier New"},headings:{},code:{fontFamily:"Courier New"}},layoutScheme:"book",colorScheme:"sepia",tableStyle:"borderless",codeTheme:"warm-book",diagramStyle:"handDrawn"},Hr={id:"verdana",name:"\u7F51\u9875\u663E\u793A",name_en:"Web Display",description:"Verdana \u5B57\u4F53\uFF0C\u5C4F\u5E55\u663E\u793A\u6E05\u6670\u9510\u5229",description_en:"Verdana font with clear and sharp screen display",author:"Markdown Viewer Extension",version:"1.0.0",fontScheme:{body:{fontFamily:"Verdana"},headings:{},code:{fontFamily:"Monaco"}},layoutScheme:"document",colorScheme:"cool",tableStyle:"grid",codeTheme:"cool-modern"},Dr={id:"water",name:"\u6C34\u58A8\u8BD7\u610F",name_en:"Ink Poetry",description:"\u4EFF\u5B8B\u5B57\u4F53\uFF0C\u4E2D\u56FD\u4F20\u7EDF\u6C34\u58A8\u7F8E\u5B66",description_en:"FangSong font with traditional Chinese ink aesthetics",author:"Markdown Viewer Extension",version:"1.0.0",fontScheme:{body:{fontFamily:"FangSong"},headings:{},code:{fontFamily:"Courier New"}},layoutScheme:"book",colorScheme:"sepia",tableStyle:"borderless",codeTheme:"warm-book"},zr={id:"business-contrast",name:"\u5546\u52A1\u5BF9\u6BD4",description:"\u9AD8\u5BF9\u6BD4\u5EA6\u914D\u8272\uFF0C\u9002\u5408\u6F14\u793A\u548C\u5546\u52A1",description_en:"Business contrast colors for presentation",foreground:"#000000",colors:{keyword:"#0000ff",built_in:"#0000ff",literal:"#a31515",number:"#a31515",string:"#a31515",title:"#a31515",attr:"#ff0000",comment:"#008000",meta:"#2b91af",params:"#000000",symbol:"#00b0e8",type:"#a31515",addition:"#a31515",deletion:"#2b91af",quote:"#008000",regexp:"#a31515",selector_tag:"#0000ff",selector_id:"#000000",selector_class:"#000000",variable:"#008000",property:"#000000"}},$r={id:"colorful",name:"\u591A\u5F69\u6D3B\u529B",description:"\u591A\u5F69\u914D\u8272\u65B9\u6848\uFF0C\u6D3B\u529B\u53CB\u597D",description_en:"Colorful scheme, vibrant and friendly",foreground:"#383a42",colors:{keyword:"#a626a4",built_in:"#c18401",literal:"#0184bb",number:"#986801",operator:"#383a42",string:"#50a14f",title:"#4078f2",attr:"#986801",comment:"#a0a1a7",meta:"#4078f2",params:"#383a42",symbol:"#e45649",type:"#c18401",addition:"#50a14f",deletion:"#e45649",quote:"#a0a1a7",regexp:"#50a14f",selector_tag:"#e45649",selector_id:"#4078f2",selector_class:"#c18401",variable:"#e45649",property:"#4078f2"}},Ur={id:"cool-modern",name:"\u51B7\u8272\u73B0\u4EE3",description:"\u73B0\u4EE3\u51B7\u8272\u8C03\u914D\u8272\uFF0C\u4E13\u4E1A\u7B80\u6D01",description_en:"Modern cool-toned colors, professional and clean",foreground:"#263238",colors:{keyword:"#0277bd",built_in:"#00838f",literal:"#00897b",number:"#f57c00",string:"#00897b",title:"#1976d2",attr:"#00838f",comment:"#90a4ae",meta:"#5e35b1",params:"#263238",symbol:"#d32f2f",type:"#00838f",addition:"#388e3c",deletion:"#d32f2f",quote:"#90a4ae",regexp:"#00897b",selector_tag:"#0277bd",selector_id:"#1976d2",selector_class:"#00838f",variable:"#5e35b1",property:"#1976d2"}},qr={id:"business-contrast",name:"\u5546\u52A1\u5BF9\u6BD4",description:"\u9AD8\u5BF9\u6BD4\u5EA6\u914D\u8272\uFF0C\u9002\u5408\u6F14\u793A\u548C\u5546\u52A1",description_en:"Business contrast colors for presentation",foreground:"#000000",colors:{keyword:"#0000ff",built_in:"#0000ff",literal:"#a31515",number:"#a31515",string:"#a31515",title:"#a31515",attr:"#ff0000",comment:"#008000",meta:"#2b91af",params:"#000000",symbol:"#00b0e8",type:"#a31515",addition:"#a31515",deletion:"#2b91af",quote:"#008000",regexp:"#a31515",selector_tag:"#0000ff",selector_id:"#000000",selector_class:"#000000",variable:"#008000",property:"#000000"}},Gr={id:"light-clean",name:"\u6E05\u723D\u4EAE\u8272",description:"\u6E05\u723D\u7684\u6D45\u8272\u914D\u8272\u65B9\u6848\uFF0C\u9002\u5408\u65E5\u5E38\u4F7F\u7528",description_en:"Clean light color scheme for daily use",foreground:"#24292e",colors:{keyword:"#d73a49",built_in:"#e36209",literal:"#005cc5",number:"#005cc5",string:"#032f62",title:"#6f42c1",attr:"#005cc5",comment:"#6a737d",meta:"#005cc5",params:"#24292e",symbol:"#e36209",type:"#d73a49",addition:"#22863a",deletion:"#b31d28",quote:"#22863a",regexp:"#032f62",selector_tag:"#22863a",selector_id:"#005cc5",selector_class:"#005cc5",variable:"#e36209",property:"#005cc5"}},Vr={id:"warm-book",name:"\u6E29\u6696\u4E66\u5377",description:"\u6E29\u6696\u7684\u4E66\u7C4D\u98CE\u683C\u914D\u8272\uFF0C\u9002\u5408\u957F\u6587\u9605\u8BFB",description_en:"Warm book-style colors for long reading",foreground:"#657b83",colors:{keyword:"#859900",built_in:"#b58900",literal:"#2aa198",number:"#2aa198",string:"#2aa198",title:"#268bd2",attr:"#b58900",comment:"#93a1a1",meta:"#859900",params:"#657b83",symbol:"#cb4b16",type:"#b58900",addition:"#859900",deletion:"#dc322f",quote:"#93a1a1",regexp:"#dc322f",selector_tag:"#268bd2",selector_id:"#268bd2",selector_class:"#268bd2",variable:"#268bd2",property:"#268bd2"}},Wr={id:"candy",name:"\u7CD6\u679C\u751C\u5FC3",name_en:"Candy",description:"\u7C89\u6A59\u8272\u7CFB\uFF0C\u751C\u7F8E\u53EF\u7231\u7684\u7CD6\u679C\u98CE\u683C",description_en:"Pink-orange scheme for sweet and adorable candy styles",text:{primary:"#881337",secondary:"#9f1239",muted:"#be123c"},accent:{link:"#e11d48",linkHover:"#be123c"},background:{code:"#fff1f2"},blockquote:{border:"#fda4af"},table:{border:"#fda4af",headerBackground:"#fecdd3",headerText:"#881337",zebraEven:"#fff1f2",zebraOdd:"#fff7ed"}},Yr={id:"cool",name:"\u51B7\u8272\u8C03",name_en:"Cool",description:"\u6E05\u723D\u7684\u84DD\u8272\u7CFB\uFF0C\u9002\u5408\u6280\u672F\u548C\u79D1\u6280\u98CE\u683C",description_en:"Cool blue scheme for technical and modern styles",text:{primary:"#0f172a",secondary:"#334155",muted:"#64748b"},accent:{link:"#0077b6",linkHover:"#005f92"},background:{code:"#f0f9ff"},blockquote:{border:"#7dd3fc"},table:{border:"#7dd3fc",headerBackground:"#e0f2fe",headerText:"#0c4a6e",zebraEven:"#f0f9ff",zebraOdd:"#ffffff"}},Kr={id:"coral",name:"\u73CA\u745A\u6D3B\u529B",name_en:"Coral",description:"\u6E29\u6696\u6A59\u7C89\u8272\u7CFB\uFF0C\u53CB\u597D\u4EB2\u548C\u7684\u6D3B\u529B\u98CE\u683C",description_en:"Warm coral-pink scheme for friendly and vibrant styles",text:{primary:"#450a0a",secondary:"#7f1d1d",muted:"#b91c1c"},accent:{link:"#dc2626",linkHover:"#b91c1c"},background:{code:"#fef2f2"},blockquote:{border:"#fca5a5"},table:{border:"#fca5a5",headerBackground:"#fecaca",headerText:"#450a0a",zebraEven:"#fff5f5",zebraOdd:"#fffbeb"}},Xr={id:"dino",name:"\u6050\u9F99\u63A2\u9669",name_en:"Dinosaur",description:"\u7EFF\u6A59\u8272\u7CFB\uFF0C\u6D3B\u529B\u63A2\u7D22\u7684\u6050\u9F99\u98CE\u683C",description_en:"Green-orange scheme for adventurous dinosaur styles",text:{primary:"#365314",secondary:"#3f6212",muted:"#65a30d"},accent:{link:"#4d7c0f",linkHover:"#3f6212"},background:{code:"#f7fee7"},blockquote:{border:"#a3e635"},table:{border:"#a3e635",headerBackground:"#bef264",headerText:"#365314",zebraEven:"#f7fee7",zebraOdd:"#fff7ed"}},Jr={id:"forest",name:"\u68EE\u6797\u81EA\u7136",name_en:"Forest",description:"\u7EFF\u8272\u7CFB\uFF0C\u81EA\u7136\u73AF\u4FDD\u7684\u68EE\u6797\u98CE\u683C",description_en:"Green scheme for natural and eco-friendly forest styles",text:{primary:"#14532d",secondary:"#166534",muted:"#4d7c0f"},accent:{link:"#15803d",linkHover:"#166534"},background:{code:"#f0fdf4"},blockquote:{border:"#4ade80"},table:{border:"#4ade80",headerBackground:"#bbf7d0",headerText:"#14532d",zebraEven:"#f0fdf4",zebraOdd:"#fefce8"}},Qr={id:"garden",name:"\u82B1\u56ED\u6E05\u65B0",name_en:"Garden",description:"\u7C89\u7EFF\u8272\u7CFB\uFF0C\u6E05\u65B0\u53EF\u7231\u7684\u82B1\u56ED\u98CE\u683C",description_en:"Pink-green scheme for fresh and lovely garden styles",text:{primary:"#701a75",secondary:"#86198f",muted:"#a21caf"},accent:{link:"#047857",linkHover:"#065f46"},background:{code:"#fdf2f8"},blockquote:{border:"#4ade80"},table:{border:"#4ade80",headerBackground:"#dcfce7",headerText:"#166534",zebraEven:"#f0fdf4",zebraOdd:"#fefce8"}},Zr={id:"neutral",name:"\u4E2D\u6027\u8272",name_en:"Neutral",description:"\u7ECF\u5178\u9ED1\u767D\u7070\u914D\u8272\uFF0C\u9002\u5408\u5927\u591A\u6570\u6587\u6863",description_en:"Classic black/white/gray scheme for most documents",text:{primary:"#171717",secondary:"#404040",muted:"#737373"},accent:{link:"#0369a1",linkHover:"#0c4a6e"},background:{code:"#f5f5f5"},blockquote:{border:"#a3a3a3"},table:{border:"#a3a3a3",headerBackground:"#e5e5e5",headerText:"#171717",zebraEven:"#fafafa",zebraOdd:"#ffffff"}},ei={id:"ocean",name:"\u6D77\u6D0B\u6E05\u65B0",name_en:"Ocean",description:"\u84DD\u7EFF\u8272\u7CFB\uFF0C\u6E05\u723D\u81EA\u7136\u7684\u6D77\u6D0B\u98CE\u683C",description_en:"Blue-green scheme for fresh and natural ocean styles",text:{primary:"#164e63",secondary:"#155e75",muted:"#0e7490"},accent:{link:"#0e7490",linkHover:"#155e75"},background:{code:"#ecfeff"},blockquote:{border:"#22d3ee"},table:{border:"#22d3ee",headerBackground:"#a5f3fc",headerText:"#164e63",zebraEven:"#ecfeff",zebraOdd:"#f0fdfa"}},ni={id:"rainbow",name:"\u5F69\u8679\u591A\u5F69",name_en:"Rainbow",description:"\u5404\u7EA7\u6807\u9898\u4E0D\u540C\u989C\u8272\uFF0C\u6D3B\u6CFC\u7AE5\u8DA3\u7684\u591A\u5F69\u98CE\u683C",description_en:"Multi-colored headings for vibrant and playful styles",text:{primary:"#1e1b4b",secondary:"#3730a3",muted:"#6366f1"},accent:{link:"#7c3aed",linkHover:"#6d28d9"},background:{code:"#eef2ff"},blockquote:{border:"#a5b4fc"},table:{border:"#a5b4fc",headerBackground:"#e0e7ff",headerText:"#1e1b4b",zebraEven:"#faf5ff",zebraOdd:"#ffffff"},headings:{h1:"#ef4444",h2:"#f97316",h3:"#eab308",h4:"#22c55e",h5:"#3b82f6",h6:"#8b5cf6"}},ti={id:"sakura",name:"\u6A31\u82B1\u7C89",name_en:"Sakura",description:"\u67D4\u548C\u7684\u7C89\u8272\u7CFB\uFF0C\u9002\u5408\u6E29\u67D4\u4F18\u96C5\u7684\u98CE\u683C",description_en:"Soft pink scheme for gentle and elegant styles",text:{primary:"#831843",secondary:"#9d174d",muted:"#be185d"},accent:{link:"#db2777",linkHover:"#be185d"},background:{code:"#fdf2f8"},blockquote:{border:"#f9a8d4"},table:{border:"#f9a8d4",headerBackground:"#fce7f3",headerText:"#831843",zebraEven:"#fdf2f8",zebraOdd:"#fffbfc"}},ri={id:"sepia",name:"\u590D\u53E4\u68D5",name_en:"Sepia",description:"\u6000\u65E7\u7684\u6CDB\u9EC4\u8272\u8C03\uFF0C\u9002\u5408\u6253\u5B57\u673A\u548C\u624B\u7A3F\u98CE\u683C",description_en:"Nostalgic sepia tones for typewriter and manuscript styles",text:{primary:"#292524",secondary:"#57534e",muted:"#78716c"},accent:{link:"#a16207",linkHover:"#854d0e"},background:{code:"#faf5ef"},blockquote:{border:"#a8a29e"},table:{border:"#a8a29e",headerBackground:"#f5f0e6",headerText:"#292524",zebraEven:"#faf5ef",zebraOdd:"#fcf9f3"}},ii={id:"space",name:"\u592A\u7A7A\u63A2\u7D22",name_en:"Space",description:"\u84DD\u6A59\u8272\u7CFB\uFF0C\u79D1\u5E7B\u597D\u5947\u7684\u592A\u7A7A\u98CE\u683C",description_en:"Blue-orange scheme for sci-fi space exploration styles",text:{primary:"#1e3a8a",secondary:"#1e40af",muted:"#3b82f6"},accent:{link:"#4f46e5",linkHover:"#4338ca"},background:{code:"#eff6ff"},blockquote:{border:"#93c5fd"},table:{border:"#93c5fd",headerBackground:"#bfdbfe",headerText:"#1e3a8a",zebraEven:"#eff6ff",zebraOdd:"#fff7ed"}},oi={id:"starry",name:"\u661F\u7A7A\u68A6\u5E7B",name_en:"Starry",description:"\u84DD\u7D2B\u8272\u7CFB\uFF0C\u68A6\u5E7B\u7AE5\u8DA3\u7684\u661F\u7A7A\u98CE\u683C",description_en:"Blue-purple scheme for dreamy starry styles",text:{primary:"#4c1d95",secondary:"#5b21b6",muted:"#7c3aed"},accent:{link:"#a21caf",linkHover:"#86198f"},background:{code:"#eef2ff"},blockquote:{border:"#a5b4fc"},table:{border:"#a5b4fc",headerBackground:"#c7d2fe",headerText:"#1e1b4b",zebraEven:"#f5f3ff",zebraOdd:"#faf5ff"}},ai={id:"sunset",name:"\u65E5\u843D\u6696\u9633",name_en:"Sunset",description:"\u6A59\u9EC4\u8272\u7CFB\uFF0C\u6E29\u6696\u8212\u9002\u7684\u65E5\u843D\u98CE\u683C",description_en:"Orange-yellow scheme for warm and cozy sunset styles",text:{primary:"#431407",secondary:"#7c2d12",muted:"#c2410c"},accent:{link:"#c2410c",linkHover:"#9a3412"},background:{code:"#fff7ed"},blockquote:{border:"#fdba74"},table:{border:"#fdba74",headerBackground:"#fed7aa",headerText:"#431407",zebraEven:"#fff7ed",zebraOdd:"#fffbeb"}},li={id:"warm",name:"\u6696\u8272\u8C03",name_en:"Warm",description:"\u6E29\u6696\u7684\u68D5\u6A59\u8272\u7CFB\uFF0C\u9002\u5408\u6587\u827A\u548C\u624B\u5199\u98CE\u683C",description_en:"Warm brown-orange scheme for literary and handwritten styles",text:{primary:"#1c1917",secondary:"#44403c",muted:"#78716c"},accent:{link:"#b45309",linkHover:"#92400e"},background:{code:"#faf5f0"},blockquote:{border:"#a8a29e"},table:{border:"#a8a29e",headerBackground:"#fef3e2",headerText:"#1c1917",zebraEven:"#fffbf5",zebraOdd:"#fffcf7"}},si={id:"academic",name:"\u5B66\u672F\u8BBA\u6587",name_en:"Academic",description:"\u5C42\u7EA7\u5E73\u7F13\u7684\u5E03\u5C40\uFF0C\u9002\u5408\u5B66\u672F\u8BBA\u6587\u548C\u6B63\u5F0F\u6587\u6863",description_en:"Gradual hierarchy layout for academic papers and formal documents",body:{fontSize:"12pt",lineHeight:1.75},headings:{h1:{fontSize:"18pt",spacingBefore:"0pt",spacingAfter:"16pt"},h2:{fontSize:"16pt",spacingBefore:"16pt",spacingAfter:"10pt"},h3:{fontSize:"14pt",spacingBefore:"14pt",spacingAfter:"8pt"},h4:{fontSize:"13pt",spacingBefore:"12pt",spacingAfter:"6pt"},h5:{fontSize:"12pt",spacingBefore:"10pt",spacingAfter:"5pt"},h6:{fontSize:"12pt",spacingBefore:"8pt",spacingAfter:"4pt"}},code:{fontSize:"10pt"},blocks:{paragraph:{spacingAfter:"10pt"},list:{spacingAfter:"13pt"},listItem:{spacingAfter:"3pt"},blockquote:{spacingBefore:"10pt",spacingAfter:"10pt",paddingVertical:"1pt",paddingHorizontal:"13pt"},codeBlock:{spacingAfter:"12pt"},table:{spacingAfter:"12pt"},horizontalRule:{spacingBefore:"20pt",spacingAfter:"20pt"}}},ci={id:"book",name:"\u4E66\u7C4D\u6392\u7248",name_en:"Book",description:"\u8212\u9002\u9605\u8BFB\u7684\u5E03\u5C40\uFF0C\u9002\u5408\u957F\u6587\u6863\u548C\u4E66\u7C4D",description_en:"Comfortable reading layout for long documents and books",body:{fontSize:"12pt",lineHeight:1.6},headings:{h1:{fontSize:"22pt",spacingBefore:"0pt",spacingAfter:"14pt"},h2:{fontSize:"18pt",spacingBefore:"18pt",spacingAfter:"10pt"},h3:{fontSize:"16pt",spacingBefore:"16pt",spacingAfter:"8pt"},h4:{fontSize:"14pt",spacingBefore:"14pt",spacingAfter:"7pt"},h5:{fontSize:"13pt",spacingBefore:"12pt",spacingAfter:"6pt"},h6:{fontSize:"12pt",spacingBefore:"10pt",spacingAfter:"5pt"}},code:{fontSize:"10pt"},blocks:{paragraph:{spacingAfter:"12pt"},list:{spacingAfter:"14pt"},listItem:{spacingAfter:"4pt"},blockquote:{spacingBefore:"12pt",spacingAfter:"12pt",paddingVertical:"2pt",paddingHorizontal:"15pt"},codeBlock:{spacingAfter:"14pt"},table:{spacingAfter:"14pt"},horizontalRule:{spacingBefore:"24pt",spacingAfter:"24pt"}}},di={id:"document",name:"\u901A\u7528\u6587\u6863",name_en:"Document",description:"\u5E73\u8861\u9002\u4E2D\u7684\u5E03\u5C40\uFF0C\u9002\u5408\u65E5\u5E38\u6587\u6863",description_en:"Balanced layout for everyday documents",body:{fontSize:"12pt",lineHeight:1.5},headings:{h1:{fontSize:"22pt",spacingBefore:"0pt",spacingAfter:"12pt",alignment:"center"},h2:{fontSize:"18pt",spacingBefore:"16pt",spacingAfter:"8pt"},h3:{fontSize:"16pt",spacingBefore:"14pt",spacingAfter:"7pt"},h4:{fontSize:"14pt",spacingBefore:"12pt",spacingAfter:"6pt"},h5:{fontSize:"13pt",spacingBefore:"10pt",spacingAfter:"5pt"},h6:{fontSize:"12pt",spacingBefore:"8pt",spacingAfter:"4pt"}},code:{fontSize:"10pt"},blocks:{paragraph:{spacingAfter:"10pt"},list:{spacingAfter:"13pt"},listItem:{spacingAfter:"3pt"},blockquote:{spacingBefore:"10pt",spacingAfter:"10pt",paddingVertical:"1pt",paddingHorizontal:"13pt"},codeBlock:{spacingAfter:"12pt"},table:{spacingAfter:"12pt"},horizontalRule:{spacingBefore:"20pt",spacingAfter:"20pt"}}},pi={id:"magazine",name:"\u6742\u5FD7\u98CE\u683C",name_en:"Magazine",description:"\u5927\u6807\u9898\u5DEE\u5F02\u7684\u5E03\u5C40\uFF0C\u9002\u5408\u6742\u5FD7\u548C\u521B\u610F\u6587\u6863",description_en:"Large heading contrast layout for magazines and creative documents",body:{fontSize:"12pt",lineHeight:1.5},headings:{h1:{fontSize:"28pt",spacingBefore:"0pt",spacingAfter:"16pt"},h2:{fontSize:"22pt",spacingBefore:"20pt",spacingAfter:"10pt"},h3:{fontSize:"18pt",spacingBefore:"16pt",spacingAfter:"8pt"},h4:{fontSize:"15pt",spacingBefore:"14pt",spacingAfter:"7pt"},h5:{fontSize:"13pt",spacingBefore:"12pt",spacingAfter:"6pt"},h6:{fontSize:"12pt",spacingBefore:"10pt",spacingAfter:"5pt"}},code:{fontSize:"10pt"},blocks:{paragraph:{spacingAfter:"10pt"},list:{spacingAfter:"13pt"},listItem:{spacingAfter:"3pt"},blockquote:{spacingBefore:"12pt",spacingAfter:"12pt",paddingVertical:"2pt",paddingHorizontal:"16pt"},codeBlock:{spacingAfter:"12pt"},table:{spacingAfter:"12pt"},horizontalRule:{spacingBefore:"20pt",spacingAfter:"20pt"}}},fi={id:"student",name:"\u5B66\u751F\u6587\u6863",name_en:"Student",description:"\u5927\u5B57\u53F7\u5927\u884C\u8DDD\uFF0C\u9002\u5408\u5B66\u751F\u4F5C\u6587\u548C\u7B14\u8BB0",description_en:"Large font and spacing for student essays and notes",body:{fontSize:"14pt",lineHeight:1.8},headings:{h1:{fontSize:"24pt",spacingBefore:"0pt",spacingAfter:"16pt"},h2:{fontSize:"20pt",spacingBefore:"20pt",spacingAfter:"12pt"},h3:{fontSize:"18pt",spacingBefore:"18pt",spacingAfter:"10pt"},h4:{fontSize:"16pt",spacingBefore:"16pt",spacingAfter:"8pt"},h5:{fontSize:"15pt",spacingBefore:"14pt",spacingAfter:"7pt"},h6:{fontSize:"14pt",spacingBefore:"12pt",spacingAfter:"6pt"}},code:{fontSize:"12pt"},blocks:{paragraph:{spacingAfter:"14pt"},list:{spacingAfter:"16pt"},listItem:{spacingAfter:"6pt"},blockquote:{spacingBefore:"14pt",spacingAfter:"14pt",paddingVertical:"4pt",paddingHorizontal:"18pt"},codeBlock:{spacingAfter:"16pt"},table:{spacingAfter:"16pt"},horizontalRule:{spacingBefore:"28pt",spacingAfter:"28pt"}}},mi={id:"technical",name:"\u6280\u672F\u6587\u6863",name_en:"Technical",description:"\u7D27\u51D1\u9AD8\u6548\u7684\u5E03\u5C40\uFF0C\u9002\u5408\u6280\u672F\u6587\u6863\u548CAPI\u6587\u6863",description_en:"Compact and efficient layout for technical and API documentation",body:{fontSize:"11pt",lineHeight:1.4},headings:{h1:{fontSize:"18pt",spacingBefore:"0pt",spacingAfter:"10pt"},h2:{fontSize:"15pt",spacingBefore:"14pt",spacingAfter:"7pt"},h3:{fontSize:"13pt",spacingBefore:"12pt",spacingAfter:"6pt"},h4:{fontSize:"12pt",spacingBefore:"10pt",spacingAfter:"5pt"},h5:{fontSize:"11pt",spacingBefore:"8pt",spacingAfter:"4pt"},h6:{fontSize:"11pt",spacingBefore:"6pt",spacingAfter:"3pt"}},code:{fontSize:"10pt"},blocks:{paragraph:{spacingAfter:"8pt"},list:{spacingAfter:"10pt"},listItem:{spacingAfter:"2pt"},blockquote:{spacingBefore:"8pt",spacingAfter:"8pt",paddingVertical:"1pt",paddingHorizontal:"12pt"},codeBlock:{spacingAfter:"10pt"},table:{spacingAfter:"10pt"},horizontalRule:{spacingBefore:"16pt",spacingAfter:"16pt"}}},ui={id:"academic",name:"\u5B66\u672F\u98CE\u683C",name_en:"Academic",description:"\u53CC\u7EBF\u8868\u5934 + \u5355\u7EBF\u5206\u9694\uFF0C\u9002\u5408\u8BBA\u6587\u548C\u5B66\u672F\u6587\u6863",description_en:"Double-line header + single-line separators, ideal for papers and academic documents",border:{headerTop:{width:"1.5pt",style:"double"},headerBottom:{width:"1.5pt",style:"single"},lastRowBottom:{width:"1.5pt",style:"single"}},header:{fontWeight:"bold"},cell:{padding:"6pt"},zebra:{enabled:!1}},hi={id:"borderless",name:"\u65E0\u8FB9\u6846",name_en:"Borderless",description:"\u4EC5\u8868\u5934\u6709\u4E0B\u8FB9\u6846",description_en:"Only header has bottom border",border:{headerBottom:{width:"2pt",style:"single"},lastRowBottom:{width:"1pt",style:"single"}},header:{fontWeight:"bold"},cell:{padding:"8pt"},zebra:{enabled:!1}},gi={id:"compact",name:"\u7D27\u51D1\u578B",name_en:"Compact",description:"\u5C0F\u95F4\u8DDD + \u7EC6\u8FB9\u6846\uFF0C\u9002\u5408\u6570\u636E\u5BC6\u96C6\u578B\u8868\u683C",description_en:"Small padding + thin borders, ideal for data-heavy tables",border:{all:{width:"0.5pt",style:"single"}},header:{fontWeight:"bold",fontSize:"10pt"},cell:{padding:"4pt",fontSize:"10pt"},zebra:{enabled:!0}},yi={id:"grid",name:"\u7F51\u683C\u6837\u5F0F",name_en:"Grid Style",description:"\u5B8C\u6574\u8FB9\u6846\uFF0C\u8868\u5934\u6D45\u7070\u80CC\u666F\uFF0C\u6591\u9A6C\u7EB9",description_en:"Full borders, light gray header, zebra stripes",border:{all:{width:"1pt",style:"single"}},header:{fontWeight:"bold"},cell:{padding:"8pt"},zebra:{enabled:!0}},bi={id:"high-contrast",name:"\u9AD8\u5BF9\u6BD4\u5EA6",name_en:"High Contrast",description:"\u9ED1\u767D\u9AD8\u5BF9\u6BD4 + \u7C97\u8FB9\u6846\uFF0C\u9002\u5408\u6253\u5370\u548C\u53EF\u8BBF\u95EE\u6027\u9700\u6C42",description_en:"Black & white high contrast with thick borders, ideal for printing and accessibility",border:{all:{width:"2pt",style:"single"}},header:{fontWeight:"bold"},cell:{padding:"8pt"},zebra:{enabled:!0}},wi={id:"minimal-gray",name:"\u6781\u7B80\u7070\u8C03",name_en:"Minimal Gray",description:"\u4EC5\u6A2A\u5411\u8FB9\u6846 + \u7070\u8272\u8C03 + \u7B80\u6D01\u7F8E\u89C2",description_en:"Horizontal borders only + gray tones + clean look",border:{headerBottom:{width:"1.5pt",style:"single"},rowBottom:{width:"1pt",style:"single"}},header:{fontWeight:"bold"},cell:{padding:"8pt"},zebra:{enabled:!1}},xi={id:"modern-tech",name:"\u73B0\u4EE3\u79D1\u6280",name_en:"Modern Tech",description:"\u84DD\u8272\u4E3B\u9898 + \u5706\u89D2\u8FB9\u6846\uFF0C\u9002\u5408\u6280\u672F\u6587\u6863\u548C\u4EA7\u54C1\u8BF4\u660E",description_en:"Blue theme with rounded borders, ideal for tech docs and product guides",border:{headerTop:{width:"2pt",style:"single"},headerBottom:{width:"2pt",style:"single"},rowBottom:{width:"1pt",style:"single"},lastRowBottom:{width:"2pt",style:"single"}},header:{fontWeight:"bold"},cell:{padding:"10pt"},zebra:{enabled:!1}},vi={id:"professional",name:"\u4E13\u4E1A\u98CE\u683C",name_en:"Professional",description:"\u7C97\u8868\u5934\u8FB9\u6846 + \u7EC6\u5206\u9694\u7EBF",description_en:"Thick header border + thin separators",border:{headerTop:{width:"2pt",style:"single"},headerBottom:{width:"2pt",style:"single"},rowBottom:{width:"1pt",style:"single"},lastRowBottom:{width:"2pt",style:"single"}},header:{fontWeight:"bold"},cell:{padding:"8pt"},zebra:{enabled:!1}},Si={id:"zebra",name:"\u6591\u9A6C\u7EB9",name_en:"Zebra",description:"\u5947\u5076\u884C\u4E0D\u540C\u80CC\u666F\u8272\uFF0C\u65E0\u8FB9\u6846",description_en:"Alternating row colors, no borders",border:{headerBottom:{width:"1pt",style:"single"}},header:{fontWeight:"bold"},cell:{padding:"8pt"},zebra:{enabled:!0}},ki={version:"2.0.0",themes:[{id:"default",file:"default.json",category:"classic",featured:!0,order:1},{id:"academic",file:"academic.json",category:"classic",featured:!0,order:2},{id:"business",file:"business.json",category:"classic",featured:!0,order:3},{id:"manuscript",file:"manuscript.json",category:"classic",featured:!1,order:4},{id:"newspaper",file:"newspaper.json",category:"classic",featured:!1,order:5},{id:"palatino",file:"palatino.json",category:"reading",featured:!0,order:6},{id:"garamond",file:"garamond.json",category:"reading",featured:!0,order:7},{id:"typewriter",file:"typewriter.json",category:"reading",featured:!0,order:8},{id:"elegant",file:"elegant.json",category:"reading",featured:!0,order:9},{id:"technical",file:"technical.json",category:"modern",featured:!0,order:10},{id:"swiss",file:"swiss.json",category:"modern",featured:!0,order:11},{id:"minimal",file:"minimal.json",category:"modern",featured:!0,order:12},{id:"magazine",file:"magazine.json",category:"creative",featured:!0,order:13},{id:"century",file:"century.json",category:"creative",featured:!0,order:14},{id:"handwritten",file:"handwritten.json",category:"creative",featured:!0,order:15},{id:"verdana",file:"verdana.json",category:"creative",featured:!0,order:16},{id:"heiti",file:"heiti.json",category:"chinese",featured:!0,order:17},{id:"mixed",file:"mixed.json",category:"chinese",featured:!1,order:18},{id:"water",file:"water.json",category:"chinese",featured:!0,order:19},{id:"rainbow",file:"rainbow.json",category:"playful",featured:!0,order:20},{id:"starry",file:"starry.json",category:"playful",featured:!0,order:21},{id:"candy",file:"candy.json",category:"playful",featured:!0,order:22},{id:"dinosaur",file:"dinosaur.json",category:"playful",featured:!0,order:23},{id:"space",file:"space.json",category:"playful",featured:!0,order:24},{id:"garden",file:"garden.json",category:"playful",featured:!0,order:25},{id:"forest",file:"forest.json",category:"nature",featured:!0,order:26},{id:"ocean",file:"ocean.json",category:"nature",featured:!0,order:27},{id:"coral",file:"coral.json",category:"nature",featured:!0,order:28},{id:"sunset",file:"sunset.json",category:"nature",featured:!0,order:29}],categories:{classic:{name:"\u7ECF\u5178\u6587\u6863",name_en:"Classic Document",description:"\u4F20\u7EDF\u6B63\u5F0F\u7684\u6587\u6863\u98CE\u683C\uFF0C\u9002\u5408\u516C\u6587\u3001\u62A5\u544A\u3001\u8BBA\u6587",description_en:"Traditional formal styles for official documents, reports, papers",order:1},reading:{name:"\u4E66\u7C4D\u9605\u8BFB",name_en:"Book & Reading",description:"\u8212\u9002\u7684\u957F\u6587\u9605\u8BFB\u4F53\u9A8C\uFF0C\u9002\u5408\u5C0F\u8BF4\u3001\u6742\u5FD7\u3001\u535A\u5BA2",description_en:"Comfortable long-form reading for novels, magazines, blogs",order:2},modern:{name:"\u73B0\u4EE3\u79D1\u6280",name_en:"Modern Tech",description:"\u7B80\u6D01\u73B0\u4EE3\u7684\u8BBE\u8BA1\u98CE\u683C\uFF0C\u9002\u5408\u6280\u672F\u6587\u6863\u3001\u4EA7\u54C1\u8BF4\u660E",description_en:"Clean modern design for technical docs and products",order:3},creative:{name:"\u521B\u610F\u8868\u8FBE",name_en:"Creative Expression",description:"\u5BCC\u6709\u4E2A\u6027\u7684\u521B\u610F\u98CE\u683C\uFF0C\u9002\u5408\u535A\u5BA2\u3001\u8BBE\u8BA1\u3001\u521B\u610F\u5199\u4F5C",description_en:"Creative styles for blogs, design, creative writing",order:4},chinese:{name:"\u4E2D\u6587\u6392\u7248",name_en:"Chinese Typography",description:"\u4E13\u4E3A\u4E2D\u6587\u4F18\u5316\u7684\u6392\u7248\u98CE\u683C",description_en:"Typography optimized for Chinese content",order:5},playful:{name:"\u7F24\u7EB7\u7AE5\u8DA3",name_en:"Colorful & Playful",description:"\u6D3B\u6CFC\u591A\u5F69\u7684\u98CE\u683C\uFF0C\u9002\u5408\u5B66\u751F\u4F5C\u4E1A\u3001\u513F\u7AE5\u5185\u5BB9",description_en:"Vibrant playful styles for students and kids",order:6},nature:{name:"\u81EA\u7136\u8272\u5F69",name_en:"Nature Colors",description:"\u53D6\u81EA\u81EA\u7136\u7684\u914D\u8272\uFF0C\u6E29\u6696\u8212\u9002\u7684\u89C6\u89C9\u4F53\u9A8C",description_en:"Nature-inspired colors for warm visual experience",order:7}},recommendations:{default:"default",academic:"academic",business:"business",technical:"technical",reading:"garamond",book:"palatino",modern:"swiss",screen:"verdana",creative:"magazine"}},_n={fonts:{"Times New Roman":{name:"Times New Roman",displayName:"Times New Roman",webFallback:"'Times New Roman', Times, Georgia, serif, SimSun, STSong",docx:{ascii:"Times New Roman",eastAsia:"SimSun"}},Arial:{name:"Arial",displayName:"Arial",webFallback:"Arial, Helvetica, 'Helvetica Neue', sans-serif, SimHei, STHeiti",docx:{ascii:"Arial",eastAsia:"SimHei"}},Georgia:{name:"Georgia",displayName:"Georgia",webFallback:"Georgia, 'Times New Roman', Times, serif, SimSun, STSong",docx:{ascii:"Georgia",eastAsia:"SimSun"}},Monaco:{name:"Monaco",displayName:"Monaco",webFallback:"Monaco, 'Courier New', monospace, FangSong, STFangsong, 'Zhuque Fangsong'",docx:{ascii:"Consolas",eastAsia:"FangSong"}},"Courier New":{name:"Courier New",displayName:"Courier New",webFallback:"'Courier New', Courier, Monaco, FangSong, STFangsong, 'Zhuque Fangsong', monospace",docx:{ascii:"Courier New",eastAsia:"FangSong"}},SimSun:{name:"SimSun",displayName:"\u5B8B\u4F53 (SimSun)",webFallback:"'Times New Roman', serif, SimSun, STSong",docx:{ascii:"Times New Roman",eastAsia:"SimSun"}},SimHei:{name:"SimHei",displayName:"\u9ED1\u4F53 (SimHei)",webFallback:"Arial, sans-serif, SimHei, STHeiti",docx:{ascii:"Arial",eastAsia:"SimHei"}},FangSong:{name:"FangSong",displayName:"\u4EFF\u5B8B (FangSong)",webFallback:"FangSong, STFangsong, 'Zhuque Fangsong', Georgia, 'Times New Roman', serif",docx:{ascii:"Georgia",eastAsia:"FangSong"}},Palatino:{name:"Palatino",displayName:"Palatino",webFallback:"Palatino, Georgia, 'Times New Roman', serif, STSong, SimSun",docx:{ascii:"Palatino Linotype",eastAsia:"SimSun"}},Verdana:{name:"Verdana",displayName:"Verdana",webFallback:"Verdana, Geneva, Tahoma, Arial, sans-serif, SimHei",docx:{ascii:"Verdana",eastAsia:"SimHei"}},Tahoma:{name:"Tahoma",displayName:"Tahoma",webFallback:"Tahoma, Verdana, Arial, sans-serif, SimHei",docx:{ascii:"Tahoma",eastAsia:"SimHei"}},"Trebuchet MS":{name:"Trebuchet MS",displayName:"Trebuchet MS",webFallback:"'Trebuchet MS', Tahoma, Arial, sans-serif, SimHei",docx:{ascii:"Trebuchet MS",eastAsia:"SimHei"}},"Comic Sans MS":{name:"Comic Sans MS",displayName:"Comic Sans MS",webFallback:"'Comic Sans MS', 'Comic Neue', 'Marker Felt', FangSong, STFangsong, 'Zhuque Fangsong'",docx:{ascii:"Comic Sans MS",eastAsia:"FangSong"}},Impact:{name:"Impact",displayName:"Impact",webFallback:"Impact, 'Arial Black', Arial, sans-serif, SimHei",docx:{ascii:"Impact",eastAsia:"SimHei"}},"Lucida Grande":{name:"Lucida Grande",displayName:"Lucida Grande",webFallback:"'Lucida Grande', Geneva, Verdana, Arial, sans-serif, STHeiti, SimHei",docx:{ascii:"Lucida Sans Unicode",eastAsia:"SimHei"}},"Palatino Linotype":{name:"Palatino Linotype",displayName:"Palatino Linotype",webFallback:"'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, 'Times New Roman', serif, SimSun, STSong",docx:{ascii:"Palatino Linotype",eastAsia:"SimSun"}},Consolas:{name:"Consolas",displayName:"Consolas",webFallback:"Consolas, Monaco, 'Courier New', monospace, FangSong, STFangsong, 'Zhuque Fangsong'",docx:{ascii:"Consolas",eastAsia:"FangSong"}},Garamond:{name:"Garamond",displayName:"Garamond",webFallback:"Garamond, 'Times New Roman', Georgia, serif, SimSun, STSong",docx:{ascii:"Garamond",eastAsia:"SimSun"}},"Helvetica Neue":{name:"Helvetica Neue",displayName:"Helvetica Neue",webFallback:"'Helvetica Neue', Helvetica, Arial, sans-serif, SimHei, STHeiti",docx:{ascii:"Arial",eastAsia:"SimHei"}},"Century Gothic":{name:"Century Gothic",displayName:"Century Gothic",webFallback:"'Century Gothic', 'Apple Gothic', Arial, sans-serif, SimHei, STHeiti",docx:{ascii:"Century Gothic",eastAsia:"SimHei"}}}};function vt(e){return typeof e>"u"||e===null}function _i(e){return typeof e=="object"&&e!==null}function Ti(e){return Array.isArray(e)?e:vt(e)?[]:[e]}function Ai(e,n){var t,i,r,a;if(n)for(a=Object.keys(n),t=0,i=a.length;t<i;t+=1)r=a[t],e[r]=n[r];return e}function Fi(e,n){var t="",i;for(i=0;i<n;i+=1)t+=e;return t}function Ci(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Mi=vt,Bi=_i,Pi=Ti,Ei=Fi,Ri=Ci,Li=Ai,H={isNothing:Mi,isObject:Bi,toArray:Pi,repeat:Ei,isNegativeZero:Ri,extend:Li};function St(e,n){var t="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(t+='in "'+e.mark.name+'" '),t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!n&&e.mark.snippet&&(t+=`
1
+ import{b as pr,d as Kn,e as Xn,f as Jn,g as Qn,h as Zn,i as et,l as nt,m as tt,n as rt,o as it,p as ot}from"./chunk-UZ7TETMS.js";var _e={};pr(_e,{code_themes_business_contrast:()=>zr,code_themes_colorful:()=>$r,code_themes_cool_modern:()=>Ur,code_themes_high_contrast:()=>qr,code_themes_light_clean:()=>Gr,code_themes_warm_book:()=>Vr,color_schemes_candy:()=>Wr,color_schemes_cool:()=>Yr,color_schemes_coral:()=>Kr,color_schemes_dino:()=>Xr,color_schemes_forest:()=>Jr,color_schemes_garden:()=>Qr,color_schemes_neutral:()=>Zr,color_schemes_ocean:()=>ei,color_schemes_rainbow:()=>ni,color_schemes_sakura:()=>ti,color_schemes_sepia:()=>ri,color_schemes_space:()=>ii,color_schemes_starry:()=>oi,color_schemes_sunset:()=>ai,color_schemes_warm:()=>li,fontConfig:()=>_n,layout_schemes_academic:()=>si,layout_schemes_book:()=>ci,layout_schemes_document:()=>di,layout_schemes_magazine:()=>pi,layout_schemes_student:()=>fi,layout_schemes_technical:()=>mi,presets_academic:()=>fr,presets_business:()=>mr,presets_candy:()=>ur,presets_century:()=>hr,presets_coral:()=>gr,presets_default:()=>yr,presets_dinosaur:()=>br,presets_elegant:()=>wr,presets_forest:()=>xr,presets_garamond:()=>vr,presets_garden:()=>Sr,presets_handwritten:()=>kr,presets_heiti:()=>_r,presets_magazine:()=>Tr,presets_manuscript:()=>Ar,presets_minimal:()=>Fr,presets_mixed:()=>Cr,presets_newspaper:()=>Mr,presets_ocean:()=>Br,presets_palatino:()=>Pr,presets_rainbow:()=>Er,presets_space:()=>Rr,presets_starry:()=>Lr,presets_sunset:()=>Ir,presets_swiss:()=>Or,presets_technical:()=>Nr,presets_typewriter:()=>jr,presets_verdana:()=>Hr,presets_water:()=>Dr,registry:()=>ki,table_styles_academic:()=>ui,table_styles_borderless:()=>hi,table_styles_compact:()=>gi,table_styles_grid:()=>yi,table_styles_high_contrast:()=>bi,table_styles_minimal_gray:()=>wi,table_styles_modern_tech:()=>xi,table_styles_professional:()=>vi,table_styles_zebra:()=>Si});var fr={id:"academic",name:"\u5B66\u672F\u8BBA\u6587",name_en:"Academic",description:"\u5B8B\u4F53\u6B63\u6587\u914D\u9ED1\u4F53\u6807\u9898\uFF0C\u4E2D\u6587\u5B66\u672F\u89C4\u8303",description_en:"Song body with Hei headings, Chinese academic standard",author:"Markdown Viewer Extension",version:"1.0.0",fontScheme:{body:{fontFamily:"SimSun"},headings:{fontFamily:"SimHei"},code:{fontFamily:"Monaco"}},layoutScheme:"academic",colorScheme:"neutral",tableStyle:"academic",codeTheme:"light-clean"},mr={id:"business",name:"\u5546\u52A1\u62A5\u544A",name_en:"Business",description:"Calibri \u5B57\u4F53\uFF0C\u73B0\u4EE3\u5546\u52A1\u98CE\u683C\uFF0C\u5C42\u6B21\u6E05\u6670",description_en:"Calibri font with modern business style and clear hierarchy",author:"Markdown Viewer Extension",version:"1.0.0",fontScheme:{body:{fontFamily:"Arial"},headings:{},code:{fontFamily:"Monaco"}},layoutScheme:"document",colorScheme:"neutral",tableStyle:"professional",codeTheme:"business-contrast"},ur={id:"candy",name:"\u7CD6\u679C\u751C\u5FC3",name_en:"Candy",description:"\u7CD6\u679C\u751C\u5FC3\uFF0C\u751C\u7F8E\u53EF\u7231\u98CE\u683C",description_en:"Sweet and adorable candy style",author:"Theme System",version:"1.0.0",fontScheme:{body:{fontFamily:"Trebuchet MS"},headings:{},code:{fontFamily:"Consolas"}},layoutScheme:"student",colorScheme:"candy",tableStyle:"zebra",codeTheme:"colorful",diagramStyle:"handDrawn"},hr={id:"century",name:"\u6F14\u793A\u6587\u7A3F",name_en:"Presentation",description:"Trebuchet MS \u5B57\u4F53\uFF0C\u7B80\u6D01\u7684\u6F14\u793A\u98CE\u683C\uFF0C\u6807\u9898\u7A81\u51FA",description_en:"Trebuchet MS font with clean presentation style, prominent headings",author:"Markdown Viewer Extension",version:"1.0.0",fontScheme:{body:{fontFamily:"Century Gothic"},headings:{},code:{fontFamily:"Monaco"}},layoutScheme:"magazine",colorScheme:"cool",tableStyle:"minimal-gray",codeTheme:"cool-modern"},gr={id:"coral",name:"\u73CA\u745A\u6D3B\u529B",name_en:"Coral Vibrant",description:"\u6E29\u6696\u6A59\u7C89\u8272\u7CFB\uFF0C\u53CB\u597D\u4EB2\u548C\u7684\u6D3B\u529B\u98CE\u683C",description_en:"Warm coral-pink for friendly and vibrant style",author:"Theme System",version:"1.0.0",fontScheme:{body:{fontFamily:"Verdana"},headings:{},code:{fontFamily:"Consolas"}},layoutScheme:"book",colorScheme:"coral",tableStyle:"minimal-gray",codeTheme:"colorful"},yr={id:"default",name:"\u6807\u51C6\u6587\u6863",name_en:"Standard",description:"Times New Roman \u5B57\u4F53\uFF0C\u9002\u5408\u6B63\u5F0F\u6587\u6863\u548C\u8BBA\u6587",description_en:"Times New Roman font for formal documents and papers",author:"Markdown Viewer Extension",version:"1.0.0",fontScheme:{body:{fontFamily:"Times New Roman"},headings:{},code:{fontFamily:"Monaco"}},layoutScheme:"document",colorScheme:"neutral",tableStyle:"grid",codeTheme:"light-clean"},br={id:"dinosaur",name:"\u6050\u9F99\u63A2\u9669",name_en:"Dinosaur",description:"\u7EFF\u6A59\u63A2\u9669\uFF0C\u6D3B\u529B\u6050\u9F99\u98CE\u683C",description_en:"Green-orange adventurous dinosaur style",author:"Theme System",version:"1.0.0",fontScheme:{body:{fontFamily:"Arial"},headings:{},code:{fontFamily:"Consolas"}},layoutScheme:"student",colorScheme:"dino",tableStyle:"grid",codeTheme:"colorful",diagramStyle:"handDrawn"},wr={id:"elegant",name:"\u4F18\u96C5\u6587\u827A",name_en:"Elegant Literary",description:"Georgia \u5B57\u4F53\uFF0C\u4F18\u96C5\u7684\u6587\u5B66\u98CE\u683C",description_en:"Georgia font with elegant literary style",author:"Markdown Viewer Extension",version:"1.0.0",fontScheme:{body:{fontFamily:"Georgia"},headings:{},code:{fontFamily:"Monaco"}},layoutScheme:"book",colorScheme:"sakura",tableStyle:"borderless",codeTheme:"colorful"},xr={id:"forest",name:"\u68EE\u6797\u81EA\u7136",name_en:"Forest Natural",description:"\u7EFF\u8272\u7CFB\uFF0C\u81EA\u7136\u73AF\u4FDD\u7684\u68EE\u6797\u98CE\u683C",description_en:"Green for natural and eco-friendly forest style",author:"Theme System",version:"1.0.0",fontScheme:{body:{fontFamily:"Verdana"},headings:{},code:{fontFamily:"Consolas"}},layoutScheme:"book",colorScheme:"forest",tableStyle:"minimal-gray",codeTheme:"light-clean"},vr={id:"garamond",name:"\u957F\u6587\u9605\u8BFB",name_en:"Long Reading",description:"Georgia \u5B57\u4F53\uFF0C\u8212\u9002\u7684\u957F\u6587\u9605\u8BFB\u4F53\u9A8C",description_en:"Georgia font for comfortable long-form reading",author:"Markdown Viewer Extension",version:"1.0.0",fontScheme:{body:{fontFamily:"Garamond"},headings:{},code:{fontFamily:"Monaco"}},layoutScheme:"book",colorScheme:"warm",tableStyle:"borderless",codeTheme:"warm-book"},Sr={id:"garden",name:"\u82B1\u56ED\u6E05\u65B0",name_en:"Garden",description:"\u7C89\u7EFF\u6E05\u65B0\uFF0C\u53EF\u7231\u82B1\u56ED\u98CE\u683C",description_en:"Pink-green fresh garden style",author:"Theme System",version:"1.0.0",fontScheme:{body:{fontFamily:"Verdana"},headings:{},code:{fontFamily:"Consolas"}},layoutScheme:"student",colorScheme:"garden",tableStyle:"minimal-gray",codeTheme:"light-clean",diagramStyle:"handDrawn"},kr={id:"handwritten",name:"\u624B\u5199\u98CE\u683C",name_en:"Handwritten",description:"\u624B\u5199\u4F53\u6807\u9898\uFF0C\u4E2A\u4EBA\u5316\u611F\u89C9\uFF0C\u9002\u5408\u65E5\u8BB0\u548C\u968F\u7B14",description_en:"Handwriting style titles for personal notes and journals",author:"Markdown Viewer Extension",version:"2.0.0",fontScheme:{body:{fontFamily:"Comic Sans MS"},headings:{},code:{fontFamily:"Consolas"}},layoutScheme:"book",colorScheme:"warm",tableStyle:"borderless",codeTheme:"warm-book",diagramStyle:"handDrawn"},_r={id:"heiti",name:"\u73B0\u4EE3\u9ED1\u4F53",name_en:"Hei Style",description:"\u9ED1\u4F53\u5B57\u4F53\uFF0C\u73B0\u4EE3\u7B80\u7EA6\u98CE\u683C",description_en:"Hei font with modern minimal style",author:"Markdown Viewer Extension",version:"1.0.0",fontScheme:{body:{fontFamily:"SimHei"},headings:{},code:{fontFamily:"Monaco"}},layoutScheme:"document",colorScheme:"neutral",tableStyle:"grid",codeTheme:"light-clean"},Tr={id:"magazine",name:"\u6742\u5FD7\u6392\u7248",name_en:"Magazine",description:"\u5927\u6807\u9898\u5DEE\u5F02\uFF0C\u89C6\u89C9\u51B2\u51FB\uFF0C\u9002\u5408\u521B\u610F\u5185\u5BB9\u5C55\u793A",description_en:"Large title contrast with visual impact for creative content",author:"Markdown Viewer Extension",version:"2.0.0",fontScheme:{body:{fontFamily:"Georgia"},headings:{fontFamily:"Helvetica Neue"},code:{fontFamily:"Monaco"}},layoutScheme:"magazine",colorScheme:"cool",tableStyle:"minimal-gray",codeTheme:"cool-modern"},Ar={id:"manuscript",name:"\u624B\u7A3F\u98CE\u683C",name_en:"Manuscript",description:"\u5B66\u672F\u624B\u7A3F\u611F\uFF0C\u9002\u5408\u8BBA\u6587\u8349\u7A3F\u548C\u7814\u7A76\u7B14\u8BB0",description_en:"Academic manuscript style for paper drafts and research notes",author:"Markdown Viewer Extension",version:"2.0.0",fontScheme:{body:{fontFamily:"Palatino Linotype"},headings:{},code:{fontFamily:"Consolas"}},layoutScheme:"academic",colorScheme:"sepia",tableStyle:"borderless",codeTheme:"warm-book"},Fr={id:"minimal",name:"\u6781\u7B80\u4E3B\u4E49",name_en:"Minimal",description:"\u7CFB\u7EDF\u5B57\u4F53\uFF0C\u6700\u7B80\u6D01\u7684\u6392\u7248\u98CE\u683C\uFF0C\u4E13\u6CE8\u5185\u5BB9\u672C\u8EAB",description_en:"System font with minimal styling, focus on content itself",author:"Markdown Viewer Extension",version:"1.0.0",fontScheme:{body:{fontFamily:"Arial"},headings:{},code:{fontFamily:"Monaco"}},layoutScheme:"document",colorScheme:"neutral",tableStyle:"borderless",codeTheme:"light-clean"},Cr={id:"mixed",name:"\u4E2D\u82F1\u6DF7\u6392",name_en:"Mixed Languages",description:"\u5B8B\u4F53\u6B63\u6587\u914D Georgia \u6807\u9898\uFF0C\u4E2D\u82F1\u6587\u6DF7\u6392\u4F18\u5316",description_en:"Song body with Georgia headings for mixed content",author:"Markdown Viewer Extension",version:"1.0.0",fontScheme:{body:{fontFamily:"SimSun"},headings:{fontFamily:"Georgia"},code:{fontFamily:"Monaco"}},layoutScheme:"book",colorScheme:"warm",tableStyle:"grid",codeTheme:"warm-book"},Mr={id:"newspaper",name:"\u62A5\u7EB8\u98CE\u683C",name_en:"Newspaper",description:"\u4F20\u7EDF\u65B0\u95FB\u6392\u7248\u98CE\u683C\uFF0C\u6B63\u5F0F\u4E25\u8083",description_en:"Traditional newspaper typography, formal and serious",author:"Markdown Viewer Extension",version:"2.0.0",fontScheme:{body:{fontFamily:"Times New Roman"},headings:{fontFamily:"Georgia"},code:{fontFamily:"Consolas"}},layoutScheme:"magazine",colorScheme:"sepia",tableStyle:"grid",codeTheme:"warm-book"},Br={id:"ocean",name:"\u6D77\u6D0B\u6E05\u65B0",name_en:"Ocean Fresh",description:"\u84DD\u7EFF\u8272\u7CFB\uFF0C\u6E05\u723D\u81EA\u7136\u7684\u6D77\u6D0B\u98CE\u683C",description_en:"Blue-green for fresh and natural ocean style",author:"Theme System",version:"1.0.0",fontScheme:{body:{fontFamily:"Trebuchet MS"},headings:{},code:{fontFamily:"Consolas"}},layoutScheme:"document",colorScheme:"ocean",tableStyle:"minimal-gray",codeTheme:"cool-modern"},Pr={id:"palatino",name:"\u4E66\u7C4D\u51FA\u7248",name_en:"Book Publishing",description:"Palatino \u5B57\u4F53\uFF0C\u4F18\u96C5\u7684\u4E66\u7C4D\u51FA\u7248\u98CE\u683C",description_en:"Palatino font with elegant book publishing style",author:"Markdown Viewer Extension",version:"1.0.0",fontScheme:{body:{fontFamily:"Palatino"},headings:{},code:{fontFamily:"Monaco"}},layoutScheme:"book",colorScheme:"sepia",tableStyle:"minimal-gray",codeTheme:"warm-book"},Er={id:"rainbow",name:"\u5F69\u8679\u7F24\u7EB7",name_en:"Rainbow",description:"\u591A\u5F69\u6807\u9898\uFF0C\u6D3B\u6CFC\u7AE5\u8DA3\u7684\u5F69\u8679\u98CE\u683C",description_en:"Multi-colored headings for vibrant rainbow style",author:"Theme System",version:"1.0.0",fontScheme:{body:{fontFamily:"Arial"},headings:{},code:{fontFamily:"Consolas"}},layoutScheme:"student",colorScheme:"rainbow",tableStyle:"zebra",codeTheme:"colorful",diagramStyle:"handDrawn"},Rr={id:"space",name:"\u592A\u7A7A\u63A2\u7D22",name_en:"Space",description:"\u84DD\u6A59\u79D1\u5E7B\uFF0C\u592A\u7A7A\u63A2\u7D22\u98CE\u683C",description_en:"Blue-orange sci-fi space exploration style",author:"Theme System",version:"1.0.0",fontScheme:{body:{fontFamily:"Arial"},headings:{},code:{fontFamily:"Consolas"}},layoutScheme:"student",colorScheme:"space",tableStyle:"modern-tech",codeTheme:"cool-modern",diagramStyle:"handDrawn"},Lr={id:"starry",name:"\u661F\u7A7A\u68A6\u5E7B",name_en:"Starry",description:"\u84DD\u7D2B\u68A6\u5E7B\uFF0C\u7AE5\u8DA3\u661F\u7A7A\u98CE\u683C",description_en:"Blue-purple dreamy starry style",author:"Theme System",version:"1.0.0",fontScheme:{body:{fontFamily:"Century Gothic"},headings:{},code:{fontFamily:"Consolas"}},layoutScheme:"student",colorScheme:"starry",tableStyle:"minimal-gray",codeTheme:"cool-modern",diagramStyle:"handDrawn"},Ir={id:"sunset",name:"\u65E5\u843D\u6696\u9633",name_en:"Sunset Warm",description:"\u6A59\u9EC4\u8272\u7CFB\uFF0C\u6E29\u6696\u8212\u9002\u7684\u65E5\u843D\u98CE\u683C",description_en:"Orange-yellow for warm and cozy sunset style",author:"Theme System",version:"1.0.0",fontScheme:{body:{fontFamily:"Georgia"},headings:{},code:{fontFamily:"Consolas"}},layoutScheme:"book",colorScheme:"sunset",tableStyle:"minimal-gray",codeTheme:"warm-book"},Or={id:"swiss",name:"\u745E\u58EB\u6781\u7B80",name_en:"Swiss Minimal",description:"Helvetica \u98CE\u683C\uFF0C\u7F51\u683C\u7CFB\u7EDF\uFF0C\u6781\u81F4\u7B80\u6D01",description_en:"Helvetica style with grid system, ultimate simplicity",author:"Theme System",version:"1.0.0",fontScheme:{body:{fontFamily:"Helvetica Neue"},headings:{},code:{fontFamily:"Monaco"}},layoutScheme:"document",colorScheme:"neutral",tableStyle:"borderless",codeTheme:"light-clean"},Nr={id:"technical",name:"\u6280\u672F\u6587\u6863",name_en:"Technical",description:"\u4E13\u4E3A\u6280\u672F\u6587\u6863\u8BBE\u8BA1\uFF0C\u6E05\u6670\u7B80\u6D01\u7684\u6781\u7B80\u98CE\u683C",description_en:"Designed for technical documentation with clean minimalist style",author:"Markdown Viewer Extension",version:"1.0.0",fontScheme:{body:{fontFamily:"Arial"},headings:{},code:{fontFamily:"Monaco"}},layoutScheme:"technical",colorScheme:"cool",tableStyle:"modern-tech",codeTheme:"cool-modern"},jr={id:"typewriter",name:"\u590D\u53E4\u6253\u5B57",name_en:"Typewriter",description:"Courier New \u5B57\u4F53\uFF0C\u590D\u53E4\u6253\u5B57\u673A\u98CE\u683C",description_en:"Courier New font with retro typewriter style",author:"Markdown Viewer Extension",version:"1.0.0",fontScheme:{body:{fontFamily:"Courier New"},headings:{},code:{fontFamily:"Courier New"}},layoutScheme:"book",colorScheme:"sepia",tableStyle:"borderless",codeTheme:"warm-book",diagramStyle:"handDrawn"},Hr={id:"verdana",name:"\u7F51\u9875\u663E\u793A",name_en:"Web Display",description:"Verdana \u5B57\u4F53\uFF0C\u5C4F\u5E55\u663E\u793A\u6E05\u6670\u9510\u5229",description_en:"Verdana font with clear and sharp screen display",author:"Markdown Viewer Extension",version:"1.0.0",fontScheme:{body:{fontFamily:"Verdana"},headings:{},code:{fontFamily:"Monaco"}},layoutScheme:"document",colorScheme:"cool",tableStyle:"grid",codeTheme:"cool-modern"},Dr={id:"water",name:"\u6C34\u58A8\u8BD7\u610F",name_en:"Ink Poetry",description:"\u4EFF\u5B8B\u5B57\u4F53\uFF0C\u4E2D\u56FD\u4F20\u7EDF\u6C34\u58A8\u7F8E\u5B66",description_en:"FangSong font with traditional Chinese ink aesthetics",author:"Markdown Viewer Extension",version:"1.0.0",fontScheme:{body:{fontFamily:"FangSong"},headings:{},code:{fontFamily:"Courier New"}},layoutScheme:"book",colorScheme:"sepia",tableStyle:"borderless",codeTheme:"warm-book"},zr={id:"business-contrast",name:"\u5546\u52A1\u5BF9\u6BD4",description:"\u9AD8\u5BF9\u6BD4\u5EA6\u914D\u8272\uFF0C\u9002\u5408\u6F14\u793A\u548C\u5546\u52A1",description_en:"Business contrast colors for presentation",foreground:"#000000",colors:{keyword:"#0000ff",built_in:"#0000ff",literal:"#a31515",number:"#a31515",string:"#a31515",title:"#a31515",attr:"#ff0000",comment:"#008000",meta:"#2b91af",params:"#000000",symbol:"#00b0e8",type:"#a31515",addition:"#a31515",deletion:"#2b91af",quote:"#008000",regexp:"#a31515",selector_tag:"#0000ff",selector_id:"#000000",selector_class:"#000000",variable:"#008000",property:"#000000"}},$r={id:"colorful",name:"\u591A\u5F69\u6D3B\u529B",description:"\u591A\u5F69\u914D\u8272\u65B9\u6848\uFF0C\u6D3B\u529B\u53CB\u597D",description_en:"Colorful scheme, vibrant and friendly",foreground:"#383a42",colors:{keyword:"#a626a4",built_in:"#c18401",literal:"#0184bb",number:"#986801",operator:"#383a42",string:"#50a14f",title:"#4078f2",attr:"#986801",comment:"#a0a1a7",meta:"#4078f2",params:"#383a42",symbol:"#e45649",type:"#c18401",addition:"#50a14f",deletion:"#e45649",quote:"#a0a1a7",regexp:"#50a14f",selector_tag:"#e45649",selector_id:"#4078f2",selector_class:"#c18401",variable:"#e45649",property:"#4078f2"}},Ur={id:"cool-modern",name:"\u51B7\u8272\u73B0\u4EE3",description:"\u73B0\u4EE3\u51B7\u8272\u8C03\u914D\u8272\uFF0C\u4E13\u4E1A\u7B80\u6D01",description_en:"Modern cool-toned colors, professional and clean",foreground:"#263238",colors:{keyword:"#0277bd",built_in:"#00838f",literal:"#00897b",number:"#f57c00",string:"#00897b",title:"#1976d2",attr:"#00838f",comment:"#90a4ae",meta:"#5e35b1",params:"#263238",symbol:"#d32f2f",type:"#00838f",addition:"#388e3c",deletion:"#d32f2f",quote:"#90a4ae",regexp:"#00897b",selector_tag:"#0277bd",selector_id:"#1976d2",selector_class:"#00838f",variable:"#5e35b1",property:"#1976d2"}},qr={id:"business-contrast",name:"\u5546\u52A1\u5BF9\u6BD4",description:"\u9AD8\u5BF9\u6BD4\u5EA6\u914D\u8272\uFF0C\u9002\u5408\u6F14\u793A\u548C\u5546\u52A1",description_en:"Business contrast colors for presentation",foreground:"#000000",colors:{keyword:"#0000ff",built_in:"#0000ff",literal:"#a31515",number:"#a31515",string:"#a31515",title:"#a31515",attr:"#ff0000",comment:"#008000",meta:"#2b91af",params:"#000000",symbol:"#00b0e8",type:"#a31515",addition:"#a31515",deletion:"#2b91af",quote:"#008000",regexp:"#a31515",selector_tag:"#0000ff",selector_id:"#000000",selector_class:"#000000",variable:"#008000",property:"#000000"}},Gr={id:"light-clean",name:"\u6E05\u723D\u4EAE\u8272",description:"\u6E05\u723D\u7684\u6D45\u8272\u914D\u8272\u65B9\u6848\uFF0C\u9002\u5408\u65E5\u5E38\u4F7F\u7528",description_en:"Clean light color scheme for daily use",foreground:"#24292e",colors:{keyword:"#d73a49",built_in:"#e36209",literal:"#005cc5",number:"#005cc5",string:"#032f62",title:"#6f42c1",attr:"#005cc5",comment:"#6a737d",meta:"#005cc5",params:"#24292e",symbol:"#e36209",type:"#d73a49",addition:"#22863a",deletion:"#b31d28",quote:"#22863a",regexp:"#032f62",selector_tag:"#22863a",selector_id:"#005cc5",selector_class:"#005cc5",variable:"#e36209",property:"#005cc5"}},Vr={id:"warm-book",name:"\u6E29\u6696\u4E66\u5377",description:"\u6E29\u6696\u7684\u4E66\u7C4D\u98CE\u683C\u914D\u8272\uFF0C\u9002\u5408\u957F\u6587\u9605\u8BFB",description_en:"Warm book-style colors for long reading",foreground:"#657b83",colors:{keyword:"#859900",built_in:"#b58900",literal:"#2aa198",number:"#2aa198",string:"#2aa198",title:"#268bd2",attr:"#b58900",comment:"#93a1a1",meta:"#859900",params:"#657b83",symbol:"#cb4b16",type:"#b58900",addition:"#859900",deletion:"#dc322f",quote:"#93a1a1",regexp:"#dc322f",selector_tag:"#268bd2",selector_id:"#268bd2",selector_class:"#268bd2",variable:"#268bd2",property:"#268bd2"}},Wr={id:"candy",name:"\u7CD6\u679C\u751C\u5FC3",name_en:"Candy",description:"\u7C89\u6A59\u8272\u7CFB\uFF0C\u751C\u7F8E\u53EF\u7231\u7684\u7CD6\u679C\u98CE\u683C",description_en:"Pink-orange scheme for sweet and adorable candy styles",text:{primary:"#881337",secondary:"#9f1239",muted:"#be123c"},accent:{link:"#e11d48",linkHover:"#be123c"},background:{code:"#fff1f2"},blockquote:{border:"#fda4af"},table:{border:"#fda4af",headerBackground:"#fecdd3",headerText:"#881337",zebraEven:"#fff1f2",zebraOdd:"#fff7ed"}},Yr={id:"cool",name:"\u51B7\u8272\u8C03",name_en:"Cool",description:"\u6E05\u723D\u7684\u84DD\u8272\u7CFB\uFF0C\u9002\u5408\u6280\u672F\u548C\u79D1\u6280\u98CE\u683C",description_en:"Cool blue scheme for technical and modern styles",text:{primary:"#0f172a",secondary:"#334155",muted:"#64748b"},accent:{link:"#0077b6",linkHover:"#005f92"},background:{code:"#f0f9ff"},blockquote:{border:"#7dd3fc"},table:{border:"#7dd3fc",headerBackground:"#e0f2fe",headerText:"#0c4a6e",zebraEven:"#f0f9ff",zebraOdd:"#ffffff"}},Kr={id:"coral",name:"\u73CA\u745A\u6D3B\u529B",name_en:"Coral",description:"\u6E29\u6696\u6A59\u7C89\u8272\u7CFB\uFF0C\u53CB\u597D\u4EB2\u548C\u7684\u6D3B\u529B\u98CE\u683C",description_en:"Warm coral-pink scheme for friendly and vibrant styles",text:{primary:"#450a0a",secondary:"#7f1d1d",muted:"#b91c1c"},accent:{link:"#dc2626",linkHover:"#b91c1c"},background:{code:"#fef2f2"},blockquote:{border:"#fca5a5"},table:{border:"#fca5a5",headerBackground:"#fecaca",headerText:"#450a0a",zebraEven:"#fff5f5",zebraOdd:"#fffbeb"}},Xr={id:"dino",name:"\u6050\u9F99\u63A2\u9669",name_en:"Dinosaur",description:"\u7EFF\u6A59\u8272\u7CFB\uFF0C\u6D3B\u529B\u63A2\u7D22\u7684\u6050\u9F99\u98CE\u683C",description_en:"Green-orange scheme for adventurous dinosaur styles",text:{primary:"#365314",secondary:"#3f6212",muted:"#65a30d"},accent:{link:"#4d7c0f",linkHover:"#3f6212"},background:{code:"#f7fee7"},blockquote:{border:"#a3e635"},table:{border:"#a3e635",headerBackground:"#bef264",headerText:"#365314",zebraEven:"#f7fee7",zebraOdd:"#fff7ed"}},Jr={id:"forest",name:"\u68EE\u6797\u81EA\u7136",name_en:"Forest",description:"\u7EFF\u8272\u7CFB\uFF0C\u81EA\u7136\u73AF\u4FDD\u7684\u68EE\u6797\u98CE\u683C",description_en:"Green scheme for natural and eco-friendly forest styles",text:{primary:"#14532d",secondary:"#166534",muted:"#4d7c0f"},accent:{link:"#15803d",linkHover:"#166534"},background:{code:"#f0fdf4"},blockquote:{border:"#4ade80"},table:{border:"#4ade80",headerBackground:"#bbf7d0",headerText:"#14532d",zebraEven:"#f0fdf4",zebraOdd:"#fefce8"}},Qr={id:"garden",name:"\u82B1\u56ED\u6E05\u65B0",name_en:"Garden",description:"\u7C89\u7EFF\u8272\u7CFB\uFF0C\u6E05\u65B0\u53EF\u7231\u7684\u82B1\u56ED\u98CE\u683C",description_en:"Pink-green scheme for fresh and lovely garden styles",text:{primary:"#701a75",secondary:"#86198f",muted:"#a21caf"},accent:{link:"#047857",linkHover:"#065f46"},background:{code:"#fdf2f8"},blockquote:{border:"#4ade80"},table:{border:"#4ade80",headerBackground:"#dcfce7",headerText:"#166534",zebraEven:"#f0fdf4",zebraOdd:"#fefce8"}},Zr={id:"neutral",name:"\u4E2D\u6027\u8272",name_en:"Neutral",description:"\u7ECF\u5178\u9ED1\u767D\u7070\u914D\u8272\uFF0C\u9002\u5408\u5927\u591A\u6570\u6587\u6863",description_en:"Classic black/white/gray scheme for most documents",text:{primary:"#171717",secondary:"#404040",muted:"#737373"},accent:{link:"#0369a1",linkHover:"#0c4a6e"},background:{code:"#f5f5f5"},blockquote:{border:"#a3a3a3"},table:{border:"#a3a3a3",headerBackground:"#e5e5e5",headerText:"#171717",zebraEven:"#fafafa",zebraOdd:"#ffffff"}},ei={id:"ocean",name:"\u6D77\u6D0B\u6E05\u65B0",name_en:"Ocean",description:"\u84DD\u7EFF\u8272\u7CFB\uFF0C\u6E05\u723D\u81EA\u7136\u7684\u6D77\u6D0B\u98CE\u683C",description_en:"Blue-green scheme for fresh and natural ocean styles",text:{primary:"#164e63",secondary:"#155e75",muted:"#0e7490"},accent:{link:"#0e7490",linkHover:"#155e75"},background:{code:"#ecfeff"},blockquote:{border:"#22d3ee"},table:{border:"#22d3ee",headerBackground:"#a5f3fc",headerText:"#164e63",zebraEven:"#ecfeff",zebraOdd:"#f0fdfa"}},ni={id:"rainbow",name:"\u5F69\u8679\u591A\u5F69",name_en:"Rainbow",description:"\u5404\u7EA7\u6807\u9898\u4E0D\u540C\u989C\u8272\uFF0C\u6D3B\u6CFC\u7AE5\u8DA3\u7684\u591A\u5F69\u98CE\u683C",description_en:"Multi-colored headings for vibrant and playful styles",text:{primary:"#1e1b4b",secondary:"#3730a3",muted:"#6366f1"},accent:{link:"#7c3aed",linkHover:"#6d28d9"},background:{code:"#eef2ff"},blockquote:{border:"#a5b4fc"},table:{border:"#a5b4fc",headerBackground:"#e0e7ff",headerText:"#1e1b4b",zebraEven:"#faf5ff",zebraOdd:"#ffffff"},headings:{h1:"#ef4444",h2:"#f97316",h3:"#eab308",h4:"#22c55e",h5:"#3b82f6",h6:"#8b5cf6"}},ti={id:"sakura",name:"\u6A31\u82B1\u7C89",name_en:"Sakura",description:"\u67D4\u548C\u7684\u7C89\u8272\u7CFB\uFF0C\u9002\u5408\u6E29\u67D4\u4F18\u96C5\u7684\u98CE\u683C",description_en:"Soft pink scheme for gentle and elegant styles",text:{primary:"#831843",secondary:"#9d174d",muted:"#be185d"},accent:{link:"#db2777",linkHover:"#be185d"},background:{code:"#fdf2f8"},blockquote:{border:"#f9a8d4"},table:{border:"#f9a8d4",headerBackground:"#fce7f3",headerText:"#831843",zebraEven:"#fdf2f8",zebraOdd:"#fffbfc"}},ri={id:"sepia",name:"\u590D\u53E4\u68D5",name_en:"Sepia",description:"\u6000\u65E7\u7684\u6CDB\u9EC4\u8272\u8C03\uFF0C\u9002\u5408\u6253\u5B57\u673A\u548C\u624B\u7A3F\u98CE\u683C",description_en:"Nostalgic sepia tones for typewriter and manuscript styles",text:{primary:"#292524",secondary:"#57534e",muted:"#78716c"},accent:{link:"#a16207",linkHover:"#854d0e"},background:{code:"#faf5ef"},blockquote:{border:"#a8a29e"},table:{border:"#a8a29e",headerBackground:"#f5f0e6",headerText:"#292524",zebraEven:"#faf5ef",zebraOdd:"#fcf9f3"}},ii={id:"space",name:"\u592A\u7A7A\u63A2\u7D22",name_en:"Space",description:"\u84DD\u6A59\u8272\u7CFB\uFF0C\u79D1\u5E7B\u597D\u5947\u7684\u592A\u7A7A\u98CE\u683C",description_en:"Blue-orange scheme for sci-fi space exploration styles",text:{primary:"#1e3a8a",secondary:"#1e40af",muted:"#3b82f6"},accent:{link:"#4f46e5",linkHover:"#4338ca"},background:{code:"#eff6ff"},blockquote:{border:"#93c5fd"},table:{border:"#93c5fd",headerBackground:"#bfdbfe",headerText:"#1e3a8a",zebraEven:"#eff6ff",zebraOdd:"#fff7ed"}},oi={id:"starry",name:"\u661F\u7A7A\u68A6\u5E7B",name_en:"Starry",description:"\u84DD\u7D2B\u8272\u7CFB\uFF0C\u68A6\u5E7B\u7AE5\u8DA3\u7684\u661F\u7A7A\u98CE\u683C",description_en:"Blue-purple scheme for dreamy starry styles",text:{primary:"#4c1d95",secondary:"#5b21b6",muted:"#7c3aed"},accent:{link:"#a21caf",linkHover:"#86198f"},background:{code:"#eef2ff"},blockquote:{border:"#a5b4fc"},table:{border:"#a5b4fc",headerBackground:"#c7d2fe",headerText:"#1e1b4b",zebraEven:"#f5f3ff",zebraOdd:"#faf5ff"}},ai={id:"sunset",name:"\u65E5\u843D\u6696\u9633",name_en:"Sunset",description:"\u6A59\u9EC4\u8272\u7CFB\uFF0C\u6E29\u6696\u8212\u9002\u7684\u65E5\u843D\u98CE\u683C",description_en:"Orange-yellow scheme for warm and cozy sunset styles",text:{primary:"#431407",secondary:"#7c2d12",muted:"#c2410c"},accent:{link:"#c2410c",linkHover:"#9a3412"},background:{code:"#fff7ed"},blockquote:{border:"#fdba74"},table:{border:"#fdba74",headerBackground:"#fed7aa",headerText:"#431407",zebraEven:"#fff7ed",zebraOdd:"#fffbeb"}},li={id:"warm",name:"\u6696\u8272\u8C03",name_en:"Warm",description:"\u6E29\u6696\u7684\u68D5\u6A59\u8272\u7CFB\uFF0C\u9002\u5408\u6587\u827A\u548C\u624B\u5199\u98CE\u683C",description_en:"Warm brown-orange scheme for literary and handwritten styles",text:{primary:"#1c1917",secondary:"#44403c",muted:"#78716c"},accent:{link:"#b45309",linkHover:"#92400e"},background:{code:"#faf5f0"},blockquote:{border:"#a8a29e"},table:{border:"#a8a29e",headerBackground:"#fef3e2",headerText:"#1c1917",zebraEven:"#fffbf5",zebraOdd:"#fffcf7"}},si={id:"academic",name:"\u5B66\u672F\u8BBA\u6587",name_en:"Academic",description:"\u5C42\u7EA7\u5E73\u7F13\u7684\u5E03\u5C40\uFF0C\u9002\u5408\u5B66\u672F\u8BBA\u6587\u548C\u6B63\u5F0F\u6587\u6863",description_en:"Gradual hierarchy layout for academic papers and formal documents",body:{fontSize:"12pt",lineHeight:1.75},headings:{h1:{fontSize:"18pt",spacingBefore:"0pt",spacingAfter:"16pt"},h2:{fontSize:"16pt",spacingBefore:"16pt",spacingAfter:"10pt"},h3:{fontSize:"14pt",spacingBefore:"14pt",spacingAfter:"8pt"},h4:{fontSize:"13pt",spacingBefore:"12pt",spacingAfter:"6pt"},h5:{fontSize:"12pt",spacingBefore:"10pt",spacingAfter:"5pt"},h6:{fontSize:"12pt",spacingBefore:"8pt",spacingAfter:"4pt"}},code:{fontSize:"10pt"},blocks:{paragraph:{spacingAfter:"10pt"},list:{spacingAfter:"13pt"},listItem:{spacingAfter:"3pt"},blockquote:{spacingBefore:"10pt",spacingAfter:"10pt",paddingVertical:"1pt",paddingHorizontal:"13pt"},codeBlock:{spacingAfter:"12pt"},table:{spacingAfter:"12pt"},horizontalRule:{spacingBefore:"20pt",spacingAfter:"20pt"}}},ci={id:"book",name:"\u4E66\u7C4D\u6392\u7248",name_en:"Book",description:"\u8212\u9002\u9605\u8BFB\u7684\u5E03\u5C40\uFF0C\u9002\u5408\u957F\u6587\u6863\u548C\u4E66\u7C4D",description_en:"Comfortable reading layout for long documents and books",body:{fontSize:"12pt",lineHeight:1.6},headings:{h1:{fontSize:"22pt",spacingBefore:"0pt",spacingAfter:"14pt"},h2:{fontSize:"18pt",spacingBefore:"18pt",spacingAfter:"10pt"},h3:{fontSize:"16pt",spacingBefore:"16pt",spacingAfter:"8pt"},h4:{fontSize:"14pt",spacingBefore:"14pt",spacingAfter:"7pt"},h5:{fontSize:"13pt",spacingBefore:"12pt",spacingAfter:"6pt"},h6:{fontSize:"12pt",spacingBefore:"10pt",spacingAfter:"5pt"}},code:{fontSize:"10pt"},blocks:{paragraph:{spacingAfter:"12pt"},list:{spacingAfter:"14pt"},listItem:{spacingAfter:"4pt"},blockquote:{spacingBefore:"12pt",spacingAfter:"12pt",paddingVertical:"2pt",paddingHorizontal:"15pt"},codeBlock:{spacingAfter:"14pt"},table:{spacingAfter:"14pt"},horizontalRule:{spacingBefore:"24pt",spacingAfter:"24pt"}}},di={id:"document",name:"\u901A\u7528\u6587\u6863",name_en:"Document",description:"\u5E73\u8861\u9002\u4E2D\u7684\u5E03\u5C40\uFF0C\u9002\u5408\u65E5\u5E38\u6587\u6863",description_en:"Balanced layout for everyday documents",body:{fontSize:"12pt",lineHeight:1.5},headings:{h1:{fontSize:"22pt",spacingBefore:"0pt",spacingAfter:"12pt",alignment:"center"},h2:{fontSize:"18pt",spacingBefore:"16pt",spacingAfter:"8pt"},h3:{fontSize:"16pt",spacingBefore:"14pt",spacingAfter:"7pt"},h4:{fontSize:"14pt",spacingBefore:"12pt",spacingAfter:"6pt"},h5:{fontSize:"13pt",spacingBefore:"10pt",spacingAfter:"5pt"},h6:{fontSize:"12pt",spacingBefore:"8pt",spacingAfter:"4pt"}},code:{fontSize:"10pt"},blocks:{paragraph:{spacingAfter:"10pt"},list:{spacingAfter:"13pt"},listItem:{spacingAfter:"3pt"},blockquote:{spacingBefore:"10pt",spacingAfter:"10pt",paddingVertical:"1pt",paddingHorizontal:"13pt"},codeBlock:{spacingAfter:"12pt"},table:{spacingAfter:"12pt"},horizontalRule:{spacingBefore:"20pt",spacingAfter:"20pt"}}},pi={id:"magazine",name:"\u6742\u5FD7\u98CE\u683C",name_en:"Magazine",description:"\u5927\u6807\u9898\u5DEE\u5F02\u7684\u5E03\u5C40\uFF0C\u9002\u5408\u6742\u5FD7\u548C\u521B\u610F\u6587\u6863",description_en:"Large heading contrast layout for magazines and creative documents",body:{fontSize:"12pt",lineHeight:1.5},headings:{h1:{fontSize:"28pt",spacingBefore:"0pt",spacingAfter:"16pt"},h2:{fontSize:"22pt",spacingBefore:"20pt",spacingAfter:"10pt"},h3:{fontSize:"18pt",spacingBefore:"16pt",spacingAfter:"8pt"},h4:{fontSize:"15pt",spacingBefore:"14pt",spacingAfter:"7pt"},h5:{fontSize:"13pt",spacingBefore:"12pt",spacingAfter:"6pt"},h6:{fontSize:"12pt",spacingBefore:"10pt",spacingAfter:"5pt"}},code:{fontSize:"10pt"},blocks:{paragraph:{spacingAfter:"10pt"},list:{spacingAfter:"13pt"},listItem:{spacingAfter:"3pt"},blockquote:{spacingBefore:"12pt",spacingAfter:"12pt",paddingVertical:"2pt",paddingHorizontal:"16pt"},codeBlock:{spacingAfter:"12pt"},table:{spacingAfter:"12pt"},horizontalRule:{spacingBefore:"20pt",spacingAfter:"20pt"}}},fi={id:"student",name:"\u5B66\u751F\u6587\u6863",name_en:"Student",description:"\u5927\u5B57\u53F7\u5927\u884C\u8DDD\uFF0C\u9002\u5408\u5B66\u751F\u4F5C\u6587\u548C\u7B14\u8BB0",description_en:"Large font and spacing for student essays and notes",body:{fontSize:"14pt",lineHeight:1.8},headings:{h1:{fontSize:"24pt",spacingBefore:"0pt",spacingAfter:"16pt"},h2:{fontSize:"20pt",spacingBefore:"20pt",spacingAfter:"12pt"},h3:{fontSize:"18pt",spacingBefore:"18pt",spacingAfter:"10pt"},h4:{fontSize:"16pt",spacingBefore:"16pt",spacingAfter:"8pt"},h5:{fontSize:"15pt",spacingBefore:"14pt",spacingAfter:"7pt"},h6:{fontSize:"14pt",spacingBefore:"12pt",spacingAfter:"6pt"}},code:{fontSize:"12pt"},blocks:{paragraph:{spacingAfter:"14pt"},list:{spacingAfter:"16pt"},listItem:{spacingAfter:"6pt"},blockquote:{spacingBefore:"14pt",spacingAfter:"14pt",paddingVertical:"4pt",paddingHorizontal:"18pt"},codeBlock:{spacingAfter:"16pt"},table:{spacingAfter:"16pt"},horizontalRule:{spacingBefore:"28pt",spacingAfter:"28pt"}}},mi={id:"technical",name:"\u6280\u672F\u6587\u6863",name_en:"Technical",description:"\u7D27\u51D1\u9AD8\u6548\u7684\u5E03\u5C40\uFF0C\u9002\u5408\u6280\u672F\u6587\u6863\u548CAPI\u6587\u6863",description_en:"Compact and efficient layout for technical and API documentation",body:{fontSize:"11pt",lineHeight:1.4},headings:{h1:{fontSize:"18pt",spacingBefore:"0pt",spacingAfter:"10pt"},h2:{fontSize:"15pt",spacingBefore:"14pt",spacingAfter:"7pt"},h3:{fontSize:"13pt",spacingBefore:"12pt",spacingAfter:"6pt"},h4:{fontSize:"12pt",spacingBefore:"10pt",spacingAfter:"5pt"},h5:{fontSize:"11pt",spacingBefore:"8pt",spacingAfter:"4pt"},h6:{fontSize:"11pt",spacingBefore:"6pt",spacingAfter:"3pt"}},code:{fontSize:"10pt"},blocks:{paragraph:{spacingAfter:"8pt"},list:{spacingAfter:"10pt"},listItem:{spacingAfter:"2pt"},blockquote:{spacingBefore:"8pt",spacingAfter:"8pt",paddingVertical:"1pt",paddingHorizontal:"12pt"},codeBlock:{spacingAfter:"10pt"},table:{spacingAfter:"10pt"},horizontalRule:{spacingBefore:"16pt",spacingAfter:"16pt"}}},ui={id:"academic",name:"\u5B66\u672F\u98CE\u683C",name_en:"Academic",description:"\u53CC\u7EBF\u8868\u5934 + \u5355\u7EBF\u5206\u9694\uFF0C\u9002\u5408\u8BBA\u6587\u548C\u5B66\u672F\u6587\u6863",description_en:"Double-line header + single-line separators, ideal for papers and academic documents",border:{headerTop:{width:"1.5pt",style:"double"},headerBottom:{width:"1.5pt",style:"single"},lastRowBottom:{width:"1.5pt",style:"single"}},header:{fontWeight:"bold"},cell:{padding:"6pt"},zebra:{enabled:!1}},hi={id:"borderless",name:"\u65E0\u8FB9\u6846",name_en:"Borderless",description:"\u4EC5\u8868\u5934\u6709\u4E0B\u8FB9\u6846",description_en:"Only header has bottom border",border:{headerBottom:{width:"2pt",style:"single"},lastRowBottom:{width:"1pt",style:"single"}},header:{fontWeight:"bold"},cell:{padding:"8pt"},zebra:{enabled:!1}},gi={id:"compact",name:"\u7D27\u51D1\u578B",name_en:"Compact",description:"\u5C0F\u95F4\u8DDD + \u7EC6\u8FB9\u6846\uFF0C\u9002\u5408\u6570\u636E\u5BC6\u96C6\u578B\u8868\u683C",description_en:"Small padding + thin borders, ideal for data-heavy tables",border:{all:{width:"0.5pt",style:"single"}},header:{fontWeight:"bold",fontSize:"10pt"},cell:{padding:"4pt",fontSize:"10pt"},zebra:{enabled:!0}},yi={id:"grid",name:"\u7F51\u683C\u6837\u5F0F",name_en:"Grid Style",description:"\u5B8C\u6574\u8FB9\u6846\uFF0C\u8868\u5934\u6D45\u7070\u80CC\u666F\uFF0C\u6591\u9A6C\u7EB9",description_en:"Full borders, light gray header, zebra stripes",border:{all:{width:"1pt",style:"single"}},header:{fontWeight:"bold"},cell:{padding:"8pt"},zebra:{enabled:!0}},bi={id:"high-contrast",name:"\u9AD8\u5BF9\u6BD4\u5EA6",name_en:"High Contrast",description:"\u9ED1\u767D\u9AD8\u5BF9\u6BD4 + \u7C97\u8FB9\u6846\uFF0C\u9002\u5408\u6253\u5370\u548C\u53EF\u8BBF\u95EE\u6027\u9700\u6C42",description_en:"Black & white high contrast with thick borders, ideal for printing and accessibility",border:{all:{width:"2pt",style:"single"}},header:{fontWeight:"bold"},cell:{padding:"8pt"},zebra:{enabled:!0}},wi={id:"minimal-gray",name:"\u6781\u7B80\u7070\u8C03",name_en:"Minimal Gray",description:"\u4EC5\u6A2A\u5411\u8FB9\u6846 + \u7070\u8272\u8C03 + \u7B80\u6D01\u7F8E\u89C2",description_en:"Horizontal borders only + gray tones + clean look",border:{headerBottom:{width:"1.5pt",style:"single"},rowBottom:{width:"1pt",style:"single"}},header:{fontWeight:"bold"},cell:{padding:"8pt"},zebra:{enabled:!1}},xi={id:"modern-tech",name:"\u73B0\u4EE3\u79D1\u6280",name_en:"Modern Tech",description:"\u84DD\u8272\u4E3B\u9898 + \u5706\u89D2\u8FB9\u6846\uFF0C\u9002\u5408\u6280\u672F\u6587\u6863\u548C\u4EA7\u54C1\u8BF4\u660E",description_en:"Blue theme with rounded borders, ideal for tech docs and product guides",border:{headerTop:{width:"2pt",style:"single"},headerBottom:{width:"2pt",style:"single"},rowBottom:{width:"1pt",style:"single"},lastRowBottom:{width:"2pt",style:"single"}},header:{fontWeight:"bold"},cell:{padding:"10pt"},zebra:{enabled:!1}},vi={id:"professional",name:"\u4E13\u4E1A\u98CE\u683C",name_en:"Professional",description:"\u7C97\u8868\u5934\u8FB9\u6846 + \u7EC6\u5206\u9694\u7EBF",description_en:"Thick header border + thin separators",border:{headerTop:{width:"2pt",style:"single"},headerBottom:{width:"2pt",style:"single"},rowBottom:{width:"1pt",style:"single"},lastRowBottom:{width:"2pt",style:"single"}},header:{fontWeight:"bold"},cell:{padding:"8pt"},zebra:{enabled:!1}},Si={id:"zebra",name:"\u6591\u9A6C\u7EB9",name_en:"Zebra",description:"\u5947\u5076\u884C\u4E0D\u540C\u80CC\u666F\u8272\uFF0C\u65E0\u8FB9\u6846",description_en:"Alternating row colors, no borders",border:{headerBottom:{width:"1pt",style:"single"}},header:{fontWeight:"bold"},cell:{padding:"8pt"},zebra:{enabled:!0}},ki={version:"2.0.0",themes:[{id:"default",file:"default.json",category:"classic",featured:!0,order:1},{id:"academic",file:"academic.json",category:"classic",featured:!0,order:2},{id:"business",file:"business.json",category:"classic",featured:!0,order:3},{id:"manuscript",file:"manuscript.json",category:"classic",featured:!1,order:4},{id:"newspaper",file:"newspaper.json",category:"classic",featured:!1,order:5},{id:"palatino",file:"palatino.json",category:"reading",featured:!0,order:6},{id:"garamond",file:"garamond.json",category:"reading",featured:!0,order:7},{id:"typewriter",file:"typewriter.json",category:"reading",featured:!0,order:8},{id:"elegant",file:"elegant.json",category:"reading",featured:!0,order:9},{id:"technical",file:"technical.json",category:"modern",featured:!0,order:10},{id:"swiss",file:"swiss.json",category:"modern",featured:!0,order:11},{id:"minimal",file:"minimal.json",category:"modern",featured:!0,order:12},{id:"magazine",file:"magazine.json",category:"creative",featured:!0,order:13},{id:"century",file:"century.json",category:"creative",featured:!0,order:14},{id:"handwritten",file:"handwritten.json",category:"creative",featured:!0,order:15},{id:"verdana",file:"verdana.json",category:"creative",featured:!0,order:16},{id:"heiti",file:"heiti.json",category:"chinese",featured:!0,order:17},{id:"mixed",file:"mixed.json",category:"chinese",featured:!1,order:18},{id:"water",file:"water.json",category:"chinese",featured:!0,order:19},{id:"rainbow",file:"rainbow.json",category:"playful",featured:!0,order:20},{id:"starry",file:"starry.json",category:"playful",featured:!0,order:21},{id:"candy",file:"candy.json",category:"playful",featured:!0,order:22},{id:"dinosaur",file:"dinosaur.json",category:"playful",featured:!0,order:23},{id:"space",file:"space.json",category:"playful",featured:!0,order:24},{id:"garden",file:"garden.json",category:"playful",featured:!0,order:25},{id:"forest",file:"forest.json",category:"nature",featured:!0,order:26},{id:"ocean",file:"ocean.json",category:"nature",featured:!0,order:27},{id:"coral",file:"coral.json",category:"nature",featured:!0,order:28},{id:"sunset",file:"sunset.json",category:"nature",featured:!0,order:29}],categories:{classic:{name:"\u7ECF\u5178\u6587\u6863",name_en:"Classic Document",description:"\u4F20\u7EDF\u6B63\u5F0F\u7684\u6587\u6863\u98CE\u683C\uFF0C\u9002\u5408\u516C\u6587\u3001\u62A5\u544A\u3001\u8BBA\u6587",description_en:"Traditional formal styles for official documents, reports, papers",order:1},reading:{name:"\u4E66\u7C4D\u9605\u8BFB",name_en:"Book & Reading",description:"\u8212\u9002\u7684\u957F\u6587\u9605\u8BFB\u4F53\u9A8C\uFF0C\u9002\u5408\u5C0F\u8BF4\u3001\u6742\u5FD7\u3001\u535A\u5BA2",description_en:"Comfortable long-form reading for novels, magazines, blogs",order:2},modern:{name:"\u73B0\u4EE3\u79D1\u6280",name_en:"Modern Tech",description:"\u7B80\u6D01\u73B0\u4EE3\u7684\u8BBE\u8BA1\u98CE\u683C\uFF0C\u9002\u5408\u6280\u672F\u6587\u6863\u3001\u4EA7\u54C1\u8BF4\u660E",description_en:"Clean modern design for technical docs and products",order:3},creative:{name:"\u521B\u610F\u8868\u8FBE",name_en:"Creative Expression",description:"\u5BCC\u6709\u4E2A\u6027\u7684\u521B\u610F\u98CE\u683C\uFF0C\u9002\u5408\u535A\u5BA2\u3001\u8BBE\u8BA1\u3001\u521B\u610F\u5199\u4F5C",description_en:"Creative styles for blogs, design, creative writing",order:4},chinese:{name:"\u4E2D\u6587\u6392\u7248",name_en:"Chinese Typography",description:"\u4E13\u4E3A\u4E2D\u6587\u4F18\u5316\u7684\u6392\u7248\u98CE\u683C",description_en:"Typography optimized for Chinese content",order:5},playful:{name:"\u7F24\u7EB7\u7AE5\u8DA3",name_en:"Colorful & Playful",description:"\u6D3B\u6CFC\u591A\u5F69\u7684\u98CE\u683C\uFF0C\u9002\u5408\u5B66\u751F\u4F5C\u4E1A\u3001\u513F\u7AE5\u5185\u5BB9",description_en:"Vibrant playful styles for students and kids",order:6},nature:{name:"\u81EA\u7136\u8272\u5F69",name_en:"Nature Colors",description:"\u53D6\u81EA\u81EA\u7136\u7684\u914D\u8272\uFF0C\u6E29\u6696\u8212\u9002\u7684\u89C6\u89C9\u4F53\u9A8C",description_en:"Nature-inspired colors for warm visual experience",order:7}},recommendations:{default:"default",academic:"academic",business:"business",technical:"technical",reading:"garamond",book:"palatino",modern:"swiss",screen:"verdana",creative:"magazine"}},_n={fonts:{"Times New Roman":{name:"Times New Roman",displayName:"Times New Roman",webFallback:"'Times New Roman', Times, Georgia, serif, SimSun, STSong",docx:{ascii:"Times New Roman",eastAsia:"SimSun"}},Arial:{name:"Arial",displayName:"Arial",webFallback:"Arial, Helvetica, 'Helvetica Neue', sans-serif, SimHei, STHeiti",docx:{ascii:"Arial",eastAsia:"SimHei"}},Georgia:{name:"Georgia",displayName:"Georgia",webFallback:"Georgia, 'Times New Roman', Times, serif, SimSun, STSong",docx:{ascii:"Georgia",eastAsia:"SimSun"}},Monaco:{name:"Monaco",displayName:"Monaco",webFallback:"Monaco, 'Courier New', monospace, FangSong, STFangsong, 'Zhuque Fangsong'",docx:{ascii:"Consolas",eastAsia:"FangSong"}},"Courier New":{name:"Courier New",displayName:"Courier New",webFallback:"'Courier New', Courier, Monaco, FangSong, STFangsong, 'Zhuque Fangsong', monospace",docx:{ascii:"Courier New",eastAsia:"FangSong"}},SimSun:{name:"SimSun",displayName:"\u5B8B\u4F53 (SimSun)",webFallback:"'Times New Roman', serif, SimSun, STSong",docx:{ascii:"Times New Roman",eastAsia:"SimSun"}},SimHei:{name:"SimHei",displayName:"\u9ED1\u4F53 (SimHei)",webFallback:"Arial, sans-serif, SimHei, STHeiti",docx:{ascii:"Arial",eastAsia:"SimHei"}},FangSong:{name:"FangSong",displayName:"\u4EFF\u5B8B (FangSong)",webFallback:"FangSong, STFangsong, 'Zhuque Fangsong', Georgia, 'Times New Roman', serif",docx:{ascii:"Georgia",eastAsia:"FangSong"}},Palatino:{name:"Palatino",displayName:"Palatino",webFallback:"Palatino, Georgia, 'Times New Roman', serif, STSong, SimSun",docx:{ascii:"Palatino Linotype",eastAsia:"SimSun"}},Verdana:{name:"Verdana",displayName:"Verdana",webFallback:"Verdana, Geneva, Tahoma, Arial, sans-serif, SimHei",docx:{ascii:"Verdana",eastAsia:"SimHei"}},Tahoma:{name:"Tahoma",displayName:"Tahoma",webFallback:"Tahoma, Verdana, Arial, sans-serif, SimHei",docx:{ascii:"Tahoma",eastAsia:"SimHei"}},"Trebuchet MS":{name:"Trebuchet MS",displayName:"Trebuchet MS",webFallback:"'Trebuchet MS', Tahoma, Arial, sans-serif, SimHei",docx:{ascii:"Trebuchet MS",eastAsia:"SimHei"}},"Comic Sans MS":{name:"Comic Sans MS",displayName:"Comic Sans MS",webFallback:"'Comic Sans MS', 'Comic Neue', 'Marker Felt', FangSong, STFangsong, 'Zhuque Fangsong'",docx:{ascii:"Comic Sans MS",eastAsia:"FangSong"}},Impact:{name:"Impact",displayName:"Impact",webFallback:"Impact, 'Arial Black', Arial, sans-serif, SimHei",docx:{ascii:"Impact",eastAsia:"SimHei"}},"Lucida Grande":{name:"Lucida Grande",displayName:"Lucida Grande",webFallback:"'Lucida Grande', Geneva, Verdana, Arial, sans-serif, STHeiti, SimHei",docx:{ascii:"Lucida Sans Unicode",eastAsia:"SimHei"}},"Palatino Linotype":{name:"Palatino Linotype",displayName:"Palatino Linotype",webFallback:"'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, 'Times New Roman', serif, SimSun, STSong",docx:{ascii:"Palatino Linotype",eastAsia:"SimSun"}},Consolas:{name:"Consolas",displayName:"Consolas",webFallback:"Consolas, Monaco, 'Courier New', monospace, FangSong, STFangsong, 'Zhuque Fangsong'",docx:{ascii:"Consolas",eastAsia:"FangSong"}},Garamond:{name:"Garamond",displayName:"Garamond",webFallback:"Garamond, 'Times New Roman', Georgia, serif, SimSun, STSong",docx:{ascii:"Garamond",eastAsia:"SimSun"}},"Helvetica Neue":{name:"Helvetica Neue",displayName:"Helvetica Neue",webFallback:"'Helvetica Neue', Helvetica, Arial, sans-serif, SimHei, STHeiti",docx:{ascii:"Arial",eastAsia:"SimHei"}},"Century Gothic":{name:"Century Gothic",displayName:"Century Gothic",webFallback:"'Century Gothic', 'Apple Gothic', Arial, sans-serif, SimHei, STHeiti",docx:{ascii:"Century Gothic",eastAsia:"SimHei"}}}};function vt(e){return typeof e>"u"||e===null}function _i(e){return typeof e=="object"&&e!==null}function Ti(e){return Array.isArray(e)?e:vt(e)?[]:[e]}function Ai(e,n){var t,i,r,a;if(n)for(a=Object.keys(n),t=0,i=a.length;t<i;t+=1)r=a[t],e[r]=n[r];return e}function Fi(e,n){var t="",i;for(i=0;i<n;i+=1)t+=e;return t}function Ci(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Mi=vt,Bi=_i,Pi=Ti,Ei=Fi,Ri=Ci,Li=Ai,H={isNothing:Mi,isObject:Bi,toArray:Pi,repeat:Ei,isNegativeZero:Ri,extend:Li};function St(e,n){var t="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(t+='in "'+e.mark.name+'" '),t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!n&&e.mark.snippet&&(t+=`
2
2
 
3
3
  `+e.mark.snippet),i+" "+t):i}function qe(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=St(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}qe.prototype=Object.create(Error.prototype);qe.prototype.constructor=qe;qe.prototype.toString=function(n){return this.name+": "+St(this,n)};var J=qe;function Tn(e,n,t,i,r){var a="",o="",l=Math.floor(r/2)-1;return i-n>l&&(a=" ... ",n=i-l+a.length),t-i>l&&(o=" ...",t=i+l-o.length),{str:a+e.slice(n,t).replace(/\t/g,"\u2192")+o,pos:i-n+a.length}}function An(e,n){return H.repeat(" ",n-e.length)+e}function Ii(e,n){if(n=Object.create(n||null),!e.buffer)return null;n.maxLength||(n.maxLength=79),typeof n.indent!="number"&&(n.indent=1),typeof n.linesBefore!="number"&&(n.linesBefore=3),typeof n.linesAfter!="number"&&(n.linesAfter=2);for(var t=/\r?\n|\r|\0/g,i=[0],r=[],a,o=-1;a=t.exec(e.buffer);)r.push(a.index),i.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var l="",s,d,c=Math.min(e.line+n.linesAfter,r.length).toString().length,p=n.maxLength-(n.indent+c+3);for(s=1;s<=n.linesBefore&&!(o-s<0);s++)d=Tn(e.buffer,i[o-s],r[o-s],e.position-(i[o]-i[o-s]),p),l=H.repeat(" ",n.indent)+An((e.line-s+1).toString(),c)+" | "+d.str+`
4
4
  `+l;for(d=Tn(e.buffer,i[o],r[o],e.position,p),l+=H.repeat(" ",n.indent)+An((e.line+1).toString(),c)+" | "+d.str+`
@@ -1520,7 +1520,7 @@ ${p?` <script src="${Ke(l)}"></script>
1520
1520
  runWhenReady();
1521
1521
  }
1522
1522
  })();
1523
- </script>`}var wn=class{async exportToBuffer(n,t={}){Ye();let i=t.theme||"default",r=t.basePath??process.cwd(),a=ve(),{platform:o,getCapturedBuffer:l}=je({moduleDir:a,selectedThemeId:i,output:{kind:"buffer"},settings:{docxHrAsPageBreak:t.hrAsPageBreak??!0}}),s=globalThis.platform;globalThis.platform=o;let d=$.join(r,"__md2x__.md"),c=null;try{c=await Ne(),c&&await c.initialize();let p=Fe(i),f=he(n,t.templates),u=cl(c,r,p,f),{default:m}=await import("./docx-exporter-7C6T4DFB.js"),h=new m(u);h.setBaseUrl?.(He(d).href);let g=await h.exportToDocx(n,"__md2x__.docx",null);if(!g.success)throw new Error(g.error||"DOCX export failed");let x=l();if(!x)throw new Error("DOCX export produced no output buffer");return x}finally{try{c&&await c.close()}finally{globalThis.platform=s}}}};function xn(){let e=ve(),n=$.join(e,"vendor","katex","katex.min.css"),t=n;Ce.existsSync(n)||(t=ll(import.meta.url).resolve("katex/dist/katex.min.css"));let i=$.dirname(t),r=He($.join(i,"fonts")+$.sep).href,a=Ce.readFileSync(t,"utf-8");return a=a.replace(/url\((['"]?)(?:\.\/)?fonts\//g,`url($1${r}`),a}var vn=class{async exportToBuffer(n,t={}){Ye();let i=t.theme||"default",r=t.basePath??process.cwd(),a=ve(),{platform:o}=je({moduleDir:a,selectedThemeId:i,output:{kind:"buffer"}}),l=globalThis.platform;globalThis.platform=o;let s=null;try{if(s=await Ne(),!s)throw new Error("Failed to create browser renderer. Puppeteer is required for PDF export.");await s.initialize();let d=Fe(i),c=t.diagramMode??"img",p=await gn(n,s,r,d,c,t.templates,t.cdn);if(c==="live"){let g=He(r+$.sep).href,x=he(n,t.templates),y=yn(p);p=p+`
1523
+ </script>`}var wn=class{async exportToBuffer(n,t={}){Ye();let i=t.theme||"default",r=t.basePath??process.cwd(),a=ve(),{platform:o,getCapturedBuffer:l}=je({moduleDir:a,selectedThemeId:i,output:{kind:"buffer"},settings:{docxHrAsPageBreak:t.hrAsPageBreak??!0}}),s=globalThis.platform;globalThis.platform=o;let d=$.join(r,"__md2x__.md"),c=null;try{c=await Ne(),c&&await c.initialize();let p=Fe(i),f=he(n,t.templates),u=cl(c,r,p,f),{default:m}=await import("./docx-exporter-GL6CNCQD.js"),h=new m(u);h.setBaseUrl?.(He(d).href);let g=await h.exportToDocx(n,"__md2x__.docx",null);if(!g.success)throw new Error(g.error||"DOCX export failed");let x=l();if(!x)throw new Error("DOCX export produced no output buffer");return x}finally{try{c&&await c.close()}finally{globalThis.platform=s}}}};function xn(){let e=ve(),n=$.join(e,"vendor","katex","katex.min.css"),t=n;Ce.existsSync(n)||(t=ll(import.meta.url).resolve("katex/dist/katex.min.css"));let i=$.dirname(t),r=He($.join(i,"fonts")+$.sep).href,a=Ce.readFileSync(t,"utf-8");return a=a.replace(/url\((['"]?)(?:\.\/)?fonts\//g,`url($1${r}`),a}var vn=class{async exportToBuffer(n,t={}){Ye();let i=t.theme||"default",r=t.basePath??process.cwd(),a=ve(),{platform:o}=je({moduleDir:a,selectedThemeId:i,output:{kind:"buffer"}}),l=globalThis.platform;globalThis.platform=o;let s=null;try{if(s=await Ne(),!s)throw new Error("Failed to create browser renderer. Puppeteer is required for PDF export.");await s.initialize();let d=Fe(i),c=t.diagramMode??"img",p=await gn(n,s,r,d,c,t.templates,t.cdn);if(c==="live"){let g=He(r+$.sep).href,x=he(n,t.templates),y=yn(p);p=p+`
1524
1524
  `+bn(d??null,g,t.cdn,x,{mode:"inline"},y)}let f="";try{f=xn()}catch(g){console.warn("Failed to load KaTeX CSS for PDF export:",g)}let u=Oe(t.hrAsPageBreak??!0),m="";try{m=Ie(i)}catch(g){console.warn("Failed to load theme CSS, using base styles only:",g)}let h=f+`
1525
1525
  `+u+`
1526
1526
  `+m;return await s.exportToPdf(p,h,t.pdf,r)}finally{try{s&&await s.close()}finally{globalThis.platform=l}}}},Xe=class{async exportToBuffer(n,t={}){Ye();let i=t.theme||"default",r=t.basePath??process.cwd(),a=ve(),{platform:o}=je({moduleDir:a,selectedThemeId:i,output:{kind:"buffer"}}),l=globalThis.platform;globalThis.platform=o;let s=null;try{if(s=await Ne(),!s)throw new Error("Failed to create browser renderer. Puppeteer is required for image export.");await s.initialize();let d=Fe(i),c=t.diagramMode??"live",p=await gn(n,s,r,d,c,t.templates,t.cdn);if(c==="live"){let g=He(r+$.sep).href,x=he(n,t.templates),y=yn(p);p=p+`
@@ -1544,7 +1544,7 @@ ${v} <title>${Ke(x)}</title>
1544
1544
  <div id="markdown-content" class="markdown-body">${p}</div>
1545
1545
  ${A}
1546
1546
  </body>
1547
- </html>`}finally{try{d&&await d.close()}finally{globalThis.platform=s}}}async exportToBuffer(n,t={}){let i=await this.exportToString(n,t);return Buffer.from(i,"utf8")}};import*as se from"fs";import*as V from"path";async function ul(e,n={}){return new wn().exportToBuffer(e,n)}async function hl(e,n={}){return new vn().exportToBuffer(e,n)}async function Zl(e,n={}){return new Je().exportToString(e,n)}async function gl(e,n={}){return new Je().exportToBuffer(e,n)}async function es(e,n={}){return new Xe().exportToBuffer(e,n)}async function yl(e,n={}){return new Xe().exportToBuffers(e,n)}function bl(e){let n=V.extname(e).toLowerCase();return n===".pdf"?"pdf":n===".docx"?"docx":n===".html"||n===".htm"?"html":n===".png"?"png":n===".jpg"?"jpg":n===".jpeg"?"jpeg":n===".webp"?"webp":null}async function wl(e,n={},t){let i=n.skipFrontMatter?{content:e,data:{},hasFrontMatter:!1}:jn(e),r=i.hasFrontMatter?Hn(i.data):{},a=n.format??r.format??"pdf",o=n.theme??r.theme??"default",l=a==="docx"?"img":"live",s=n.diagramMode??r.diagramMode??l,d=n.hrAsPageBreak??r.hrAsPageBreak??!(a==="html"||pn(a)),c=n.basePath??process.cwd(),p=n.title??r.title??t??"Document",f=i.content,u,m;if(a==="pdf")u=await hl(f,{theme:o,basePath:c,hrAsPageBreak:d,diagramMode:s,cdn:n.cdn??r.cdn,pdf:{...n.pdf,...r.pdf,title:p},templates:{...r.templates??{},...n.templates??{}}});else if(a==="docx")u=await ul(f,{theme:o,basePath:c,hrAsPageBreak:d,templates:{...r.templates??{},...n.templates??{}}});else if(a==="html")u=await gl(f,{theme:o,basePath:c,diagramMode:s,hrAsPageBreak:d,title:p,standalone:n.standalone??r.standalone,baseTag:n.baseTag??r.baseTag,liveRuntime:n.liveRuntime??r.liveRuntime,liveRuntimeBaseUrl:n.liveRuntimeBaseUrl??r.liveRuntimeBaseUrl,cdn:n.cdn??r.cdn,templates:{...r.templates??{},...n.templates??{}}});else{let h=n.image??r.image,g=h?.type?h:{...h??{},type:Dn(a)};if(m=await yl(f,{theme:o,basePath:c,hrAsPageBreak:d,image:g,diagramMode:s,cdn:n.cdn??r.cdn,templates:{...r.templates??{},...n.templates??{}}}),!m.length)throw new Error("Image conversion produced no output");u=m[0]}return{buffer:u,format:a,buffers:m&&m.length>1?m:void 0}}async function ns(e,n,t={}){let i=V.resolve(e);if(!se.existsSync(i))throw new Error(`Input file not found: ${i}`);let r=se.readFileSync(i,"utf-8"),a=t.format;!a&&n&&(a=bl(n)??void 0);let o=V.basename(i,V.extname(i)),l=await wl(r,{...t,format:a,basePath:t.basePath??V.dirname(i),title:t.title},o),s;if(n)s=V.resolve(n);else{let c=V.dirname(i),p=V.basename(i,V.extname(i)),f=dn(l.format);s=V.join(c,`${p}${f}`)}let d=V.dirname(s);if(se.existsSync(d)||se.mkdirSync(d,{recursive:!0}),pn(l.format)&&l.buffers&&l.buffers.length>1){let c=l.buffers,p=dn(l.format),f=s.endsWith(p)?s.slice(0,-p.length):s,u=[];for(let m=0;m<c.length;m++){let h=String(m+1).padStart(3,"0"),g=`${f}.part-${h}${p}`;se.writeFileSync(g,c[m]),u.push(g)}return{buffer:c[0],buffers:c,outputPath:u[0],outputPaths:u,format:l.format}}return se.writeFileSync(s,l.buffer),{buffer:l.buffer,outputPath:s,format:l.format}}export{ki as a,jn as b,Hn as c,dn as d,fn as e,Ka as f,wn as g,vn as h,Xe as i,Je as j,ul as k,hl as l,Zl as m,gl as n,es as o,yl as p,wl as q,ns as r};
1547
+ </html>`}finally{try{d&&await d.close()}finally{globalThis.platform=s}}}async exportToBuffer(n,t={}){let i=await this.exportToString(n,t);return Buffer.from(i,"utf8")}};import*as se from"fs";import*as V from"path";async function ul(e,n={}){return new wn().exportToBuffer(e,n)}async function hl(e,n={}){return new vn().exportToBuffer(e,n)}async function Zl(e,n={}){return new Je().exportToString(e,n)}async function gl(e,n={}){return new Je().exportToBuffer(e,n)}async function es(e,n={}){return new Xe().exportToBuffer(e,n)}async function yl(e,n={}){return new Xe().exportToBuffers(e,n)}function bl(e){let n=V.extname(e).toLowerCase();return n===".pdf"?"pdf":n===".docx"?"docx":n===".html"||n===".htm"?"html":n===".png"?"png":n===".jpg"?"jpg":n===".jpeg"?"jpeg":n===".webp"?"webp":null}async function wl(e,n={},t){let i=n.skipFrontMatter?{content:e,data:{},hasFrontMatter:!1}:jn(e),r=i.hasFrontMatter?Hn(i.data):{},a=n.format??r.format??"pdf",o=n.theme??r.theme??"default",l=a==="docx"?"img":"live",s=n.diagramMode??r.diagramMode??l,d=n.hrAsPageBreak??r.hrAsPageBreak??!(a==="html"||pn(a)),c=n.basePath??process.cwd(),p=n.title??r.title??t??"Document",f=i.content,u,m;if(a==="pdf")u=await hl(f,{theme:o,basePath:c,hrAsPageBreak:d,diagramMode:s,cdn:n.cdn??r.cdn,pdf:{...n.pdf,...r.pdf,title:p},templates:{...r.templates??{},...n.templates??{}}});else if(a==="docx")u=await ul(f,{theme:o,basePath:c,hrAsPageBreak:d,templates:{...r.templates??{},...n.templates??{}}});else if(a==="html")u=await gl(f,{theme:o,basePath:c,diagramMode:s,hrAsPageBreak:d,title:p,standalone:n.standalone??r.standalone,baseTag:n.baseTag??r.baseTag,liveRuntime:n.liveRuntime??r.liveRuntime,liveRuntimeBaseUrl:n.liveRuntimeBaseUrl??r.liveRuntimeBaseUrl,cdn:n.cdn??r.cdn,templates:{...r.templates??{},...n.templates??{}}});else{let h=n.image??r.image,g=h?.type?h:{...h??{},type:Dn(a)};if(m=await yl(f,{theme:o,basePath:c,hrAsPageBreak:d,image:g,diagramMode:s,cdn:n.cdn??r.cdn,templates:{...r.templates??{},...n.templates??{}}}),!m.length)throw new Error("Image conversion produced no output");u=m[0]}return{buffer:u,format:a,buffers:m&&m.length>1?m:void 0}}async function ns(e,n,t={}){let i=V.resolve(e);if(!se.existsSync(i))throw new Error(`Input file not found: ${i}`);let r=se.readFileSync(i,"utf-8"),a=t.format;!a&&n&&(a=bl(n)??void 0);let o=V.basename(i,V.extname(i)),l=await wl(r,{...t,format:a,basePath:t.basePath??V.dirname(i),title:t.title},o),s;if(n)s=V.resolve(n);else{let c=V.dirname(i),p=V.basename(i,V.extname(i)),f=dn(l.format);s=V.join(c,`${p}${f}`)}let d=V.dirname(s);if(se.existsSync(d)||se.mkdirSync(d,{recursive:!0}),pn(l.format)&&l.buffers&&l.buffers.length>1){let c=l.buffers,p=dn(l.format),f=s.endsWith(p)?s.slice(0,-p.length):s,u=[];for(let m=0;m<c.length;m++){let h=String(m+1).padStart(3,"0"),g=`${f}.part-${h}${p}`;se.writeFileSync(g,c[m]),u.push(g)}return{buffer:c[0],buffers:c,outputPath:u[0],outputPaths:u,format:l.format}}return se.writeFileSync(s,l.buffer),{buffer:l.buffer,outputPath:s,format:l.format}}export{ki as a,jn as b,Hn as c,dn as d,pn as e,fn as f,Ka as g,wn as h,vn as i,Xe as j,Je as k,ul as l,hl as m,Zl as n,gl as o,es as p,yl as q,wl as r,ns as s};
1548
1548
  /*! Bundled license information:
1549
1549
 
1550
1550
  js-yaml/dist/js-yaml.mjs:
@@ -363,7 +363,7 @@ l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
363
363
  `),o=r.slice(n+1).join(`
364
364
  `);return[i,o]}parseFrontmatterData(t){let r=t.split(`
365
365
  `),n={};for(let a of r){let i=a.indexOf(":");if(i>0){let o=a.substring(0,i).trim(),s=a.substring(i+1).trim();o&&(n[o]=s)}}return n}parseMarkdown(t){let[r,n]=this.extractFrontmatter(t);this.frontmatterContent=r;let a=hT().use(bp).use(x8).use(Op,{singleTilde:!1}).use(t0).use(r0).use(ux),i=a.parse(n),o=a.runSync(i);return this.linkDefinitions=new Map,Un(o,"definition",s=>{let l=s;l.identifier&&this.linkDefinitions.set(l.identifier.toLowerCase(),{url:l.url||"",title:l.title??null})}),o}isTocMarker(t){if(t.type!=="paragraph"||!t.children||t.children.length!==1)return!1;let r=t.children[0];if(r.type!=="text")return!1;let n=(r.value||"").trim();return/^\[toc\]$/i.test(n)}async convertFrontmatterToDocx(){if(!this.frontmatterContent||this.frontmatterDisplay==="hide")return[];let t=[],r=this.themeStyles?.default?.paragraph?.spacing||{before:0,after:200,line:276};if(this.frontmatterDisplay==="table"){let n=this.parseFrontmatterData(this.frontmatterContent),a=Object.entries(n);if(a.length>0&&this.tableConverter){let i={type:"table",align:["left","left"],children:[{type:"tableRow",children:[{type:"tableCell",children:[{type:"text",value:"Property"}]},{type:"tableCell",children:[{type:"text",value:"Value"}]}]},...a.map(([s,l])=>({type:"tableRow",children:[{type:"tableCell",children:[{type:"text",value:s}]},{type:"tableCell",children:[{type:"text",value:l}]}]}))]},o=await this.tableConverter.convertTable(i);t.push(o),t.push(new pt({text:"",spacing:{before:r.before,after:r.after}}))}}else if(this.frontmatterDisplay==="raw"){let n=this.themeStyles?.characterStyles?.code||{font:"Consolas",size:20},a=this.themeStyles?.characterStyles?.code?.background||"F6F8FA",i=this.themeStyles?.codeColors?.foreground||"24292E",o=[];this.frontmatterContent.split(`
366
- `).forEach((l,c)=>{c>0&&o.push(new Et({break:1})),o.push(new Et({text:l||" ",font:n.font,size:n.size,color:i}))}),t.push(new pt({children:o,wordWrap:!0,alignment:tt.LEFT,spacing:{before:200,after:200,line:276},shading:{fill:a},indent:{left:200,right:200},border:{top:{color:"E1E4E8",space:10,style:Ct.SINGLE,size:6},bottom:{color:"E1E4E8",space:10,style:Ct.SINGLE,size:6},left:{color:"E1E4E8",space:10,style:Ct.SINGLE,size:6},right:{color:"E1E4E8",space:10,style:Ct.SINGLE,size:6}}})),t.push(new pt({text:"",spacing:{before:r.before,after:r.after}}))}return t}async convertAstToDocx(t){let r=[],n=null;this.listInstanceCounter=0;let a=await this.convertFrontmatterToDocx();if(r.push(...a),a.length>0&&(n="frontmatter"),!t.children)return r;for(let i of t.children){if(this.isTocMarker(i)){let s=new Vm("Contents",{hyperlink:!0,headingStyleRange:"1-6"});r.push(s),r.push(new pt({text:"",spacing:{before:240,after:120}})),n="toc";continue}!this.docxHrAsPageBreak&&i.type==="thematicBreak"&&n==="thematicBreak"&&r.push(new pt({text:"",alignment:tt.LEFT,spacing:{before:0,after:0,line:1,lineRule:"exact"}})),i.type==="table"&&n==="table"&&r.push(new pt({text:"",alignment:tt.LEFT,spacing:{before:120,after:120,line:240}})),i.type==="blockquote"&&n==="blockquote"&&r.push(new pt({text:"",alignment:tt.LEFT,spacing:{before:120,after:120,line:240}}));let o=await this.convertNode(i);o&&(Array.isArray(o)?r.push(...o):r.push(o)),n=i.type}return r}async convertNode(t,r={},n=0,a=0){let i={Paragraph:pt,TextRun:Et,ImageRun:$i,AlignmentType:tt,convertInchesToTwip:$t,themeStyles:this.themeStyles},o=this.renderer?{render:async(l,c)=>{let u=await this.renderer.render(l,c);if(!u)throw new Error("Plugin renderer returned empty result");if(typeof u.width!="number"||typeof u.height!="number")throw new Error("Plugin renderer returned invalid dimensions");let d=typeof u.format=="string"&&u.format?u.format:"png";return{base64:u.base64,width:u.width,height:u.height,format:d,error:u.error}}}:{render:async()=>{throw new Error("Renderer not available")}},s=await UP(t,o,i,()=>this.reportResourceProgress());if(s)return s;switch(t.type){case"heading":return this.convertHeading(t);case"paragraph":return await this.convertParagraph(t,r);case"list":return await this.listConverter.convertList(t);case"code":return this.convertCodeBlock(t,n,a);case"blockquote":return await this.blockquoteConverter.convertBlockquote(t,n);case"table":return await this.tableConverter.convertTable(t,n);case"thematicBreak":return this.convertThematicBreak();case"html":return this.convertHtml(t);case"math":return this.convertMathBlock(t);default:return null}}convertHeading(t){let r={1:Mo.HEADING_1,2:Mo.HEADING_2,3:Mo.HEADING_3,4:Mo.HEADING_4,5:Mo.HEADING_5,6:Mo.HEADING_6},n=this.inlineConverter.extractText({type:"root",children:t.children||[]}),a=t.depth||1,i=this.themeStyles?.paragraphStyles?.[`heading${a}`],o={text:n,heading:r[a]||Mo.HEADING_1};return i?.paragraph?.alignment==="center"&&(o.alignment=tt.CENTER),new pt(o)}async convertParagraph(t,r={}){let n=await this.inlineConverter.convertInlineNodes(t.children||[],r),a=this.themeStyles?.default?.paragraph?.spacing||{before:0,after:200,line:276};return new pt({children:n.length>0?n:void 0,text:n.length===0?"":void 0,spacing:{before:a.before,after:a.after,line:a.line},alignment:tt.LEFT})}convertCodeBlock(t,r=0,n=0){let a=this.codeHighlighter.getHighlightedRunsForCode(t.value??"",t.lang),i=this.themeStyles?.characterStyles?.code?.background||"F6F8FA",o=200,l=(r>0?$t(.5*r):0)+o,c=n>0?300*n:0,u=o+c;return new pt({children:a,wordWrap:!0,alignment:tt.LEFT,spacing:{before:200,after:200,line:276},shading:{fill:i},indent:{left:l,right:u},border:{top:{color:"E1E4E8",space:10,style:Ct.SINGLE,size:6},bottom:{color:"E1E4E8",space:10,style:Ct.SINGLE,size:6},left:{color:"E1E4E8",space:10,style:Ct.SINGLE,size:6},right:{color:"E1E4E8",space:10,style:Ct.SINGLE,size:6}}})}convertHtml(t){return new pt({children:[new Et({text:"[HTML Content]",italics:!0,color:"666666"})],alignment:tt.LEFT,spacing:{before:120,after:120}})}convertThematicBreak(){return this.docxHrAsPageBreak?new pt({pageBreakBefore:!0,children:[new Et({text:"",size:1})],spacing:{before:0,after:0,line:1,lineRule:"exact"},alignment:tt.LEFT}):new pt({text:"",alignment:tt.LEFT,spacing:{before:300,after:300,line:120,lineRule:"exact"},border:{bottom:{color:"E1E4E8",space:1,style:Ct.SINGLE,size:12}}})}convertMathBlock(t){try{let r=tp(t.value||"");return new pt({children:[r],spacing:{before:120,after:120},alignment:tt.CENTER})}catch(r){console.warn("Math conversion error:",r);let n=this.themeStyles?.characterStyles?.code||{font:"Consolas",size:20};return new pt({children:[new Et({text:t.value||"",font:n.font,size:n.size})],alignment:tt.LEFT,spacing:{before:120,after:120}})}}toAlignmentType(t){if(!t)return;let r=t.trim().toLowerCase();if(!r)return;let a={left:tt.LEFT,center:tt.CENTER,right:tt.RIGHT,justify:tt.JUSTIFIED,justified:tt.JUSTIFIED,start:tt.START,end:tt.END}[r];return a||(Object.values(tt).includes(r)?r:void 0)}toDocumentDefaults(t){let r=t.paragraph?{spacing:t.paragraph.spacing,alignment:this.toAlignmentType(t.paragraph.alignment)}:void 0;return{run:t.run,paragraph:r}}toHeadingStyle(t){let r={spacing:t.paragraph.spacing,alignment:this.toAlignmentType(t.paragraph.alignment)};return{name:t.name,basedOn:t.basedOn,next:t.next,run:t.run,paragraph:r}}async fetchImageAsBuffer(t){if(this.imageCache.has(t))return this.imageCache.get(t);if(t.startsWith("data:")){let a=t.match(/^data:([^;,]+)[^,]*,(.+)$/);if(!a)throw new Error("Invalid data URL format");let i=a[1],o=atob(a[2]),s=new Uint8Array(o.length);for(let c=0;c<o.length;c++)s[c]=o.charCodeAt(c);let l={buffer:s,contentType:i};return this.imageCache.set(t,l),l}let r=this.getDocumentService();if(!r)throw new Error("DocumentService not available - platform not initialized");let n=t.startsWith("http://")||t.startsWith("https://");try{if(n){let a=await r.fetchRemote(t),i=this.guessContentType(t),o={buffer:a,contentType:i};return this.imageCache.set(t,o),o}else{let a=await r.readRelativeFile(t,{binary:!0}),i=atob(a),o=new Uint8Array(i.length);for(let c=0;c<i.length;c++)o[c]=i.charCodeAt(c);let s=this.guessContentType(t),l={buffer:o,contentType:s};return this.imageCache.set(t,l),l}}catch(a){throw new Error(`Failed to fetch image: ${t} - ${a.message}`)}}guessContentType(t){let r=t.split(".").pop()?.toLowerCase().split("?")[0]||"";return{png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",bmp:"image/bmp",webp:"image/webp",svg:"image/svg+xml"}[r]||"image/png"}},F6e=wS;export{AS as a,hT as b,bp as c,Un as d,Op as e,t0 as f,ux as g,gS as h,F6e as i,C9 as j,zL as k,yP as l,jP as m,Cue as n};
366
+ `).forEach((l,c)=>{c>0&&o.push(new Et({break:1})),o.push(new Et({text:l||" ",font:n.font,size:n.size,color:i}))}),t.push(new pt({children:o,wordWrap:!0,alignment:tt.LEFT,spacing:{before:200,after:200,line:276},shading:{fill:a},indent:{left:200,right:200},border:{top:{color:"E1E4E8",space:10,style:Ct.SINGLE,size:6},bottom:{color:"E1E4E8",space:10,style:Ct.SINGLE,size:6},left:{color:"E1E4E8",space:10,style:Ct.SINGLE,size:6},right:{color:"E1E4E8",space:10,style:Ct.SINGLE,size:6}}})),t.push(new pt({text:"",spacing:{before:r.before,after:r.after}}))}return t}async convertAstToDocx(t){let r=[],n=null;this.listInstanceCounter=0;let a=await this.convertFrontmatterToDocx();if(r.push(...a),a.length>0&&(n="frontmatter"),!t.children)return r;for(let i of t.children){if(this.isTocMarker(i)){let s=new Vm("Contents",{hyperlink:!0,headingStyleRange:"1-6"});r.push(s),r.push(new pt({text:"",spacing:{before:240,after:120}})),n="toc";continue}!this.docxHrAsPageBreak&&i.type==="thematicBreak"&&n==="thematicBreak"&&r.push(new pt({text:"",alignment:tt.LEFT,spacing:{before:0,after:0,line:1,lineRule:"exact"}})),i.type==="table"&&n==="table"&&r.push(new pt({text:"",alignment:tt.LEFT,spacing:{before:120,after:120,line:240}})),i.type==="blockquote"&&n==="blockquote"&&r.push(new pt({text:"",alignment:tt.LEFT,spacing:{before:120,after:120,line:240}}));let o=await this.convertNode(i);o&&(Array.isArray(o)?r.push(...o):r.push(o)),n=i.type}return r}async convertNode(t,r={},n=0,a=0){let i={Paragraph:pt,TextRun:Et,ImageRun:$i,AlignmentType:tt,convertInchesToTwip:$t,themeStyles:this.themeStyles},o=this.renderer?{render:async(l,c)=>{let u=await this.renderer.render(l,c);if(!u)throw new Error("Plugin renderer returned empty result");if(typeof u.width!="number"||typeof u.height!="number")throw new Error("Plugin renderer returned invalid dimensions");let d=typeof u.format=="string"&&u.format?u.format:"png";return{base64:u.base64,width:u.width,height:u.height,format:d,error:u.error}}}:{render:async()=>{throw new Error("Renderer not available")}},s=await UP(t,o,i,()=>this.reportResourceProgress());if(s)return s;switch(t.type){case"heading":return this.convertHeading(t);case"paragraph":return await this.convertParagraph(t,r);case"list":return await this.listConverter.convertList(t);case"code":return this.convertCodeBlock(t,n,a);case"blockquote":return await this.blockquoteConverter.convertBlockquote(t,n);case"table":return await this.tableConverter.convertTable(t,n);case"thematicBreak":return this.convertThematicBreak();case"html":return this.convertHtml(t);case"math":return this.convertMathBlock(t);default:return null}}convertHeading(t){let r={1:Mo.HEADING_1,2:Mo.HEADING_2,3:Mo.HEADING_3,4:Mo.HEADING_4,5:Mo.HEADING_5,6:Mo.HEADING_6},n=this.inlineConverter.extractText({type:"root",children:t.children||[]}),a=t.depth||1,i=this.themeStyles?.paragraphStyles?.[`heading${a}`],o={text:n,heading:r[a]||Mo.HEADING_1};return i?.paragraph?.alignment==="center"&&(o.alignment=tt.CENTER),new pt(o)}async convertParagraph(t,r={}){let n=await this.inlineConverter.convertInlineNodes(t.children||[],r),a=this.themeStyles?.default?.paragraph?.spacing||{before:0,after:200,line:276};return new pt({children:n.length>0?n:void 0,text:n.length===0?"":void 0,spacing:{before:a.before,after:a.after,line:a.line},alignment:tt.LEFT})}convertCodeBlock(t,r=0,n=0){let a=this.codeHighlighter.getHighlightedRunsForCode(t.value??"",t.lang),i=this.themeStyles?.characterStyles?.code?.background||"F6F8FA",o=200,l=(r>0?$t(.5*r):0)+o,c=n>0?300*n:0,u=o+c;return new pt({children:a,wordWrap:!0,alignment:tt.LEFT,spacing:{before:200,after:200,line:276},shading:{fill:i},indent:{left:l,right:u},border:{top:{color:"E1E4E8",space:10,style:Ct.SINGLE,size:6},bottom:{color:"E1E4E8",space:10,style:Ct.SINGLE,size:6},left:{color:"E1E4E8",space:10,style:Ct.SINGLE,size:6},right:{color:"E1E4E8",space:10,style:Ct.SINGLE,size:6}}})}convertHtml(t){return new pt({children:[new Et({text:"[HTML Content]",italics:!0,color:"666666"})],alignment:tt.LEFT,spacing:{before:120,after:120}})}convertThematicBreak(){return this.docxHrAsPageBreak?new pt({pageBreakBefore:!0,children:[new Et({text:"",size:1})],spacing:{before:0,after:0,line:1,lineRule:"exact"},alignment:tt.LEFT}):new pt({text:"",alignment:tt.LEFT,spacing:{before:300,after:300,line:120,lineRule:"exact"},border:{bottom:{color:"E1E4E8",space:1,style:Ct.SINGLE,size:12}}})}convertMathBlock(t){try{let r=tp(t.value||"");return new pt({children:[r],spacing:{before:120,after:120},alignment:tt.CENTER})}catch(r){console.warn("Math conversion error:",r);let n=this.themeStyles?.characterStyles?.code||{font:"Consolas",size:20};return new pt({children:[new Et({text:t.value||"",font:n.font,size:n.size})],alignment:tt.LEFT,spacing:{before:120,after:120}})}}toAlignmentType(t){if(!t)return;let r=t.trim().toLowerCase();if(!r)return;let a={left:tt.LEFT,center:tt.CENTER,right:tt.RIGHT,justify:tt.JUSTIFIED,justified:tt.JUSTIFIED,start:tt.START,end:tt.END}[r];return a||(Object.values(tt).includes(r)?r:void 0)}toDocumentDefaults(t){let r=t.paragraph?{spacing:t.paragraph.spacing,alignment:this.toAlignmentType(t.paragraph.alignment)}:void 0;return{run:t.run,paragraph:r}}toHeadingStyle(t){let r={spacing:t.paragraph.spacing,alignment:this.toAlignmentType(t.paragraph.alignment)};return{name:t.name,basedOn:t.basedOn,next:t.next,run:t.run,paragraph:r}}async fetchImageAsBuffer(t){if(this.imageCache.has(t))return this.imageCache.get(t);if(t.startsWith("data:")){let a=t.match(/^data:([^;,]+)[^,]*,(.+)$/);if(!a)throw new Error("Invalid data URL format");let i=a[1],o=atob(a[2]),s=new Uint8Array(o.length);for(let c=0;c<o.length;c++)s[c]=o.charCodeAt(c);let l={buffer:s,contentType:i};return this.imageCache.set(t,l),l}let r=this.getDocumentService();if(!r)throw new Error("DocumentService not available - platform not initialized");let n=t.startsWith("http://")||t.startsWith("https://");try{if(n){let a=await r.fetchRemote(t),i=this.guessContentType(t),o={buffer:a,contentType:i};return this.imageCache.set(t,o),o}else{let a=await r.readRelativeFile(t,{binary:!0}),i=atob(a),o=new Uint8Array(i.length);for(let c=0;c<i.length;c++)o[c]=i.charCodeAt(c);let s=this.guessContentType(t),l={buffer:o,contentType:s};return this.imageCache.set(t,l),l}}catch(a){throw new Error(`Failed to fetch image: ${t} - ${a.message}`)}}guessContentType(t){let r=t.split(".").pop()?.toLowerCase().split("?")[0]||"";return{png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",bmp:"image/bmp",webp:"image/webp",svg:"image/svg+xml"}[r]||"image/png"}},F6e=wS;export{he as a,AS as b,_a as c,hT as d,bp as e,Un as f,Op as g,t0 as h,ux as i,gS as j,F6e as k,C9 as l,zL as m,yP as n,jP as o,Cue as p};
367
367
  /*! Bundled license information:
368
368
 
369
369
  mhchemparser/dist/mhchemParser.js:
@@ -0,0 +1 @@
1
+ import{j as a,k as b}from"./chunk-UZ7TETMS.js";export{a as convertPluginResultToDOCX,b as default};