@bigduu/lotus-next 2026.9.13 → 2026.9.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/README.md +36 -7
  2. package/dist/asset-manifest.json +39 -39
  3. package/dist/assets/{CodeBlock-dYUQ9iue.js → CodeBlock-BD0dxoK1.js} +1 -1
  4. package/dist/assets/{Markdown-DBG0vWxL.js → Markdown-DBgPZQmh.js} +2 -2
  5. package/dist/assets/{MermaidChart-U1Z5JCRh.js → MermaidChart-DQmhZUGR.js} +1 -1
  6. package/dist/assets/Root-BEo2vkPq.js +7 -0
  7. package/dist/assets/{Settings-BcsRaEDP.js → Settings-B5mbtM74.js} +1 -1
  8. package/dist/assets/{StreamdownMarkdown-CiLy0KJD.js → StreamdownMarkdown-CNZkpiH5.js} +2 -2
  9. package/dist/assets/{StreamdownMermaid-J7jSRtO6.js → StreamdownMermaid-I-FMxv6d.js} +1 -1
  10. package/dist/assets/html2canvas-0VX6Q4F2.js +1 -0
  11. package/dist/assets/{index-CjY6eMv8.js → index-CetaXSQl.js} +2 -2
  12. package/dist/assets/{renderPdf-DbvJnEQL.js → renderPdf-BHOiVXVS.js} +3 -3
  13. package/dist/assets/{select-DYBAIyVx.js → select-BQoctDKH.js} +21 -21
  14. package/dist/assets/{strictConfig-Bf8nyKvx.js → strictConfig-DWxLgSCr.js} +1 -1
  15. package/dist/assets/{vendor-highlighter-ClvlgmIK.js → vendor-highlighter-BcgzBkPn.js} +1 -1
  16. package/dist/assets/{vendor-mermaid-Da_wWrs4.js → vendor-mermaid-CLYBA7Ke.js} +1 -1
  17. package/dist/assets/{vendor-streamdown-BIRX7zKm.js → vendor-streamdown-BLuMYZXO.js} +1 -1
  18. package/dist/assets/{vendor-streamdown-code-B6SuuZwa.js → vendor-streamdown-code-DslGaU_r.js} +1 -1
  19. package/dist/bundle-ownership.json +16 -16
  20. package/dist/index.html +1 -1
  21. package/dist/lotus-next-manifest.json +40 -40
  22. package/package.json +2 -1
  23. package/dist/assets/Root-dWsRRTlH.js +0 -7
  24. package/dist/assets/html2canvas-ChX2ETZ3.js +0 -1
package/README.md CHANGED
@@ -34,7 +34,7 @@ the migration and its declared rollback window has ended.
34
34
  - Streaming messages, reasoning, tools, tasks, budgets, sub-agents, Markdown, syntax highlighting, Mermaid, images, and approval or question dialogs.
35
35
  - Session navigation, live account reconciliation, drafts, pending-question restoration, Markdown/PDF export, and a desktop split view with a second interactive chat pane.
36
36
  - Responsive desktop and mobile layouts, light/dark/system themes, simple/advanced modes, and a graphics-safe mode for constrained environments.
37
- - Fifteen settings tabs: General, Providers, MCP, Plugins, Skills, Permissions, Environment, Schedules, Notifications, Masking, Prompts, Workflows, Clusters, Metrics, and System.
37
+ - Sixteen settings tabs: General, Providers, MCP, Plugins, Skills, Permissions, Environment, Schedules, Notifications, Masking, Prompts, Workflows, Clusters, Metrics, Jiandu memory, and System.
38
38
 
39
39
  ## Internationalization
40
40
 
@@ -62,9 +62,9 @@ embedded hosting while enforcing the canonical `/api/v1` and `/v2/stream`
62
62
  runtime contract. CI retains its HTML report, trace, screenshot, video, and
63
63
  runtime observations when a case fails.
64
64
 
65
- The real-runtime gate is intentionally separate from that deterministic matrix.
66
- It builds a clean checkout of Bamboo revision
67
- `2171e406a18c9f48509f1372560ef6e8c1749eca` into an isolated Docker image,
65
+ The source-built real-runtime gate is intentionally separate from that
66
+ deterministic matrix. It builds a clean checkout of Bamboo revision
67
+ `a8b5385dc4318ab02ba35c0692bdf48914275f6c` into an isolated Docker image,
68
68
  serves the production Lotus Next artifact from that Bamboo process, and drives
69
69
  one complete chat turn through the visible desktop UI and a local deterministic
70
70
  OpenAI-compatible provider. It requires the `auth.ws_hello_ack.v1` bootstrap
@@ -73,9 +73,9 @@ the initial page and a fresh browser context, proving that exact `hello` is
73
73
  acknowledged by exact `welcome` before any subscription is sent. The provider
74
74
  shares Bamboo's test-owned network
75
75
  namespace and listens only on that namespace's loopback interface; only Bamboo's
76
- HTTP listener is published on a random host-loopback port. The provider writes
77
- redacted observations atomically to a test-owned bind mount instead of exposing
78
- its own API to the host.
76
+ HTTP or in-process rustls TLS listener is published on a random host-loopback
77
+ port. The provider writes redacted observations atomically to a test-owned bind
78
+ mount instead of exposing its own API to the host.
79
79
  Both Bamboo data and its Jiandu home stay inside a separate
80
80
  test-owned temporary `/data` mount, so the lane never reads the workstation's
81
81
  live Bamboo or Jiandu state. To run it locally, provide the absolute path to a
@@ -93,6 +93,35 @@ containers, private network, temporary image, observation mount, and data root
93
93
  it created. CI runs this single desktop lane once on Node 22; it does not repeat
94
94
  it across the mock suite's viewport/runtime matrix.
95
95
 
96
+ The published-artifact acceptance is a second real-runtime lane. It downloads
97
+ `@bigduu/lotus-next@2026.9.14` from the public npm registry into a fresh cache
98
+ with lifecycle scripts disabled, then requires the committed SHA-1, SHA-512
99
+ integrity, manifest SHA-256, resource-set digest, 34-resource inventory, and
100
+ source revision `ae17b50574ccd86395cbc226b50c9fb2f0f51e0f`. It refuses any
101
+ different artifact before launching Bamboo. The same verified bytes are tested
102
+ first through native loopback HTTP and then through Bamboo's own HTTPS/WSS
103
+ listener using an ephemeral one-day certificate for `remote.lotus.test`.
104
+ Desktop, tablet, and phone viewports must keep the shell, settings, and composer
105
+ usable while every application request remains same-origin on canonical
106
+ `/api/v1` and the single `/v2/stream` WebSocket.
107
+
108
+ Run the immutable public-artifact lane with the same clean Bamboo checkout:
109
+
110
+ ```bash
111
+ BAMBOO_E2E_SOURCE_DIR=/absolute/path/to/bamboo \
112
+ npm run test:e2e:published-bamboo
113
+ ```
114
+
115
+ This command additionally requires `openssl`. It creates no public tunnel: the
116
+ named remote topology resolves only to `127.0.0.1`, and the self-signed
117
+ certificate is trusted only by the ephemeral test processes. It proves the
118
+ browser contract and responsive viewports, not a physical-device or
119
+ public-network path. HTML reports and Playwright artifacts are written to the
120
+ `playwright-report-real-bamboo-{local,remote}` and
121
+ `test-results-real-bamboo-{local,remote}` directories; runtime identity and
122
+ redacted observations remain under `test-results-real-bamboo/{local,remote}`.
123
+ CI uploads all three evidence roots even when a lane fails.
124
+
96
125
  `npm run pack:check` rebuilds the app, asks npm for the exact dry-run tarball
97
126
  manifest, and rejects anything outside `dist/` plus npm's required package
98
127
  metadata. Every build also writes `dist/lotus-next-manifest.json`. That
@@ -27,8 +27,8 @@
27
27
  "file": "assets/rolldown-runtime-QTnfLwEv.js",
28
28
  "name": "rolldown-runtime"
29
29
  },
30
- "_select-DYBAIyVx.js": {
31
- "file": "assets/select-DYBAIyVx.js",
30
+ "_select-BQoctDKH.js": {
31
+ "file": "assets/select-BQoctDKH.js",
32
32
  "name": "select",
33
33
  "imports": [
34
34
  "_rolldown-runtime-QTnfLwEv.js",
@@ -41,19 +41,19 @@
41
41
  "src/shared/i18n/resources/zh-CN.ts"
42
42
  ]
43
43
  },
44
- "_strictConfig-Bf8nyKvx.js": {
45
- "file": "assets/strictConfig-Bf8nyKvx.js",
44
+ "_strictConfig-DWxLgSCr.js": {
45
+ "file": "assets/strictConfig-DWxLgSCr.js",
46
46
  "name": "strictConfig",
47
47
  "imports": [
48
- "_vendor-mermaid-Da_wWrs4.js"
48
+ "_vendor-mermaid-CLYBA7Ke.js"
49
49
  ]
50
50
  },
51
51
  "_unsupportedIterableToArray-BTCP7Haa.js": {
52
52
  "file": "assets/unsupportedIterableToArray-BTCP7Haa.js",
53
53
  "name": "unsupportedIterableToArray"
54
54
  },
55
- "_vendor-highlighter-ClvlgmIK.js": {
56
- "file": "assets/vendor-highlighter-ClvlgmIK.js",
55
+ "_vendor-highlighter-BcgzBkPn.js": {
56
+ "file": "assets/vendor-highlighter-BcgzBkPn.js",
57
57
  "name": "vendor-highlighter",
58
58
  "imports": [
59
59
  "_rolldown-runtime-QTnfLwEv.js",
@@ -64,7 +64,7 @@
64
64
  "src/components/chat/CodeBlock.tsx"
65
65
  ],
66
66
  "dynamicImports": [
67
- "_vendor-highlighter-ClvlgmIK.js"
67
+ "_vendor-highlighter-BcgzBkPn.js"
68
68
  ]
69
69
  },
70
70
  "_vendor-markdown-CfSBref-.js": {
@@ -76,15 +76,15 @@
76
76
  "_lib-CFLxRXs3.js"
77
77
  ]
78
78
  },
79
- "_vendor-mermaid-Da_wWrs4.js": {
80
- "file": "assets/vendor-mermaid-Da_wWrs4.js",
79
+ "_vendor-mermaid-CLYBA7Ke.js": {
80
+ "file": "assets/vendor-mermaid-CLYBA7Ke.js",
81
81
  "name": "vendor-mermaid",
82
82
  "imports": [
83
83
  "_rolldown-runtime-QTnfLwEv.js",
84
84
  "index.html"
85
85
  ],
86
86
  "dynamicImports": [
87
- "_vendor-mermaid-Da_wWrs4.js"
87
+ "_vendor-mermaid-CLYBA7Ke.js"
88
88
  ]
89
89
  },
90
90
  "_vendor-react-CCIEwYL0.js": {
@@ -94,8 +94,8 @@
94
94
  "_rolldown-runtime-QTnfLwEv.js"
95
95
  ]
96
96
  },
97
- "_vendor-streamdown-BIRX7zKm.js": {
98
- "file": "assets/vendor-streamdown-BIRX7zKm.js",
97
+ "_vendor-streamdown-BLuMYZXO.js": {
98
+ "file": "assets/vendor-streamdown-BLuMYZXO.js",
99
99
  "name": "vendor-streamdown",
100
100
  "imports": [
101
101
  "_rolldown-runtime-QTnfLwEv.js",
@@ -106,7 +106,7 @@
106
106
  "_lib-CFLxRXs3.js"
107
107
  ],
108
108
  "dynamicImports": [
109
- "_vendor-streamdown-BIRX7zKm.js"
109
+ "_vendor-streamdown-BLuMYZXO.js"
110
110
  ],
111
111
  "css": [
112
112
  "assets/vendor-streamdown-CXvuy5h3.css"
@@ -116,8 +116,8 @@
116
116
  "file": "assets/vendor-streamdown-CXvuy5h3.css",
117
117
  "src": "_vendor-streamdown-CXvuy5h3.css"
118
118
  },
119
- "_vendor-streamdown-code-B6SuuZwa.js": {
120
- "file": "assets/vendor-streamdown-code-B6SuuZwa.js",
119
+ "_vendor-streamdown-code-DslGaU_r.js": {
120
+ "file": "assets/vendor-streamdown-code-DslGaU_r.js",
121
121
  "name": "vendor-streamdown-code",
122
122
  "imports": [
123
123
  "_rolldown-runtime-QTnfLwEv.js",
@@ -125,11 +125,11 @@
125
125
  "_vendor-markdown-CfSBref-.js"
126
126
  ],
127
127
  "dynamicImports": [
128
- "_vendor-streamdown-code-B6SuuZwa.js"
128
+ "_vendor-streamdown-code-DslGaU_r.js"
129
129
  ]
130
130
  },
131
131
  "index.html": {
132
- "file": "assets/index-CjY6eMv8.js",
132
+ "file": "assets/index-CetaXSQl.js",
133
133
  "name": "index",
134
134
  "src": "index.html",
135
135
  "isEntry": true,
@@ -156,7 +156,7 @@
156
156
  ]
157
157
  },
158
158
  "node_modules/html2canvas/dist/html2canvas.js": {
159
- "file": "assets/html2canvas-ChX2ETZ3.js",
159
+ "file": "assets/html2canvas-0VX6Q4F2.js",
160
160
  "name": "html2canvas",
161
161
  "src": "node_modules/html2canvas/dist/html2canvas.js",
162
162
  "isDynamicEntry": true,
@@ -165,7 +165,7 @@
165
165
  ]
166
166
  },
167
167
  "src/Root.tsx": {
168
- "file": "assets/Root-dWsRRTlH.js",
168
+ "file": "assets/Root-BEo2vkPq.js",
169
169
  "name": "Root",
170
170
  "src": "src/Root.tsx",
171
171
  "isDynamicEntry": true,
@@ -174,7 +174,7 @@
174
174
  "_vendor-react-CCIEwYL0.js",
175
175
  "index.html",
176
176
  "_ErrorBoundary-DLCRl4Er.js",
177
- "_select-DYBAIyVx.js"
177
+ "_select-BQoctDKH.js"
178
178
  ],
179
179
  "dynamicImports": [
180
180
  "src/components/chat/Settings.tsx",
@@ -184,7 +184,7 @@
184
184
  ]
185
185
  },
186
186
  "src/components/chat/CodeBlock.tsx": {
187
- "file": "assets/CodeBlock-dYUQ9iue.js",
187
+ "file": "assets/CodeBlock-BD0dxoK1.js",
188
188
  "name": "CodeBlock",
189
189
  "src": "src/components/chat/CodeBlock.tsx",
190
190
  "isDynamicEntry": true,
@@ -193,11 +193,11 @@
193
193
  "_vendor-react-CCIEwYL0.js",
194
194
  "_defineProperty-o0OkIQd4.js",
195
195
  "_unsupportedIterableToArray-BTCP7Haa.js",
196
- "_vendor-highlighter-ClvlgmIK.js"
196
+ "_vendor-highlighter-BcgzBkPn.js"
197
197
  ]
198
198
  },
199
199
  "src/components/chat/Markdown.tsx": {
200
- "file": "assets/Markdown-DBG0vWxL.js",
200
+ "file": "assets/Markdown-DBgPZQmh.js",
201
201
  "name": "Markdown",
202
202
  "src": "src/components/chat/Markdown.tsx",
203
203
  "isDynamicEntry": true,
@@ -214,19 +214,19 @@
214
214
  ]
215
215
  },
216
216
  "src/components/chat/MermaidChart.tsx": {
217
- "file": "assets/MermaidChart-U1Z5JCRh.js",
217
+ "file": "assets/MermaidChart-DQmhZUGR.js",
218
218
  "name": "MermaidChart",
219
219
  "src": "src/components/chat/MermaidChart.tsx",
220
220
  "isDynamicEntry": true,
221
221
  "imports": [
222
222
  "_rolldown-runtime-QTnfLwEv.js",
223
223
  "_vendor-react-CCIEwYL0.js",
224
- "_vendor-mermaid-Da_wWrs4.js",
225
- "_strictConfig-Bf8nyKvx.js"
224
+ "_vendor-mermaid-CLYBA7Ke.js",
225
+ "_strictConfig-DWxLgSCr.js"
226
226
  ]
227
227
  },
228
228
  "src/components/chat/Settings.tsx": {
229
- "file": "assets/Settings-BcsRaEDP.js",
229
+ "file": "assets/Settings-B5mbtM74.js",
230
230
  "name": "Settings",
231
231
  "src": "src/components/chat/Settings.tsx",
232
232
  "isDynamicEntry": true,
@@ -235,11 +235,11 @@
235
235
  "_vendor-react-CCIEwYL0.js",
236
236
  "index.html",
237
237
  "_ErrorBoundary-DLCRl4Er.js",
238
- "_select-DYBAIyVx.js"
238
+ "_select-BQoctDKH.js"
239
239
  ]
240
240
  },
241
241
  "src/components/chat/StreamdownMarkdown.tsx": {
242
- "file": "assets/StreamdownMarkdown-CiLy0KJD.js",
242
+ "file": "assets/StreamdownMarkdown-CNZkpiH5.js",
243
243
  "name": "StreamdownMarkdown",
244
244
  "src": "src/components/chat/StreamdownMarkdown.tsx",
245
245
  "isDynamicEntry": true,
@@ -248,28 +248,28 @@
248
248
  "_vendor-react-CCIEwYL0.js",
249
249
  "index.html",
250
250
  "_vendor-markdown-CfSBref-.js",
251
- "_vendor-streamdown-BIRX7zKm.js",
251
+ "_vendor-streamdown-BLuMYZXO.js",
252
252
  "_ErrorBoundary-DLCRl4Er.js"
253
253
  ],
254
254
  "dynamicImports": [
255
- "_vendor-streamdown-code-B6SuuZwa.js",
255
+ "_vendor-streamdown-code-DslGaU_r.js",
256
256
  "src/components/chat/StreamdownMermaid.tsx"
257
257
  ]
258
258
  },
259
259
  "src/components/chat/StreamdownMermaid.tsx": {
260
- "file": "assets/StreamdownMermaid-J7jSRtO6.js",
260
+ "file": "assets/StreamdownMermaid-I-FMxv6d.js",
261
261
  "name": "StreamdownMermaid",
262
262
  "src": "src/components/chat/StreamdownMermaid.tsx",
263
263
  "isDynamicEntry": true,
264
264
  "imports": [
265
265
  "_rolldown-runtime-QTnfLwEv.js",
266
266
  "_vendor-react-CCIEwYL0.js",
267
- "_vendor-mermaid-Da_wWrs4.js",
268
- "_strictConfig-Bf8nyKvx.js"
267
+ "_vendor-mermaid-CLYBA7Ke.js",
268
+ "_strictConfig-DWxLgSCr.js"
269
269
  ]
270
270
  },
271
271
  "src/lib/export/renderPdf.tsx": {
272
- "file": "assets/renderPdf-DbvJnEQL.js",
272
+ "file": "assets/renderPdf-BHOiVXVS.js",
273
273
  "name": "renderPdf",
274
274
  "src": "src/lib/export/renderPdf.tsx",
275
275
  "isDynamicEntry": true,
@@ -277,14 +277,14 @@
277
277
  "_rolldown-runtime-QTnfLwEv.js",
278
278
  "_vendor-react-CCIEwYL0.js",
279
279
  "index.html",
280
- "_vendor-mermaid-Da_wWrs4.js",
280
+ "_vendor-mermaid-CLYBA7Ke.js",
281
281
  "_vendor-markdown-CfSBref-.js",
282
282
  "_unsupportedIterableToArray-BTCP7Haa.js",
283
- "_strictConfig-Bf8nyKvx.js"
283
+ "_strictConfig-DWxLgSCr.js"
284
284
  ],
285
285
  "dynamicImports": [
286
286
  "src/lib/export/renderPdf.tsx",
287
- "_vendor-mermaid-Da_wWrs4.js",
287
+ "_vendor-mermaid-CLYBA7Ke.js",
288
288
  "node_modules/canvg/lib/index.es.js"
289
289
  ]
290
290
  },
@@ -1,2 +1,2 @@
1
- import{t as e}from"./rolldown-runtime-QTnfLwEv.js";import{t}from"./vendor-react-CCIEwYL0.js";import{n}from"./defineProperty-o0OkIQd4.js";import{n as r,r as i,t as a}from"./unsupportedIterableToArray-BTCP7Haa.js";import{n as o,t as s}from"./vendor-highlighter-ClvlgmIK.js";function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(null,arguments)}function l(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function u(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,`value`in i&&(i.writable=!0),Object.defineProperty(e,n(i.key),i)}}function d(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function p(e,t){if(t&&(i(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return f(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function g(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}var _=e(((e,t)=>{function n(e,t){this.v=e,this.k=t}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),v=e(((e,t)=>{function n(e,r,i,a){var o=Object.defineProperty;try{o({},``,{})}catch{o=0}t.exports=n=function(e,t,r,i){function a(t,r){n(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!i,configurable:!i,writable:!i}):e[t]=r:(a(`next`,0),a(`throw`,1),a(`return`,2))},t.exports.__esModule=!0,t.exports.default=t.exports,n(e,r,i,a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),y=e(((e,t)=>{var n=v();function r(){var e,i,a=typeof Symbol==`function`?Symbol:{},o=a.iterator||`@@iterator`,s=a.toStringTag||`@@toStringTag`;function c(t,r,a,o){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return n(c,`_invoke`,function(t,n,r){var a,o,s,c=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,o=0,s=e,f.n=n,l}};function p(t,n){for(o=t,s=n,i=0;!d&&c&&!r&&i<u.length;i++){var r,a=u[i],p=f.p,m=a[2];t>3?(r=m===n)&&(s=a[(o=a[4])?5:(o=3,3)],a[4]=a[5]=e):a[0]<=p&&((r=t<2&&p<a[1])?(o=0,f.v=n,f.n=a[1]):p<m&&(r=t<3||a[0]>n||n>m)&&(a[4]=t,a[5]=n,f.n=m,o=0))}if(r||t>1)return l;throw d=!0,n}return function(r,u,m){if(c>1)throw TypeError(`Generator is already running`);for(d&&u===1&&p(u,m),o=u,s=m;(i=o<2?e:s)||!d;){a||(o?o<3?(o>1&&(f.n=-1),p(o,s)):f.n=s:f.v=s);try{if(c=2,a){if(o||(r=`next`),i=a[r]){if(!(i=i.call(a,s)))throw TypeError(`iterator result is not an object`);if(!i.done)return i;s=i.value,o<2&&(o=0)}else o===1&&(i=a.return)&&i.call(a),o<2&&(s=TypeError(`The iterator does not provide a '`+r+`' method`),o=1);a=e}else if((i=(d=f.n<0)?s:t.call(n,f))!==l)break}catch(t){a=e,o=1,s=t}finally{c=1}}return{value:i,done:d}}}(t,a,o),!0),c}var l={};function u(){}function d(){}function f(){}i=Object.getPrototypeOf;var p=[][o]?i(i([][o]())):(n(i={},o,function(){return this}),i),m=f.prototype=u.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,n(e,s,`GeneratorFunction`)),e.prototype=Object.create(m),e}return d.prototype=f,n(m,`constructor`,f),n(f,`constructor`,d),d.displayName=`GeneratorFunction`,n(f,s,`GeneratorFunction`),n(m),n(m,s,`Generator`),n(m,o,function(){return this}),n(m,`toString`,function(){return`[object Generator]`}),(t.exports=r=function(){return{w:c,m:h}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})),b=e(((e,t)=>{var n=_(),r=v();function i(e,t){function a(r,i,o,s){try{var c=e[r](i),l=c.value;return l instanceof n?t.resolve(l.v).then(function(e){a(`next`,e,o,s)},function(e){a(`throw`,e,o,s)}):t.resolve(l).then(function(e){c.value=e,o(c)},function(e){return a(`throw`,e,o,s)})}catch(e){s(e)}}var o;this.next||(r(i.prototype),r(i.prototype,typeof Symbol==`function`&&Symbol.asyncIterator||`@asyncIterator`,function(){return this})),r(this,`_invoke`,function(e,n,r){function i(){return new t(function(t,n){a(e,r,t,n)})}return o=o?o.then(i,i):i()},!0)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports})),x=e(((e,t)=>{var n=y(),r=b();function i(e,t,i,a,o){return new r(n().w(e,t,i,a),o||Promise)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports})),S=e(((e,t)=>{var n=x();function r(e,t,r,i,a){var o=n(e,t,r,i,a);return o.next().then(function(e){return e.done?e.value:o.next()})}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})),C=e(((e,t)=>{function n(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),w=e(((e,t)=>{function n(e){"@babel/helpers - typeof";return t.exports=n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),T=e(((e,t)=>{var n=w().default;function r(e){if(e!=null){var t=e[typeof Symbol==`function`&&Symbol.iterator||`@@iterator`],r=0;if(t)return t.call(e);if(typeof e.next==`function`)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw TypeError(n(e)+` is not iterable`)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})),E=e(((e,t)=>{var n=_(),r=y(),i=S(),a=x(),o=b(),s=C(),c=T();function l(){var e=r(),u=e.m(l),d=(Object.getPrototypeOf?Object.getPrototypeOf(u):u.__proto__).constructor;function f(e){var t=typeof e==`function`&&e.constructor;return!!t&&(t===d||(t.displayName||t.name)===`GeneratorFunction`)}var p={throw:1,return:2,break:3,continue:3};function m(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,p[e],t)},delegateYield:function(e,i,a){return t.resultName=i,n(r.d,c(e),a)},finish:function(e){return n(r.f,e)}},n=function(e,n,i){r.p=t.prev,r.n=t.next;try{return e(n,i)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(t.exports=l=function(){return{wrap:function(t,n,r,i){return e.w(m(t),n,r,i&&i.reverse())},isGeneratorFunction:f,mark:e.m,awrap:function(e,t){return new n(e,t)},AsyncIterator:o,async:function(e,t,n,r,o){return(f(t)?a:i)(m(e),t,n,r,o)},keys:s,values:c}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=l,t.exports.__esModule=!0,t.exports.default=t.exports})),D=e(((e,t)=>{var n=E()();t.exports=n;try{regeneratorRuntime=n}catch{typeof globalThis==`object`?globalThis.regeneratorRuntime=n:Function(`r`,`regeneratorRuntime = r`)(n)}}));function O(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function k(e,t){if(e==null)return{};var n,r,i=O(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function A(e){if(Array.isArray(e))return r(e)}function j(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function M(){throw TypeError(`Invalid attempt to spread non-iterable instance.
1
+ import{t as e}from"./rolldown-runtime-QTnfLwEv.js";import{t}from"./vendor-react-CCIEwYL0.js";import{n}from"./defineProperty-o0OkIQd4.js";import{n as r,r as i,t as a}from"./unsupportedIterableToArray-BTCP7Haa.js";import{n as o,t as s}from"./vendor-highlighter-BcgzBkPn.js";function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(null,arguments)}function l(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function u(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,`value`in i&&(i.writable=!0),Object.defineProperty(e,n(i.key),i)}}function d(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function p(e,t){if(t&&(i(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return f(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function g(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}var _=e(((e,t)=>{function n(e,t){this.v=e,this.k=t}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),v=e(((e,t)=>{function n(e,r,i,a){var o=Object.defineProperty;try{o({},``,{})}catch{o=0}t.exports=n=function(e,t,r,i){function a(t,r){n(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!i,configurable:!i,writable:!i}):e[t]=r:(a(`next`,0),a(`throw`,1),a(`return`,2))},t.exports.__esModule=!0,t.exports.default=t.exports,n(e,r,i,a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),y=e(((e,t)=>{var n=v();function r(){var e,i,a=typeof Symbol==`function`?Symbol:{},o=a.iterator||`@@iterator`,s=a.toStringTag||`@@toStringTag`;function c(t,r,a,o){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return n(c,`_invoke`,function(t,n,r){var a,o,s,c=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,o=0,s=e,f.n=n,l}};function p(t,n){for(o=t,s=n,i=0;!d&&c&&!r&&i<u.length;i++){var r,a=u[i],p=f.p,m=a[2];t>3?(r=m===n)&&(s=a[(o=a[4])?5:(o=3,3)],a[4]=a[5]=e):a[0]<=p&&((r=t<2&&p<a[1])?(o=0,f.v=n,f.n=a[1]):p<m&&(r=t<3||a[0]>n||n>m)&&(a[4]=t,a[5]=n,f.n=m,o=0))}if(r||t>1)return l;throw d=!0,n}return function(r,u,m){if(c>1)throw TypeError(`Generator is already running`);for(d&&u===1&&p(u,m),o=u,s=m;(i=o<2?e:s)||!d;){a||(o?o<3?(o>1&&(f.n=-1),p(o,s)):f.n=s:f.v=s);try{if(c=2,a){if(o||(r=`next`),i=a[r]){if(!(i=i.call(a,s)))throw TypeError(`iterator result is not an object`);if(!i.done)return i;s=i.value,o<2&&(o=0)}else o===1&&(i=a.return)&&i.call(a),o<2&&(s=TypeError(`The iterator does not provide a '`+r+`' method`),o=1);a=e}else if((i=(d=f.n<0)?s:t.call(n,f))!==l)break}catch(t){a=e,o=1,s=t}finally{c=1}}return{value:i,done:d}}}(t,a,o),!0),c}var l={};function u(){}function d(){}function f(){}i=Object.getPrototypeOf;var p=[][o]?i(i([][o]())):(n(i={},o,function(){return this}),i),m=f.prototype=u.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,n(e,s,`GeneratorFunction`)),e.prototype=Object.create(m),e}return d.prototype=f,n(m,`constructor`,f),n(f,`constructor`,d),d.displayName=`GeneratorFunction`,n(f,s,`GeneratorFunction`),n(m),n(m,s,`Generator`),n(m,o,function(){return this}),n(m,`toString`,function(){return`[object Generator]`}),(t.exports=r=function(){return{w:c,m:h}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})),b=e(((e,t)=>{var n=_(),r=v();function i(e,t){function a(r,i,o,s){try{var c=e[r](i),l=c.value;return l instanceof n?t.resolve(l.v).then(function(e){a(`next`,e,o,s)},function(e){a(`throw`,e,o,s)}):t.resolve(l).then(function(e){c.value=e,o(c)},function(e){return a(`throw`,e,o,s)})}catch(e){s(e)}}var o;this.next||(r(i.prototype),r(i.prototype,typeof Symbol==`function`&&Symbol.asyncIterator||`@asyncIterator`,function(){return this})),r(this,`_invoke`,function(e,n,r){function i(){return new t(function(t,n){a(e,r,t,n)})}return o=o?o.then(i,i):i()},!0)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports})),x=e(((e,t)=>{var n=y(),r=b();function i(e,t,i,a,o){return new r(n().w(e,t,i,a),o||Promise)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports})),S=e(((e,t)=>{var n=x();function r(e,t,r,i,a){var o=n(e,t,r,i,a);return o.next().then(function(e){return e.done?e.value:o.next()})}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})),C=e(((e,t)=>{function n(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),w=e(((e,t)=>{function n(e){"@babel/helpers - typeof";return t.exports=n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),T=e(((e,t)=>{var n=w().default;function r(e){if(e!=null){var t=e[typeof Symbol==`function`&&Symbol.iterator||`@@iterator`],r=0;if(t)return t.call(e);if(typeof e.next==`function`)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw TypeError(n(e)+` is not iterable`)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})),E=e(((e,t)=>{var n=_(),r=y(),i=S(),a=x(),o=b(),s=C(),c=T();function l(){var e=r(),u=e.m(l),d=(Object.getPrototypeOf?Object.getPrototypeOf(u):u.__proto__).constructor;function f(e){var t=typeof e==`function`&&e.constructor;return!!t&&(t===d||(t.displayName||t.name)===`GeneratorFunction`)}var p={throw:1,return:2,break:3,continue:3};function m(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,p[e],t)},delegateYield:function(e,i,a){return t.resultName=i,n(r.d,c(e),a)},finish:function(e){return n(r.f,e)}},n=function(e,n,i){r.p=t.prev,r.n=t.next;try{return e(n,i)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(t.exports=l=function(){return{wrap:function(t,n,r,i){return e.w(m(t),n,r,i&&i.reverse())},isGeneratorFunction:f,mark:e.m,awrap:function(e,t){return new n(e,t)},AsyncIterator:o,async:function(e,t,n,r,o){return(f(t)?a:i)(m(e),t,n,r,o)},keys:s,values:c}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=l,t.exports.__esModule=!0,t.exports.default=t.exports})),D=e(((e,t)=>{var n=E()();t.exports=n;try{regeneratorRuntime=n}catch{typeof globalThis==`object`?globalThis.regeneratorRuntime=n:Function(`r`,`regeneratorRuntime = r`)(n)}}));function O(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function k(e,t){if(e==null)return{};var n,r,i=O(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function A(e){if(Array.isArray(e))return r(e)}function j(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function M(){throw TypeError(`Invalid attempt to spread non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function N(e){return A(e)||j(e)||a(e)||M()}var P=t();function F({language:e,value:t}){return(0,P.jsx)(o,{language:e,style:s,PreTag:`div`,customStyle:{margin:0,background:`transparent`,padding:`0.75rem`,whiteSpace:`pre-wrap`,wordBreak:`break-word`,overflowWrap:`anywhere`},wrapLongLines:!0,codeTagProps:{style:{fontSize:`inherit`,whiteSpace:`pre-wrap`}},children:t})}export{m as a,l as c,F as default,g as i,c as l,k as n,p as o,D as r,d as s,N as t};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CodeBlock-dYUQ9iue.js","./rolldown-runtime-QTnfLwEv.js","./vendor-react-CCIEwYL0.js","./defineProperty-o0OkIQd4.js","./unsupportedIterableToArray-BTCP7Haa.js","./vendor-highlighter-ClvlgmIK.js","./index-CjY6eMv8.js","./index-xUf4TnkE.css","./vendor-markdown-CfSBref-.js","./lib-CFLxRXs3.js","./MermaidChart-U1Z5JCRh.js","./vendor-mermaid-Da_wWrs4.js","./strictConfig-Bf8nyKvx.js"])))=>i.map(i=>d[i]);
2
- import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{i as t,t as n}from"./vendor-react-CCIEwYL0.js";import{t as r}from"./index-CjY6eMv8.js";import{a as i,d as a,u as o}from"./vendor-markdown-CfSBref-.js";import{i as s}from"./ErrorBoundary-DLCRl4Er.js";var c=e(t(),1),l=n(),u=(0,c.lazy)(()=>r(()=>import(`./CodeBlock-dYUQ9iue.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url)),d=(0,c.lazy)(()=>r(()=>import(`./MermaidChart-U1Z5JCRh.js`),__vite__mapDeps([10,1,2,11,6,7,12]),import.meta.url)),f={pre:({children:e})=>(0,l.jsx)(`div`,{className:`my-2 overflow-hidden rounded-lg border text-xs [&>code]:block [&>code]:whitespace-pre-wrap [&>code]:break-words [&>code]:rounded-none [&>code]:bg-transparent [&>code]:p-3 [&>code]:[overflow-wrap:anywhere]`,children:e}),code(e){let{children:t,className:n}=e,r=/language-(\w+)/.exec(n||``),i=String(t).replace(/\n$/,``);return r?r[1]===`mermaid`?(0,l.jsx)(c.Suspense,{fallback:(0,l.jsx)(`pre`,{className:`overflow-x-auto p-3 font-mono text-xs`,children:i}),children:(0,l.jsx)(d,{code:i})}):(0,l.jsx)(c.Suspense,{fallback:(0,l.jsx)(`pre`,{className:`overflow-x-auto p-3 font-mono text-xs`,children:i}),children:(0,l.jsx)(u,{language:r[1],value:i})}):(0,l.jsx)(`code`,{className:`rounded bg-background/70 px-1 py-0.5 text-[0.85em] [overflow-wrap:anywhere]`,children:t})},table:({children:e})=>(0,l.jsx)(`div`,{className:`my-2 w-full overflow-x-auto rounded-lg border`,children:(0,l.jsx)(`table`,{className:`w-full border-collapse text-xs`,children:e})}),thead:({children:e})=>(0,l.jsx)(`thead`,{className:`bg-muted/50`,children:e}),th:({children:e})=>(0,l.jsx)(`th`,{className:`border-b px-3 py-2 text-left align-top font-medium [overflow-wrap:break-word]`,children:e}),td:({children:e})=>(0,l.jsx)(`td`,{className:`border-b border-border/40 px-3 py-2 align-top [overflow-wrap:break-word]`,children:e})};function p({children:e,className:t}){return(0,l.jsx)(`div`,{className:s(`prose prose-sm dark:prose-invert max-w-none [overflow-wrap:anywhere]`,`prose-p:my-2 prose-headings:mt-3 prose-headings:mb-1.5`,`prose-pre:my-0 prose-pre:bg-transparent prose-pre:p-0`,`prose-a:text-primary prose-li:my-0.5`,t),children:(0,l.jsx)(i,{remarkPlugins:[o],rehypePlugins:[a],components:f,children:e})})}var m=(0,c.memo)(p);export{m as Markdown};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CodeBlock-BD0dxoK1.js","./rolldown-runtime-QTnfLwEv.js","./vendor-react-CCIEwYL0.js","./defineProperty-o0OkIQd4.js","./unsupportedIterableToArray-BTCP7Haa.js","./vendor-highlighter-BcgzBkPn.js","./index-CetaXSQl.js","./index-xUf4TnkE.css","./vendor-markdown-CfSBref-.js","./lib-CFLxRXs3.js","./MermaidChart-DQmhZUGR.js","./vendor-mermaid-CLYBA7Ke.js","./strictConfig-DWxLgSCr.js"])))=>i.map(i=>d[i]);
2
+ import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{i as t,t as n}from"./vendor-react-CCIEwYL0.js";import{t as r}from"./index-CetaXSQl.js";import{a as i,d as a,u as o}from"./vendor-markdown-CfSBref-.js";import{i as s}from"./ErrorBoundary-DLCRl4Er.js";var c=e(t(),1),l=n(),u=(0,c.lazy)(()=>r(()=>import(`./CodeBlock-BD0dxoK1.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url)),d=(0,c.lazy)(()=>r(()=>import(`./MermaidChart-DQmhZUGR.js`),__vite__mapDeps([10,1,2,11,6,7,12]),import.meta.url)),f={pre:({children:e})=>(0,l.jsx)(`div`,{className:`my-2 overflow-hidden rounded-lg border text-xs [&>code]:block [&>code]:whitespace-pre-wrap [&>code]:break-words [&>code]:rounded-none [&>code]:bg-transparent [&>code]:p-3 [&>code]:[overflow-wrap:anywhere]`,children:e}),code(e){let{children:t,className:n}=e,r=/language-(\w+)/.exec(n||``),i=String(t).replace(/\n$/,``);return r?r[1]===`mermaid`?(0,l.jsx)(c.Suspense,{fallback:(0,l.jsx)(`pre`,{className:`overflow-x-auto p-3 font-mono text-xs`,children:i}),children:(0,l.jsx)(d,{code:i})}):(0,l.jsx)(c.Suspense,{fallback:(0,l.jsx)(`pre`,{className:`overflow-x-auto p-3 font-mono text-xs`,children:i}),children:(0,l.jsx)(u,{language:r[1],value:i})}):(0,l.jsx)(`code`,{className:`rounded bg-background/70 px-1 py-0.5 text-[0.85em] [overflow-wrap:anywhere]`,children:t})},table:({children:e})=>(0,l.jsx)(`div`,{className:`my-2 w-full overflow-x-auto rounded-lg border`,children:(0,l.jsx)(`table`,{className:`w-full border-collapse text-xs`,children:e})}),thead:({children:e})=>(0,l.jsx)(`thead`,{className:`bg-muted/50`,children:e}),th:({children:e})=>(0,l.jsx)(`th`,{className:`border-b px-3 py-2 text-left align-top font-medium [overflow-wrap:break-word]`,children:e}),td:({children:e})=>(0,l.jsx)(`td`,{className:`border-b border-border/40 px-3 py-2 align-top [overflow-wrap:break-word]`,children:e})};function p({children:e,className:t}){return(0,l.jsx)(`div`,{className:s(`prose prose-sm dark:prose-invert max-w-none [overflow-wrap:anywhere]`,`prose-p:my-2 prose-headings:mt-3 prose-headings:mb-1.5`,`prose-pre:my-0 prose-pre:bg-transparent prose-pre:p-0`,`prose-a:text-primary prose-li:my-0.5`,t),children:(0,l.jsx)(i,{remarkPlugins:[o],rehypePlugins:[a],components:f,children:e})})}var m=(0,c.memo)(p);export{m as Markdown};
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{i as t,t as n}from"./vendor-react-CCIEwYL0.js";import{n as r}from"./vendor-mermaid-Da_wWrs4.js";import{n as i}from"./strictConfig-Bf8nyKvx.js";var a=e(t(),1),o=n(),s=!1;function c(){s||=(i(`app`),!0)}var l=0;function u({code:e}){let t=(0,a.useRef)(null),[n,i]=(0,a.useState)(null);return(0,a.useEffect)(()=>{let n=!1;c();let a=`mmd-${l++}`;return r.render(a,e).then(({svg:e})=>{!n&&t.current&&(t.current.innerHTML=e)}).catch(e=>{n||i(e instanceof Error?e.message:String(e))}),()=>{n=!0}},[e]),n?(0,o.jsx)(`pre`,{className:`overflow-x-auto p-3 font-mono text-xs text-muted-foreground`,children:e}):(0,o.jsx)(`div`,{ref:t,className:`flex justify-center overflow-x-auto py-2 [&_svg]:max-w-full`})}export{u as default};
1
+ import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{i as t,t as n}from"./vendor-react-CCIEwYL0.js";import{n as r}from"./vendor-mermaid-CLYBA7Ke.js";import{n as i}from"./strictConfig-DWxLgSCr.js";var a=e(t(),1),o=n(),s=!1;function c(){s||=(i(`app`),!0)}var l=0;function u({code:e}){let t=(0,a.useRef)(null),[n,i]=(0,a.useState)(null);return(0,a.useEffect)(()=>{let n=!1;c();let a=`mmd-${l++}`;return r.render(a,e).then(({svg:e})=>{!n&&t.current&&(t.current.innerHTML=e)}).catch(e=>{n||i(e instanceof Error?e.message:String(e))}),()=>{n=!0}},[e]),n?(0,o.jsx)(`pre`,{className:`overflow-x-auto p-3 font-mono text-xs text-muted-foreground`,children:e}):(0,o.jsx)(`div`,{ref:t,className:`flex justify-center overflow-x-auto py-2 [&_svg]:max-w-full`})}export{u as default};