@stacksjs/bunpress 0.1.6 → 0.1.7
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/dist/bin/cli.js +1 -1
- package/dist/{chunk-8mywpq4a.js → chunk-6vpj0476.js} +272 -271
- package/dist/{chunk-7z6wzjev.js → chunk-ermd65hf.js} +4 -4
- package/dist/chunk-jd54gjek.js +2 -0
- package/dist/{chunk-eqw9bzek.js → chunk-qbbrq6ra.js} +1 -1
- package/dist/data-loader.d.ts +7 -0
- package/dist/src/index.js +1 -1
- package/dist/stx-components.d.ts +11 -0
- package/dist/templates/features.stx +3 -3
- package/dist/templates/hero.stx +3 -3
- package/dist/templates/layout-doc.stx +19 -19
- package/dist/templates/layout-home.stx +8 -1
- package/dist/templates/layout-page.stx +10 -10
- package/dist/templates/page-toc.stx +8 -8
- package/dist/templates/sidebar-section.stx +4 -4
- package/dist/templates/sidebar.stx +8 -8
- package/dist/themes/vitepress/base.css +1 -1
- package/dist/themes/vitepress/index.d.ts +78 -78
- package/dist/themes/vitepress/index.ts +80 -80
- package/dist/types.d.ts +2 -0
- package/package.json +1 -1
- package/dist/chunk-3kj1ps9z.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{N as
|
|
2
|
+
import{N as C}from"./chunk-43fsk0jg.js";var{Glob:vQ,YAML:kQ}=globalThis.Bun;import{stat as bQ}from"fs/promises";import{join as d}from"path";import S from"process";import{loadConfig as rQ}from"bunfig";var aQ={docsDir:"./docs",outDir:"./dist",theme:"vitepress",nav:[{text:"Guide",link:"/install"},{text:"API",link:"/advanced#api-reference"},{text:"Examples",link:"/examples"}],plugins:[],markdown:{title:"BunPress Documentation",meta:{description:"Documentation built with BunPress",generator:"BunPress",viewport:"width=device-width, initial-scale=1.0"},sidebar:{"/":[{text:"Getting Started",items:[{text:"Introduction",link:"/"},{text:"Installation",link:"/install"},{text:"Quick Start",link:"/quick-start"},{text:"Usage",link:"/usage"},{text:"Configuration",link:"/config"}]},{text:"Core Features",items:[{text:"Features Overview",link:"/features"},{text:"Markdown Extensions",link:"/markdown-extensions"},{text:"Syntax Highlighting",link:"/syntax-highlighting"},{text:"Table of Contents",link:"/table-of-contents"},{text:"CLI Commands",link:"/cli"}]},{text:"SEO & Analytics",items:[{text:"SEO Features",link:"/seo"},{text:"Analytics (Fathom)",link:"/config#fathom-analytics"}]},{text:"Advanced",items:[{text:"Advanced Usage",link:"/advanced"},{text:"Examples",link:"/examples"},{text:"Best Practices",link:"/best-practices"}]},{text:"More",items:[{text:"Showcase",link:"/showcase"},{text:"Partners",link:"/partners"},{text:"License",link:"/license"},{text:"Postcardware",link:"/postcardware"}]}]},css:`
|
|
3
3
|
/* Additional BunPress customizations */
|
|
4
4
|
/* Note: Base styles are provided by the VitePress theme */
|
|
5
5
|
|
|
@@ -1165,13 +1165,13 @@ if (typeof document !== 'undefined') {
|
|
|
1165
1165
|
}
|
|
1166
1166
|
});
|
|
1167
1167
|
}
|
|
1168
|
-
`],preserveDirectoryStructure:!0,features:{inlineFormatting:!0,containers:!0,githubAlerts:!0,codeBlocks:{lineHighlighting:!0,lineNumbers:!0,focus:!0,diffs:!0,errorWarningMarkers:!0},codeGroups:!0,codeImports:!0,inlineToc:!0,customAnchors:!0,emoji:!0,badges:!0,includes:!0,externalLinks:{autoTarget:!0,autoRel:!0,showIcon:!0},imageLazyLoading:!0,tables:{alignment:!0,enhancedStyling:!0,responsive:!0}},syntaxHighlightTheme:"github-light"},verbose:!1,sitemap:{enabled:!0,filename:"sitemap.xml",defaultPriority:0.5,defaultChangefreq:"monthly",maxUrlsPerFile:50000,useSitemapIndex:!1},robots:{enabled:!0,filename:"robots.txt"}},
|
|
1169
|
-
`).map((Y)=>`<span class="line">${
|
|
1168
|
+
`],preserveDirectoryStructure:!0,features:{inlineFormatting:!0,containers:!0,githubAlerts:!0,codeBlocks:{lineHighlighting:!0,lineNumbers:!0,focus:!0,diffs:!0,errorWarningMarkers:!0},codeGroups:!0,codeImports:!0,inlineToc:!0,customAnchors:!0,emoji:!0,badges:!0,includes:!0,externalLinks:{autoTarget:!0,autoRel:!0,showIcon:!0},imageLazyLoading:!0,tables:{alignment:!0,enhancedStyling:!0,responsive:!0}},syntaxHighlightTheme:"github-light"},verbose:!1,sitemap:{enabled:!0,filename:"sitemap.xml",defaultPriority:0.5,defaultChangefreq:"monthly",maxUrlsPerFile:50000,useSitemapIndex:!1},robots:{enabled:!0,filename:"robots.txt"}},L=await rQ({name:"bunpress",alias:"docs",defaultConfig:aQ});async function _0(){return L}var{Glob:oQ}=globalThis.Bun;import{join as _Q}from"path";var x=new Map;function iQ(Q,Z,$){let O=Z.split("."),J=Q;for(let Y=0;Y<O.length-1;Y++){let q=O[Y];if(typeof J[q]!=="object"||J[q]===null)J[q]={};J=J[q]}J[O[O.length-1]]=$}async function VQ(Q){if(x.has(Q))return x.get(Q);let Z={},$=_Q(Q,".data");try{let O=new oQ("**/*.json");for await(let J of O.scan({cwd:$,absolute:!1}))try{let Y=await Bun.file(_Q($,J)).text(),q=J.replace(/\.json$/,"").replace(/[/\\]/g,".");iQ(Z,q,JSON.parse(Y))}catch{}}catch{}return x.set(Q,Z),Z}function zQ(){x.clear()}import{createHighlighter as nQ,highlight as tQ}from"ts-syntax-highlighter";var b=null;function j0(){b=null}async function WQ(){if(b)return b;return b=await nQ({theme:"github-light",cache:!0}),b}var eQ={js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",htm:"html",sh:"bash",shell:"bash",zsh:"bash"};function l(Q){let Z=Q.toLowerCase().trim();return eQ[Z]||Z}function GQ(Q){let Z=l(Q);return["javascript","typescript","html","css","json","stx","bash"].includes(Z)}function u(Q){return Q.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function QZ(Q,Z){let $=/<span[^>]*class="token[^"]*"[^>]*>([^<]*)<\/span>/g,O=[],J;while((J=$.exec(Z))!==null){let X=J[1].replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/�*39;/g,"'");if(X)O.push({text:X,span:J[0]})}if(O.length===0)return Z;let Y="",q=0,K=Q.match(/^(\s*)/);if(K&&K[1])Y+=K[1],q=K[1].length;for(let X=0;X<O.length;X++){let{text:V,span:z}=O[X],_=Q.indexOf(V,q);if(_===-1){Y+=z;continue}if(_>q){let G=Q.substring(q,_);if(/^\s+$/.test(G))Y+=G}Y+=z,q=_+V.length}return Y}async function s(Q,Z,$="github-light"){let O=l(Z);if(!GQ(O))return Q.split(`
|
|
1169
|
+
`).map((Y)=>`<span class="line">${u(Y)}</span>`).join(`
|
|
1170
1170
|
`);try{let J=Q.split(`
|
|
1171
|
-
`);return(await Promise.all(J.map(async(
|
|
1172
|
-
`)}catch(J){return console.warn(`Failed to highlight code for language "${
|
|
1173
|
-
`).map((
|
|
1174
|
-
`)}}function
|
|
1171
|
+
`);return(await Promise.all(J.map(async(q)=>{if(!q.trim())return`<span class="line">${q}</span>`;let X=(await tQ(q,O,{theme:$})).html;if(X=X.replace(/<div[^>]*class="syntax-wrapper"[^>]*>/g,""),X=X.replace(/<\/div>\s*$/g,""),X=X.replace(/<pre[^>]*>/g,""),X=X.replace(/<\/pre>/g,""),X=X.replace(/<code[^>]*>/g,""),X=X.replace(/<\/code>/g,""),X=QZ(q,X.trim()),!X.startsWith('<span class="line">'))X=`<span class="line">${X}</span>`;return X}))).join(`
|
|
1172
|
+
`)}catch(J){return console.warn(`Failed to highlight code for language "${Z}":`,J),Q.split(`
|
|
1173
|
+
`).map((q)=>`<span class="line">${u(q)}</span>`).join(`
|
|
1174
|
+
`)}}function N0(Q,Z){let $=l(Z);if(!GQ($))return u(Q);return u(Q)}function UQ(){return`
|
|
1175
1175
|
/* Basic syntax highlighting styles for ts-syntax-highlighter */
|
|
1176
1176
|
/* The actual theme colors are injected by ts-syntax-highlighter */
|
|
1177
1177
|
|
|
@@ -1281,7 +1281,7 @@ code {
|
|
|
1281
1281
|
color: #9ca3af;
|
|
1282
1282
|
}
|
|
1283
1283
|
}
|
|
1284
|
-
`}async function
|
|
1284
|
+
`}async function E0(){await WQ()}async function R0(){return WQ()}import{renderString as ZZ}from"@stacksjs/stx";import{join as r}from"path";var f=new Map,jQ="\x00BPCODE",NQ="\x00";async function $Z(Q,Z){let $=r(Q,Z);if(f.has($))return f.get($);let O=[r(Q,`${Z}.stx`),r(Q,Z,"index.stx")],J=null;for(let Y of O){let q=Bun.file(Y);if(await q.exists()){J=await q.text();break}}return f.set($,J),J}function EQ(){f.clear()}function JZ(Q,Z){try{let $=Object.keys(Z),O=$.map((J)=>Z[J]);return Function(...$,`"use strict"; return (${Q});`)(...O)}catch{return}}function YZ(Q,Z){let $={};if(!Q)return $;let O=/([:@]?[\w-]+)(?:=(?:"([^"]*)"|'([^']*)'|\{([^}]*)\}))?/g,J;while(J=O.exec(Q)){let Y=J[1];if(!Y)continue;let q=Y.startsWith(":"),K=Y.replace(/^[:@]/,""),X=J[2],V=J[3],z=J[4],_=X??V??z;if(_===void 0)$[K]=!0;else if(q||z!==void 0)$[K]=JZ(_,Z);else $[K]=_}return $}async function a(Q,Z,$,O=0){if(O>10||!Q.includes("<"))return Q;let J=[],Y=Q.replace(/```[\s\S]*?```/g,(_)=>{return J.push(_),`${jQ}${J.length-1}${NQ}`}).replace(/`[^`\n]*`/g,(_)=>{return J.push(_),`${jQ}${J.length-1}${NQ}`}),q=/<([A-Z][A-Za-z0-9]*)((?:\s[^>]*?)?)(\/?)>/g,K="",X=0,V=!1,z;while(z=q.exec(Y)){let _=z[0],G=z[1],U=z[2],j=z[3],W=await $Z(Z,G);if(W==null)continue;V=!0,K+=Y.slice(X,z.index);let E="",N=z.index+_.length;if(!j){let F=new RegExp(`</${G}>`,"g");F.lastIndex=N;let B=F.exec(Y);if(B)E=Y.slice(N,B.index).trim(),N=B.index+B[0].length}let M=YZ(U.trim(),$),A="";try{A=await ZZ(W,{...$,...M,slot:E})}catch{A=""}K+=A,X=N,q.lastIndex=N}if(K+=Y.slice(X),K=K.replace(/\u0000BPCODE(\d+)\u0000/g,(_,G)=>J[Number(G)]??""),V)return a(K,Z,$,O+1);return K}import{join as RQ}from"path";import{renderString as OZ}from"@stacksjs/stx";var XZ=RQ(import.meta.dir,"templates"),p=new Map;async function qZ(Q){if(p.has(Q))return p.get(Q);let Z=RQ(XZ,`${Q}.stx`),$=Bun.file(Z);if(!await $.exists())throw Error(`Template not found: ${Q}`);let O=await $.text();return p.set(Q,O),O}async function KZ(Q,Z){return OZ(Q,Z)}async function P(Q,Z){let $=await qZ(Q);return KZ($,Z)}function AQ(){p.clear()}var FQ=`/**
|
|
1285
1285
|
* VitePress Theme for BunPress - Layout & Chrome
|
|
1286
1286
|
* -------------------------------------------------------------------------- */
|
|
1287
1287
|
|
|
@@ -1289,8 +1289,8 @@ code {
|
|
|
1289
1289
|
min-height: 100vh;
|
|
1290
1290
|
}
|
|
1291
1291
|
|
|
1292
|
-
/*
|
|
1293
|
-
.
|
|
1292
|
+
/* BPNav \u2014 top bar */
|
|
1293
|
+
.BPNav {
|
|
1294
1294
|
position: fixed;
|
|
1295
1295
|
top: 0;
|
|
1296
1296
|
left: 0;
|
|
@@ -1302,7 +1302,7 @@ code {
|
|
|
1302
1302
|
backdrop-filter: saturate(50%) blur(8px);
|
|
1303
1303
|
}
|
|
1304
1304
|
|
|
1305
|
-
.
|
|
1305
|
+
.BPNavBar {
|
|
1306
1306
|
max-width: var(--bp-layout-max-width, 1440px);
|
|
1307
1307
|
margin: 0 auto;
|
|
1308
1308
|
width: 100%;
|
|
@@ -1314,7 +1314,7 @@ code {
|
|
|
1314
1314
|
gap: 24px;
|
|
1315
1315
|
}
|
|
1316
1316
|
|
|
1317
|
-
.
|
|
1317
|
+
.BPNavBarStart {
|
|
1318
1318
|
display: flex;
|
|
1319
1319
|
align-items: center;
|
|
1320
1320
|
gap: 24px;
|
|
@@ -1322,14 +1322,14 @@ code {
|
|
|
1322
1322
|
min-width: 0;
|
|
1323
1323
|
}
|
|
1324
1324
|
|
|
1325
|
-
.
|
|
1325
|
+
.BPNavBarEnd {
|
|
1326
1326
|
display: flex;
|
|
1327
1327
|
align-items: center;
|
|
1328
1328
|
gap: 24px;
|
|
1329
1329
|
flex-shrink: 0;
|
|
1330
1330
|
}
|
|
1331
1331
|
|
|
1332
|
-
.
|
|
1332
|
+
.BPNavBarTitle {
|
|
1333
1333
|
font-size: 16px;
|
|
1334
1334
|
font-weight: 600;
|
|
1335
1335
|
color: var(--bp-c-text-1);
|
|
@@ -1338,18 +1338,18 @@ code {
|
|
|
1338
1338
|
transition: color 0.25s;
|
|
1339
1339
|
}
|
|
1340
1340
|
|
|
1341
|
-
.
|
|
1341
|
+
.BPNavBarTitle:hover {
|
|
1342
1342
|
color: var(--bp-c-brand-1);
|
|
1343
1343
|
}
|
|
1344
1344
|
|
|
1345
|
-
.
|
|
1345
|
+
.BPNavBarMenu {
|
|
1346
1346
|
display: flex;
|
|
1347
1347
|
align-items: center;
|
|
1348
1348
|
gap: 24px;
|
|
1349
1349
|
}
|
|
1350
1350
|
|
|
1351
|
-
.
|
|
1352
|
-
.
|
|
1351
|
+
.BPNavBarMenu a,
|
|
1352
|
+
.BPNavBarMenu .BPNavBarMenu-link {
|
|
1353
1353
|
font-size: 14px;
|
|
1354
1354
|
font-weight: 500;
|
|
1355
1355
|
color: var(--bp-c-text-1);
|
|
@@ -1358,17 +1358,17 @@ code {
|
|
|
1358
1358
|
cursor: pointer;
|
|
1359
1359
|
}
|
|
1360
1360
|
|
|
1361
|
-
.
|
|
1362
|
-
.
|
|
1363
|
-
.
|
|
1361
|
+
.BPNavBarMenu a:hover,
|
|
1362
|
+
.BPNavBarMenu .BPNavBarMenu-link:hover,
|
|
1363
|
+
.BPNavBarMenu a.is-active {
|
|
1364
1364
|
color: var(--bp-c-brand-1);
|
|
1365
1365
|
}
|
|
1366
1366
|
|
|
1367
|
-
.
|
|
1367
|
+
.BPNavBarMenu-group {
|
|
1368
1368
|
position: relative;
|
|
1369
1369
|
}
|
|
1370
1370
|
|
|
1371
|
-
.
|
|
1371
|
+
.BPNavBarMenu-group-button {
|
|
1372
1372
|
display: inline-flex;
|
|
1373
1373
|
align-items: center;
|
|
1374
1374
|
gap: 4px;
|
|
@@ -1383,22 +1383,22 @@ code {
|
|
|
1383
1383
|
transition: color 0.25s;
|
|
1384
1384
|
}
|
|
1385
1385
|
|
|
1386
|
-
.
|
|
1386
|
+
.BPNavBarMenu-group-button:hover {
|
|
1387
1387
|
color: var(--bp-c-brand-1);
|
|
1388
1388
|
}
|
|
1389
1389
|
|
|
1390
|
-
.
|
|
1390
|
+
.BPNavBarMenu-group-button .chevron {
|
|
1391
1391
|
width: 12px;
|
|
1392
1392
|
height: 12px;
|
|
1393
1393
|
flex-shrink: 0;
|
|
1394
1394
|
transition: transform 0.25s;
|
|
1395
1395
|
}
|
|
1396
1396
|
|
|
1397
|
-
.
|
|
1397
|
+
.BPNavBarMenu-group:hover > .BPNavBarMenu-group-button .chevron {
|
|
1398
1398
|
transform: rotate(180deg);
|
|
1399
1399
|
}
|
|
1400
1400
|
|
|
1401
|
-
.
|
|
1401
|
+
.BPNavBarMenu-group-items {
|
|
1402
1402
|
display: none;
|
|
1403
1403
|
position: absolute;
|
|
1404
1404
|
right: 0;
|
|
@@ -1413,11 +1413,11 @@ code {
|
|
|
1413
1413
|
z-index: 10;
|
|
1414
1414
|
}
|
|
1415
1415
|
|
|
1416
|
-
.
|
|
1416
|
+
.BPNavBarMenu-group:hover > .BPNavBarMenu-group-items {
|
|
1417
1417
|
display: block;
|
|
1418
1418
|
}
|
|
1419
1419
|
|
|
1420
|
-
.
|
|
1420
|
+
.BPNavBarMenu-group-items a {
|
|
1421
1421
|
display: block;
|
|
1422
1422
|
padding: 6px 16px;
|
|
1423
1423
|
font-size: 13px;
|
|
@@ -1426,13 +1426,13 @@ code {
|
|
|
1426
1426
|
transition: color 0.25s, background-color 0.25s;
|
|
1427
1427
|
}
|
|
1428
1428
|
|
|
1429
|
-
.
|
|
1429
|
+
.BPNavBarMenu-group-items a:hover {
|
|
1430
1430
|
color: var(--bp-c-brand-1);
|
|
1431
1431
|
background-color: var(--bp-c-bg-soft);
|
|
1432
1432
|
}
|
|
1433
1433
|
|
|
1434
1434
|
/* Search */
|
|
1435
|
-
.
|
|
1435
|
+
.BPNavBarSearch {
|
|
1436
1436
|
position: relative;
|
|
1437
1437
|
display: flex;
|
|
1438
1438
|
align-items: center;
|
|
@@ -1440,7 +1440,7 @@ code {
|
|
|
1440
1440
|
width: 100%;
|
|
1441
1441
|
}
|
|
1442
1442
|
|
|
1443
|
-
.
|
|
1443
|
+
.BPNavBarSearch-icon {
|
|
1444
1444
|
position: absolute;
|
|
1445
1445
|
left: 12px;
|
|
1446
1446
|
width: 16px;
|
|
@@ -1449,7 +1449,7 @@ code {
|
|
|
1449
1449
|
pointer-events: none;
|
|
1450
1450
|
}
|
|
1451
1451
|
|
|
1452
|
-
.
|
|
1452
|
+
.BPNavBarSearch-input {
|
|
1453
1453
|
width: 100%;
|
|
1454
1454
|
height: 32px;
|
|
1455
1455
|
padding: 0 48px 0 36px;
|
|
@@ -1463,17 +1463,17 @@ code {
|
|
|
1463
1463
|
transition: border-color 0.25s, background-color 0.25s;
|
|
1464
1464
|
}
|
|
1465
1465
|
|
|
1466
|
-
.
|
|
1466
|
+
.BPNavBarSearch-input::placeholder {
|
|
1467
1467
|
color: var(--bp-c-text-3);
|
|
1468
1468
|
}
|
|
1469
1469
|
|
|
1470
|
-
.
|
|
1471
|
-
.
|
|
1470
|
+
.BPNavBarSearch-input:hover,
|
|
1471
|
+
.BPNavBarSearch-input:focus {
|
|
1472
1472
|
border-color: var(--bp-c-brand-1);
|
|
1473
1473
|
background-color: var(--bp-c-bg);
|
|
1474
1474
|
}
|
|
1475
1475
|
|
|
1476
|
-
.
|
|
1476
|
+
.BPNavBarSearch-kbd {
|
|
1477
1477
|
position: absolute;
|
|
1478
1478
|
right: 8px;
|
|
1479
1479
|
padding: 2px 6px;
|
|
@@ -1488,7 +1488,7 @@ code {
|
|
|
1488
1488
|
}
|
|
1489
1489
|
|
|
1490
1490
|
/* Social/icon links cluster */
|
|
1491
|
-
.
|
|
1491
|
+
.BPSocialLinks {
|
|
1492
1492
|
display: flex;
|
|
1493
1493
|
align-items: center;
|
|
1494
1494
|
gap: 12px;
|
|
@@ -1496,7 +1496,7 @@ code {
|
|
|
1496
1496
|
border-left: 1px solid var(--bp-c-divider);
|
|
1497
1497
|
}
|
|
1498
1498
|
|
|
1499
|
-
.
|
|
1499
|
+
.BPSocialLinks > a {
|
|
1500
1500
|
display: inline-flex;
|
|
1501
1501
|
align-items: center;
|
|
1502
1502
|
justify-content: center;
|
|
@@ -1507,22 +1507,22 @@ code {
|
|
|
1507
1507
|
transition: color 0.25s, background-color 0.25s;
|
|
1508
1508
|
}
|
|
1509
1509
|
|
|
1510
|
-
.
|
|
1510
|
+
.BPSocialLinks > a:hover {
|
|
1511
1511
|
color: var(--bp-c-text-1);
|
|
1512
1512
|
background-color: var(--bp-c-bg-soft);
|
|
1513
1513
|
}
|
|
1514
1514
|
|
|
1515
|
-
.
|
|
1515
|
+
.BPSocialLinks > a svg {
|
|
1516
1516
|
width: 20px;
|
|
1517
1517
|
height: 20px;
|
|
1518
1518
|
}
|
|
1519
1519
|
|
|
1520
1520
|
/* Content area */
|
|
1521
|
-
.
|
|
1521
|
+
.BPContent {
|
|
1522
1522
|
flex: 1;
|
|
1523
1523
|
}
|
|
1524
1524
|
|
|
1525
|
-
.
|
|
1525
|
+
.BPContent--doc {
|
|
1526
1526
|
position: fixed;
|
|
1527
1527
|
top: var(--bp-nav-height, 64px);
|
|
1528
1528
|
bottom: 0;
|
|
@@ -1531,48 +1531,48 @@ code {
|
|
|
1531
1531
|
right: max(0px, calc((100vw - var(--bp-layout-max-width, 1440px)) / 2));
|
|
1532
1532
|
}
|
|
1533
1533
|
|
|
1534
|
-
.
|
|
1534
|
+
.BPContent--page {
|
|
1535
1535
|
padding-top: var(--bp-nav-height, 64px);
|
|
1536
1536
|
}
|
|
1537
1537
|
|
|
1538
|
-
.
|
|
1538
|
+
.BPDoc {
|
|
1539
1539
|
padding: 32px 24px;
|
|
1540
1540
|
padding-right: 32px;
|
|
1541
1541
|
}
|
|
1542
1542
|
|
|
1543
1543
|
@media (min-width: 1280px) {
|
|
1544
|
-
.
|
|
1544
|
+
.BPDoc {
|
|
1545
1545
|
padding: 48px 32px 128px;
|
|
1546
1546
|
}
|
|
1547
1547
|
}
|
|
1548
1548
|
|
|
1549
|
-
.
|
|
1549
|
+
.BPDocContent {
|
|
1550
1550
|
max-width: 768px;
|
|
1551
1551
|
margin: 0;
|
|
1552
1552
|
}
|
|
1553
1553
|
|
|
1554
|
-
.
|
|
1554
|
+
.BPPage {
|
|
1555
1555
|
padding: 48px 24px;
|
|
1556
1556
|
max-width: 768px;
|
|
1557
1557
|
margin: 0 auto;
|
|
1558
1558
|
}
|
|
1559
1559
|
|
|
1560
1560
|
@media (min-width: 1280px) {
|
|
1561
|
-
.
|
|
1561
|
+
.BPPage {
|
|
1562
1562
|
padding: 64px 32px;
|
|
1563
1563
|
}
|
|
1564
1564
|
}
|
|
1565
1565
|
|
|
1566
1566
|
/* Mobile sidebar drawer behaviour */
|
|
1567
1567
|
@media (max-width: 959px) {
|
|
1568
|
-
.
|
|
1568
|
+
.BPNavBarSearch {
|
|
1569
1569
|
display: none;
|
|
1570
1570
|
}
|
|
1571
|
-
.
|
|
1571
|
+
.BPSocialLinks {
|
|
1572
1572
|
padding-left: 12px;
|
|
1573
1573
|
gap: 8px;
|
|
1574
1574
|
}
|
|
1575
|
-
.
|
|
1575
|
+
.BPNavBarMenu {
|
|
1576
1576
|
display: none;
|
|
1577
1577
|
}
|
|
1578
1578
|
}
|
|
@@ -1581,7 +1581,7 @@ code {
|
|
|
1581
1581
|
* Hero (home layout) \u2014 used by hero.stx + serve.ts generateHero
|
|
1582
1582
|
* -------------------------------------------------------------------------- */
|
|
1583
1583
|
|
|
1584
|
-
.
|
|
1584
|
+
.BPHero-name {
|
|
1585
1585
|
font-size: 20px;
|
|
1586
1586
|
font-weight: 700;
|
|
1587
1587
|
letter-spacing: -0.02em;
|
|
@@ -1593,7 +1593,7 @@ code {
|
|
|
1593
1593
|
background-clip: text;
|
|
1594
1594
|
}
|
|
1595
1595
|
|
|
1596
|
-
.
|
|
1596
|
+
.BPHero-text {
|
|
1597
1597
|
font-size: 40px;
|
|
1598
1598
|
font-weight: 800;
|
|
1599
1599
|
letter-spacing: -0.02em;
|
|
@@ -1602,7 +1602,7 @@ code {
|
|
|
1602
1602
|
margin: 0 0 8px;
|
|
1603
1603
|
}
|
|
1604
1604
|
|
|
1605
|
-
.
|
|
1605
|
+
.BPHero-tagline {
|
|
1606
1606
|
font-size: 18px;
|
|
1607
1607
|
font-weight: 400;
|
|
1608
1608
|
line-height: 1.6;
|
|
@@ -1611,25 +1611,25 @@ code {
|
|
|
1611
1611
|
}
|
|
1612
1612
|
|
|
1613
1613
|
@media (min-width: 960px) {
|
|
1614
|
-
.
|
|
1614
|
+
.BPHero-name {
|
|
1615
1615
|
font-size: 24px;
|
|
1616
1616
|
}
|
|
1617
|
-
.
|
|
1617
|
+
.BPHero-text {
|
|
1618
1618
|
font-size: 56px;
|
|
1619
1619
|
}
|
|
1620
|
-
.
|
|
1620
|
+
.BPHero-tagline {
|
|
1621
1621
|
font-size: 20px;
|
|
1622
1622
|
}
|
|
1623
1623
|
}
|
|
1624
1624
|
|
|
1625
|
-
.
|
|
1625
|
+
.BPHero-actions {
|
|
1626
1626
|
display: flex;
|
|
1627
1627
|
flex-wrap: wrap;
|
|
1628
1628
|
gap: 12px;
|
|
1629
1629
|
margin-top: 28px;
|
|
1630
1630
|
}
|
|
1631
1631
|
|
|
1632
|
-
.
|
|
1632
|
+
.BPButton {
|
|
1633
1633
|
display: inline-flex;
|
|
1634
1634
|
align-items: center;
|
|
1635
1635
|
justify-content: center;
|
|
@@ -1645,24 +1645,24 @@ code {
|
|
|
1645
1645
|
cursor: pointer;
|
|
1646
1646
|
}
|
|
1647
1647
|
|
|
1648
|
-
.
|
|
1648
|
+
.BPButton-brand {
|
|
1649
1649
|
color: var(--bp-button-brand-text, #fff);
|
|
1650
1650
|
background-color: var(--bp-c-brand-1);
|
|
1651
1651
|
border-color: var(--bp-c-brand-1);
|
|
1652
1652
|
}
|
|
1653
1653
|
|
|
1654
|
-
.
|
|
1654
|
+
.BPButton-brand:hover {
|
|
1655
1655
|
background-color: var(--bp-c-brand-2);
|
|
1656
1656
|
border-color: var(--bp-c-brand-2);
|
|
1657
1657
|
}
|
|
1658
1658
|
|
|
1659
|
-
.
|
|
1659
|
+
.BPButton-alt {
|
|
1660
1660
|
color: var(--bp-c-text-1);
|
|
1661
1661
|
background-color: transparent;
|
|
1662
1662
|
border-color: var(--bp-c-divider);
|
|
1663
1663
|
}
|
|
1664
1664
|
|
|
1665
|
-
.
|
|
1665
|
+
.BPButton-alt:hover {
|
|
1666
1666
|
border-color: var(--bp-c-text-2);
|
|
1667
1667
|
color: var(--bp-c-brand-1);
|
|
1668
1668
|
}
|
|
@@ -1671,39 +1671,39 @@ code {
|
|
|
1671
1671
|
* Features grid \u2014 used by features.stx + serve.ts generateFeatures
|
|
1672
1672
|
* -------------------------------------------------------------------------- */
|
|
1673
1673
|
|
|
1674
|
-
.
|
|
1674
|
+
.BPHomeFeatures {
|
|
1675
1675
|
padding: 48px 24px;
|
|
1676
1676
|
border-top: 1px solid var(--bp-c-divider);
|
|
1677
1677
|
}
|
|
1678
1678
|
|
|
1679
|
-
.
|
|
1679
|
+
.BPHomeFeatures-inner {
|
|
1680
1680
|
max-width: 1152px;
|
|
1681
1681
|
margin: 0 auto;
|
|
1682
1682
|
}
|
|
1683
1683
|
|
|
1684
|
-
.
|
|
1684
|
+
.BPFeatures {
|
|
1685
1685
|
display: grid;
|
|
1686
1686
|
grid-template-columns: repeat(1, 1fr);
|
|
1687
1687
|
gap: 16px;
|
|
1688
1688
|
}
|
|
1689
1689
|
|
|
1690
1690
|
@media (min-width: 640px) {
|
|
1691
|
-
.
|
|
1691
|
+
.BPFeatures {
|
|
1692
1692
|
grid-template-columns: repeat(2, 1fr);
|
|
1693
1693
|
gap: 24px;
|
|
1694
1694
|
}
|
|
1695
1695
|
}
|
|
1696
1696
|
|
|
1697
1697
|
@media (min-width: 960px) {
|
|
1698
|
-
.
|
|
1698
|
+
.BPHomeFeatures {
|
|
1699
1699
|
padding: 64px 32px;
|
|
1700
1700
|
}
|
|
1701
|
-
.
|
|
1701
|
+
.BPFeatures {
|
|
1702
1702
|
grid-template-columns: repeat(3, 1fr);
|
|
1703
1703
|
}
|
|
1704
1704
|
}
|
|
1705
1705
|
|
|
1706
|
-
.
|
|
1706
|
+
.BPFeature {
|
|
1707
1707
|
display: block;
|
|
1708
1708
|
padding: 24px;
|
|
1709
1709
|
background-color: var(--bp-c-bg-soft, var(--bp-c-bg-alt));
|
|
@@ -1714,12 +1714,12 @@ code {
|
|
|
1714
1714
|
color: inherit;
|
|
1715
1715
|
}
|
|
1716
1716
|
|
|
1717
|
-
.
|
|
1717
|
+
.BPFeature:hover {
|
|
1718
1718
|
border-color: var(--bp-c-brand-1);
|
|
1719
1719
|
box-shadow: 0 2px 12px rgba(86, 114, 205, 0.08);
|
|
1720
1720
|
}
|
|
1721
1721
|
|
|
1722
|
-
.
|
|
1722
|
+
.BPFeature-icon {
|
|
1723
1723
|
width: 40px;
|
|
1724
1724
|
height: 40px;
|
|
1725
1725
|
display: flex;
|
|
@@ -1731,17 +1731,17 @@ code {
|
|
|
1731
1731
|
margin-bottom: 12px;
|
|
1732
1732
|
}
|
|
1733
1733
|
|
|
1734
|
-
.
|
|
1734
|
+
.BPFeature-icon svg {
|
|
1735
1735
|
width: 24px;
|
|
1736
1736
|
height: 24px;
|
|
1737
1737
|
}
|
|
1738
1738
|
|
|
1739
|
-
.
|
|
1739
|
+
.BPFeature-icon-text {
|
|
1740
1740
|
font-size: 24px;
|
|
1741
1741
|
font-weight: 700;
|
|
1742
1742
|
}
|
|
1743
1743
|
|
|
1744
|
-
.
|
|
1744
|
+
.BPFeature-title {
|
|
1745
1745
|
margin: 0 0 8px;
|
|
1746
1746
|
font-size: 16px;
|
|
1747
1747
|
font-weight: 600;
|
|
@@ -1749,7 +1749,7 @@ code {
|
|
|
1749
1749
|
color: var(--bp-c-text-1);
|
|
1750
1750
|
}
|
|
1751
1751
|
|
|
1752
|
-
.
|
|
1752
|
+
.BPFeature-details {
|
|
1753
1753
|
margin: 0;
|
|
1754
1754
|
font-size: 14px;
|
|
1755
1755
|
line-height: 1.6;
|
|
@@ -1854,7 +1854,7 @@ code {
|
|
|
1854
1854
|
* Mobile nav / sidebar drawer
|
|
1855
1855
|
* -------------------------------------------------------------------------- */
|
|
1856
1856
|
|
|
1857
|
-
.
|
|
1857
|
+
.BPNavBarHamburger {
|
|
1858
1858
|
display: none;
|
|
1859
1859
|
width: 32px;
|
|
1860
1860
|
height: 32px;
|
|
@@ -1869,22 +1869,22 @@ code {
|
|
|
1869
1869
|
margin-left: -4px;
|
|
1870
1870
|
}
|
|
1871
1871
|
|
|
1872
|
-
.
|
|
1872
|
+
.BPNavBarHamburger:hover {
|
|
1873
1873
|
color: var(--bp-c-text-1);
|
|
1874
1874
|
background-color: var(--bp-c-bg-soft);
|
|
1875
1875
|
}
|
|
1876
1876
|
|
|
1877
|
-
.
|
|
1877
|
+
.BPNavBarHamburger svg {
|
|
1878
1878
|
width: 20px;
|
|
1879
1879
|
height: 20px;
|
|
1880
1880
|
}
|
|
1881
1881
|
|
|
1882
1882
|
@media (max-width: 959px) {
|
|
1883
|
-
.
|
|
1883
|
+
.BPNavBarHamburger {
|
|
1884
1884
|
display: inline-flex;
|
|
1885
1885
|
}
|
|
1886
1886
|
|
|
1887
|
-
.
|
|
1887
|
+
.BPSidebar {
|
|
1888
1888
|
transform: translateX(-100%);
|
|
1889
1889
|
transition: transform 0.25s ease, box-shadow 0.25s ease;
|
|
1890
1890
|
z-index: var(--bp-z-index-sidebar, 25);
|
|
@@ -1892,12 +1892,12 @@ code {
|
|
|
1892
1892
|
box-shadow: none;
|
|
1893
1893
|
}
|
|
1894
1894
|
|
|
1895
|
-
.
|
|
1895
|
+
.BPSidebar.is-open {
|
|
1896
1896
|
transform: translateX(0);
|
|
1897
1897
|
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
|
|
1898
1898
|
}
|
|
1899
1899
|
|
|
1900
|
-
.
|
|
1900
|
+
.BPSidebar-backdrop {
|
|
1901
1901
|
position: fixed;
|
|
1902
1902
|
inset: 0;
|
|
1903
1903
|
background-color: rgba(0, 0, 0, 0.32);
|
|
@@ -1907,16 +1907,16 @@ code {
|
|
|
1907
1907
|
z-index: calc(var(--bp-z-index-sidebar, 25) - 1);
|
|
1908
1908
|
}
|
|
1909
1909
|
|
|
1910
|
-
.
|
|
1910
|
+
.BPSidebar-backdrop.is-open {
|
|
1911
1911
|
opacity: 1;
|
|
1912
1912
|
pointer-events: auto;
|
|
1913
1913
|
}
|
|
1914
1914
|
|
|
1915
|
-
.
|
|
1915
|
+
.BPContent--doc {
|
|
1916
1916
|
left: 0;
|
|
1917
1917
|
}
|
|
1918
1918
|
}
|
|
1919
|
-
`;function
|
|
1919
|
+
`;function o(){return`
|
|
1920
1920
|
/* VitePress Theme for BunPress */
|
|
1921
1921
|
/**
|
|
1922
1922
|
* VitePress Theme for BunPress
|
|
@@ -2735,7 +2735,7 @@ mjx-container > svg {
|
|
|
2735
2735
|
}
|
|
2736
2736
|
|
|
2737
2737
|
/**
|
|
2738
|
-
*
|
|
2738
|
+
* BPDoc Styles - Documentation Content
|
|
2739
2739
|
* -------------------------------------------------------------------------- */
|
|
2740
2740
|
|
|
2741
2741
|
.bp-doc h1,
|
|
@@ -3294,7 +3294,7 @@ mjx-container > svg {
|
|
|
3294
3294
|
}
|
|
3295
3295
|
|
|
3296
3296
|
/**
|
|
3297
|
-
* Component: Team -
|
|
3297
|
+
* Component: Team - BPTeamMembers
|
|
3298
3298
|
* -------------------------------------------------------------------------- */
|
|
3299
3299
|
|
|
3300
3300
|
.bp-doc .BPTeamMembers {
|
|
@@ -3332,8 +3332,8 @@ ${`/**
|
|
|
3332
3332
|
min-height: 100vh;
|
|
3333
3333
|
}
|
|
3334
3334
|
|
|
3335
|
-
/*
|
|
3336
|
-
.
|
|
3335
|
+
/* BPNav \u2014 top bar */
|
|
3336
|
+
.BPNav {
|
|
3337
3337
|
position: fixed;
|
|
3338
3338
|
top: 0;
|
|
3339
3339
|
left: 0;
|
|
@@ -3345,7 +3345,7 @@ ${`/**
|
|
|
3345
3345
|
backdrop-filter: saturate(50%) blur(8px);
|
|
3346
3346
|
}
|
|
3347
3347
|
|
|
3348
|
-
.
|
|
3348
|
+
.BPNavBar {
|
|
3349
3349
|
max-width: var(--bp-layout-max-width, 1440px);
|
|
3350
3350
|
margin: 0 auto;
|
|
3351
3351
|
width: 100%;
|
|
@@ -3357,7 +3357,7 @@ ${`/**
|
|
|
3357
3357
|
gap: 24px;
|
|
3358
3358
|
}
|
|
3359
3359
|
|
|
3360
|
-
.
|
|
3360
|
+
.BPNavBarStart {
|
|
3361
3361
|
display: flex;
|
|
3362
3362
|
align-items: center;
|
|
3363
3363
|
gap: 24px;
|
|
@@ -3365,14 +3365,14 @@ ${`/**
|
|
|
3365
3365
|
min-width: 0;
|
|
3366
3366
|
}
|
|
3367
3367
|
|
|
3368
|
-
.
|
|
3368
|
+
.BPNavBarEnd {
|
|
3369
3369
|
display: flex;
|
|
3370
3370
|
align-items: center;
|
|
3371
3371
|
gap: 24px;
|
|
3372
3372
|
flex-shrink: 0;
|
|
3373
3373
|
}
|
|
3374
3374
|
|
|
3375
|
-
.
|
|
3375
|
+
.BPNavBarTitle {
|
|
3376
3376
|
font-size: 16px;
|
|
3377
3377
|
font-weight: 600;
|
|
3378
3378
|
color: var(--bp-c-text-1);
|
|
@@ -3381,18 +3381,18 @@ ${`/**
|
|
|
3381
3381
|
transition: color 0.25s;
|
|
3382
3382
|
}
|
|
3383
3383
|
|
|
3384
|
-
.
|
|
3384
|
+
.BPNavBarTitle:hover {
|
|
3385
3385
|
color: var(--bp-c-brand-1);
|
|
3386
3386
|
}
|
|
3387
3387
|
|
|
3388
|
-
.
|
|
3388
|
+
.BPNavBarMenu {
|
|
3389
3389
|
display: flex;
|
|
3390
3390
|
align-items: center;
|
|
3391
3391
|
gap: 24px;
|
|
3392
3392
|
}
|
|
3393
3393
|
|
|
3394
|
-
.
|
|
3395
|
-
.
|
|
3394
|
+
.BPNavBarMenu a,
|
|
3395
|
+
.BPNavBarMenu .BPNavBarMenu-link {
|
|
3396
3396
|
font-size: 14px;
|
|
3397
3397
|
font-weight: 500;
|
|
3398
3398
|
color: var(--bp-c-text-1);
|
|
@@ -3401,17 +3401,17 @@ ${`/**
|
|
|
3401
3401
|
cursor: pointer;
|
|
3402
3402
|
}
|
|
3403
3403
|
|
|
3404
|
-
.
|
|
3405
|
-
.
|
|
3406
|
-
.
|
|
3404
|
+
.BPNavBarMenu a:hover,
|
|
3405
|
+
.BPNavBarMenu .BPNavBarMenu-link:hover,
|
|
3406
|
+
.BPNavBarMenu a.is-active {
|
|
3407
3407
|
color: var(--bp-c-brand-1);
|
|
3408
3408
|
}
|
|
3409
3409
|
|
|
3410
|
-
.
|
|
3410
|
+
.BPNavBarMenu-group {
|
|
3411
3411
|
position: relative;
|
|
3412
3412
|
}
|
|
3413
3413
|
|
|
3414
|
-
.
|
|
3414
|
+
.BPNavBarMenu-group-button {
|
|
3415
3415
|
display: inline-flex;
|
|
3416
3416
|
align-items: center;
|
|
3417
3417
|
gap: 4px;
|
|
@@ -3426,22 +3426,22 @@ ${`/**
|
|
|
3426
3426
|
transition: color 0.25s;
|
|
3427
3427
|
}
|
|
3428
3428
|
|
|
3429
|
-
.
|
|
3429
|
+
.BPNavBarMenu-group-button:hover {
|
|
3430
3430
|
color: var(--bp-c-brand-1);
|
|
3431
3431
|
}
|
|
3432
3432
|
|
|
3433
|
-
.
|
|
3433
|
+
.BPNavBarMenu-group-button .chevron {
|
|
3434
3434
|
width: 12px;
|
|
3435
3435
|
height: 12px;
|
|
3436
3436
|
flex-shrink: 0;
|
|
3437
3437
|
transition: transform 0.25s;
|
|
3438
3438
|
}
|
|
3439
3439
|
|
|
3440
|
-
.
|
|
3440
|
+
.BPNavBarMenu-group:hover > .BPNavBarMenu-group-button .chevron {
|
|
3441
3441
|
transform: rotate(180deg);
|
|
3442
3442
|
}
|
|
3443
3443
|
|
|
3444
|
-
.
|
|
3444
|
+
.BPNavBarMenu-group-items {
|
|
3445
3445
|
display: none;
|
|
3446
3446
|
position: absolute;
|
|
3447
3447
|
right: 0;
|
|
@@ -3456,11 +3456,11 @@ ${`/**
|
|
|
3456
3456
|
z-index: 10;
|
|
3457
3457
|
}
|
|
3458
3458
|
|
|
3459
|
-
.
|
|
3459
|
+
.BPNavBarMenu-group:hover > .BPNavBarMenu-group-items {
|
|
3460
3460
|
display: block;
|
|
3461
3461
|
}
|
|
3462
3462
|
|
|
3463
|
-
.
|
|
3463
|
+
.BPNavBarMenu-group-items a {
|
|
3464
3464
|
display: block;
|
|
3465
3465
|
padding: 6px 16px;
|
|
3466
3466
|
font-size: 13px;
|
|
@@ -3469,13 +3469,13 @@ ${`/**
|
|
|
3469
3469
|
transition: color 0.25s, background-color 0.25s;
|
|
3470
3470
|
}
|
|
3471
3471
|
|
|
3472
|
-
.
|
|
3472
|
+
.BPNavBarMenu-group-items a:hover {
|
|
3473
3473
|
color: var(--bp-c-brand-1);
|
|
3474
3474
|
background-color: var(--bp-c-bg-soft);
|
|
3475
3475
|
}
|
|
3476
3476
|
|
|
3477
3477
|
/* Search */
|
|
3478
|
-
.
|
|
3478
|
+
.BPNavBarSearch {
|
|
3479
3479
|
position: relative;
|
|
3480
3480
|
display: flex;
|
|
3481
3481
|
align-items: center;
|
|
@@ -3483,7 +3483,7 @@ ${`/**
|
|
|
3483
3483
|
width: 100%;
|
|
3484
3484
|
}
|
|
3485
3485
|
|
|
3486
|
-
.
|
|
3486
|
+
.BPNavBarSearch-icon {
|
|
3487
3487
|
position: absolute;
|
|
3488
3488
|
left: 12px;
|
|
3489
3489
|
width: 16px;
|
|
@@ -3492,7 +3492,7 @@ ${`/**
|
|
|
3492
3492
|
pointer-events: none;
|
|
3493
3493
|
}
|
|
3494
3494
|
|
|
3495
|
-
.
|
|
3495
|
+
.BPNavBarSearch-input {
|
|
3496
3496
|
width: 100%;
|
|
3497
3497
|
height: 32px;
|
|
3498
3498
|
padding: 0 48px 0 36px;
|
|
@@ -3506,17 +3506,17 @@ ${`/**
|
|
|
3506
3506
|
transition: border-color 0.25s, background-color 0.25s;
|
|
3507
3507
|
}
|
|
3508
3508
|
|
|
3509
|
-
.
|
|
3509
|
+
.BPNavBarSearch-input::placeholder {
|
|
3510
3510
|
color: var(--bp-c-text-3);
|
|
3511
3511
|
}
|
|
3512
3512
|
|
|
3513
|
-
.
|
|
3514
|
-
.
|
|
3513
|
+
.BPNavBarSearch-input:hover,
|
|
3514
|
+
.BPNavBarSearch-input:focus {
|
|
3515
3515
|
border-color: var(--bp-c-brand-1);
|
|
3516
3516
|
background-color: var(--bp-c-bg);
|
|
3517
3517
|
}
|
|
3518
3518
|
|
|
3519
|
-
.
|
|
3519
|
+
.BPNavBarSearch-kbd {
|
|
3520
3520
|
position: absolute;
|
|
3521
3521
|
right: 8px;
|
|
3522
3522
|
padding: 2px 6px;
|
|
@@ -3531,7 +3531,7 @@ ${`/**
|
|
|
3531
3531
|
}
|
|
3532
3532
|
|
|
3533
3533
|
/* Social/icon links cluster */
|
|
3534
|
-
.
|
|
3534
|
+
.BPSocialLinks {
|
|
3535
3535
|
display: flex;
|
|
3536
3536
|
align-items: center;
|
|
3537
3537
|
gap: 12px;
|
|
@@ -3539,7 +3539,7 @@ ${`/**
|
|
|
3539
3539
|
border-left: 1px solid var(--bp-c-divider);
|
|
3540
3540
|
}
|
|
3541
3541
|
|
|
3542
|
-
.
|
|
3542
|
+
.BPSocialLinks > a {
|
|
3543
3543
|
display: inline-flex;
|
|
3544
3544
|
align-items: center;
|
|
3545
3545
|
justify-content: center;
|
|
@@ -3550,22 +3550,22 @@ ${`/**
|
|
|
3550
3550
|
transition: color 0.25s, background-color 0.25s;
|
|
3551
3551
|
}
|
|
3552
3552
|
|
|
3553
|
-
.
|
|
3553
|
+
.BPSocialLinks > a:hover {
|
|
3554
3554
|
color: var(--bp-c-text-1);
|
|
3555
3555
|
background-color: var(--bp-c-bg-soft);
|
|
3556
3556
|
}
|
|
3557
3557
|
|
|
3558
|
-
.
|
|
3558
|
+
.BPSocialLinks > a svg {
|
|
3559
3559
|
width: 20px;
|
|
3560
3560
|
height: 20px;
|
|
3561
3561
|
}
|
|
3562
3562
|
|
|
3563
3563
|
/* Content area */
|
|
3564
|
-
.
|
|
3564
|
+
.BPContent {
|
|
3565
3565
|
flex: 1;
|
|
3566
3566
|
}
|
|
3567
3567
|
|
|
3568
|
-
.
|
|
3568
|
+
.BPContent--doc {
|
|
3569
3569
|
position: fixed;
|
|
3570
3570
|
top: var(--bp-nav-height, 64px);
|
|
3571
3571
|
bottom: 0;
|
|
@@ -3574,48 +3574,48 @@ ${`/**
|
|
|
3574
3574
|
right: max(0px, calc((100vw - var(--bp-layout-max-width, 1440px)) / 2));
|
|
3575
3575
|
}
|
|
3576
3576
|
|
|
3577
|
-
.
|
|
3577
|
+
.BPContent--page {
|
|
3578
3578
|
padding-top: var(--bp-nav-height, 64px);
|
|
3579
3579
|
}
|
|
3580
3580
|
|
|
3581
|
-
.
|
|
3581
|
+
.BPDoc {
|
|
3582
3582
|
padding: 32px 24px;
|
|
3583
3583
|
padding-right: 32px;
|
|
3584
3584
|
}
|
|
3585
3585
|
|
|
3586
3586
|
@media (min-width: 1280px) {
|
|
3587
|
-
.
|
|
3587
|
+
.BPDoc {
|
|
3588
3588
|
padding: 48px 32px 128px;
|
|
3589
3589
|
}
|
|
3590
3590
|
}
|
|
3591
3591
|
|
|
3592
|
-
.
|
|
3592
|
+
.BPDocContent {
|
|
3593
3593
|
max-width: 768px;
|
|
3594
3594
|
margin: 0;
|
|
3595
3595
|
}
|
|
3596
3596
|
|
|
3597
|
-
.
|
|
3597
|
+
.BPPage {
|
|
3598
3598
|
padding: 48px 24px;
|
|
3599
3599
|
max-width: 768px;
|
|
3600
3600
|
margin: 0 auto;
|
|
3601
3601
|
}
|
|
3602
3602
|
|
|
3603
3603
|
@media (min-width: 1280px) {
|
|
3604
|
-
.
|
|
3604
|
+
.BPPage {
|
|
3605
3605
|
padding: 64px 32px;
|
|
3606
3606
|
}
|
|
3607
3607
|
}
|
|
3608
3608
|
|
|
3609
3609
|
/* Mobile sidebar drawer behaviour */
|
|
3610
3610
|
@media (max-width: 959px) {
|
|
3611
|
-
.
|
|
3611
|
+
.BPNavBarSearch {
|
|
3612
3612
|
display: none;
|
|
3613
3613
|
}
|
|
3614
|
-
.
|
|
3614
|
+
.BPSocialLinks {
|
|
3615
3615
|
padding-left: 12px;
|
|
3616
3616
|
gap: 8px;
|
|
3617
3617
|
}
|
|
3618
|
-
.
|
|
3618
|
+
.BPNavBarMenu {
|
|
3619
3619
|
display: none;
|
|
3620
3620
|
}
|
|
3621
3621
|
}
|
|
@@ -3624,7 +3624,7 @@ ${`/**
|
|
|
3624
3624
|
* Hero (home layout) \u2014 used by hero.stx + serve.ts generateHero
|
|
3625
3625
|
* -------------------------------------------------------------------------- */
|
|
3626
3626
|
|
|
3627
|
-
.
|
|
3627
|
+
.BPHero-name {
|
|
3628
3628
|
font-size: 20px;
|
|
3629
3629
|
font-weight: 700;
|
|
3630
3630
|
letter-spacing: -0.02em;
|
|
@@ -3636,7 +3636,7 @@ ${`/**
|
|
|
3636
3636
|
background-clip: text;
|
|
3637
3637
|
}
|
|
3638
3638
|
|
|
3639
|
-
.
|
|
3639
|
+
.BPHero-text {
|
|
3640
3640
|
font-size: 40px;
|
|
3641
3641
|
font-weight: 800;
|
|
3642
3642
|
letter-spacing: -0.02em;
|
|
@@ -3645,7 +3645,7 @@ ${`/**
|
|
|
3645
3645
|
margin: 0 0 8px;
|
|
3646
3646
|
}
|
|
3647
3647
|
|
|
3648
|
-
.
|
|
3648
|
+
.BPHero-tagline {
|
|
3649
3649
|
font-size: 18px;
|
|
3650
3650
|
font-weight: 400;
|
|
3651
3651
|
line-height: 1.6;
|
|
@@ -3654,25 +3654,25 @@ ${`/**
|
|
|
3654
3654
|
}
|
|
3655
3655
|
|
|
3656
3656
|
@media (min-width: 960px) {
|
|
3657
|
-
.
|
|
3657
|
+
.BPHero-name {
|
|
3658
3658
|
font-size: 24px;
|
|
3659
3659
|
}
|
|
3660
|
-
.
|
|
3660
|
+
.BPHero-text {
|
|
3661
3661
|
font-size: 56px;
|
|
3662
3662
|
}
|
|
3663
|
-
.
|
|
3663
|
+
.BPHero-tagline {
|
|
3664
3664
|
font-size: 20px;
|
|
3665
3665
|
}
|
|
3666
3666
|
}
|
|
3667
3667
|
|
|
3668
|
-
.
|
|
3668
|
+
.BPHero-actions {
|
|
3669
3669
|
display: flex;
|
|
3670
3670
|
flex-wrap: wrap;
|
|
3671
3671
|
gap: 12px;
|
|
3672
3672
|
margin-top: 28px;
|
|
3673
3673
|
}
|
|
3674
3674
|
|
|
3675
|
-
.
|
|
3675
|
+
.BPButton {
|
|
3676
3676
|
display: inline-flex;
|
|
3677
3677
|
align-items: center;
|
|
3678
3678
|
justify-content: center;
|
|
@@ -3688,24 +3688,24 @@ ${`/**
|
|
|
3688
3688
|
cursor: pointer;
|
|
3689
3689
|
}
|
|
3690
3690
|
|
|
3691
|
-
.
|
|
3691
|
+
.BPButton-brand {
|
|
3692
3692
|
color: var(--bp-button-brand-text, #fff);
|
|
3693
3693
|
background-color: var(--bp-c-brand-1);
|
|
3694
3694
|
border-color: var(--bp-c-brand-1);
|
|
3695
3695
|
}
|
|
3696
3696
|
|
|
3697
|
-
.
|
|
3697
|
+
.BPButton-brand:hover {
|
|
3698
3698
|
background-color: var(--bp-c-brand-2);
|
|
3699
3699
|
border-color: var(--bp-c-brand-2);
|
|
3700
3700
|
}
|
|
3701
3701
|
|
|
3702
|
-
.
|
|
3702
|
+
.BPButton-alt {
|
|
3703
3703
|
color: var(--bp-c-text-1);
|
|
3704
3704
|
background-color: transparent;
|
|
3705
3705
|
border-color: var(--bp-c-divider);
|
|
3706
3706
|
}
|
|
3707
3707
|
|
|
3708
|
-
.
|
|
3708
|
+
.BPButton-alt:hover {
|
|
3709
3709
|
border-color: var(--bp-c-text-2);
|
|
3710
3710
|
color: var(--bp-c-brand-1);
|
|
3711
3711
|
}
|
|
@@ -3714,39 +3714,39 @@ ${`/**
|
|
|
3714
3714
|
* Features grid \u2014 used by features.stx + serve.ts generateFeatures
|
|
3715
3715
|
* -------------------------------------------------------------------------- */
|
|
3716
3716
|
|
|
3717
|
-
.
|
|
3717
|
+
.BPHomeFeatures {
|
|
3718
3718
|
padding: 48px 24px;
|
|
3719
3719
|
border-top: 1px solid var(--bp-c-divider);
|
|
3720
3720
|
}
|
|
3721
3721
|
|
|
3722
|
-
.
|
|
3722
|
+
.BPHomeFeatures-inner {
|
|
3723
3723
|
max-width: 1152px;
|
|
3724
3724
|
margin: 0 auto;
|
|
3725
3725
|
}
|
|
3726
3726
|
|
|
3727
|
-
.
|
|
3727
|
+
.BPFeatures {
|
|
3728
3728
|
display: grid;
|
|
3729
3729
|
grid-template-columns: repeat(1, 1fr);
|
|
3730
3730
|
gap: 16px;
|
|
3731
3731
|
}
|
|
3732
3732
|
|
|
3733
3733
|
@media (min-width: 640px) {
|
|
3734
|
-
.
|
|
3734
|
+
.BPFeatures {
|
|
3735
3735
|
grid-template-columns: repeat(2, 1fr);
|
|
3736
3736
|
gap: 24px;
|
|
3737
3737
|
}
|
|
3738
3738
|
}
|
|
3739
3739
|
|
|
3740
3740
|
@media (min-width: 960px) {
|
|
3741
|
-
.
|
|
3741
|
+
.BPHomeFeatures {
|
|
3742
3742
|
padding: 64px 32px;
|
|
3743
3743
|
}
|
|
3744
|
-
.
|
|
3744
|
+
.BPFeatures {
|
|
3745
3745
|
grid-template-columns: repeat(3, 1fr);
|
|
3746
3746
|
}
|
|
3747
3747
|
}
|
|
3748
3748
|
|
|
3749
|
-
.
|
|
3749
|
+
.BPFeature {
|
|
3750
3750
|
display: block;
|
|
3751
3751
|
padding: 24px;
|
|
3752
3752
|
background-color: var(--bp-c-bg-soft, var(--bp-c-bg-alt));
|
|
@@ -3757,12 +3757,12 @@ ${`/**
|
|
|
3757
3757
|
color: inherit;
|
|
3758
3758
|
}
|
|
3759
3759
|
|
|
3760
|
-
.
|
|
3760
|
+
.BPFeature:hover {
|
|
3761
3761
|
border-color: var(--bp-c-brand-1);
|
|
3762
3762
|
box-shadow: 0 2px 12px rgba(86, 114, 205, 0.08);
|
|
3763
3763
|
}
|
|
3764
3764
|
|
|
3765
|
-
.
|
|
3765
|
+
.BPFeature-icon {
|
|
3766
3766
|
width: 40px;
|
|
3767
3767
|
height: 40px;
|
|
3768
3768
|
display: flex;
|
|
@@ -3774,17 +3774,17 @@ ${`/**
|
|
|
3774
3774
|
margin-bottom: 12px;
|
|
3775
3775
|
}
|
|
3776
3776
|
|
|
3777
|
-
.
|
|
3777
|
+
.BPFeature-icon svg {
|
|
3778
3778
|
width: 24px;
|
|
3779
3779
|
height: 24px;
|
|
3780
3780
|
}
|
|
3781
3781
|
|
|
3782
|
-
.
|
|
3782
|
+
.BPFeature-icon-text {
|
|
3783
3783
|
font-size: 24px;
|
|
3784
3784
|
font-weight: 700;
|
|
3785
3785
|
}
|
|
3786
3786
|
|
|
3787
|
-
.
|
|
3787
|
+
.BPFeature-title {
|
|
3788
3788
|
margin: 0 0 8px;
|
|
3789
3789
|
font-size: 16px;
|
|
3790
3790
|
font-weight: 600;
|
|
@@ -3792,7 +3792,7 @@ ${`/**
|
|
|
3792
3792
|
color: var(--bp-c-text-1);
|
|
3793
3793
|
}
|
|
3794
3794
|
|
|
3795
|
-
.
|
|
3795
|
+
.BPFeature-details {
|
|
3796
3796
|
margin: 0;
|
|
3797
3797
|
font-size: 14px;
|
|
3798
3798
|
line-height: 1.6;
|
|
@@ -3897,7 +3897,7 @@ ${`/**
|
|
|
3897
3897
|
* Mobile nav / sidebar drawer
|
|
3898
3898
|
* -------------------------------------------------------------------------- */
|
|
3899
3899
|
|
|
3900
|
-
.
|
|
3900
|
+
.BPNavBarHamburger {
|
|
3901
3901
|
display: none;
|
|
3902
3902
|
width: 32px;
|
|
3903
3903
|
height: 32px;
|
|
@@ -3912,22 +3912,22 @@ ${`/**
|
|
|
3912
3912
|
margin-left: -4px;
|
|
3913
3913
|
}
|
|
3914
3914
|
|
|
3915
|
-
.
|
|
3915
|
+
.BPNavBarHamburger:hover {
|
|
3916
3916
|
color: var(--bp-c-text-1);
|
|
3917
3917
|
background-color: var(--bp-c-bg-soft);
|
|
3918
3918
|
}
|
|
3919
3919
|
|
|
3920
|
-
.
|
|
3920
|
+
.BPNavBarHamburger svg {
|
|
3921
3921
|
width: 20px;
|
|
3922
3922
|
height: 20px;
|
|
3923
3923
|
}
|
|
3924
3924
|
|
|
3925
3925
|
@media (max-width: 959px) {
|
|
3926
|
-
.
|
|
3926
|
+
.BPNavBarHamburger {
|
|
3927
3927
|
display: inline-flex;
|
|
3928
3928
|
}
|
|
3929
3929
|
|
|
3930
|
-
.
|
|
3930
|
+
.BPSidebar {
|
|
3931
3931
|
transform: translateX(-100%);
|
|
3932
3932
|
transition: transform 0.25s ease, box-shadow 0.25s ease;
|
|
3933
3933
|
z-index: var(--bp-z-index-sidebar, 25);
|
|
@@ -3935,12 +3935,12 @@ ${`/**
|
|
|
3935
3935
|
box-shadow: none;
|
|
3936
3936
|
}
|
|
3937
3937
|
|
|
3938
|
-
.
|
|
3938
|
+
.BPSidebar.is-open {
|
|
3939
3939
|
transform: translateX(0);
|
|
3940
3940
|
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
|
|
3941
3941
|
}
|
|
3942
3942
|
|
|
3943
|
-
.
|
|
3943
|
+
.BPSidebar-backdrop {
|
|
3944
3944
|
position: fixed;
|
|
3945
3945
|
inset: 0;
|
|
3946
3946
|
background-color: rgba(0, 0, 0, 0.32);
|
|
@@ -3950,12 +3950,12 @@ ${`/**
|
|
|
3950
3950
|
z-index: calc(var(--bp-z-index-sidebar, 25) - 1);
|
|
3951
3951
|
}
|
|
3952
3952
|
|
|
3953
|
-
.
|
|
3953
|
+
.BPSidebar-backdrop.is-open {
|
|
3954
3954
|
opacity: 1;
|
|
3955
3955
|
pointer-events: auto;
|
|
3956
3956
|
}
|
|
3957
3957
|
|
|
3958
|
-
.
|
|
3958
|
+
.BPContent--doc {
|
|
3959
3959
|
left: 0;
|
|
3960
3960
|
}
|
|
3961
3961
|
}
|
|
@@ -4441,7 +4441,7 @@ ${`/**
|
|
|
4441
4441
|
border-radius: 0;
|
|
4442
4442
|
border: none;
|
|
4443
4443
|
}
|
|
4444
|
-
`}function
|
|
4444
|
+
`}function _Z(){return`/**
|
|
4445
4445
|
* VitePress Theme for BunPress
|
|
4446
4446
|
* Colors: Solid
|
|
4447
4447
|
* -------------------------------------------------------------------------- */
|
|
@@ -5001,7 +5001,7 @@ ${`/**
|
|
|
5001
5001
|
|
|
5002
5002
|
.bpi-corner-down-left {
|
|
5003
5003
|
--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M20 4v7a4 4 0 0 1-4 4H4'/%3E%3Cpath d='m9 10l-5 5l5 5'/%3E%3C/g%3E%3C/svg%3E");
|
|
5004
|
-
}`}function
|
|
5004
|
+
}`}function VZ(){return`/**
|
|
5005
5005
|
* VitePress Theme for BunPress - Base Styles
|
|
5006
5006
|
* -------------------------------------------------------------------------- */
|
|
5007
5007
|
|
|
@@ -5257,7 +5257,7 @@ mjx-container > svg {
|
|
|
5257
5257
|
}
|
|
5258
5258
|
|
|
5259
5259
|
/**
|
|
5260
|
-
*
|
|
5260
|
+
* BPDoc Styles - Documentation Content
|
|
5261
5261
|
* -------------------------------------------------------------------------- */
|
|
5262
5262
|
|
|
5263
5263
|
.bp-doc h1,
|
|
@@ -5816,7 +5816,7 @@ mjx-container > svg {
|
|
|
5816
5816
|
}
|
|
5817
5817
|
|
|
5818
5818
|
/**
|
|
5819
|
-
* Component: Team -
|
|
5819
|
+
* Component: Team - BPTeamMembers
|
|
5820
5820
|
* -------------------------------------------------------------------------- */
|
|
5821
5821
|
|
|
5822
5822
|
.bp-doc .BPTeamMembers {
|
|
@@ -5845,7 +5845,7 @@ mjx-container > svg {
|
|
|
5845
5845
|
.bp-doc .custom-block .bp-code-group .tabs {
|
|
5846
5846
|
margin: 0;
|
|
5847
5847
|
border-radius: 8px 8px 0 0;
|
|
5848
|
-
}`}function
|
|
5848
|
+
}`}function zZ(){return`/**
|
|
5849
5849
|
* VitePress Theme for BunPress - Custom Blocks
|
|
5850
5850
|
* -------------------------------------------------------------------------- */
|
|
5851
5851
|
|
|
@@ -6196,7 +6196,7 @@ mjx-container > svg {
|
|
|
6196
6196
|
|
|
6197
6197
|
.github-alert-caution .github-alert-icon {
|
|
6198
6198
|
fill: var(--bp-c-caution-1);
|
|
6199
|
-
}`}function
|
|
6199
|
+
}`}function WZ(){return`/**
|
|
6200
6200
|
* VitePress Theme for BunPress - Code Groups
|
|
6201
6201
|
* -------------------------------------------------------------------------- */
|
|
6202
6202
|
|
|
@@ -6324,7 +6324,7 @@ mjx-container > svg {
|
|
|
6324
6324
|
margin: 0;
|
|
6325
6325
|
border-radius: 0;
|
|
6326
6326
|
border: none;
|
|
6327
|
-
}`}var
|
|
6327
|
+
}`}var GZ={name:"vitepress",getCSS:o,getVars:_Z,getBase:VZ,getCustomBlocks:zZ,getCodeGroups:WZ},BQ=GZ;var MQ=`/**
|
|
6328
6328
|
* Bun Theme for BunPress
|
|
6329
6329
|
* Colors extracted from bun.sh
|
|
6330
6330
|
* -------------------------------------------------------------------------- */
|
|
@@ -6878,7 +6878,7 @@ mjx-container > svg {
|
|
|
6878
6878
|
|
|
6879
6879
|
.bpi-search {
|
|
6880
6880
|
--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6'%3E%3Cpath d='m21 21l-4.34-4.34'/%3E%3Ccircle cx='11' cy='11' r='8' stroke-width='1.4'/%3E%3C/g%3E%3C/svg%3E");
|
|
6881
|
-
}`,
|
|
6881
|
+
}`,wQ=`/**
|
|
6882
6882
|
* Bun Theme for BunPress - Base Styles
|
|
6883
6883
|
* -------------------------------------------------------------------------- */
|
|
6884
6884
|
|
|
@@ -7121,7 +7121,7 @@ p {
|
|
|
7121
7121
|
}
|
|
7122
7122
|
|
|
7123
7123
|
/**
|
|
7124
|
-
*
|
|
7124
|
+
* BPDoc Styles - Documentation Content
|
|
7125
7125
|
* -------------------------------------------------------------------------- */
|
|
7126
7126
|
|
|
7127
7127
|
.bp-doc h1,
|
|
@@ -7677,7 +7677,7 @@ p {
|
|
|
7677
7677
|
.bp-doc .custom-block .bp-code-group .tabs {
|
|
7678
7678
|
margin: 0;
|
|
7679
7679
|
border-radius: 5px 5px 0 0;
|
|
7680
|
-
}`,
|
|
7680
|
+
}`,IQ=`/**
|
|
7681
7681
|
* Bun Theme for BunPress - Custom Blocks
|
|
7682
7682
|
* -------------------------------------------------------------------------- */
|
|
7683
7683
|
|
|
@@ -8041,7 +8041,7 @@ p {
|
|
|
8041
8041
|
|
|
8042
8042
|
.github-alert-caution .github-alert-icon {
|
|
8043
8043
|
fill: var(--bp-c-caution-1);
|
|
8044
|
-
}`,
|
|
8044
|
+
}`,DQ=`/**
|
|
8045
8045
|
* Bun Theme for BunPress - Code Groups
|
|
8046
8046
|
* -------------------------------------------------------------------------- */
|
|
8047
8047
|
|
|
@@ -8171,7 +8171,7 @@ p {
|
|
|
8171
8171
|
margin: 0;
|
|
8172
8172
|
border-radius: 0;
|
|
8173
8173
|
border: none;
|
|
8174
|
-
}`,
|
|
8174
|
+
}`,TQ=`/**
|
|
8175
8175
|
* Bun Theme for BunPress - Extra Bun-specific styles
|
|
8176
8176
|
* -------------------------------------------------------------------------- */
|
|
8177
8177
|
|
|
@@ -8325,23 +8325,23 @@ p {
|
|
|
8325
8325
|
|
|
8326
8326
|
.interactive-hover:hover {
|
|
8327
8327
|
transform: scale(1.06);
|
|
8328
|
-
}`;function
|
|
8328
|
+
}`;function LQ(){return`
|
|
8329
8329
|
/* Bun Theme for BunPress */
|
|
8330
8330
|
/* Colors extracted from bun.sh */
|
|
8331
|
-
${
|
|
8332
|
-
${
|
|
8333
|
-
${
|
|
8334
|
-
${
|
|
8335
|
-
${
|
|
8336
|
-
${
|
|
8337
|
-
`}function
|
|
8338
|
-
${
|
|
8339
|
-
<a href="#${
|
|
8340
|
-
${
|
|
8331
|
+
${MQ}
|
|
8332
|
+
${wQ}
|
|
8333
|
+
${FQ}
|
|
8334
|
+
${IQ}
|
|
8335
|
+
${DQ}
|
|
8336
|
+
${TQ}
|
|
8337
|
+
`}function UZ(){return MQ}function jZ(){return wQ}function NZ(){return IQ}function EZ(){return DQ}function RZ(){return TQ}var AZ={name:"bun",getCSS:LQ,getVars:UZ,getBase:jZ,getCustomBlocks:NZ,getCodeGroups:EZ,getExtras:RZ},yQ=AZ;var FZ={vitepress:BQ,bun:yQ};function HQ(Q="vitepress"){let Z=FZ[Q];if(!Z)return console.warn(`[BunPress] Unknown theme: ${Q}, falling back to vitepress`),o();return Z.getCSS()}var i={enabled:!0,position:["sidebar"],title:"Table of Contents",maxDepth:6,minDepth:2,className:"table-of-contents",smoothScroll:!0,activeHighlight:!0,collapsible:!0,exclude:[]};function n(Q){return Q.toLowerCase().trim().replace(/<[^>]*>/g,"").replace(/what's new\?\s*\(v2\.0\)/g,"whats-new-v2-0").replace(/features\s*&\s*benefits/g,"features-benefits").replace(/vue\.js\s*\+\s*typescript\s*=\s*\u2764\uFE0F/g,"vue-js-typescript").replace(/\//g,"-").replace(/\./g,"-").replace(/[^\w\s-]/g,"").replace(/[\s_]+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"")}function PQ(Q,Z){let $=n(Q),O=$,J=1;while(Z.has($))$=`${O}-${J}`,J++;return Z.add($),$}function t(Q){let Z=[],$=new Set,O=/^(#{1,6})\s+(.+)$/gm,J;while((J=O.exec(Q))!==null){let Y=J[1].length,q=J[2].trim();if(!q)continue;if(q.includes("toc-ignore"))continue;let K=q.replace(/\s*<!-- toc-ignore -->\s*/g,"").trim();K=K.replace(/`([^`]+)`/g,"<code>$1</code>");let X=K.includes("<code>"),V=PQ(K.replace(/<[^>]*>/g,""),$);Z.push({level:Y,text:K,id:V,children:[],hasCode:X})}return Z}function e(Q){let Z=[],$=[];for(let O of Q){while($.length>0&&$[$.length-1].level>=O.level)$.pop();if($.length===0)Z.push(O);else $[$.length-1].children.push(O);$.push(O)}return Z}function QQ(Q,Z){let{minDepth:$=2,maxDepth:O=6,exclude:J=[]}=Z,Y=(q)=>{let K=[];for(let X of q){if(J.some((z)=>{if(z.startsWith("/")&&z.endsWith("/"))return new RegExp(z.slice(1,-1)).test(X.text);else return X.text===z}))continue;if(X.level>O)continue;let V=Y(X.children);if(X.level>=$&&X.level<=O)K.push({...X,children:V});else K.push(...V)}return K};return Y(Q)}function m(Q){let{items:Z,title:$,config:O}=Q,{className:J,collapsible:Y}=O,q=(K,X=0)=>{if(K.length===0)return"";let V=X===0?"toc-list":"toc-sublist",z=X===0?"toc-item":"toc-subitem";return`<ul class="${V}">
|
|
8338
|
+
${K.map((_)=>{let G=_.children.length>0,U=G&&Y?"toc-expand":"",j=G?q(_.children,X+1):"",W=50,E=_.text.length>50?`${_.text.substring(0,50)}...`:_.text,N=_.text.length>50?"toc-truncate":"";return`<li class="${_.hasCode?"toc-code":""} ${U} ${z} ${N}">
|
|
8339
|
+
<a href="#${_.id}" class="toc-link" title="${_.text.replace(/<[^>]*>/g,"")}">${E}</a>
|
|
8340
|
+
${j}
|
|
8341
8341
|
</li>`}).join(`
|
|
8342
8342
|
`)}
|
|
8343
|
-
</ul>`};return[`<nav class="${J}" role="navigation" aria-label="${
|
|
8344
|
-
`)}function
|
|
8343
|
+
</ul>`};return[`<nav class="${J}" role="navigation" aria-label="${$}">`,'<div class="toc-container">',` <h2 class="toc-title">${$}</h2>`,` ${q(Z)}`,"</div>","</nav>"].join(`
|
|
8344
|
+
`)}function g(Q){return m(Q).replace("table-of-contents","table-of-contents toc-inline inline-toc")}function BZ(Q){return m(Q).replace("table-of-contents","table-of-contents toc-sidebar sidebar-toc")}function MZ(Q){return m(Q).replace("table-of-contents","table-of-contents toc-floating floating-toc")}function wZ(Q,Z={}){let $={...Z};if(typeof $.position==="string")$.position=[$.position];let O={...i,...$},J=t(Q),Y=e(J),q=QQ(Y,O);return{title:O.title,items:q,config:O}}function k0(Q,Z={}){let $=wZ(Q,Z);return(Array.isArray(Z.position)?Z.position:[Z.position||"sidebar"]).map((J)=>{let Y;switch(J){case"inline":Y=g($);break;case"sidebar":Y=BZ($);break;case"floating":Y=MZ($);break;default:Y=m($)}return{position:J,data:$,html:Y}})}function b0(Q,Z){let $=g(Z);return Q.replace(/\[\[toc\]\]/gi,$)}function S0(Q){let Z=new Set;return Q.replace(/<h([1-6])>(.*?)<\/h[1-6]>/gi,($,O,J)=>{let Y=PQ(J.replace(/<[^>]*>/g,""),Z);return`<h${O} id="${Y}"><a href="#${Y}" class="heading-anchor">#</a>${J}</h${O}>`})}function C0(){return`
|
|
8345
8345
|
.table-of-contents {
|
|
8346
8346
|
position: sticky;
|
|
8347
8347
|
top: 60px; /* Match navbar height */
|
|
@@ -8471,7 +8471,7 @@ html {
|
|
|
8471
8471
|
max-width: 250px;
|
|
8472
8472
|
}
|
|
8473
8473
|
}
|
|
8474
|
-
`}function
|
|
8474
|
+
`}function x0(){return`
|
|
8475
8475
|
function initToc() {
|
|
8476
8476
|
const tocLinks = document.querySelectorAll('.toc-link')
|
|
8477
8477
|
|
|
@@ -8572,8 +8572,8 @@ if (document.readyState === 'loading') {
|
|
|
8572
8572
|
else {
|
|
8573
8573
|
initToc()
|
|
8574
8574
|
}
|
|
8575
|
-
`}async function
|
|
8576
|
-
`);return await
|
|
8575
|
+
`}async function IZ(Q,Z){let $=Q.themeConfig?.sidebar||Q.markdown?.sidebar;if(!$)return"";let O=[];if(Array.isArray($))O=$;else if(typeof $==="object"){let q=Object.keys($).sort((K,X)=>X.length-K.length).find((K)=>Z.startsWith(K))||"/";O=$[q]||[]}let J=await Promise.all(O.map(async(Y)=>{let q=Y.items?Y.items.map((K)=>{let X=K.link||"/",V=OQ(Q,X);return`<li><a class="${X===Z||K.link===Z?"BPSidebarItem-link is-active":"BPSidebarItem-link"}" href="${V}">${K.text}</a></li>`}).join(""):"";return await P("sidebar-section",{title:Y.text,items:q})}));return await P("sidebar",{sections:J.join("")})}async function DZ(Q){let Z=/<h([2-6])([^>]*)>(.*?)<\/h\1>/g,$=[],O;while((O=Z.exec(Q))!==null){let Y=Number.parseInt(O[1]),q=O[2],K=O[3];K=K.replace(/<[^>]*>/g,"");let X=q.match(/id="([^"]*)"/),V=X?X[1]:K.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"");$.push({level:Y,text:K,id:V})}if($.length===0)return"";let J=$.map((Y)=>{let q=Y.level>2?`level-${Y.level}`:"";return`<a href="#${Y.id}" class="${q}">${Y.text}</a>`}).join(`
|
|
8576
|
+
`);return await P("page-toc",{items:J})}function TZ(Q){return Q.replace(/<h([1-6])([^>]*)>(.*?)<\/h\1>/g,(Z,$,O,J)=>{if(O.includes("id="))return Z;let Y=J.match(/\s*\{#([\w-]+)\}\s*$/),q,K=J;if(Y)q=Y[1],K=J.replace(/\s*\{#[\w-]+\}\s*$/,"");else q=J.replace(/<[^>]*>/g,"").toLowerCase().replace(/\//g,"-").replace(/\s+/g,"-").replace(/[^\w-]/g,"").replace(/-+/g,"-").replace(/^-+|-+$/g,"");return`<h${$}${O} id="${q}">${K}</h${$}>`})}function ZQ(Q){let Z=LZ(),$=Q.lastIndexOf("</body>");if($===-1)return Q+Z;return Q.slice(0,$)+Z+Q.slice($)}function $Q(Q,Z){if(!Z)return Q;let $=Q.lastIndexOf("</body>");if($===-1)return Q+Z;return Q.slice(0,$)+Z+Q.slice($)}function LZ(){return`<script data-bp-router="1">
|
|
8577
8577
|
(function(){
|
|
8578
8578
|
if (history.scrollRestoration) history.scrollRestoration = 'manual';
|
|
8579
8579
|
|
|
@@ -8608,7 +8608,7 @@ else {
|
|
|
8608
8608
|
}
|
|
8609
8609
|
|
|
8610
8610
|
function getScroller() {
|
|
8611
|
-
var el = document.querySelector('.
|
|
8611
|
+
var el = document.querySelector('.BPContent');
|
|
8612
8612
|
if (el) {
|
|
8613
8613
|
var cs = getComputedStyle(el);
|
|
8614
8614
|
if (cs.position === 'fixed' && (cs.overflowY === 'auto' || cs.overflowY === 'scroll')) {
|
|
@@ -8687,9 +8687,9 @@ else {
|
|
|
8687
8687
|
}
|
|
8688
8688
|
|
|
8689
8689
|
function detectLayout(root) {
|
|
8690
|
-
if (root.querySelector('.
|
|
8691
|
-
if (root.querySelector('.
|
|
8692
|
-
if (root.querySelector('.
|
|
8690
|
+
if (root.querySelector('.BPHome')) return 'home';
|
|
8691
|
+
if (root.querySelector('.BPContent--doc') || root.querySelector('.BPSidebar')) return 'doc';
|
|
8692
|
+
if (root.querySelector('.BPContent--page') || root.querySelector('.BPPage')) return 'page';
|
|
8693
8693
|
return 'page';
|
|
8694
8694
|
}
|
|
8695
8695
|
|
|
@@ -8746,35 +8746,35 @@ else {
|
|
|
8746
8746
|
document.body.innerHTML = doc.body.innerHTML;
|
|
8747
8747
|
executeScripts(document.body);
|
|
8748
8748
|
} else if (curLayout === 'home') {
|
|
8749
|
-
var newHome = doc.querySelector('.
|
|
8750
|
-
var curHome = document.querySelector('.
|
|
8749
|
+
var newHome = doc.querySelector('.BPHome');
|
|
8750
|
+
var curHome = document.querySelector('.BPHome');
|
|
8751
8751
|
if (newHome && curHome) {
|
|
8752
8752
|
curHome.innerHTML = newHome.innerHTML;
|
|
8753
8753
|
executeScripts(curHome);
|
|
8754
8754
|
}
|
|
8755
8755
|
} else if (curLayout === 'doc') {
|
|
8756
|
-
var newMain = doc.querySelector('.
|
|
8757
|
-
var curMain = document.querySelector('.
|
|
8756
|
+
var newMain = doc.querySelector('.BPDoc');
|
|
8757
|
+
var curMain = document.querySelector('.BPDoc');
|
|
8758
8758
|
if (newMain && curMain) {
|
|
8759
8759
|
curMain.innerHTML = newMain.innerHTML;
|
|
8760
8760
|
executeScripts(curMain);
|
|
8761
8761
|
}
|
|
8762
|
-
var newSidebar = doc.querySelector('.
|
|
8763
|
-
var curSidebar = document.querySelector('.
|
|
8762
|
+
var newSidebar = doc.querySelector('.BPSidebar');
|
|
8763
|
+
var curSidebar = document.querySelector('.BPSidebar');
|
|
8764
8764
|
if (newSidebar && curSidebar) {
|
|
8765
8765
|
curSidebar.innerHTML = newSidebar.innerHTML;
|
|
8766
8766
|
executeScripts(curSidebar);
|
|
8767
8767
|
}
|
|
8768
|
-
var newAside = doc.querySelector('.
|
|
8769
|
-
var curAside = document.querySelector('.
|
|
8768
|
+
var newAside = doc.querySelector('.BPDocAside');
|
|
8769
|
+
var curAside = document.querySelector('.BPDocAside');
|
|
8770
8770
|
if (newAside && curAside) {
|
|
8771
8771
|
curAside.innerHTML = newAside.innerHTML;
|
|
8772
8772
|
executeScripts(curAside);
|
|
8773
8773
|
}
|
|
8774
8774
|
} else {
|
|
8775
8775
|
// page layout
|
|
8776
|
-
var newPage = doc.querySelector('.
|
|
8777
|
-
var curPage = document.querySelector('.
|
|
8776
|
+
var newPage = doc.querySelector('.BPPage') || doc.querySelector('.BPContent');
|
|
8777
|
+
var curPage = document.querySelector('.BPPage') || document.querySelector('.BPContent');
|
|
8778
8778
|
if (newPage && curPage) {
|
|
8779
8779
|
curPage.innerHTML = newPage.innerHTML;
|
|
8780
8780
|
executeScripts(curPage);
|
|
@@ -8869,46 +8869,47 @@ else {
|
|
|
8869
8869
|
|
|
8870
8870
|
updateActiveLinks();
|
|
8871
8871
|
})();
|
|
8872
|
-
<`+"/script>"}function
|
|
8873
|
-
<button class="
|
|
8872
|
+
<`+"/script>"}function yZ(Q){let Z=Q.themeConfig?.nav||Q.nav;if(!Z||Z.length===0)return"";let $=(J)=>{return OQ(Q,J||"/")};return Z.map((J)=>{if(J.items&&J.items.length>0)return`<div class="BPNavBarMenu-group">
|
|
8873
|
+
<button class="BPNavBarMenu-group-button" type="button">
|
|
8874
8874
|
<span>${J.text}</span>
|
|
8875
8875
|
<svg class="chevron" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
8876
8876
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path>
|
|
8877
8877
|
</svg>
|
|
8878
8878
|
</button>
|
|
8879
|
-
<div class="
|
|
8880
|
-
${J.items.map((Y)=>`<a href="${
|
|
8879
|
+
<div class="BPNavBarMenu-group-items">
|
|
8880
|
+
${J.items.map((Y)=>`<a href="${$(Y.link)}">${Y.text}</a>`).join("")}
|
|
8881
8881
|
</div>
|
|
8882
|
-
</div>`;return`<a class="
|
|
8883
|
-
`)}function
|
|
8884
|
-
`)}function
|
|
8885
|
-
${JSON.stringify(
|
|
8886
|
-
</script>`}let
|
|
8887
|
-
${JSON.stringify(
|
|
8882
|
+
</div>`;return`<a class="BPNavBarMenu-link" href="${$(J.link)}">${J.text}</a>`}).join("")}function fQ(Q){if(Q.basePath){let $=Q.basePath.trim().replace(/\/+$/,"");if(!$||$==="/")return"";return $.startsWith("/")?$:`/${$}`}let Z=Q.sitemap?.baseUrl;if(!Z)return"";try{let $=new URL(Z).pathname.replace(/\/+$/,"");return $==="/"?"":$}catch{return""}}function HZ(Q,Z){let $=fQ(Q);if(!$)return Z;if(Z===$||Z.startsWith(`${$}/`))return Z.slice($.length)||"/";return Z}function OQ(Q,Z){let $=fQ(Q);if(!$||!Z.startsWith("/")||Z.startsWith("//"))return Z;if(Z===$||Z.startsWith(`${$}/`))return Z;return Z==="/"?`${$}/`:`${$}${Z}`}function JQ(Q,Z){return Q.replace(/\b(href|src|action)="(\/[^"]*)"/g,($,O,J)=>{let Y=OQ(Z,J);return Y===J?$:`${O}="${Y}"`})}function PZ(Q,Z){let $=Q.sitemap?.baseUrl;if(!$)return"";return`<link rel="canonical" href="${$.replace(/\/$/,"")}${Z==="/index"?"/":Z}">`}function vZ(Q,Z,$,O){let J=$.sitemap?.baseUrl;if(!J)return"";let K=`${J.replace(/\/$/,"")}${O==="/index"?"/":O}`,X=$.title||$.markdown?.title||Q,V=$.markdown?.meta?.["og:image"]||$.markdown?.meta?.ogImage,z=['<meta property="og:type" content="website">',`<meta property="og:url" content="${K}">`,`<meta property="og:title" content="${Q}">`,`<meta property="og:description" content="${Z}">`,`<meta property="og:site_name" content="${X}">`];if(V)z.push(`<meta property="og:image" content="${V}">`);return z.join(`
|
|
8883
|
+
`)}function kZ(Q,Z,$){let O=$.markdown?.meta?.["twitter:card"]||$.markdown?.meta?.twitterCard||"summary",J=$.markdown?.meta?.["twitter:site"]||$.markdown?.meta?.twitterSite,Y=$.markdown?.meta?.["twitter:image"]||$.markdown?.meta?.twitterImage,q=[`<meta name="twitter:card" content="${O}">`,`<meta name="twitter:title" content="${Q}">`,`<meta name="twitter:description" content="${Z}">`];if(J)q.push(`<meta name="twitter:site" content="${J}">`);if(Y)q.push(`<meta name="twitter:image" content="${Y}">`);return q.join(`
|
|
8884
|
+
`)}function bZ(Q,Z,$,O){let J=$.sitemap?.baseUrl;if(!J)return"";let Y=J.replace(/\/$/,""),q=O==="/index"?"/":O,K=`${Y}${q}`;if(q==="/"){let _={"@context":"https://schema.org","@type":"WebSite",name:$.title||$.markdown?.title||Q,description:Z,url:Y};return`<script type="application/ld+json">
|
|
8885
|
+
${JSON.stringify(_,null,2)}
|
|
8886
|
+
</script>`}let X={"@context":"https://schema.org","@type":"TechArticle",headline:Q,description:Z,url:K},V=q.split("/").filter(Boolean),z=V.map((_,G)=>{let U=G+1,j=`${Y}/${V.slice(0,U).join("/")}`;return{"@type":"ListItem",position:U,name:_.replace(/-/g," ").replace(/\b\w/g,(W)=>W.toUpperCase()),item:j}});if(z.length>0){let _={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:z};return`<script type="application/ld+json">
|
|
8887
|
+
${JSON.stringify(X,null,2)}
|
|
8888
8888
|
</script>
|
|
8889
8889
|
<script type="application/ld+json">
|
|
8890
|
-
${JSON.stringify(
|
|
8890
|
+
${JSON.stringify(_,null,2)}
|
|
8891
8891
|
</script>`}return`<script type="application/ld+json">
|
|
8892
|
-
${JSON.stringify(
|
|
8893
|
-
</script>`}async function
|
|
8894
|
-
`),
|
|
8895
|
-
`),
|
|
8896
|
-
`)||"",
|
|
8897
|
-
`),
|
|
8898
|
-
${
|
|
8899
|
-
${
|
|
8900
|
-
${X.markdown?.css||""}`,T=await v("layout-home",{title:J,description:Y,meta:z,customCSS:P,content:Q});return t(i(n(T,F)),X)}if($==="page"){let E=await e(`${Q}
|
|
8901
|
-
${M}`),P=`${O}
|
|
8902
|
-
${q}
|
|
8903
|
-
${E}
|
|
8904
|
-
${X.markdown?.css||""}`,T=await v("layout-page",{title:J,description:Y,meta:z,customCSS:P,nav:M,content:Q});return t(i(n(T,F)),X)}let A=_X(Q),I=await OX(A),B=await qX(X,Z),w=await e(`${A}
|
|
8905
|
-
${M}
|
|
8906
|
-
${B}`),H=`${O}
|
|
8907
|
-
${q}
|
|
8892
|
+
${JSON.stringify(X,null,2)}
|
|
8893
|
+
</script>`}async function SQ(Q,Z,$,O="doc"){let J=Z.title||Z.themeConfig?.siteTitle||Z.markdown?.title||"BunPress Documentation",Y=Z.description||Z.markdown?.meta?.description||"Documentation built with BunPress",q=Z.theme||"vitepress",K=HQ(q),X=UQ(),V=PZ(Z,$),z=vZ(J,Y,Z,$),_=kZ(J,Y,Z),G=bZ(J,Y,Z,$),j=[Object.entries(Z.markdown?.meta||{}).filter(([w])=>!w.startsWith("og:")&&!w.startsWith("twitter:")&&w!=="description"&&w!=="ogImage"&&w!=="twitterCard"&&w!=="twitterSite"&&w!=="twitterImage").map(([w,k])=>`<meta name="${w}" content="${k}">`).join(`
|
|
8894
|
+
`),V,z,_].filter(Boolean).join(`
|
|
8895
|
+
`),W=CZ(Z),E=xZ(Z),N=Z.markdown?.scripts?.map((w)=>`<script>${w}</script>`).join(`
|
|
8896
|
+
`)||"",M=[G,W,E,N].filter(Boolean).join(`
|
|
8897
|
+
`),A=yZ(Z);if(O==="home"){let w=await YQ(`${Q}
|
|
8898
|
+
${A}`),k=`${K}
|
|
8899
|
+
${X}
|
|
8908
8900
|
${w}
|
|
8909
|
-
${
|
|
8910
|
-
|
|
8911
|
-
|
|
8901
|
+
${Z.markdown?.css||""}`,T=await P("layout-home",{title:J,description:Y,meta:j,customCSS:k,nav:A,content:Q});return JQ(ZQ($Q(T,M)),Z)}if(O==="page"){let w=await YQ(`${Q}
|
|
8902
|
+
${A}`),k=`${K}
|
|
8903
|
+
${X}
|
|
8904
|
+
${w}
|
|
8905
|
+
${Z.markdown?.css||""}`,T=await P("layout-page",{title:J,description:Y,meta:j,customCSS:k,nav:A,content:Q});return JQ(ZQ($Q(T,M)),Z)}let F=TZ(Q),B=await DZ(F),I=await IZ(Z,$),D=await YQ(`${F}
|
|
8906
|
+
${A}
|
|
8907
|
+
${I}`),v=`${K}
|
|
8908
|
+
${X}
|
|
8909
|
+
${D}
|
|
8910
|
+
${Z.markdown?.css||""}`,c=await P("layout-doc",{title:J,description:Y,meta:j,customCSS:v,nav:A,sidebar:I,content:F,pageTOC:B});return JQ(ZQ($Q(c,M)),Z)}var h=null,CQ=!1;async function SZ(){if(CQ)return h;CQ=!0;try{h=await import("./chunk-7z3sysbz.js")}catch{h=null}return h}async function YQ(Q){let Z=await SZ();if(!Z)return"";let O=new Z.Scanner([]).scanContent(Q);if(O.size===0)return"";let J=new Z.CSSGenerator(Z.defaultConfig);for(let Y of O)J.generate(Y);return J.toCSS(!1,!1)}function CZ(Q){if(!Q.fathom?.enabled||!Q.fathom?.siteId)return"";let Z=Q.fathom.scriptUrl||"https://cdn.usefathom.com/script.js",$=Q.fathom.defer!==!1,O=Q.fathom.honorDNT||!1,J=Q.fathom.auto!==!1,Y=Q.fathom.canonical,q=Q.fathom.spa||!1,K=[`data-site="${Q.fathom.siteId}"`,O?'data-honor-dnt="true"':"",!J?'data-auto="false"':"",Y?`data-canonical="${Y}"`:"",q?'data-spa="auto"':""].filter(Boolean).join(" ");return`<script src="${Z}" ${K}${$?" defer":""}></script>`}function xZ(Q){let Z=Q.analytics||Q.selfHostedAnalytics;if(!Z?.enabled||!Z?.siteId)return"";let $=xQ(Z.siteId),O=Z.apiEndpoint?xQ(Z.apiEndpoint):"",J=Z.honorDNT?`var dnt=n.doNotTrack||w.doNotTrack||n.msDoNotTrack;if(dnt==="1"||dnt==="yes"||dnt===true){l('DNT enabled, skipping');return;}`:"",Y=Z.trackHashChanges?"w.addEventListener('hashchange',function(){pv();});":"",q=Z.trackOutboundLinks?`d.addEventListener('click',function(e){try{var a=e.target.closest('a');if(a&&a.hostname&&a.hostname!==location.hostname){t('outbound',{url:a.href,text:(a.textContent||'').slice(0,100)});}}
|
|
8911
|
+
catch (err){l('Outbound error',err);}});`:"",K=O?` data-api="${O}"`:"";return`<!-- ts-analytics: privacy-first analytics -->
|
|
8912
|
+
<script data-site="${$}"${K} defer>
|
|
8912
8913
|
(function(){
|
|
8913
8914
|
'use strict';
|
|
8914
8915
|
var d=document,w=window,n=navigator,ss=w.sessionStorage,s=d.currentScript;
|
|
@@ -8955,7 +8956,7 @@ catch(err){l('Track error',err);}
|
|
|
8955
8956
|
}
|
|
8956
8957
|
var pvSent={};function pv(){var p=location.pathname;if(pvSent[p]&&Date.now()-pvSent[p]<1000)return;pvSent[p]=Date.now();l('Pageview',p);t('pageview',{path:p});}
|
|
8957
8958
|
${Y}
|
|
8958
|
-
${
|
|
8959
|
+
${q}
|
|
8959
8960
|
var hp=history.pushState;if(hp){history.pushState=function(){hp.apply(history,arguments);pv();};}
|
|
8960
8961
|
var hr=history.replaceState;if(hr){history.replaceState=function(){hr.apply(history,arguments);};}
|
|
8961
8962
|
w.addEventListener('popstate',pv);
|
|
@@ -8969,38 +8970,38 @@ l('Initialized',site);
|
|
|
8969
8970
|
}
|
|
8970
8971
|
catch(err){if(w.console)console.error('[Analytics] Init error:',err);}
|
|
8971
8972
|
})();
|
|
8972
|
-
</script>`}function
|
|
8973
|
-
`)
|
|
8974
|
-
`)}</div>`;let Y=Q.image?`<div class="hero-image"><img src="${Q.image}" alt="${Q.name||""}" /></div>`:"";return await
|
|
8975
|
-
<${
|
|
8973
|
+
</script>`}function xQ(Q){return Q.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function uZ(Q){let Z=Q.replace(/\r\n/g,`
|
|
8974
|
+
`),$=/^---\n([\s\S]*?)\n---\n?/,O=Z.match($);if(!O)return{frontmatter:{},content:Z};let J=O[1],Y=Z.slice(O[0].length);try{return{frontmatter:kQ.parse(J),content:Y}}catch{try{let q=J.replace(/^(\s*\w+:\s*)"(.+)",\s*(.+)$/gm,`$1'"$2," $3'`);return{frontmatter:kQ.parse(q),content:Y}}catch(q){return console.error("Failed to parse frontmatter YAML:",q),{frontmatter:{},content:Q}}}}async function fZ(Q){if(!Q)return"";let Z=Q.name?`<p class="BPHero-name">${Q.name}</p>`:"",$=Q.text?`<h1 class="BPHero-text">${Q.text}</h1>`:"",O=Q.tagline?`<p class="BPHero-tagline">${Q.tagline}</p>`:"",J="";if(Q.actions)J=`<div class="BPHero-actions">${Q.actions.map((K)=>{return`<a class="${K.theme==="brand"?"BPButton BPButton-brand":"BPButton BPButton-alt"}" href="${K.link}">${K.text}</a>`}).join(`
|
|
8975
|
+
`)}</div>`;let Y=Q.image?`<div class="hero-image"><img src="${Q.image}" alt="${Q.name||""}" /></div>`:"";return await P("hero",{name:Z,text:$,tagline:O,actions:J,image:Y})}var pZ={Fast:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z"/></svg>',Shield:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>',Blade:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/></svg>',Tools:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/></svg>',Components:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><rect x="3" y="3" width="7" height="7" rx="1"/><rect x="14" y="3" width="7" height="7" rx="1"/><rect x="3" y="14" width="7" height="7" rx="1"/><rect x="14" y="14" width="7" height="7" rx="1"/></svg>',Stream:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M2 12h6l3-9 3 18 3-9h5"/></svg>',Desktop:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><rect x="2" y="3" width="20" height="14" rx="2"/><path d="M8 21h8m-4-4v4"/></svg>',Parser:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M16 18l6-6-6-6M8 6l-6 6 6 6"/></svg>',Icons:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><circle cx="12" cy="12" r="4"/><path d="M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"/></svg>'};function mZ(Q){if(Q.startsWith("<")||/\p{Emoji}/u.test(Q))return Q;return pZ[Q]||`<span class="BPFeature-icon-text">${Q.charAt(0)}</span>`}async function gZ(Q){if(!Q||Q.length===0)return"";let Z=Q.map(($)=>{let O=$.icon?mZ($.icon):"",J=O?`<div class="BPFeature-icon">${O}</div>`:"",Y=$.link,q=Y?"a":"div",K=Y?` href="${Y}"`:"";return`
|
|
8976
|
+
<${q} class="BPFeature"${K}>
|
|
8976
8977
|
${J}
|
|
8977
|
-
<h3 class="
|
|
8978
|
-
<p class="
|
|
8979
|
-
</${
|
|
8980
|
-
`).map((
|
|
8981
|
-
`),
|
|
8982
|
-
`),
|
|
8983
|
-
`),
|
|
8984
|
-
${
|
|
8985
|
-
\`\`\``;J=J.slice(0,Y.index)+
|
|
8986
|
-
`);if(
|
|
8987
|
-
`),
|
|
8988
|
-
${
|
|
8989
|
-
</div>`})),
|
|
8978
|
+
<h3 class="BPFeature-title">${$.title||""}</h3>
|
|
8979
|
+
<p class="BPFeature-details">${$.details||""}</p>
|
|
8980
|
+
</${q}>`}).join("");return await P("features",{items:Z})}function pQ(Q){return Q.replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>").replace(/__(.+?)__/g,"<strong>$1</strong>").replace(/~~(.+?)~~/g,"<del>$1</del>").replace(/==(.+?)==/g,"<mark>$1</mark>").replace(/\^(.+?)\^/g,"<sup>$1</sup>").replace(/`(.+?)`/g,"<code>$1</code>").replace(/(?<!\*)\*(?!\*)(.+?)(?<!\*)\*(?!\*)/g,"<em>$1</em>").replace(/(?<!_)_(?!_)(.+?)(?<!_)_(?!_)/g,"<em>$1</em>").replace(/(?<!~)~(?!~)(.+?)(?<!~)~(?!~)/g,"<sub>$1</sub>").replace(/!\[([^\]]*)\]\(\s*([^\s")]+)(?:\s+"([^"]+)")?\)/g,(Z,$,O,J)=>{if(J)return`<figure class="image-figure"><img src="${O}" alt="${$}" loading="lazy" decoding="async"><figcaption>${J}</figcaption></figure>`;else return`<img src="${O}" alt="${$}" loading="lazy" decoding="async">`}).replace(/\[(.+?)\]\((.+?)\)/g,'<a href="$2">$1</a>')}function hZ(Q){let Z={smile:"\uD83D\uDE04",laughing:"\uD83D\uDE06",blush:"\uD83D\uDE0A",heart_eyes:"\uD83D\uDE0D",kissing_heart:"\uD83D\uDE18",relaxed:"\u263A\uFE0F",wink:"\uD83D\uDE09",grin:"\uD83D\uDE01",joy:"\uD83D\uDE02",sweat_smile:"\uD83D\uDE05",rofl:"\uD83E\uDD23",thinking:"\uD83E\uDD14",zipper_mouth:"\uD83E\uDD10",neutral_face:"\uD83D\uDE10",expressionless:"\uD83D\uDE11",confused:"\uD83D\uDE15",worried:"\uD83D\uDE1F",slightly_frowning_face:"\uD83D\uDE41",frowning_face:"\u2639\uFE0F",persevere:"\uD83D\uDE23",disappointed:"\uD83D\uDE1E",sweat:"\uD83D\uDE13",tired_face:"\uD83D\uDE2B",cry:"\uD83D\uDE22",sob:"\uD83D\uDE2D",triumph:"\uD83D\uDE24",angry:"\uD83D\uDE20",rage:"\uD83D\uDE21",no_mouth:"\uD83D\uDE36",sleeping:"\uD83D\uDE34","+1":"\uD83D\uDC4D",thumbsup:"\uD83D\uDC4D","-1":"\uD83D\uDC4E",thumbsdown:"\uD83D\uDC4E",clap:"\uD83D\uDC4F",raised_hands:"\uD83D\uDE4C",pray:"\uD83D\uDE4F",wave:"\uD83D\uDC4B",ok_hand:"\uD83D\uDC4C",point_up:"\u261D\uFE0F",point_down:"\uD83D\uDC47",point_left:"\uD83D\uDC48",point_right:"\uD83D\uDC49",muscle:"\uD83D\uDCAA",heart:"\u2764\uFE0F",blue_heart:"\uD83D\uDC99",green_heart:"\uD83D\uDC9A",yellow_heart:"\uD83D\uDC9B",purple_heart:"\uD83D\uDC9C",broken_heart:"\uD83D\uDC94",sparkling_heart:"\uD83D\uDC96",star:"\u2B50",star2:"\uD83C\uDF1F",sparkles:"\u2728",boom:"\uD83D\uDCA5",fire:"\uD83D\uDD25",tada:"\uD83C\uDF89",confetti_ball:"\uD83C\uDF8A",rocket:"\uD83D\uDE80",zap:"\u26A1",bulb:"\uD83D\uDCA1",bell:"\uD83D\uDD14",mega:"\uD83D\uDCE3",loudspeaker:"\uD83D\uDCE2",warning:"\u26A0\uFE0F",white_check_mark:"\u2705",check:"\u2705",x:"\u274C",heavy_check_mark:"\u2714\uFE0F",heavy_multiplication_x:"\u2716\uFE0F",question:"\u2753",grey_question:"\u2754",exclamation:"\u2757",grey_exclamation:"\u2755",heavy_plus_sign:"\u2795",heavy_minus_sign:"\u2796",pencil2:"\u270F\uFE0F",memo:"\uD83D\uDCDD",book:"\uD83D\uDCD6",books:"\uD83D\uDCDA",bookmark:"\uD83D\uDD16",mag:"\uD83D\uDD0D",mag_right:"\uD83D\uDD0E",lock:"\uD83D\uDD12",unlock:"\uD83D\uDD13",key:"\uD83D\uDD11",link:"\uD83D\uDD17",computer:"\uD83D\uDCBB",email:"\uD83D\uDCE7",inbox_tray:"\uD83D\uDCE5",outbox_tray:"\uD83D\uDCE4",package:"\uD83D\uDCE6",file_folder:"\uD83D\uDCC1",open_file_folder:"\uD83D\uDCC2",page_facing_up:"\uD83D\uDCC4",calendar:"\uD83D\uDCC5",chart_with_upwards_trend:"\uD83D\uDCC8",chart_with_downwards_trend:"\uD83D\uDCC9",bar_chart:"\uD83D\uDCCA",clipboard:"\uD83D\uDCCB",pushpin:"\uD83D\uDCCC",round_pushpin:"\uD83D\uDCCD",paperclip:"\uD83D\uDCCE",straight_ruler:"\uD83D\uDCCF",wrench:"\uD83D\uDD27",hammer:"\uD83D\uDD28",gear:"\u2699\uFE0F",nut_and_bolt:"\uD83D\uDD29",seedling:"\uD83C\uDF31",evergreen_tree:"\uD83C\uDF32",deciduous_tree:"\uD83C\uDF33",palm_tree:"\uD83C\uDF34",cactus:"\uD83C\uDF35",herb:"\uD83C\uDF3F",shamrock:"\u2618\uFE0F",four_leaf_clover:"\uD83C\uDF40",bug:"\uD83D\uDC1B",bee:"\uD83D\uDC1D",bird:"\uD83D\uDC26",dog:"\uD83D\uDC36",cat:"\uD83D\uDC31",penguin:"\uD83D\uDC27",turtle:"\uD83D\uDC22",fish:"\uD83D\uDC1F",coffee:"\u2615",tea:"\uD83C\uDF75",beer:"\uD83C\uDF7A",beers:"\uD83C\uDF7B",wine_glass:"\uD83C\uDF77",pizza:"\uD83C\uDF55",hamburger:"\uD83C\uDF54",fries:"\uD83C\uDF5F",cake:"\uD83C\uDF70",birthday:"\uD83C\uDF82",cookie:"\uD83C\uDF6A",doughnut:"\uD83C\uDF69",apple:"\uD83C\uDF4E",green_apple:"\uD83C\uDF4F",banana:"\uD83C\uDF4C",strawberry:"\uD83C\uDF53",house:"\uD83C\uDFE0",office:"\uD83C\uDFE2",hospital:"\uD83C\uDFE5",school:"\uD83C\uDFEB",car:"\uD83D\uDE97",taxi:"\uD83D\uDE95",bus:"\uD83D\uDE8C",train:"\uD83D\uDE82",airplane:"\u2708\uFE0F",ship:"\uD83D\uDEA2",bike:"\uD83D\uDEB2",soccer:"\u26BD",basketball:"\uD83C\uDFC0",football:"\uD83C\uDFC8",baseball:"\u26BE",tennis:"\uD83C\uDFBE",trophy:"\uD83C\uDFC6",medal:"\uD83C\uDFC5",dart:"\uD83C\uDFAF",game_die:"\uD83C\uDFB2",musical_note:"\uD83C\uDFB5",notes:"\uD83C\uDFB6",art:"\uD83C\uDFA8",camera:"\uD83D\uDCF7",movie_camera:"\uD83C\uDFA5",checkered_flag:"\uD83C\uDFC1",triangular_flag_on_post:"\uD83D\uDEA9",flag_us:"\uD83C\uDDFA\uD83C\uDDF8",flag_gb:"\uD83C\uDDEC\uD83C\uDDE7",flag_fr:"\uD83C\uDDEB\uD83C\uDDF7",flag_de:"\uD83C\uDDE9\uD83C\uDDEA",flag_jp:"\uD83C\uDDEF\uD83C\uDDF5",flag_cn:"\uD83C\uDDE8\uD83C\uDDF3"};return Q.replace(/:(\w+):/g,($,O)=>{return Z[O]||$})}function dZ(Q){let Z=/<Badge([^/>]+)\/>/gi;return Q.replace(Z,($,O)=>{let J=O.match(/type="(info|tip|warning|danger)"/i),Y=O.match(/text="([^"]+)"/),q=J?J[1].toLowerCase():"info",K=Y?Y[1]:"";return`<span class="badge badge-${q}">${K}</span>`})}function cZ(Q){return Q.replace(/<a\s+href="([^"]+)"([^>]*)>/g,(Z,$,O)=>{if(O.includes("target="))return Z;if($.startsWith("http://")||$.startsWith("https://"))return`<a href="${$}" target="_blank" rel="noreferrer noopener"${O}>`;return Z})}function lZ(Q){return Q.replace(/<a\s+href="([^"]+)"\s+target="_blank"[^>]*>[\s\S]+?<\/a>/g,(Z,$)=>{if(Z.includes("external-link-icon"))return Z;let O='<svg class="external-link-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>';return Z.replace("</a>",`${O}</a>`)})}function sZ(Q){return Q.replace(/<img([^>]+)>/g,(Z,$)=>{if($.includes("loading="))return Z;return`<img ${$} loading="lazy" decoding="async">`})}function rZ(Q,Z){if(!Q.includes("[[toc]]"))return{content:Q,tocHtml:null};let $=t(Q),O={...i,...Z},J=QQ($,O),q={items:e(J),title:O.title||"Table of Contents",config:O},K=g(q),X="<!--INLINE_TOC_PLACEHOLDER-->";return{content:Q.replace(/\[\[toc\]\]/g,X),tocHtml:K}}function aZ(Q,Z){return Q.replace(/<!--INLINE_TOC_PLACEHOLDER-->/g,Z)}async function oZ(Q){let Z=/^>\s*\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]\s*\n((?:>\s*.*\n?)*)/gm,$=Array.from(Q.matchAll(Z)),O=Q;for(let J of $.reverse()){let[Y,q,K]=J,X=K.split(`
|
|
8981
|
+
`).map((_)=>_.replace(/^>\s*/,"")).filter((_)=>_.trim()).map((_)=>`<p>${pQ(_)}</p>`).join(`
|
|
8982
|
+
`),V=q.toLowerCase(),z=await P(`blocks/alerts/${V}`,{content:X});O=O.slice(0,J.index)+z+O.slice(J.index+Y.length)}return O}async function iZ(Q,Z){let $=/^<<<\s+@\/([^\s[{#]+)(?:\{(\d+)-(\d+)\}|#(\w+))?\s*(?:\[[^\]]+\]\s*)?$/gm,O=Array.from(Q.matchAll($)),J=Q;for(let Y of O.reverse()){let[q,K,X,V,z]=Y;try{let{join:_}=await import("path"),G=_(Z,K),U=Bun.file(G);if(!await U.exists()){console.warn(`Code import: File not found: ${G}`);continue}let W=(await U.text()).split(`
|
|
8983
|
+
`),E=K.split(".").pop()||"",M={js:"javascript",ts:"typescript",jsx:"jsx",tsx:"tsx",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",cpp:"cpp",c:"c",cs:"csharp",php:"php",sh:"bash",bash:"bash",yaml:"yaml",yml:"yaml",json:"json",md:"markdown",html:"html",css:"css",scss:"scss",vue:"vue"}[E]||E;if(X&&V){let B=Number.parseInt(X)-1,I=Number.parseInt(V);W=W.slice(B,I)}else if(z){let B=W.findIndex((D)=>D.includes(`#region ${z}`)||D.includes(`// region ${z}`)||D.includes(`# region ${z}`)),I=W.findIndex((D,v)=>v>B&&(D.includes("#endregion")||D.includes("// endregion")||D.includes("# endregion")));if(B!==-1&&I!==-1)W=W.slice(B+1,I);else console.warn(`Code import: Region '${z}' not found in ${K}`)}let A=W.join(`
|
|
8984
|
+
`),F=`\`\`\`${M}
|
|
8985
|
+
${A}
|
|
8986
|
+
\`\`\``;J=J.slice(0,Y.index)+F+J.slice(Y.index+q.length)}catch(_){console.error(`Error importing code from ${K}:`,_)}}return J}async function mQ(Q,Z,$=new Set){let O=/<!--@include:\s*([^\s{]+)(?:\{(\d+)-(\d+)\}|\{#([\w-]+)\})?\s*-->/g,J=Array.from(Q.matchAll(O)),Y=Q;for(let q of J.reverse()){let[K,X,V,z,_]=q;try{let{join:G,resolve:U}=await import("path"),j=U(G(Z,X));if($.has(j)){console.warn(`Markdown include: Circular reference detected for ${X}`);continue}let W=Bun.file(j);if(!await W.exists()){console.warn(`Markdown include: File not found: ${j}`);continue}let N=(await W.text()).split(`
|
|
8987
|
+
`);if(V&&z){let F=Number.parseInt(V)-1,B=Number.parseInt(z);N=N.slice(F,B)}else if(_){let F=N.findIndex((I)=>I.includes(`<!-- #region ${_} -->`)||I.includes(`<!-- region ${_} -->`)),B=N.findIndex((I,D)=>D>F&&(I.includes("<!-- #endregion -->")||I.includes("<!-- endregion -->")));if(F!==-1&&B!==-1)N=N.slice(F+1,B);else{console.warn(`Markdown include: Region '${_}' not found in ${X}`);continue}}let M=N.join(`
|
|
8988
|
+
`),A=new Set($);A.add(j),M=await mQ(M,Z,A),Y=Y.slice(0,q.index)+M+Y.slice(q.index+K.length)}catch(G){console.error(`Error including markdown from ${X}:`,G)}}return Y}async function nZ(Q){let Z=/^:::\s+code-group[ \t]*\n((?:(?!^:::)[\s\S])*)^:::$/gm,$=Array.from(Q.matchAll(Z)),O=Q;for(let J of $.reverse()){let[Y,q]=J,K=/^```(\w+)[ \t]+\[([^\]]+)\][ \t]*\n((?:(?!^```)[\s\S])*)^```$/gm,X=Array.from(q.matchAll(K));if(X.length===0)continue;let V=`code-group-${Math.random().toString(36).substr(2,9)}`,z=X.map((U,j)=>{let W=U[2];return`<button class="code-group-tab${j===0?" active":""}" onclick="switchCodeTab('${V}', ${j})">${W}</button>`}).join(""),_=await Promise.all(X.map(async(U,j)=>{let W=U[1],E=U[3],N=j===0,M=L.markdown?.syntaxHighlightTheme||"github-light",A=await s(E,W,M),F=`<pre data-lang="${W}"><code class="language-${W}">${A}</code></pre>`;return`<div class="code-group-panel${N?" active":""}" data-panel="${j}">
|
|
8989
|
+
${F}
|
|
8990
|
+
</div>`})),G=[`<div class="code-group" id="${V}">`,' <div class="code-group-tabs">',` ${z}`," </div>",' <div class="code-group-panels">',` ${_.join(`
|
|
8990
8991
|
`)}`," </div>","</div>"].join(`
|
|
8991
|
-
`)
|
|
8992
|
-
`).filter((
|
|
8993
|
-
`),
|
|
8994
|
-
`),
|
|
8995
|
-
`).map((T,y)=>{let R=y+1,
|
|
8996
|
-
`),
|
|
8997
|
-
`)
|
|
8998
|
-
`)}function
|
|
8992
|
+
`);O=O.slice(0,J.index)+G+O.slice(J.index+Y.length)}return O}async function tZ(Q){let Z=/^:::\s+(info|tip|warning|danger|details|raw)(?: +([^\n\t ][^\n]*))?\n((?:(?!^:::)[\s\S])*)^:::$/gm,$=Array.from(Q.matchAll(Z)),O=Q;for(let J of $.reverse()){let[Y,q,K,X]=J,V={info:"INFO",tip:"TIP",warning:"WARNING",danger:"DANGER",details:"Details",raw:""},z=K&&K.trim()||V[q],_=X.trim().split(`
|
|
8993
|
+
`).filter((U)=>U.trim()).map((U)=>`<p>${pQ(U)}</p>`).join(`
|
|
8994
|
+
`),G=await P(`blocks/containers/${q}`,{title:z,content:_});O=O.slice(0,J.index)+G+O.slice(J.index+Y.length)}return O}function eZ(Q){let Z=Q.match(/^(\w+)/),$=Z?Z[1]:"",O=Q.match(/\{([^}]+)\}/),J=[];if(O){let q=O[1].split(",");for(let K of q){let X=K.trim();if(X.includes("-")){let[V,z]=X.split("-").map(Number);for(let _=V;_<=z;_++)J.push(_)}else J.push(Number(X))}}let Y=Q.includes(":line-numbers");return{lang:$,highlights:J,showLineNumbers:Y}}async function Q0(Q,Z){let $=Q[Z],O=$.match(/^(`{3,})/),J=O?O[1].length:3,Y="`".repeat(J),q=$.substring(J).trim(),{lang:K,highlights:X,showLineNumbers:V}=eZ(q),z=[],_=Z+1;while(_<Q.length){let T=Q[_];if(T.match(new RegExp(`^\`{${J},}\\s*$`)))break;z.push(T),_++}let G=new Set,U=new Set,j=new Set,W=new Set,E=new Set,N=z.map((T,y)=>{let R=T;if(R.includes("// [!code focus]"))G.add(y),R=R.replace(/\/\/ \[!code focus\]/,"").trimEnd();if(R.includes("// [!code ++]"))U.add(y),R=R.replace(/\/\/ \[!code \+\+\]/,"").trimEnd();if(R.includes("// [!code --]"))j.add(y),R=R.replace(/\/\/ \[!code --\]/,"").trimEnd();if(R.includes("// [!code error]"))W.add(y),R=R.replace(/\/\/ \[!code error\]/,"").trimEnd();if(R.includes("// [!code warning]"))E.add(y),R=R.replace(/\/\/ \[!code warning\]/,"").trimEnd();return R}),M=G.size>0,A=N.join(`
|
|
8995
|
+
`),F=L.markdown?.syntaxHighlightTheme||"github-light",D=(await s(A,K,F)).split(`
|
|
8996
|
+
`).map((T,y)=>{let R=y+1,gQ=X.includes(R),XQ=G.has(y),hQ=U.has(y),dQ=j.has(y),cQ=W.has(y),lQ=E.has(y),H=["line"];if(gQ)H.push("highlighted");if(XQ)H.push("focused");if(M&&!XQ)H.push("dimmed");if(hQ)H.push("diff-add");if(dQ)H.push("diff-remove");if(cQ)H.push("has-error");if(lQ)H.push("has-warning");if(T.startsWith('<span class="line">')){let sQ=H.join(" "),KQ=T.replace('<span class="line">',`<span class="${sQ}">`);if(V)return`<span class="${H.join(" ")}"><span class="line-number">${R}</span>${KQ.replace(/^<span class="[^"]*">/,"").replace(/<\/span>$/,"")}</span>`;return KQ}let qQ=H.length>0?` class="${H.join(" ")}"`:"";if(V)return`<span${qQ}><span class="line-number">${R}</span>${T}</span>`;return`<span${qQ}>${T}</span>`}).join(`
|
|
8997
|
+
`),v=[];if(V)v.push("line-numbers-mode");if(M)v.push("has-focused-lines");let c=v.length>0?` class="${v.join(" ")}"`:"",w=K?` data-lang="${K}"`:"";return{html:`<pre${c}${w}><code class="language-${K}">${D}</code></pre>`,endIndex:_}}function Z0(Q){let Z=new Map;return{content:Q.replace(/^(#{1,6})\s+(.*?)\s*\{#([\w-]+)\}\s*$/gm,(O,J,Y,q)=>{let K=Y.trim().replace(/`([^`]+)`/g,"$1").replace(/\*\*(.+?)\*\*/g,"$1").replace(/__(.+?)__/g,"$1").replace(/\*(.+?)\*/g,"$1").replace(/_(.+?)_/g,"$1").replace(/~~(.+?)~~/g,"$1").trim();return Z.set(K,q),`${J} ${Y.trim()}`}),customAnchors:Z}}async function $0(Q,Z){let $=Q.split(`
|
|
8998
|
+
`),O=[],J=0,Y=0;while(J<$.length){let q=$[J];if(q.match(/^`{3,}/)){let{html:K,endIndex:X}=await Q0($,J),V=`<!--BUNPRESS_CODE_${Y++}-->`;Z.set(V,K),O.push(""),O.push(V),O.push(""),J=X+1}else O.push(q),J++}return O.join(`
|
|
8999
|
+
`)}function J0(Q){return Q=Q.replace(/==(.+?)==/g,"<mark>$1</mark>"),Q=Q.replace(/\^(.+?)\^/g,"<sup>$1</sup>"),Q=Q.replace(/(?<!~)~(?!~)(.+?)(?<!~)~(?!~)/g,"<sub>$1</sub>"),Q}function Y0(Q){return Q=Q.replace(/<table>/g,`<div class="table-responsive">
|
|
8999
9000
|
<table class="enhanced-table">`),Q=Q.replace(/<\/table>/g,`</table>
|
|
9000
|
-
</div>`),Q=Q.replace(/<(th|td) align="(left|center|right)">/g,(
|
|
9001
|
+
</div>`),Q=Q.replace(/<(th|td) align="(left|center|right)">/g,(Z,$,O)=>{return`<${$} style="text-align: ${O}">`}),Q=Q.replace(/<(th|td)>/g,(Z,$)=>{return`<${$} style="text-align: left">`}),Q}function O0(Q,Z){let $=new Set;return Q.replace(/<h([1-6])([^>]*)>([\s\S]*?)<\/h\1>/g,(O,J,Y,q)=>{if(Y.includes(" id="))return O;let K=q.replace(/<[^>]+>/g,"").trim(),X=Z.get(K);if(!X)X=n(K);if($.has(X)){let V=1;while($.has(`${X}-${V}`))V++;X=`${X}-${V}`}return $.add(X),`<h${J} id="${X}"${Y}>${q}</h${J}>`})}async function X0(Q,Z="./docs"){let{frontmatter:$,content:O}=uZ(Q);if($.layout==="home"){let Y=await fZ($.hero),q=await gZ($.features),K=O.trim()?await uQ(O,$,Z):"",X=K?`<div class="BPHome-content"><div class="vp-doc container">${K}</div></div>`:"";return{html:Y+q+X,frontmatter:$}}return{html:await uQ(O,$,Z),frontmatter:$}}async function uQ(Q,Z,$){let O=L.markdown?.features,J=(E)=>{if(!O)return!0;let N=O[E];return N===void 0||N===!0||typeof N==="object"&&N!==null},Y=J("includes")?await mQ(Q,$):Q,q={...Z,data:await VQ($),site:{title:L.title||L.markdown?.title||"",description:L.description||L.markdown?.meta?.description||"",themeConfig:L.themeConfig}},K=L.componentsDir?d(S.cwd(),L.componentsDir):d($,".components");Y=await a(Y,K,q);let X=Y.replace(/```[\s\S]*?```/g,"");if(X.includes("@if")||X.includes("@foreach")||X.includes("@for (")||X.includes("<script server")||X.includes("@include")||/\{\{(?!\{)\s*\w/.test(X))try{Y=await(await import("@stacksjs/stx")).renderString(Y,q)}catch{}let{content:z,tocHtml:_}=J("inlineToc")?rZ(Y,Z.toc):{content:Y,tocHtml:""};Y=J("codeImports")?await iZ(z,$):z,Y=J("codeGroups")?await nZ(Y):Y,Y=J("githubAlerts")?await oZ(Y):Y,Y=J("containers")?await tZ(Y):Y,Y=J("emoji")?hZ(Y):Y,Y=J("badges")?dZ(Y):Y;let{content:G,customAnchors:U}=J("customAnchors")?Z0(Y):{content:Y,customAnchors:new Map};Y=G;let j=new Map;Y=J("codeBlocks")?await $0(Y,j):Y;let W=Bun.markdown.html(Y,{tables:!0,strikethrough:!0,tasklists:!0,autolinks:!0});for(let[E,N]of j)W=W.replace(`<p>${E}</p>`,N),W=W.replace(E,N);if(J("inlineFormatting"))W=J0(W);if(J("tables"))W=Y0(W);if(W=O0(W,U),_)W=aZ(W,_);if(J("externalLinks"))W=cZ(W),W=lZ(W);if(J("imageLazyLoading"))W=sZ(W);return W}async function q0(Q={}){let Z=Q.config||L,$=Q.port||3000,O=Q.root||"./docs",J=Bun.serve({port:$,async fetch(K){let X=new URL(K.url),V=HZ(Z,X.pathname);if(V==="/")V="/index";if([".png",".jpg",".jpeg",".gif",".svg",".css",".js",".ico",".woff",".woff2",".ttf"].some((G)=>V.endsWith(G)))try{let G=`${O}/public${V}`,U=Bun.file(G);if(await U.exists())return new Response(U);let j=`${O}${V}`,W=Bun.file(j);if(await W.exists())return new Response(W)}catch{}let _=`${O}${V}.md`;try{let G=Bun.file(_);if(await G.exists()){let U=await G.text(),{html:j,frontmatter:W}=await X0(U,O),E=W.layout||"doc",N=await SQ(j,Z,V,E);return new Response(N,{headers:{"Content-Type":"text/html; charset=utf-8"}})}}catch{}return new Response(await SQ("<h1>404 - Page Not Found</h1><p>The page you are looking for does not exist.</p>",Z,V),{status:404,headers:{"Content-Type":"text/html; charset=utf-8"}})}}),Y=`http://localhost:${J.port}`,q=()=>J.stop();if(!Q.quiet)console.log(`
|
|
9001
9002
|
\uD83D\uDCDA BunPress documentation server running at ${Y}`),console.log(`Press Ctrl+C to stop
|
|
9002
|
-
`);return{server:J,url:Y,stop:
|
|
9003
|
-
`);try{let J=new Map,Y=new
|
|
9004
|
-
Shutting down server...`),
|
|
9005
|
-
Shutting down server...`),
|
|
9006
|
-
export{
|
|
9003
|
+
`);return{server:J,url:Y,stop:q}}async function o0(Q={}){let{stop:Z}=await q0(Q),$=Q.watch!==void 0?Q.watch:!0,O=Q.root||"./docs";if($){console.log(`Watching for changes in ${O} directory...
|
|
9004
|
+
`);try{let J=new Map,Y=new vQ("**/*.{md,stx,ts,js,css,html}");for await(let X of Y.scan(O))try{let V=d(O,X),z=await bQ(V);J.set(X,z.mtimeMs)}catch{}let q=null,K=()=>{if(q)clearTimeout(q);q=setTimeout(async()=>{console.log("File changed detected, reloading..."),AQ(),EQ(),zQ(),console.log("Ready for requests")},100)};setInterval(async()=>{try{let X=!1,V=new Set,z=new vQ("**/*.{md,stx,ts,js,css,html}");for await(let _ of z.scan(O)){V.add(_);try{let G=d(O,_),U=await bQ(G),j=J.get(_);if(j===void 0||U.mtimeMs>j)X=!0,J.set(_,U.mtimeMs)}catch{}}for(let _ of J.keys())if(!V.has(_))X=!0,J.delete(_);if(X)K()}catch{}},1000)}catch(J){console.error("Error setting up file watcher:",J)}}S.on("SIGINT",()=>{console.log(`
|
|
9005
|
+
Shutting down server...`),Z(),S.exit(0)}),S.on("SIGTERM",()=>{console.log(`
|
|
9006
|
+
Shutting down server...`),Z(),S.exit(0)}),await new Promise(()=>{})}
|
|
9007
|
+
export{aQ as g,L as h,_0 as i,j0 as j,l as k,GQ as l,s as m,N0 as n,UQ as o,E0 as p,R0 as q,i as r,n as s,PQ as t,t as u,e as v,QQ as w,m as x,g as y,BZ as z,MZ as A,wZ as B,k0 as C,b0 as D,S0 as E,C0 as F,x0 as G,fQ as H,HZ as I,SQ as J,X0 as K,q0 as L,o0 as M};
|